[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/25: gnu: libcap: Make 'libcap/next' the default libcap.
From: |
guix-commits |
Subject: |
21/25: gnu: libcap: Make 'libcap/next' the default libcap. |
Date: |
Tue, 13 Oct 2020 17:50:14 -0400 (EDT) |
mbakke pushed a commit to branch staging
in repository guix.
commit 9e1f5a263e4f6df4d075901c9b58a56f80c8b452
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sun Oct 11 16:56:36 2020 +0200
gnu: libcap: Make 'libcap/next' the default libcap.
* gnu/packages/avahi.scm (avahi)[inputs]: Refer to LIBCAP-2.31 instead of
LIBCAP.
* gnu/packages/base.scm (coreutils)[inputs]: Likewise.
* gnu/packages/linux.scm (libcap): Rename to ...
(libcap-2.31): ... this.
(libcap/next): Rename to ...
(libcap): ... this.
(libcap/next): Define as deprecated alias for LIBCAP.
(fakeroot)[inputs]: Change from LIBCAP/NEXT to LIBCAP.
* gnu/packages/ntp.scm (chrony, ntp)[inputs]: Likewise.
---
gnu/packages/avahi.scm | 2 +-
gnu/packages/base.scm | 2 +-
gnu/packages/linux.scm | 15 ++++++++++-----
gnu/packages/ntp.scm | 4 ++--
4 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/avahi.scm b/gnu/packages/avahi.scm
index 602f9d7..b2aeead 100644
--- a/gnu/packages/avahi.scm
+++ b/gnu/packages/avahi.scm
@@ -74,7 +74,7 @@
("expat" ,expat)
("gdbm" ,gdbm)
("glib" ,glib)
- ("libcap" ,libcap) ;to enable chroot support in avahi-daemon
+ ("libcap" ,libcap-2.31) ;to enable chroot support in avahi-daemon
("libdaemon" ,libdaemon)
("libevent" ,libevent)))
(native-inputs
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 1005899..e8f7bb5 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -324,7 +324,7 @@ used to apply commands with arbitrarily long arguments.")
,@(if (and (not (%current-target-system))
(member (%current-system)
(package-supported-systems libcap)))
- `(("libcap" ,libcap)) ;capability support in 'ls', etc.
+ `(("libcap" ,libcap-2.31)) ;capability support in 'ls',
etc.
'())))
(native-inputs
;; Perl is needed to run tests in native builds, and to run the bundled
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index a1a482f..293b873 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -157,6 +157,7 @@
#:use-module (guix store)
#:use-module (guix monads)
#:use-module (guix utils)
+ #:use-module (guix deprecation) ;for libcap/next
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-2)
#:use-module (srfi srfi-26)
@@ -2404,7 +2405,7 @@ network hardware types (plipconfig, slattach) and
advanced aspects of IP
configuration (iptunnel, ipmaddr).")
(license license:gpl2+))))
-(define-public libcap
+(define-public libcap-2.31
(package
(name "libcap")
(version "2.31")
@@ -2443,11 +2444,12 @@ Linux-based operating systems.")
;; License is BSD-3 or GPLv2, at the user's choice.
(license license:gpl2)))
-;; libcap 2.31 causes problems for 'fakeroot', so provide this newer variant.
+;; libcap 2.31 has problems with newer kernels, so provide this newer variant.
+;; Keep the old libcap around to avoid rebuilding 'coreutils' and 'avahi'.
;; To be merged with libcap on the next rebuild cycle.
-(define-public libcap/next
+(define-public libcap
(package
- (inherit libcap)
+ (inherit libcap-2.31)
(version "2.34")
(source (origin
(method url-fetch)
@@ -2458,6 +2460,9 @@ Linux-based operating systems.")
(base32
"048n1gy2p48vl9hkrr9wymfxxcpwj2aslz2bv79nhl4m2lhd9kdf"))))))
+(define-deprecated libcap/next libcap)
+(export libcap/next)
+
(define-public bridge-utils
(package
(name "bridge-utils")
@@ -7076,7 +7081,7 @@ the superuser to make device nodes.")
("xz" ,xz)))
(inputs
`(("acl" ,acl)
- ("libcap" ,libcap/next)
+ ("libcap" ,libcap)
("util-linux" ,util-linux)
("sed" ,sed)
("coreutils" ,coreutils)))
diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm
index 2372c61..95d784c 100644
--- a/gnu/packages/ntp.scm
+++ b/gnu/packages/ntp.scm
@@ -81,7 +81,7 @@
`(("pkg-config" ,pkg-config)))
(inputs
`(("gnutls" ,gnutls)
- ("libcap" ,libcap/next)
+ ("libcap" ,libcap)
("libseccomp" ,libseccomp)
("nettle" ,nettle)))
(home-page "https://chrony.tuxfamily.org/")
@@ -144,7 +144,7 @@ time-stamping or reference clock, sub-microsecond accuracy
is possible.")
;; to run as non-root (when invoked with '-u'.)
,@(if (string-suffix? "-linux"
(or (%current-target-system) (%current-system)))
- `(("libcap" ,libcap/next))
+ `(("libcap" ,libcap))
'())))
(arguments
`(#:phases
- 01/25: Merge branch 'master' into staging, (continued)
- 01/25: Merge branch 'master' into staging, guix-commits, 2020/10/13
- 05/25: gnu: NSPR: Update to 4.29., guix-commits, 2020/10/13
- 04/25: gnu: mesa: Update to 20.1.9., guix-commits, 2020/10/13
- 06/25: gnu: nss, nss-certs: Update to 3.57., guix-commits, 2020/10/13
- 09/25: gnu: unixodbc: Update to 2.3.9., guix-commits, 2020/10/13
- 08/25: gnu: check: Update to 0.15.2., guix-commits, 2020/10/13
- 16/25: gnu: libxkbcommon: Update to 1.0.1., guix-commits, 2020/10/13
- 22/25: gnu: libcap: Update to 2.44., guix-commits, 2020/10/13
- 18/25: gnu: xorg-server: Remove graft for 1.20.9., guix-commits, 2020/10/13
- 20/25: gnu: gstreamer: Update to 1.18.0., guix-commits, 2020/10/13
- 21/25: gnu: libcap: Make 'libcap/next' the default libcap.,
guix-commits <=
- 02/25: gnu: MariaDB: Update to 10.5.6., guix-commits, 2020/10/13
- 03/25: gnu: MariaDB: Skip replication tests., guix-commits, 2020/10/13
- 10/25: gnu: libinput: Update to 1.16.2., guix-commits, 2020/10/13
- 07/25: gnu: tzdata: Update to 2020b., guix-commits, 2020/10/13
- 11/25: gnu: elogind: Update to 243.7., guix-commits, 2020/10/13
- 12/25: gnu: GTK+: Update to 3.24.3., guix-commits, 2020/10/13
- 13/25: gnu: ImageMagick: Update to 6.9.11-34., guix-commits, 2020/10/13
- 14/25: gnu: python-cryptography: Update to 3.1.1., guix-commits, 2020/10/13
- 15/25: gnu: libva: Update to 2.9.0., guix-commits, 2020/10/13
- 17/25: gnu: xkeyboard-config: Update to 2.31., guix-commits, 2020/10/13