* [bug#31087] [PATCH] gnu: Add libcgroup.
@ 2018-04-07 11:21 Tomáš Čech
2018-04-07 15:17 ` Tomáš Čech
0 siblings, 1 reply; 4+ messages in thread
From: Tomáš Čech @ 2018-04-07 11:21 UTC (permalink / raw)
To: 31087
* 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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#31087] [PATCH] gnu: Add libcgroup.
2018-04-07 11:21 [bug#31087] [PATCH] gnu: Add libcgroup Tomáš Čech
@ 2018-04-07 15:17 ` Tomáš Čech
2018-04-09 20:35 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Tomáš Čech @ 2018-04-07 15:17 UTC (permalink / raw)
To: 31087
* 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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#31087] [PATCH] gnu: Add libcgroup.
2018-04-07 15:17 ` Tomáš Čech
@ 2018-04-09 20:35 ` Ludovic Courtès
2018-04-10 10:05 ` bug#31087: " Tomáš Čech
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2018-04-09 20:35 UTC (permalink / raw)
To: Tomáš Čech; +Cc: 31087
Hello,
Tomáš Čech <sleep_walker@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’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#31087: [PATCH] gnu: Add libcgroup.
2018-04-09 20:35 ` Ludovic Courtès
@ 2018-04-10 10:05 ` Tomáš Čech
0 siblings, 0 replies; 4+ messages in thread
From: Tomáš Čech @ 2018-04-10 10:05 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 31087-done
[-- Attachment #1: Type: text/plain, Size: 809 bytes --]
On Mon, Apr 09, 2018 at 10:35:45PM +0200, Ludovic Courtès wrote:
>Hello,
>
>Tomáš Čech <sleep_walker@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-04-10 10:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-07 11:21 [bug#31087] [PATCH] gnu: Add libcgroup Tomáš Čech
2018-04-07 15:17 ` Tomáš Čech
2018-04-09 20:35 ` Ludovic Courtès
2018-04-10 10:05 ` bug#31087: " Tomáš Čech
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).