GNU bug report logs -
#56858
[PATCH] gnu: libcgroup: Update to 2.0.2.
Previous Next
Reported by: muradm <mail <at> muradm.net>
Date: Sun, 31 Jul 2022 15:30:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56858 in the body.
You can then email your comments to 56858 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#56858
; Package
guix-patches
.
(Sun, 31 Jul 2022 15:30:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
muradm <mail <at> muradm.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 31 Jul 2022 15:30:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/linux.scm (libcgroup): Update to 2.0.2.
[source]: Project migrated to github.
---
gnu/packages/linux.scm | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 906303175d..bcb2bb284a 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -8146,15 +8146,15 @@ (define-public fbcat
(define-public libcgroup
(package
(name "libcgroup")
- (version "0.41")
+ (version "2.0.2")
+ (home-page "https://github.com/libcgroup/libcgroup")
(source
(origin
(method url-fetch)
- (uri (string-append
- "mirror://sourceforge/libcg/" name "/"
- version "/" name "-" version ".tar.bz2"))
+ (uri (string-append home-page "/releases/download/v"
+ version "/" name "-" version ".tar.gz"))
(sha256
- (base32 "0lgvyq37gq84sk30sg18admxaj0j0p5dq3bl6g74a1ppgvf8pqz4"))))
+ (base32 "1y0c9ncsawamj77raiw6qkbm5cdsyvhjb2mvgma1kxmgw0r3pxlf"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f))
@@ -8162,7 +8162,6 @@ (define-public libcgroup
(list bison flex))
(inputs
(list linux-pam))
- (home-page "https://sourceforge.net/projects/libcg/")
(synopsis "Control groups management tools")
(description "Control groups is Linux kernel method for process resource
restriction, permission handling and more. This package provides userspace
--
2.37.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56858
; Package
guix-patches
.
(Sun, 31 Jul 2022 21:49:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 56858 <at> debbugs.gnu.org (full text, mbox):
Hi!
On Sun Jul 31, 2022 at 4:29 PM BST, muradm wrote:
> + (home-page "https://github.com/libcgroup/libcgroup")
Put home-page under inputs and above synopsis, where it was before.
> (method url-fetch)
> - (uri (string-append
> - "mirror://sourceforge/libcg/" name "/"
> - version "/" name "-" version ".tar.bz2"))
> + (uri (string-append home-page "/releases/download/v"
> + version "/" name "-" version ".tar.gz"))
Since we're using github now, we likely want to use git-fetch here.
I've been told Github releases are volatile.
-- (
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56858
; Package
guix-patches
.
(Mon, 01 Aug 2022 05:46:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 56858 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
"(" <paren <at> disroot.org> writes:
> Hi!
>
> On Sun Jul 31, 2022 at 4:29 PM BST, muradm wrote:
>> + (home-page "https://github.com/libcgroup/libcgroup")
> Put home-page under inputs and above synopsis, where it was
> before.
>
Is there a guideline where home-page should be? I find it more
DRY when reusing.
>> (method url-fetch)
>> - (uri (string-append
>> - "mirror://sourceforge/libcg/" name "/"
>> - version "/" name "-" version ".tar.bz2"))
>> + (uri (string-append home-page "/releases/download/v"
>> + version "/" name "-" version
>> ".tar.gz"))
> Since we're using github now, we likely want to use git-fetch
> here.
> I've been told Github releases are volatile.
>
> -- (
Their repo is not suitable for building from, instead
they release sources manually.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56858
; Package
guix-patches
.
(Mon, 01 Aug 2022 09:03:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 56858 <at> debbugs.gnu.org (full text, mbox):
On Mon Aug 1, 2022 at 6:42 AM BST, muradm wrote:
> Is there a guideline where home-page should be? I find it more
> DRY when reusing.
Almost every package in Guix puts it directly above synopsis, though
you do have a point about DRY.
> Their repo is not suitable for building from, instead
> they release sources manually.
Looks okay to me: <https://github.com/libcgroup/libcgroup/tree/v2.0.2>
But there is a problem with vendoring googletest, it seems. You'll want
to use the system's googletest, and (recursive? #t) in the git-reference
to clone the tests repo. Also, the tarball seems to contain pregenerated
autotools files, which are discouraged by Guix.
-- (
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56858
; Package
guix-patches
.
(Mon, 01 Aug 2022 09:07:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 56858 <at> debbugs.gnu.org (full text, mbox):
On Mon Aug 1, 2022 at 10:02 AM BST, ( via Guix-patches via wrote:
> (recursive? #t) in the git-reference to clone the tests repo.
Alternatively, write an <origin> for the tests repo, then use
that as an input for the libcgroup package.
-- (
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56858
; Package
guix-patches
.
(Mon, 01 Aug 2022 13:18:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 56858 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Previous version was also built from sources.
I didn't find it feasible to battle with bootstraping
for this version either. Tests are very intrusive and/or
containerized with lxc. So yeah, as per their process, there
are tons of things to be done manually from bootstraping.
May be sometime in the future if they will move to more
modern project layout, that could become feasible.
"(" <paren <at> disroot.org> writes:
> On Mon Aug 1, 2022 at 6:42 AM BST, muradm wrote:
>> Is there a guideline where home-page should be? I find it more
>> DRY when reusing.
> Almost every package in Guix puts it directly above synopsis,
> though
> you do have a point about DRY.
>
>> Their repo is not suitable for building from, instead
>> they release sources manually.
> Looks okay to me:
> <https://github.com/libcgroup/libcgroup/tree/v2.0.2>
> But there is a problem with vendoring googletest, it seems.
> You'll want
> to use the system's googletest, and (recursive? #t) in the
> git-reference
> to clone the tests repo. Also, the tarball seems to contain
> pregenerated
> autotools files, which are discouraged by Guix.
>
>
> -- (
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56858
; Package
guix-patches
.
(Thu, 04 Aug 2022 05:57:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 56858 <at> debbugs.gnu.org (full text, mbox):
"(" <paren <at> disroot.org> writes:
> Hi!
>
> On Sun Jul 31, 2022 at 4:29 PM BST, muradm wrote:
>> + (home-page "https://github.com/libcgroup/libcgroup")
> Put home-page under inputs and above synopsis, where it was before.
>
>> (method url-fetch)
>> - (uri (string-append
>> - "mirror://sourceforge/libcg/" name "/"
>> - version "/" name "-" version ".tar.bz2"))
>> + (uri (string-append home-page "/releases/download/v"
>> + version "/" name "-" version ".tar.gz"))
> Since we're using github now, we likely want to use git-fetch here.
> I've been told Github releases are volatile.
Hello, I believe '/releases' are okay, since they are uploaded manual by
the owner, the unstable ones are under '/archive' which are
auto-generated tarballs for tags.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56858
; Package
guix-patches
.
(Tue, 09 Aug 2022 15:38:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 56858 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
"(" <paren <at> disroot.org> skribis:
> On Mon Aug 1, 2022 at 6:42 AM BST, muradm wrote:
>> Is there a guideline where home-page should be? I find it more
>> DRY when reusing.
> Almost every package in Guix puts it directly above synopsis, though
> you do have a point about DRY.
Yeah IMO it’s a good idea to reuse ‘home-page’ like this patch does.
>> Their repo is not suitable for building from, instead
>> they release sources manually.
> Looks okay to me: <https://github.com/libcgroup/libcgroup/tree/v2.0.2>
> But there is a problem with vendoring googletest, it seems. You'll want
> to use the system's googletest, and (recursive? #t) in the git-reference
> to clone the tests repo. Also, the tarball seems to contain pregenerated
> autotools files, which are discouraged by Guix.
So, first things first. The priority should be to run tests and remove
the bundled googletest, which I tried with the patch below.
Now, tests won’t run because apparently they try to use ‘sudo’ (!):
--8<---------------cut here---------------start------------->8---
Traceback (most recent call last):
File "/tmp/guix-build-libcgroup-2.0.2.drv-0/libcgroup-2.0.2/tests/ftests/./ftests.py", line 353, in <module>
sys.exit(main(config))
File "/tmp/guix-build-libcgroup-2.0.2.drv-0/libcgroup-2.0.2/tests/ftests/./ftests.py", line 337, in main
setup(config, record_time=True)
File "/tmp/guix-build-libcgroup-2.0.2.drv-0/libcgroup-2.0.2/tests/ftests/./ftests.py", line 170, in setup
Run.run(['sudo', 'lxd', 'init', '--auto'])
File "/tmp/guix-build-libcgroup-2.0.2.drv-0/libcgroup-2.0.2/tests/ftests/run.py", line 38, in run
subproc = subprocess.Popen(command, shell=shell_bool,
File "/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'sudo'
FAIL ftests.sh (exit status: 1)
--8<---------------cut here---------------end--------------->8---
Could you check whether they can run at all without root privileges, and
if not, document it in a comment above #:tests? #f?
Thanks,
Ludo’.
[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index e70d8d1a90..7eb309dfa5 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -8177,14 +8177,18 @@ (define-public libcgroup
(uri (string-append home-page "/releases/download/v"
version "/" name "-" version ".tar.gz"))
(sha256
- (base32 "1y0c9ncsawamj77raiw6qkbm5cdsyvhjb2mvgma1kxmgw0r3pxlf"))))
+ (base32 "1y0c9ncsawamj77raiw6qkbm5cdsyvhjb2mvgma1kxmgw0r3pxlf"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Delete the bundled copy of googletest, that even includes a .so.
+ '(delete-file-recursively "googletest"))))
(build-system gnu-build-system)
- (arguments
- `(#:tests? #f))
+ ;; (arguments
+ ;; `(#:tests? #f))
(native-inputs
- (list bison flex))
+ (list bison flex python-wrapper))
(inputs
- (list linux-pam))
+ (list linux-pam googletest))
(synopsis "Control groups management tools")
(description "Control groups is Linux kernel method for process resource
restriction, permission handling and more. This package provides userspace
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56858
; Package
guix-patches
.
(Tue, 09 Aug 2022 20:35:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 56858 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi,
>
> "(" <paren <at> disroot.org> skribis:
>
>> On Mon Aug 1, 2022 at 6:42 AM BST, muradm wrote:
>>> Is there a guideline where home-page should be? I find it more
>>> DRY when reusing.
>> Almost every package in Guix puts it directly above synopsis,
>> though
>> you do have a point about DRY.
>
> Yeah IMO it’s a good idea to reuse ‘home-page’ like this patch
> does.
>
>>> Their repo is not suitable for building from, instead
>>> they release sources manually.
>> Looks okay to me:
>> <https://github.com/libcgroup/libcgroup/tree/v2.0.2>
>> But there is a problem with vendoring googletest, it seems.
>> You'll want
>> to use the system's googletest, and (recursive? #t) in the
>> git-reference
>> to clone the tests repo. Also, the tarball seems to contain
>> pregenerated
>> autotools files, which are discouraged by Guix.
>
> So, first things first. The priority should be to run tests and
> remove
> the bundled googletest, which I tried with the patch below.
>
> Now, tests won’t run because apparently they try to use ‘sudo’
> (!):
>
> Traceback (most recent call last):
> File
> "/tmp/guix-build-libcgroup-2.0.2.drv-0/libcgroup-2.0.2/tests/ftests/./ftests.py",
> line 353, in <module>
> sys.exit(main(config))
> File
> "/tmp/guix-build-libcgroup-2.0.2.drv-0/libcgroup-2.0.2/tests/ftests/./ftests.py",
> line 337, in main
> setup(config, record_time=True)
> File
> "/tmp/guix-build-libcgroup-2.0.2.drv-0/libcgroup-2.0.2/tests/ftests/./ftests.py",
> line 170, in setup
> Run.run(['sudo', 'lxd', 'init', '--auto'])
> File
> "/tmp/guix-build-libcgroup-2.0.2.drv-0/libcgroup-2.0.2/tests/ftests/run.py",
> line 38, in run
> subproc = subprocess.Popen(command, shell=shell_bool,
> File
> "/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/lib/python3.9/subprocess.py",
> line 951, in __init__
> self._execute_child(args, executable, preexec_fn, close_fds,
> File
> "/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/lib/python3.9/subprocess.py",
> line 1821, in _execute_child
> raise child_exception_type(errno_num, err_msg, err_filename)
> FileNotFoundError: [Errno 2] No such file or directory: 'sudo'
> FAIL ftests.sh (exit status: 1)
>
> Could you check whether they can run at all without root
> privileges, and
> if not, document it in a comment above #:tests? #f?
unfortunately, tests are executed virtualized with lxc/lxd, while
technically it seems to be possible to execute them, but it will
require
fixing (but probably rewriting) python test runner code. Possible
but
not feasible i think.
On the other hand, as far as it is mentioned in their release
process,
sources release tarball is releaced after tests passing.
;; tests are virtualized with lxc/lxd, it is not very feasible
;; to make them executable under guix build
Will this commend do the work?
> Thanks,
> Ludo’.
>
> diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
> index e70d8d1a90..7eb309dfa5 100644
> --- a/gnu/packages/linux.scm
> +++ b/gnu/packages/linux.scm
> @@ -8177,14 +8177,18 @@ (define-public libcgroup
> (uri (string-append home-page "/releases/download/v"
> version "/" name "-" version
> ".tar.gz"))
> (sha256
> - (base32
> "1y0c9ncsawamj77raiw6qkbm5cdsyvhjb2mvgma1kxmgw0r3pxlf"))))
> + (base32
> "1y0c9ncsawamj77raiw6qkbm5cdsyvhjb2mvgma1kxmgw0r3pxlf"))
> + (modules '((guix build utils)))
> + (snippet
> + ;; Delete the bundled copy of googletest, that even
> includes a .so.
> + '(delete-file-recursively "googletest"))))
> (build-system gnu-build-system)
> - (arguments
> - `(#:tests? #f))
> + ;; (arguments
> + ;; `(#:tests? #f))
> (native-inputs
> - (list bison flex))
> + (list bison flex python-wrapper))
> (inputs
> - (list linux-pam))
> + (list linux-pam googletest))
> (synopsis "Control groups management tools")
> (description "Control groups is Linux kernel method for
> process resource
> restriction, permission handling and more. This package
> provides userspace
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56858
; Package
guix-patches
.
(Tue, 23 Aug 2022 21:11:01 GMT)
Full text and
rfc822 format available.
Message #32 received at 56858 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/linux.scm (libcgroup): Update to 2.0.2.
[source]: Project migrated to github.
---
gnu/packages/linux.scm | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index a7d92816a8..6ea26b315c 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -63,6 +63,7 @@
;;; Copyright © 2021, 2022 Petr Hodina <phodina <at> protonmail.com>
;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom <at> gmail.com>
;;; Copyright © 2022 Rene Saavedra <nanuui <at> protonmail.com>
+;;; Copyright © 2022 muradm <mail <at> muradm.net>
;;;
;;; This file is part of GNU Guix.
@@ -8089,23 +8090,26 @@ (define-public fbcat
(define-public libcgroup
(package
(name "libcgroup")
- (version "0.41")
+ (version "2.0.2")
+ (home-page "https://github.com/libcgroup/libcgroup")
(source
(origin
(method url-fetch)
- (uri (string-append
- "mirror://sourceforge/libcg/" name "/"
- version "/" name "-" version ".tar.bz2"))
+ (uri (string-append home-page "/releases/download/v"
+ version "/" name "-" version ".tar.gz"))
(sha256
- (base32 "0lgvyq37gq84sk30sg18admxaj0j0p5dq3bl6g74a1ppgvf8pqz4"))))
+ (base32 "1y0c9ncsawamj77raiw6qkbm5cdsyvhjb2mvgma1kxmgw0r3pxlf"))))
(build-system gnu-build-system)
(arguments
+ ;; Tests are virtualized with lxc, it is not very feasible
+ ;; to make them executable under guix build. Also, note that
+ ;; origin is using source tarball release which is prepared
+ ;; after testing.
`(#:tests? #f))
(native-inputs
(list bison flex))
(inputs
(list linux-pam))
- (home-page "https://sourceforge.net/projects/libcg/")
(synopsis "Control groups management tools")
(description "Control groups is Linux kernel method for process resource
restriction, permission handling and more. This package provides userspace
--
2.37.1
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Wed, 31 Aug 2022 10:39:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
muradm <mail <at> muradm.net>
:
bug acknowledged by developer.
(Wed, 31 Aug 2022 10:39:02 GMT)
Full text and
rfc822 format available.
Message #37 received at 56858-done <at> debbugs.gnu.org (full text, mbox):
Hi,
muradm <mail <at> muradm.net> skribis:
> * gnu/packages/linux.scm (libcgroup): Update to 2.0.2.
> [source]: Project migrated to github.
Applied, thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 28 Sep 2022 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 204 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.