GNU bug report logs - #31087
[PATCH] gnu: Add libcgroup.

Previous Next

Package: guix-patches;

Reported by: Tomáš Čech <sleep_walker <at> gnu.org>

Date: Sat, 7 Apr 2018 11:22:01 UTC

Severity: normal

Tags: patch

Done: Tomáš Čech <sleep_walker <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 31087 in the body.
You can then email your comments to 31087 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#31087; Package guix-patches. (Sat, 07 Apr 2018 11:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomáš Čech <sleep_walker <at> gnu.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 07 Apr 2018 11:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tomáš Čech <sleep_walker <at> gnu.org>
To: guix-patches <at> gnu.org
Cc: Tomáš Čech <sleep_walker <at> gnu.org>
Subject: [PATCH] gnu: Add libcgroup.
Date: Sat,  7 Apr 2018 13:21:25 +0200
 * gnu/packages/linux.scm (libcgroup): New variable.
---
 gnu/packages/linux.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index b6333af99..18956bd0f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -4562,3 +4562,32 @@ text-mode or graphical applications that don't use a display server.
 Also included is @command{fbgrab}, a wrapper around @command{fbcat} that
 emulates the behaviour of Gunnar Monell's older fbgrab utility.")
     (license license:gpl2)))
+
+(define-public libcgroup
+  (package
+    (name "libcgroup")
+    (version "0.41")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://sourceforge/libcg/" name "/"
+             version "/" name "-" version ".tar.bz2"))
+       (sha256
+        (base32 "0lgvyq37gq84sk30sg18admxaj0j0p5dq3bl6g74a1ppgvf8pqz4"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; tests try to mount cgroup filesystem and fails because it seems it
+         ;; can't be mounted twice
+         ;; let's disable it
+         (delete 'check))))
+    (native-inputs
+     `(("bison" ,bison)
+       ("flex" ,flex)
+       ("linux-pam" ,linux-pam)))
+    (home-page "https://sourceforge.net/projects/libcg/")
+    (synopsis "Userspace interface to control groups features in Linux kernel")
+    (description "TBD")
+    (license license:lgpl2.1)))
-- 
2.16.3





Information forwarded to guix-patches <at> gnu.org:
bug#31087; Package guix-patches. (Sat, 07 Apr 2018 15:18:02 GMT) Full text and rfc822 format available.

Message #8 received at 31087 <at> debbugs.gnu.org (full text, mbox):

From: Tomáš Čech <sleep_walker <at> gnu.org>
To: 31087 <at> debbugs.gnu.org
Cc: Tomáš Čech <sleep_walker <at> gnu.org>
Subject: [PATCH] gnu: Add libcgroup.
Date: Sat,  7 Apr 2018 17:17:24 +0200
 * gnu/packages/linux.scm (libcgroup): New variable.
---
 gnu/packages/linux.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index b6333af99..582862865 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -4562,3 +4562,34 @@ text-mode or graphical applications that don't use a display server.
 Also included is @command{fbgrab}, a wrapper around @command{fbcat} that
 emulates the behaviour of Gunnar Monell's older fbgrab utility.")
     (license license:gpl2)))
+
+(define-public libcgroup
+  (package
+    (name "libcgroup")
+    (version "0.41")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://sourceforge/libcg/" name "/"
+             version "/" name "-" version ".tar.bz2"))
+       (sha256
+        (base32 "0lgvyq37gq84sk30sg18admxaj0j0p5dq3bl6g74a1ppgvf8pqz4"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; tests try to mount cgroup filesystem and fails because it seems it
+         ;; can't be mounted twice
+         ;; let's disable it
+         (delete 'check))))
+    (native-inputs
+     `(("bison" ,bison)
+       ("flex" ,flex)
+       ("linux-pam" ,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
+interface to this kernel feature.")
+    (license license:lgpl2.1)))
-- 
2.17.0





Information forwarded to guix-patches <at> gnu.org:
bug#31087; Package guix-patches. (Mon, 09 Apr 2018 20:36:02 GMT) Full text and rfc822 format available.

Message #11 received at 31087 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Tomáš Čech <sleep_walker <at> gnu.org>
Cc: 31087 <at> debbugs.gnu.org
Subject: Re: [bug#31087] [PATCH] gnu: Add libcgroup.
Date: Mon, 09 Apr 2018 22:35:45 +0200
Hello,

Tomáš Čech <sleep_walker <at> gnu.org> skribis:

>  * gnu/packages/linux.scm (libcgroup): New variable.

[...]

> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         ;; tests try to mount cgroup filesystem and fails because it seems it
> +         ;; can't be mounted twice
> +         ;; let's disable it
> +         (delete 'check))))

Simply write #:tests? #f.

> +    (native-inputs
> +     `(("bison" ,bison)
> +       ("flex" ,flex)
> +       ("linux-pam" ,linux-pam)))

Should ‘linux-pam’ be in ‘inputs’ rather than ‘native-inputs’?

Otherwise LGTM, thanks!

Ludo’.




Reply sent to Tomáš Čech <sleep_walker <at> gnu.org>:
You have taken responsibility. (Tue, 10 Apr 2018 10:07:01 GMT) Full text and rfc822 format available.

Notification sent to Tomáš Čech <sleep_walker <at> gnu.org>:
bug acknowledged by developer. (Tue, 10 Apr 2018 10:07:02 GMT) Full text and rfc822 format available.

Message #16 received at 31087-done <at> debbugs.gnu.org (full text, mbox):

From: Tomáš Čech <sleep_walker <at> gnu.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 31087-done <at> debbugs.gnu.org
Subject: Re: [bug#31087] [PATCH] gnu: Add libcgroup.
Date: Tue, 10 Apr 2018 12:05:59 +0200
[Message part 1 (text/plain, inline)]
On Mon, Apr 09, 2018 at 10:35:45PM +0200, Ludovic Courtès wrote:
>Hello,
>
>Tomáš Čech <sleep_walker <at> gnu.org> skribis:
>
>>  * gnu/packages/linux.scm (libcgroup): New variable.
>
>[...]
>
>> +    (arguments
>> +     `(#:phases
>> +       (modify-phases %standard-phases
>> +         ;; tests try to mount cgroup filesystem and fails because it seems it
>> +         ;; can't be mounted twice
>> +         ;; let's disable it
>> +         (delete 'check))))
>
>Simply write #:tests? #f.
>
>> +    (native-inputs
>> +     `(("bison" ,bison)
>> +       ("flex" ,flex)
>> +       ("linux-pam" ,linux-pam)))
>
>Should ‘linux-pam’ be in ‘inputs’ rather than ‘native-inputs’?
>
>Otherwise LGTM, thanks!

Both things addressed, result pushed.

Thanks for review!

S_W
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 08 May 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 47 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.