[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2024-05-11 Thread Mike Gilbert
commit: 8bdea3071842b04cc1c183856c7af4ce8a118154
Author: Mike Gilbert  gentoo  org>
AuthorDate: Sat May 11 17:18:07 2024 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Sat May 11 17:19:19 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bdea307

sys-apps/util-linux: wire up uuidd properly

Closes: https://bugs.gentoo.org/470910
Closes: https://bugs.gentoo.org/931303
Signed-off-by: Mike Gilbert  gentoo.org>

 sys-apps/util-linux/files/uuidd.initd   | 10 ++
 sys-apps/util-linux/metadata.xml|  1 +
 ...ux-2.40.1.ebuild => util-linux-2.40.1-r1.ebuild} | 21 +++--
 sys-apps/util-linux/util-linux-.ebuild  | 21 +++--
 4 files changed, 49 insertions(+), 4 deletions(-)

diff --git a/sys-apps/util-linux/files/uuidd.initd 
b/sys-apps/util-linux/files/uuidd.initd
new file mode 100644
index ..329929e9a9ab
--- /dev/null
+++ b/sys-apps/util-linux/files/uuidd.initd
@@ -0,0 +1,10 @@
+#!/sbin/openrc-run
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command=/usr/sbin/uuidd
+pidfile=/run/uuidd/uuidd.pid
+
+depend() {
+   need clock localmount
+}

diff --git a/sys-apps/util-linux/metadata.xml b/sys-apps/util-linux/metadata.xml
index 2d9b8b837fe2..291587be5409 100644
--- a/sys-apps/util-linux/metadata.xml
+++ b/sys-apps/util-linux/metadata.xml
@@ -24,6 +24,7 @@
su: non-root users may become root

install the mesg/wall/write tools for 
talking to local users
+   build uuidd daemon


cpe:/a:andries_brouwer:util-linux

diff --git a/sys-apps/util-linux/util-linux-2.40.1.ebuild 
b/sys-apps/util-linux/util-linux-2.40.1-r1.ebuild
similarity index 95%
rename from sys-apps/util-linux/util-linux-2.40.1.ebuild
rename to sys-apps/util-linux/util-linux-2.40.1-r1.ebuild
index fefca19af628..c112b4749522 100644
--- a/sys-apps/util-linux/util-linux-2.40.1.ebuild
+++ b/sys-apps/util-linux/util-linux-2.40.1-r1.ebuild
@@ -4,9 +4,10 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
+TMPFILES_OPTIONAL=1
 
 inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
-   pam python-r1 multilib-minimal multiprocessing systemd
+   pam python-r1 multilib-minimal multiprocessing systemd tmpfiles
 
 MY_PV="${PV/_/-}"
 MY_P="${PN}-${MY_PV}"
@@ -33,7 +34,7 @@ S="${WORKDIR}/${MY_P}"
 
 LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
 SLOT="0"
-IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger 
magic ncurses nls pam python +readline rtas selinux slang static-libs +su +suid 
systemd test tty-helpers udev unicode"
+IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger 
magic ncurses nls pam python +readline rtas selinux slang static-libs +su +suid 
systemd test tty-helpers udev unicode uuidd"
 
 # Most lib deps here are related to programs rather than our libs,
 # so we rarely need to specify ${MULTILIB_USEDEP}.
@@ -84,6 +85,10 @@ RDEPEND+="
!=sys-apps/shadow-4.7-r2[su]
)
+   uuidd? (
+   acct-user/uuidd
+   virtual/tmpfiles
+   )
!net-wireless/rfkill
 "
 
@@ -230,6 +235,7 @@ multilib_src_configure() {
$(use_enable static-libs static)
$(use_with ncurses tinfo)
$(use_with selinux)
+   $(multilib_native_use_enable uuidd)
 
# TODO: Wire this up (bug #931118)
--without-econf
@@ -303,6 +309,9 @@ multilib_src_configure() {
--enable-libsmartcols
--enable-libfdisk
--enable-libmount
+
+   # Support uuidd for non-native libuuid
+   $(use_enable uuidd libuuid-force-uuidd)
)
fi
 
@@ -388,6 +397,10 @@ multilib_src_install_all() {
fperms u+s /bin/su
fi
 
+   if use uuidd; then
+   newinitd "${FILESDIR}/uuidd.initd" uuidd
+   fi
+
# Note:
# Bash completion for "runuser" command is provided by same file which
# would also provide bash completion for "su" command. However, we don't
@@ -412,4 +425,8 @@ pkg_postinst() {
elog "The agetty util now clears the terminal by default. You"
elog "might want to add --noclear to your /etc/inittab lines."
fi
+
+   if use uuidd; then
+   tmpfiles_process uuidd-tmpfiles.conf
+   fi
 }

diff --git a/sys-apps/util-linux/util-linux-.ebuild 
b/sys-apps/util-linux/util-linux-.ebuild
index a3c518db9e1d..053f45a99077 100644
--- a/sys-apps/util-linux/util-linux-.ebuild
+++ b/sys-apps/util-linux/util-linux-.ebuild
@@ -4,9 +4,10 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
+TMPFILES_OPTIONAL=1
 
 inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
-   

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2024-04-03 Thread Sam James
commit: 172b16c18b35c538e32c120969c7c751bfcd24ad
Author: Christopher Fore  posteo  net>
AuthorDate: Mon Apr  1 22:22:47 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr  4 01:08:02 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=172b16c1

sys-apps/util-linux: fix use-after-free in su

This fixes a use-after-free introduced by the musl 1.2.5 patch.

Upstream fix: 
https://github.com/util-linux/util-linux/commit/4b2e6f5071a4c5beebbd9668d24dc05defc096d7

Closes: https://bugs.gentoo.org/928396
Signed-off-by: Christopher Fore  posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/36050
Signed-off-by: Sam James  gentoo.org>

 .../util-linux-2.39.3-fix-use-after-free.patch |  49 +++
 sys-apps/util-linux/util-linux-2.39.3-r7.ebuild| 416 +
 2 files changed, 465 insertions(+)

diff --git 
a/sys-apps/util-linux/files/util-linux-2.39.3-fix-use-after-free.patch 
b/sys-apps/util-linux/files/util-linux-2.39.3-fix-use-after-free.patch
new file mode 100644
index ..dac2edaf4791
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.39.3-fix-use-after-free.patch
@@ -0,0 +1,49 @@
+From 4b2e6f5071a4c5beebbd9668d24dc05defc096d7 Mon Sep 17 00:00:00 2001
+From: Tanish Yadav 
+Date: Tue, 5 Mar 2024 00:51:41 +0530
+Subject: [PATCH] su: fix use after free in run_shell
+
+Do not free tmp for non login branch as basename may return a pointer to
+some part of it.
+
+[k...@redhat.com: - improve coding style of the function]
+
+Signed-off-by: Tanish Yadav 
+Signed-off-by: Karel Zak 
+---
+ login-utils/su-common.c | 9 -
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/login-utils/su-common.c b/login-utils/su-common.c
+index 242b6ce4ea..9bc0231961 100644
+--- a/login-utils/su-common.c
 b/login-utils/su-common.c
+@@ -835,13 +835,14 @@ static void run_shell(
+   size_t n_args = 1 + su->fast_startup + 2 * ! !command + 
n_additional_args + 1;
+   const char **args = xcalloc(n_args, sizeof *args);
+   size_t argno = 1;
++  char *tmp;
+ 
+   DBG(MISC, ul_debug("starting shell [shell=%s, command=\"%s\"%s%s]",
+   shell, command,
+   su->simulate_login ? " login" : "",
+   su->fast_startup ? " fast-start" : ""));
++  tmp = xstrdup(shell);
+ 
+-  char* tmp = xstrdup(shell);
+   if (su->simulate_login) {
+   char *arg0;
+   char *shell_basename;
+@@ -851,10 +852,8 @@ static void run_shell(
+   arg0[0] = '-';
+   strcpy(arg0 + 1, shell_basename);
+   args[0] = arg0;
+-  } else {
+-args[0] = basename(tmp);
+-  }
+-  free(tmp);
++  } else
++  args[0] = basename(tmp);
+ 
+   if (su->fast_startup)
+   args[argno++] = "-f";

diff --git a/sys-apps/util-linux/util-linux-2.39.3-r7.ebuild 
b/sys-apps/util-linux/util-linux-2.39.3-r7.ebuild
new file mode 100644
index ..7892f3ad5d47
--- /dev/null
+++ b/sys-apps/util-linux/util-linux-2.39.3-r7.ebuild
@@ -0,0 +1,416 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
+   pam python-r1 multilib-minimal multiprocessing systemd
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Various useful Linux utilities"
+HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ 
https://github.com/util-linux/util-linux;
+
+if [[ ${PV} ==  ]] ; then
+   
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git;
+   inherit autotools git-r3
+else
+   VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/karelzak.asc
+   inherit verify-sig
+
+   if [[ ${PV} != *_rc* ]] ; then
+   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k 
~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos"
+   fi
+
+   
SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz;
+   SRC_URI+=" verify-sig? ( 
https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.sign )"
+fi
+
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
+SLOT="0"
+IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger 
magic ncurses nls pam python +readline rtas selinux slang static-libs +su +suid 
systemd test tty-helpers udev unicode"
+
+# Most lib deps here are related to programs rather than our libs,
+# so we rarely need to specify ${MULTILIB_USEDEP}.
+RDEPEND="
+   virtual/libcrypt:=
+   audit? ( >=sys-process/audit-2.6:= )
+   caps? ( sys-libs/libcap-ng )
+   cramfs? ( sys-libs/zlib:= )
+   cryptsetup? ( >=sys-fs/cryptsetup-2.1.0 )
+   hardlink? ( dev-libs/libpcre2:= )
+   ncurses? (
+   

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2024-03-27 Thread Sam James
commit: 9b14258aec6fde6f24f30c5f722983362ce7f2f1
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar 28 04:53:57 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 28 04:54:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b14258a

sys-apps/util-linux: drop 2.38.1-r3, 2.39.2-r1

Signed-off-by: Sam James  gentoo.org>

 sys-apps/util-linux/Manifest   |   4 -
 .../util-linux-2.38.1-check-for-sys-pidfd.h.patch  |  52 ---
 .../util-linux-2.38.1-more-posix-exit-on-eof.patch |  32 --
 sys-apps/util-linux/util-linux-2.38.1-r3.ebuild| 395 
 sys-apps/util-linux/util-linux-2.39.2-r1.ebuild| 413 -
 5 files changed, 896 deletions(-)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index a00b2a507023..3e28df35ce6e 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,6 +1,2 @@
-DIST util-linux-2.38.1.tar.sign 833 BLAKE2B 
2468c6b8c881d7a17666aac954edfd421085111937f5d0daada37a679e9bbfe61fc98bb57cca9bf7bea20be483f38e2a758039f9baf5b1a901852e2b5dd014d8
 SHA512 
d8b3e936065ae1dc105b8ce773c874bb037ebf84ee571676509543f79c39950180e7f252c6b0d4500119568ed4ac3aa7117793de839f983e9287f26649e91dad
-DIST util-linux-2.38.1.tar.xz 7495904 BLAKE2B 
a0e86ca62f82adaccc01ad6ec5a058dac429b81c310989cbad136f96c2770c60bbd4287067817520e8e0653146a10f13128e0af32122402bab416e1c2d6680b8
 SHA512 
07f11147f67dfc6c8bc766dfc83266054e6ede776feada0566b447d13276b6882ee85c6fe53e8d94a17c03332106fc0549deca3cf5f2e92dda554e9bc0551957
-DIST util-linux-2.39.2.tar.sign 833 BLAKE2B 
7d804e1e1f162c176cd7f826f505590ed5fcefc76ecbaa27b1b96fac6160cf46b696fe1c6a761094a91c05878b2169a1227039a7f82ee3d135e283e7907179a2
 SHA512 
e6acc5a20251aa7c69f3853271959f80428f1825dda1d1a046663e345af8fb17e5d65ebd78aef3dba21e843de58e4dd1a1639415fa9a22b91080cc6436e9a45a
-DIST util-linux-2.39.2.tar.xz 8362220 BLAKE2B 
963c257b86f8a025a3452f102656f479382b9e03dd8ce39b9561302b484c595005aa0bbce9b91422d9be038037143772483363c2a1eec569355316fc8d5d5765
 SHA512 
cebecdd62749d0aeea2c4faf7ad1606426eff03ef3b15cd9c2df1126f216a4ed546d8fc3218c649fa95944eb87a98bb6a7cdd0bea31057c481c5cf608ffc19a3
 DIST util-linux-2.39.3.tar.sign 833 BLAKE2B 
433b9ad6e97d9e2ffbd516addf8406587d009d9c7661ac126ae89b370f22a39f1f1243e86ef383133d656833d3ad35054397d60e0e0c67bd1e9402939903570b
 SHA512 
d9993d7a77531ca8fe3e58458d65e7d721c38aa53838547479fea169941a69b1c07fb02ac90ed5a0360025814b0999167621dbc4215348810584947a9e67756d
 DIST util-linux-2.39.3.tar.xz 8526168 BLAKE2B 
cd7b2b3c820e920d4a6ecd46fd807e018fc8e54439292f5e62c5f6863dd0f2505df3ec02c470d9be255a437c6ee8e4077908ac78d19a0d1273854d99eb571df0
 SHA512 
a2de1672f06ca5d2d431db1265a8499808770c3781019ec4a3a40170df4685826d8e3ca120841dcc5df4681ca8c935a993317bd0dc70465b21bf8e0efef65afa

diff --git 
a/sys-apps/util-linux/files/util-linux-2.38.1-check-for-sys-pidfd.h.patch 
b/sys-apps/util-linux/files/util-linux-2.38.1-check-for-sys-pidfd.h.patch
deleted file mode 100644
index 0a1975fff685..
--- a/sys-apps/util-linux/files/util-linux-2.38.1-check-for-sys-pidfd.h.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-https://github.com/util-linux/util-linux/pull/1769
-https://bugs.gentoo.org/893966
-
-From 84732a8849a08d42a9a95dcbee9005116be78eb8 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Sun, 7 Aug 2022 14:39:19 -0700
-Subject: [PATCH] check for sys/pidfd.h
-
-This header in newer glibc defines the signatures of functions
-pidfd_send_signal() and pidfd_open() and when these functions are
-defined by libc then we need to include the relevant header to get
-the definitions. Clang 15+ has started to error out when function
-signatures are missing.
-
-Fixes errors like
-misc-utils/kill.c:402:6: error: call to undeclared function 
'pidfd_send_signal'; ISO C99 and later do not support implicit function 
declarations [-Wimplicit-function-declaration]
-if (pidfd_send_signal(pfd, ctl->numsig, , 0) < 0)
-
-Signed-off-by: Khem Raj 

- configure.ac  | 1 +
- include/pidfd-utils.h | 4 +++-
- 2 files changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 51deeecd4e..daa8f0dca4 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -342,6 +342,7 @@ AC_CHECK_HEADERS([ \
-   sys/mkdev.h \
-   sys/mount.h \
-   sys/param.h \
-+  sys/pidfd.h \
-   sys/prctl.h \
-   sys/resource.h \
-   sys/sendfile.h \
-diff --git a/include/pidfd-utils.h b/include/pidfd-utils.h
-index eddede9767..d9e33cbc57 100644
 a/include/pidfd-utils.h
-+++ b/include/pidfd-utils.h
-@@ -4,8 +4,10 @@
- #ifdef HAVE_SYS_SYSCALL_H
- # include 
- # if defined(SYS_pidfd_send_signal) && defined(SYS_pidfd_open)
-+#  ifdef HAVE_SYS_PIDFD_H
-+#   include 
-+#  endif
- #  include 
--
- #  ifndef HAVE_PIDFD_SEND_SIGNAL
- static inline int pidfd_send_signal(int pidfd, int sig, siginfo_t *info,
-   unsigned int flags)

diff --git 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2024-03-21 Thread Matt Turner
commit: 8b47f3e31e88331b75c8108ea827b78118b0fe70
Author: Matt Turner  gentoo  org>
AuthorDate: Fri Mar 22 00:10:11 2024 +
Commit: Matt Turner  gentoo  org>
CommitDate: Fri Mar 22 00:12:15 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b47f3e3

sys-apps/util-linux: Fix export of mnt_context_is_lazy

Closes: https://bugs.gentoo.org/927258
Signed-off-by: Matt Turner  gentoo.org>

 ...x-export-of-mnt_context_is_lazy-and-mnt_c.patch |  55 +++
 sys-apps/util-linux/util-linux-2.39.3-r5.ebuild| 414 +
 2 files changed, 469 insertions(+)

diff --git 
a/sys-apps/util-linux/files/util-linux-2.39.3-libmount-Fix-export-of-mnt_context_is_lazy-and-mnt_c.patch
 
b/sys-apps/util-linux/files/util-linux-2.39.3-libmount-Fix-export-of-mnt_context_is_lazy-and-mnt_c.patch
new file mode 100644
index ..710ca934115f
--- /dev/null
+++ 
b/sys-apps/util-linux/files/util-linux-2.39.3-libmount-Fix-export-of-mnt_context_is_lazy-and-mnt_c.patch
@@ -0,0 +1,55 @@
+https://bugs.gentoo.org/927258
+https://github.com/util-linux/util-linux/pull/2845
+
+From d271589d9536181184fcd19194f879e7c776d43e Mon Sep 17 00:00:00 2001
+From: Matt Turner 
+Date: Mon, 18 Mar 2024 21:29:13 -0400
+Subject: [PATCH] libmount: Fix export of mnt_context_is_lazy and
+ mnt_context_is_onlyonce
+
+[k...@redhat.com: - fix also function docs]
+
+Bug: https://bugs.gentoo.org/927258
+Closes: https://github.com/util-linux/util-linux/issues/2844
+Fixes: 3d1c41c8c ("libmount: add --onlyonce")
+Signed-off-by: Matt Turner 
+Signed-off-by: Karel Zak 
+(cherry picked from commit 6d2917f2eb910fb8bcdc6476be18c34fee152911)
+---
+ libmount/src/context.c| 4 ++--
+ libmount/src/libmount.sym | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/libmount/src/context.c b/libmount/src/context.c
+index 0cd320190..20f4c64ae 100644
+--- a/libmount/src/context.c
 b/libmount/src/context.c
+@@ -549,10 +549,10 @@ int mnt_context_enable_onlyonce(struct libmnt_context 
*cxt, int enable)
+ }
+ 
+ /**
+- * mnt_context_is_lazy:
++ * mnt_context_is_onlyonce:
+  * @cxt: mount context
+  *
+- * Returns: 1 if lazy umount is enabled or 0
++ * Returns: 1 if only-once mount is enabled or 0
+  */
+ int mnt_context_is_onlyonce(struct libmnt_context *cxt)
+ {
+diff --git a/libmount/src/libmount.sym b/libmount/src/libmount.sym
+index 715bb5c5f..1fa8bce3c 100644
+--- a/libmount/src/libmount.sym
 b/libmount/src/libmount.sym
+@@ -370,7 +370,7 @@ MOUNT_2_38 {
+ MOUNT_2_39 {
+   mnt_cache_set_sbprobe;
+   mnt_context_enable_onlyonce;
+-  mnt_context_is_lazy;
++  mnt_context_is_onlyonce;
+   mnt_context_enable_noautofs;
+   mnt_table_enable_noautofs;
+   mnt_table_is_noautofs;
+-- 
+2.43.2
+

diff --git a/sys-apps/util-linux/util-linux-2.39.3-r5.ebuild 
b/sys-apps/util-linux/util-linux-2.39.3-r5.ebuild
new file mode 100644
index ..110e710683a5
--- /dev/null
+++ b/sys-apps/util-linux/util-linux-2.39.3-r5.ebuild
@@ -0,0 +1,414 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
+   pam python-r1 multilib-minimal multiprocessing systemd
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-${MY_PV}"
+
+if [[ ${PV} ==  ]] ; then
+   
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git;
+   inherit autotools git-r3
+else
+   VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/karelzak.asc
+   inherit verify-sig
+
+   if [[ ${PV} != *_rc* ]] ; then
+   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k 
~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos"
+   fi
+
+   
SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz;
+   SRC_URI+=" verify-sig? ( 
https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.sign )"
+fi
+
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Various useful Linux utilities"
+HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ 
https://github.com/util-linux/util-linux;
+
+LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
+SLOT="0"
+IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger 
magic ncurses nls pam python +readline rtas selinux slang static-libs +su +suid 
systemd test tty-helpers udev unicode"
+
+# Most lib deps here are related to programs rather than our libs,
+# so we rarely need to specify ${MULTILIB_USEDEP}.
+RDEPEND="
+   virtual/libcrypt:=
+   audit? ( >=sys-process/audit-2.6:= )
+   caps? ( sys-libs/libcap-ng )
+   cramfs? ( sys-libs/zlib:= )
+   cryptsetup? ( >=sys-fs/cryptsetup-2.1.0 )
+   hardlink? ( dev-libs/libpcre2:= )
+   ncurses? (
+   sys-libs/ncurses:=[unicode(+)?]
+   magic? ( sys-apps/file:0= )
+   )
+   nls? ( 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2023-05-26 Thread Sam James
commit: d89394c9345cc488d5ed7b7c40aac61c6a86dcd4
Author: Sam James  gentoo  org>
AuthorDate: Fri May 26 07:24:26 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri May 26 07:24:41 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d89394c9

sys-apps/util-linux: backport another mount regression fix (still masked)

util-linux-2.39.1 is coming next week.

Bug: https://bugs.gentoo.org/906797
Signed-off-by: Sam James  gentoo.org>

 .../util-linux-2.39-mount-dont-call-hooks.patch|  79 +
 sys-apps/util-linux/util-linux-2.39-r1.ebuild  | 393 -
 ...ux-2.39-r3.ebuild => util-linux-2.39-r4.ebuild} |   7 +-
 3 files changed, 83 insertions(+), 396 deletions(-)

diff --git 
a/sys-apps/util-linux/files/util-linux-2.39-mount-dont-call-hooks.patch 
b/sys-apps/util-linux/files/util-linux-2.39-mount-dont-call-hooks.patch
new file mode 100644
index ..96dfb1f2c234
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.39-mount-dont-call-hooks.patch
@@ -0,0 +1,79 @@
+https://github.com/util-linux/util-linux/issues/2267
+https://github.com/storaged-project/libblockdev/pull/889
+https://bugzilla.redhat.com/show_bug.cgi?id=2189241
+https://github.com/util-linux/util-linux/commit/f94a7760ed7ce81389a6059f020238981627a70d
+
+From f94a7760ed7ce81389a6059f020238981627a70d Mon Sep 17 00:00:00 2001
+From: Karel Zak 
+Date: Thu, 25 May 2023 11:48:24 +0200
+Subject: [PATCH] libmount: don't call hooks after mount. helper
+
+In case more filesystems are specified (or when libmount follows
+/{etc,proc}/filesystems) then the library may try to use and
+initialize the new API because for some filesystems, we need
+exec(/sbin/mount.) and for another fsopen().
+
+The hooks that use the API have to smart and detect that the mount
+operation was done in external /sbin/mount. helper. And in this
+case, the new API file descriptors must be ignored.
+
+The exception is propagation flags, mount(8) can set the flags after
+exec(/sbin/mount.), for example, "mount -t ntfs --make-private".
+
+Fixes: https://github.com/util-linux/util-linux/issues/2267
+Signed-off-by: Karel Zak 
+--- a/libmount/src/context_mount.c
 b/libmount/src/context_mount.c
+@@ -508,6 +508,8 @@ static int do_mount(struct libmnt_context *cxt, const char 
*try_type)
+   assert(cxt->fs);
+   assert((cxt->flags & MNT_FL_MOUNTFLAGS_MERGED));
+ 
++  mnt_context_reset_status(cxt);
++
+   if (try_type) {
+   rc = mnt_context_prepare_helper(cxt, "mount", try_type);
+   if (rc)
+--- a/libmount/src/hook_mount.c
 b/libmount/src/hook_mount.c
+@@ -239,6 +239,10 @@ static int hook_create_mount(struct libmnt_context *cxt,
+   int rc = 0;
+ 
+   assert(cxt);
++
++  if (mnt_context_helper_executed(cxt))
++  return 0;
++
+   assert(cxt->fs);
+ 
+   api = get_sysapi(cxt);
+@@ -309,6 +313,9 @@ static int hook_reconfigure_mount(struct libmnt_context 
*cxt,
+ 
+   assert(cxt);
+ 
++  if (mnt_context_helper_executed(cxt))
++  return 0;
++
+   api = get_sysapi(cxt);
+   assert(api);
+   assert(api->fd_tree >= 0);
+@@ -379,6 +386,9 @@ static int hook_set_vfsflags(struct libmnt_context *cxt,
+   uint64_t set = 0, clr = 0;
+   int rc = 0;
+ 
++  if (mnt_context_helper_executed(cxt))
++  return 0;
++
+   DBG(HOOK, ul_debugobj(hs, "setting VFS flags"));
+ 
+   ol = mnt_context_get_optlist(cxt);
+@@ -471,6 +481,9 @@ static int hook_attach_target(struct libmnt_context *cxt,
+   const char *target;
+   int rc = 0;
+ 
++  if (mnt_context_helper_executed(cxt))
++  return 0;
++
+   target = mnt_fs_get_target(cxt->fs);
+   if (!target)
+   return -EINVAL;
+

diff --git a/sys-apps/util-linux/util-linux-2.39-r1.ebuild 
b/sys-apps/util-linux/util-linux-2.39-r1.ebuild
deleted file mode 100644
index f58e55eaff9f..
--- a/sys-apps/util-linux/util-linux-2.39-r1.ebuild
+++ /dev/null
@@ -1,393 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \
-   pam python-r1 multilib-minimal multiprocessing systemd
-
-MY_PV="${PV/_/-}"
-MY_P="${PN}-${MY_PV}"
-
-if [[ ${PV} ==  ]] ; then
-   
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git;
-   inherit autotools git-r3
-else
-   
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/karelzak.asc
-   inherit verify-sig
-
-   if [[ ${PV} != *_rc* ]] ; then
-   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k 
~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos"
-   fi
-
-   
SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz;
-   SRC_URI+=" verify-sig? ( 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2023-05-22 Thread Sam James
commit: 981f36533f7d0930bcb794d305e392678e83da5b
Author: Sam James  gentoo  org>
AuthorDate: Tue May 23 04:20:10 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May 23 04:20:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=981f3653

sys-apps/util-linux: update mount_setattr patch to new upstream version

The PR got updated slightly.

Closes: https://bugs.gentoo.org/906797
Signed-off-by: Sam James  gentoo.org>

 .../files/util-linux-2.39-check-for-mount_setattr.patch| 14 +-
 ...util-linux-2.39-r2.ebuild => util-linux-2.39-r3.ebuild} |  0
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git 
a/sys-apps/util-linux/files/util-linux-2.39-check-for-mount_setattr.patch 
b/sys-apps/util-linux/files/util-linux-2.39-check-for-mount_setattr.patch
index 538f33b30ffe..c1eb3748f782 100644
--- a/sys-apps/util-linux/files/util-linux-2.39-check-for-mount_setattr.patch
+++ b/sys-apps/util-linux/files/util-linux-2.39-check-for-mount_setattr.patch
@@ -1,7 +1,7 @@
 https://bugs.gentoo.org/906797
 https://github.com/util-linux/util-linux/pull/2248
 
-From 9b68f614c8d02ca41f077ba064e0a83d2ae7b1fe Mon Sep 17 00:00:00 2001
+From 1bd85b64632280d6bf0e86b4ff29da8b19321c5f Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= 
 Date: Sat, 20 May 2023 06:38:20 +0200
 Subject: [PATCH] libmount: check for availability of mount_setattr
@@ -33,28 +33,32 @@ Signed-off-by: Thomas Weißschuh 
  /*
   * open_tree() and fsopen()
   */
-@@ -675,9 +684,12 @@ static int hook_prepare(struct libmnt_context *cxt,
+@@ -675,9 +684,14 @@ static int hook_prepare(struct libmnt_context *cxt,
/* call mount_setattr() */
if (!rc
&& cxt->helper == NULL
 -  && (set != 0 || clr != 0 || (flags & MS_REMOUNT)))
 +  && (set != 0 || clr != 0 || (flags & MS_REMOUNT))) {
-+  if (!mount_setattr_is_supported())
++  if (!mount_setattr_is_supported()) {
++  hookset_deinit(cxt, hs);
 +  return 1;
++  }
rc = mnt_context_append_hook(cxt, hs, MNT_STAGE_MOUNT, NULL,
hook_set_vfsflags);
 +  }
  
/* call move_mount() to attach target */
if (!rc
-@@ -688,9 +700,12 @@ static int hook_prepare(struct libmnt_context *cxt,
+@@ -688,9 +702,14 @@ static int hook_prepare(struct libmnt_context *cxt,
hook_attach_target);
  
/* set propagation (has to be attached to VFS) */
 -  if (!rc && mnt_optlist_get_propagation(ol))
 +  if (!rc && mnt_optlist_get_propagation(ol)) {
-+  if (!mount_setattr_is_supported())
++  if (!mount_setattr_is_supported()) {
++  hookset_deinit(cxt, hs);
 +  return 1;
++  }
rc = mnt_context_append_hook(cxt, hs, MNT_STAGE_MOUNT_POST, 
NULL,
hook_set_propagation);
 +  }

diff --git a/sys-apps/util-linux/util-linux-2.39-r2.ebuild 
b/sys-apps/util-linux/util-linux-2.39-r3.ebuild
similarity index 100%
rename from sys-apps/util-linux/util-linux-2.39-r2.ebuild
rename to sys-apps/util-linux/util-linux-2.39-r3.ebuild



[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2023-05-22 Thread Sam James
commit: 5ef0405e6d22915b93da87d5eb77ff132ca6da14
Author: Sam James  gentoo  org>
AuthorDate: Tue May 23 03:13:09 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May 23 03:13:20 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ef0405e

sys-apps/util-linux: backport another mount regression fix (user option parsing)

Closes: https://bugs.gentoo.org/906859
Signed-off-by: Sam James  gentoo.org>

 .../util-linux-2.39-mount-parse-options-user.patch | 46 ++
 sys-apps/util-linux/util-linux-2.39-r2.ebuild  |  1 +
 2 files changed, 47 insertions(+)

diff --git 
a/sys-apps/util-linux/files/util-linux-2.39-mount-parse-options-user.patch 
b/sys-apps/util-linux/files/util-linux-2.39-mount-parse-options-user.patch
new file mode 100644
index ..e02d02c7f503
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.39-mount-parse-options-user.patch
@@ -0,0 +1,46 @@
+https://bugs.gentoo.org/906797#c4
+https://bugs.gentoo.org/906859
+https://github.com/util-linux/util-linux/issues/2238
+https://github.com/util-linux/util-linux/commit/c0267687fd7b41b00d523d1985182d7eb574effd
+
+From c0267687fd7b41b00d523d1985182d7eb574effd Mon Sep 17 00:00:00 2001
+From: Karel Zak 
+Date: Mon, 22 May 2023 15:00:25 +0200
+Subject: [PATCH] libmount: fix options prepend/insert and merging
+
+ * the order of the new options should not be changed
+   (for example prepend "a,b,c" to list with "d" has to generate "a,b,c,d", 
not "c,b,a,d")
+
+ * make sure that  options map is defined when merging options
+
+Fixes: https://github.com/util-linux/util-linux/issues/2238
+Signed-off-by: Karel Zak 
+--- a/libmount/src/optlist.c
 b/libmount/src/optlist.c
+@@ -338,6 +338,7 @@ int mnt_optlist_merge_opts(struct libmnt_optlist *ls)
+ 
+   /* remove inverted option */
+   else if (opt->ent && x->ent
++  && opt->map == x->map
+   && opt->ent->id == x->ent->id
+   && (opt->ent->mask & MNT_INVERT
+   || x->ent->mask & MNT_INVERT))
+@@ -520,6 +521,8 @@ static int optlist_add_optstr(struct libmnt_optlist *ls, 
const char *optstr,
+   if (!opt)
+   return -ENOMEM;
+   opt->src = MNT_OPTSRC_STRING;
++  if (where)
++  where = >opts;
+   }
+ 
+   optlist_cleanup_cache(ls);
+@@ -622,6 +625,8 @@ static int optlist_add_flags(struct libmnt_optlist *ls, 
unsigned long flags,
+   if (!opt)
+   return -ENOMEM;
+   opt->src = MNT_OPTSRC_FLAG;
++  if (where)
++  where = >opts;
+   }
+ 
+   optlist_cleanup_cache(ls);
+

diff --git a/sys-apps/util-linux/util-linux-2.39-r2.ebuild 
b/sys-apps/util-linux/util-linux-2.39-r2.ebuild
index 43dd41681342..edd0dd68e804 100644
--- a/sys-apps/util-linux/util-linux-2.39-r2.ebuild
+++ b/sys-apps/util-linux/util-linux-2.39-r2.ebuild
@@ -97,6 +97,7 @@ RESTRICT="!test? ( test )"
 PATCHES=(
"${FILESDIR}/${PN}-2.39-check-for-mount_setattr.patch"
"${FILESDIR}/${PN}-2.39-tests-for-mount_setattr.patch"
+   "${FILESDIR}/${PN}-2.39-mount-parse-options-user.patch"
 )
 
 pkg_pretend() {



[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2023-03-19 Thread Sam James
commit: 5c2b7ece52f0db0658d46932834381a8bf29
Author: Sam James  gentoo  org>
AuthorDate: Sun Mar 19 05:37:38 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Mar 19 05:37:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c2b7ece

sys-apps/util-linux: add 2.39_rc1 (unkeyworded)

Signed-off-by: Sam James  gentoo.org>

 sys-apps/util-linux/Manifest   |   3 +
 .../files/util-linux-2.39_rc1-test-build.patch |  33 ++
 sys-apps/util-linux/util-linux-2.39_rc1.ebuild | 391 +
 3 files changed, 427 insertions(+)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index 0748d8f9a93e..8026f61f 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,3 +1,6 @@
 DIST util-linux-2.37.4.tar.xz 6114232 BLAKE2B 
7f6cd12ec9bc68a6db787be78c1ee19fdfbb37710df36d4278d869676ba531afd414097e57e5287efed6c7c80d6b6ef36d5812ff2bea611080d3ce5bf5ad4ac5
 SHA512 
ada2629b0a8e83ea83513e04f7b1ccceb3b8ab82acd119c5d8389d1abc48c92d0b591f39fb34b1fd65db3ab630f03a672a9f3dacf1a6e4f124bdb083fc1be6d7
 DIST util-linux-2.38.1.tar.sign 833 BLAKE2B 
2468c6b8c881d7a17666aac954edfd421085111937f5d0daada37a679e9bbfe61fc98bb57cca9bf7bea20be483f38e2a758039f9baf5b1a901852e2b5dd014d8
 SHA512 
d8b3e936065ae1dc105b8ce773c874bb037ebf84ee571676509543f79c39950180e7f252c6b0d4500119568ed4ac3aa7117793de839f983e9287f26649e91dad
 DIST util-linux-2.38.1.tar.xz 7495904 BLAKE2B 
a0e86ca62f82adaccc01ad6ec5a058dac429b81c310989cbad136f96c2770c60bbd4287067817520e8e0653146a10f13128e0af32122402bab416e1c2d6680b8
 SHA512 
07f11147f67dfc6c8bc766dfc83266054e6ede776feada0566b447d13276b6882ee85c6fe53e8d94a17c03332106fc0549deca3cf5f2e92dda554e9bc0551957
+DIST util-linux-2.39-rc1.tar.sign 833 BLAKE2B 
d540ee98c09879b26a1175b00145872b518d30edc91a1d4c625da502d8fffa8a5fb7ec7f36151e5da4a0c215cc1e53acf6134d5d5842e73f43a7ad8d05d5c0c3
 SHA512 
00c4e573513941fcf7f254b31bdc0747df24bcfee071f27b66ebd8b30680b098ea63c0590a139bf2b29ac02033c3b1cfae126d9ac0d5829c4e85acb348a643b7
+DIST util-linux-2.39-rc1.tar.xz 8083996 BLAKE2B 
a74d3b40540cd31c34c37caca20a2cd6691cfdf664da0a4a5b6c04201204d2cd6d357861f15dd41532aceb1adf3def7422f2c987ea79875330ca7c09039f03e8
 SHA512 
e9981d7c65eed7cd3f96f590e2190c7c804b1767464c821cd9277c72aaf38b8407f324cf9e8f3b96eb96359a0746f21a01dfb6baa504f49c8c7e1aff2dc956b3
+DIST util-linux-2.39_rc1-autotools-regenerate.patch.xz 17616 BLAKE2B 
8bf56506f915b7c24bb47c6591b93bc132c3a4bbee9bd8bb78df03b08723cd1103b7ea34b6e53042aa38a1822007628c26f97e8aa8efae170765cbf9e710276b
 SHA512 
e73e5b11a52a0e8ad0bda83fa5a5b41c06f452d6f34a42ad8714968261e0990ba2afda04f9bb3389c61a5fc67182701b9d44c4ead69cae6d268083f94191a977

diff --git a/sys-apps/util-linux/files/util-linux-2.39_rc1-test-build.patch 
b/sys-apps/util-linux/files/util-linux-2.39_rc1-test-build.patch
new file mode 100644
index ..5fdb5a51bb9e
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.39_rc1-test-build.patch
@@ -0,0 +1,33 @@
+https://github.com/util-linux/util-linux/issues/2119
+https://github.com/util-linux/util-linux/commit/bccae5d85831c4cfa6b5d147acec739bd3c148b9
+
+From bccae5d85831c4cfa6b5d147acec739bd3c148b9 Mon Sep 17 00:00:00 2001
+From: Karel Zak 
+Date: Fri, 17 Mar 2023 13:11:50 +0100
+Subject: [PATCH] build-sys: fix libblkid fuzz sample test if-endif
+
+All tests have to be covered by BUILD_LIBBLKID_TESTS otherwise
+proper CFLAGS ($blkid_tests_cflags) are undefined.
+
+Fixes: https://github.com/util-linux/util-linux/issues/2119
+Signed-off-by: Karel Zak 
+--- a/libblkid/src/Makemodule.am
 b/libblkid/src/Makemodule.am
+@@ -224,8 +224,6 @@ test_blkid_fuzz_LDFLAGS = $(blkid_tests_ldflags) -lpthread
+ test_blkid_fuzz_LDADD = $(blkid_tests_ldadd) $(LIB_FUZZING_ENGINE)
+ endif
+ 
+-endif # BUILD_LIBBLKID_TESTS
+-
+ check_PROGRAMS += test_blkid_fuzz_sample
+ 
+ test_blkid_fuzz_sample_SOURCES = libblkid/src/fuzz.c
+@@ -234,6 +232,7 @@ test_blkid_fuzz_sample_CFLAGS = $(blkid_tests_cflags)
+ test_blkid_fuzz_sample_LDFLAGS = $(blkid_tests_ldflags)
+ test_blkid_fuzz_sample_LDADD = $(blkid_tests_ldadd)
+ 
++endif # BUILD_LIBBLKID_TESTS
+ 
+ # move lib from $(usrlib_execdir) to $(libdir) if needed
+ install-exec-hook-libblkid:
+

diff --git a/sys-apps/util-linux/util-linux-2.39_rc1.ebuild 
b/sys-apps/util-linux/util-linux-2.39_rc1.ebuild
new file mode 100644
index ..0e42fe563e2b
--- /dev/null
+++ b/sys-apps/util-linux/util-linux-2.39_rc1.ebuild
@@ -0,0 +1,391 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \
+   pam python-r1 multilib-minimal multiprocessing systemd
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-${MY_PV}"
+
+if [[ ${PV} ==  ]] ; then
+   
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git;
+   inherit autotools git-r3

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2023-02-08 Thread Sam James
commit: 795576427d6297dd5b813c65261965e190766e22
Author: Sam James  gentoo  org>
AuthorDate: Thu Feb  9 03:54:01 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Feb  9 03:54:10 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79557642

sys-apps/util-linux: backport fix for 'more' exit

Signed-off-by: Sam James  gentoo.org>

 .../util-linux-2.38.1-more-posix-exit-on-eof.patch |  32 ++
 sys-apps/util-linux/util-linux-2.38.1-r1.ebuild| 399 +
 2 files changed, 431 insertions(+)

diff --git 
a/sys-apps/util-linux/files/util-linux-2.38.1-more-posix-exit-on-eof.patch 
b/sys-apps/util-linux/files/util-linux-2.38.1-more-posix-exit-on-eof.patch
new file mode 100644
index ..07d158761c26
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.38.1-more-posix-exit-on-eof.patch
@@ -0,0 +1,32 @@
+https://forums.gentoo.org/viewtopic-t-1160959.html
+https://github.com/util-linux/util-linux/issues/1703
+https://github.com/util-linux/util-linux/commit/28b391ce7e58f8327c092b3911c05f526d0ad586
+
+From 28b391ce7e58f8327c092b3911c05f526d0ad586 Mon Sep 17 00:00:00 2001
+From: Karel Zak 
+Date: Wed, 15 Jun 2022 10:03:44 +0200
+Subject: [PATCH] more: restore exit-on-eof if POSIXLY_CORRECT is not set
+
+In version 2.38, exit-on-eof has been disabled by default. This change
+is annoying for users and forces many users to use 'alias more="more
+-e"'. It seems better to force POSIX lovers to use POSIXLY_CORRECT
+env. variable and stay backwardly compatible by default.
+
+Addresses: https://github.com/util-linux/util-linux/issues/1703
+Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2088493
+Signed-off-by: Karel Zak 
+--- a/text-utils/more.c
 b/text-utils/more.c
+@@ -2052,8 +2052,11 @@ int main(int argc, char **argv)
+   if (!(strcmp(program_invocation_short_name, "page")))
+   ctl.no_scroll++;
+ 
++  ctl.exit_on_eof = getenv("POSIXLY_CORRECT") ? 0 : 1;
++
+   if ((s = getenv("MORE")) != NULL)
+   env_argscan(, s);
++
+   argscan(, argc, argv);
+ 
+   /* clear any inherited settings */
+

diff --git a/sys-apps/util-linux/util-linux-2.38.1-r1.ebuild 
b/sys-apps/util-linux/util-linux-2.38.1-r1.ebuild
new file mode 100644
index ..746b411e2e6e
--- /dev/null
+++ b/sys-apps/util-linux/util-linux-2.38.1-r1.ebuild
@@ -0,0 +1,399 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \
+   pam python-r1 multilib-minimal multiprocessing systemd
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-${MY_PV}"
+
+if [[ ${PV} ==  ]] ; then
+   
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git;
+   inherit autotools git-r3
+else
+   
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/karelzak.asc
+   inherit verify-sig
+
+   if [[ ${PV} != *_rc* ]] ; then
+   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k 
~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+   fi
+
+   
SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz;
+   SRC_URI+=" verify-sig? ( 
https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.sign )"
+fi
+
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Various useful Linux utilities"
+HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ 
https://github.com/util-linux/util-linux;
+
+LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
+SLOT="0"
+IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger 
magic ncurses nls pam python +readline rtas selinux slang static-libs +su +suid 
systemd test tty-helpers udev unicode"
+
+# Most lib deps here are related to programs rather than our libs,
+# so we rarely need to specify ${MULTILIB_USEDEP}.
+RDEPEND="
+   virtual/libcrypt:=
+   audit? ( >=sys-process/audit-2.6:= )
+   caps? ( sys-libs/libcap-ng )
+   cramfs? ( sys-libs/zlib:= )
+   cryptsetup? ( >=sys-fs/cryptsetup-2.1.0 )
+   hardlink? ( dev-libs/libpcre2:= )
+   ncurses? (
+   sys-libs/ncurses:=[unicode(+)?]
+   magic? ( sys-apps/file:0= )
+   )
+   nls? ( virtual/libintl[${MULTILIB_USEDEP}] )
+   pam? ( sys-libs/pam )
+   python? ( ${PYTHON_DEPS} )
+   readline? ( sys-libs/readline:0= )
+   rtas? ( sys-libs/librtas )
+   selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
+   slang? ( sys-libs/slang )
+   !build? ( systemd? ( sys-apps/systemd ) )
+   udev? ( virtual/libudev:= )"
+BDEPEND="
+   virtual/pkgconfig
+   nls? ( sys-devel/gettext )
+   test? ( sys-devel/bc )
+"
+DEPEND="
+   ${RDEPEND}
+   virtual/os-headers
+   acct-group/root
+"
+RDEPEND+="
+   hardlink? ( !app-arch/hardlink )
+   logger? ( 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2022-01-24 Thread Sam James
commit: d5f5f2e564e448f86dee8c0271152c0dc47754d4
Author: Mathieu Tortuyaux  microsoft  com>
AuthorDate: Mon Jan 24 15:50:45 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan 24 15:58:29 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5f5f2e5

sys-apps/util-linux: bump to version 2.37.3

Bug: https://bugs.gentoo.org/831978
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Mathieu Tortuyaux  microsoft.com>
Closes: https://github.com/gentoo/gentoo/pull/23940
Signed-off-by: Sam James  gentoo.org>

 sys-apps/util-linux/Manifest   |   1 +
 .../util-linux-2.37.3-ioctl_ns-test-hang.patch |  37 +++
 sys-apps/util-linux/util-linux-2.37.3.ebuild   | 317 +
 3 files changed, 355 insertions(+)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index 89d96ed01375..827106be8db1 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1 +1,2 @@
 DIST util-linux-2.37.2.tar.xz 5621624 BLAKE2B 
40ab80485781dfc58e6d0e98dae115b96f11ee0cc370524e1e13d3c4a4dfed3a5a4a248311f8ca645f6f84bbaf4785412ca8282b840af4e37a01312764885abe
 SHA512 
38f0fe820445e3bfa79550e6581c230f98c7661566ccc4daa51c7208a5f972c61b4e57dfc86bed074fdbc7c40bc79f856be8f6a05a8860c1c0cecc4208e8b81d
+DIST util-linux-2.37.3.tar.xz 6126260 BLAKE2B 
6a541dd1f243f0fc303cd813b50be3e0edd8dc7377734aed90fe0af03321bf03fd727285e406b95a1db176572742245220f2e6e7f4d35e508e948816ec4b6345
 SHA512 
2303b5c55b1fd932c73b0a079d37e56e10b6a20270b72d0b7e81ec7a6b715b42ebaa336714c3e1722d05e5aa4499f8be17ceaf61bb1341532bf9697c9a2174e9

diff --git 
a/sys-apps/util-linux/files/util-linux-2.37.3-ioctl_ns-test-hang.patch 
b/sys-apps/util-linux/files/util-linux-2.37.3-ioctl_ns-test-hang.patch
new file mode 100644
index ..73dc0b40a049
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.37.3-ioctl_ns-test-hang.patch
@@ -0,0 +1,37 @@
+https://github.com/karelzak/util-linux/commit/597ccb7bf564f65bb059bfe420224cab0fba46ac.patch
+
+From 597ccb7bf564f65bb059bfe420224cab0fba46ac Mon Sep 17 00:00:00 2001
+From: Chris Hofstaedtler 
+Date: Fri, 20 Aug 2021 10:30:50 +
+Subject: [PATCH] tests: Skip lsns/ioctl_ns test if unshare fails
+
+Some parts of the Debian build infrastructure uses unshare to run the
+package build, and that appears to cause a "nested" unshare in the
+lsns/ioctl_ns test to fail. Unfortunately the tests then hang at this
+point.
+
+Try running unshare before the actual test, and skip the test if unshare
+already fails.
+
+[k...@redhat.com: - add --fork to the test
+  - don't write to stdout/err]
+
+Signed-off-by: Chris Hofstaedtler 
+Signed-off-by: Karel Zak 
+---
+ tests/ts/lsns/ioctl_ns | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/ts/lsns/ioctl_ns b/tests/ts/lsns/ioctl_ns
+index ef6360607..fa626bfda 100755
+--- a/tests/ts/lsns/ioctl_ns
 b/tests/ts/lsns/ioctl_ns
+@@ -34,6 +34,8 @@ ts_check_prog "mkfifo"
+ ts_check_prog "touch"
+ ts_check_prog "uniq"
+ 
++$TS_CMD_UNSHARE --user --pid --mount-proc --fork true &> /dev/null || ts_skip 
"no namespace support"
++
+ ts_cd "$TS_OUTDIR"
+ 
+ # The parent process receives namespaces ids via FIFO_DATA from bash

diff --git a/sys-apps/util-linux/util-linux-2.37.3.ebuild 
b/sys-apps/util-linux/util-linux-2.37.3.ebuild
new file mode 100644
index ..29ca2387ed7a
--- /dev/null
+++ b/sys-apps/util-linux/util-linux-2.37.3.ebuild
@@ -0,0 +1,317 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8,9,10} )
+
+inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \
+   pam python-r1 multilib-minimal multiprocessing systemd
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-${MY_PV}"
+
+if [[ ${PV} ==  ]] ; then
+   inherit git-r3 autotools
+   
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git;
+else
+   [[ "${PV}" = *_rc* ]] || \
+   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+   
SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz;
+fi
+
+DESCRIPTION="Various useful Linux utilities"
+HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ 
https://github.com/karelzak/util-linux;
+
+LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
+SLOT="0"
+IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger 
magic ncurses nls pam python +readline rtas selinux slang static-libs +su +suid 
systemd test tty-helpers udev unicode"
+
+# Most lib deps here are related to programs rather than our libs,
+# so we rarely need to specify ${MULTILIB_USEDEP}.
+RDEPEND="
+   virtual/libcrypt:=
+   audit? ( >=sys-process/audit-2.6:= )
+   caps? ( sys-libs/libcap-ng )
+   cramfs? ( sys-libs/zlib:= )
+   cryptsetup? ( >=sys-fs/cryptsetup-2.1.0 )
+ 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2021-10-03 Thread David Seifert
commit: a210ae9d88fbde5434dc594023d5f56f1cba5978
Author: David Seifert  gentoo  org>
AuthorDate: Sun Oct  3 11:27:57 2021 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Oct  3 11:27:57 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a210ae9d

sys-apps/util-linux: drop 2.36.2-r1, 2.37.1-r1

Signed-off-by: David Seifert  gentoo.org>

 sys-apps/util-linux/Manifest   |   2 -
 .../util-linux-2.37.1-ipcutils_calloc_check.patch  |  25 --
 .../util-linux-2.37.1-libmount_setgroups_fix.patch |  38 ---
 ...l-linux-2.37.1-lscpu_NULL_dereference_fix.patch |  50 ---
 sys-apps/util-linux/util-linux-2.36.2-r1.ebuild| 315 ---
 sys-apps/util-linux/util-linux-2.37.1-r1.ebuild| 338 -
 6 files changed, 768 deletions(-)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index c330ae5648b..89d96ed0137 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,3 +1 @@
-DIST util-linux-2.36.2.tar.xz 5348032 BLAKE2B 
17e49515f8d0430f3ed26b80bf1d6e811d847141020d0dae1340dc92887549b7b711f3db6e3913120871fc912435def73586a7aef09d8d9cc6ff7ca331b2770f
 SHA512 
6ab141f44ca4cb6b600081f10eae17e15d23abd122a37eb3ac6c845513a6a4396dc9dcff30b3032de80116ddde50e27dfbc86f92708c1051f84f0c919194664b
-DIST util-linux-2.37.1.tar.xz 5628360 BLAKE2B 
309ea7202f32c0ec750cb01486cf32c3e9dd457d83e5beab8d6b97a5e7f312332ecfcd1ddbb88ae5ec9ee483bb15452b8d58bce1f931f9dfa35be3ce042da3da
 SHA512 
ec300c830869e10a0d7f8c0b99e9bb46e0b88fc51f3c6c6a4d9752a89f035e8d69d81f25fd103ef8d7d253e81440695ef3f5d72dccc94815ec8d5f6f949f7555
 DIST util-linux-2.37.2.tar.xz 5621624 BLAKE2B 
40ab80485781dfc58e6d0e98dae115b96f11ee0cc370524e1e13d3c4a4dfed3a5a4a248311f8ca645f6f84bbaf4785412ca8282b840af4e37a01312764885abe
 SHA512 
38f0fe820445e3bfa79550e6581c230f98c7661566ccc4daa51c7208a5f972c61b4e57dfc86bed074fdbc7c40bc79f856be8f6a05a8860c1c0cecc4208e8b81d

diff --git 
a/sys-apps/util-linux/files/util-linux-2.37.1-ipcutils_calloc_check.patch 
b/sys-apps/util-linux/files/util-linux-2.37.1-ipcutils_calloc_check.patch
deleted file mode 100644
index 44490ce1bd0..000
--- a/sys-apps/util-linux/files/util-linux-2.37.1-ipcutils_calloc_check.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 86d5de52d43501711586054e7b601fbc57403085 Mon Sep 17 00:00:00 2001
-From: Karel Zak 
-Date: Tue, 27 Jul 2021 11:58:31 +0200
-Subject: [PATCH] sys-utils/ipcutils: be careful when call calloc() for uint64
- nmembs
-
-Fix: https://github.com/karelzak/util-linux/issues/1395
-Signed-off-by: Karel Zak 

- sys-utils/ipcutils.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/sys-utils/ipcutils.c b/sys-utils/ipcutils.c
-index e784c4dcb9..18868cfd38 100644
 a/sys-utils/ipcutils.c
-+++ b/sys-utils/ipcutils.c
-@@ -218,7 +218,7 @@ static void get_sem_elements(struct sem_data *p)
- {
-   size_t i;
- 
--  if (!p || !p->sem_nsems || p->sem_perm.id < 0)
-+  if (!p || !p->sem_nsems || p->sem_nsems > SIZE_MAX || p->sem_perm.id < 
0)
-   return;
- 
-   p->elements = xcalloc(p->sem_nsems, sizeof(struct sem_elem));

diff --git 
a/sys-apps/util-linux/files/util-linux-2.37.1-libmount_setgroups_fix.patch 
b/sys-apps/util-linux/files/util-linux-2.37.1-libmount_setgroups_fix.patch
deleted file mode 100644
index ebde207986b..000
--- a/sys-apps/util-linux/files/util-linux-2.37.1-libmount_setgroups_fix.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 420e914c4cc4c2ba34fd75790ea194d7f4a47d2c Mon Sep 17 00:00:00 2001
-From: Karel Zak 
-Date: Thu, 29 Jul 2021 11:50:48 +0200
-Subject: [PATCH] libmount: fix setgroups() use
-
-* keep process in single supplementary group, which is the real group ID for 
the process
-
-* make sure we have rights to call setgroups(), requires group permissions
-
-Fixes: https://github.com/karelzak/util-linux/issues/1398
-Signed-off-by: Karel Zak 

- include/c.h | 6 --
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/include/c.h b/include/c.h
-index c1e4c5ffc..a4504e3ba 100644
 a/include/c.h
-+++ b/include/c.h
-@@ -340,14 +340,16 @@ static inline size_t get_hostname_max(void)
- 
- static inline int drop_permissions(void)
- {
-+  gid_t newgid = getgid();
-+
-   errno = 0;
- 
-   /* drop supplementary groups */
--  if (setgroups(0, NULL) != 0)
-+  if (geteuid() == 0 && setgroups(1, ) != 0)
-   goto fail;
- 
-   /* drop GID */
--  if (setgid(getgid()) < 0)
-+  if (setgid(newgid) < 0)
-   goto fail;
- 
-   /* drop UID */

diff --git 
a/sys-apps/util-linux/files/util-linux-2.37.1-lscpu_NULL_dereference_fix.patch 
b/sys-apps/util-linux/files/util-linux-2.37.1-lscpu_NULL_dereference_fix.patch
deleted file mode 100644
index 50322e63a8e..000
--- 
a/sys-apps/util-linux/files/util-linux-2.37.1-lscpu_NULL_dereference_fix.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 0d7cef3ddbd2aacbea8c11e8524a3de68dfb8ff6 Mon Sep 17 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2021-08-16 Thread Lars Wendler
commit: a2a0a0c753b1b5420ad97cb9a55396c8110cd01f
Author: Lars Wendler  gentoo  org>
AuthorDate: Mon Aug 16 14:01:48 2021 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Mon Aug 16 14:02:03 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2a0a0c7

sys-apps/util-linux: Removed old

Signed-off-by: Lars Wendler  gentoo.org>

 sys-apps/util-linux/Manifest   |   2 -
 .../files/util-linux-2.37-avoid_autoreconf.patch   | 136 
 .../files/util-linux-2.37-lcrypt_link_fix.patch|  50 ---
 .../files/util-linux-2.37-lcrypt_use_LIBS.patch|  91 --
 .../files/util-linux-2.37-ppc-nortas.patch |  36 --
 .../files/util-linux-2.37.1-lscpu_nullptr.patch|  26 --
 sys-apps/util-linux/util-linux-2.37-r1.ebuild  | 362 -
 sys-apps/util-linux/util-linux-2.37.1.ebuild   | 335 ---
 8 files changed, 1038 deletions(-)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index a810445d61a..c330ae5648b 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,5 +1,3 @@
 DIST util-linux-2.36.2.tar.xz 5348032 BLAKE2B 
17e49515f8d0430f3ed26b80bf1d6e811d847141020d0dae1340dc92887549b7b711f3db6e3913120871fc912435def73586a7aef09d8d9cc6ff7ca331b2770f
 SHA512 
6ab141f44ca4cb6b600081f10eae17e15d23abd122a37eb3ac6c845513a6a4396dc9dcff30b3032de80116ddde50e27dfbc86f92708c1051f84f0c919194664b
-DIST util-linux-2.37-manpages.tar.xz 160156 BLAKE2B 
39572332cfe4cac2313941ae922a01f5f4fe34cceb2ca3c806e87ec55187053dfce044790ad497d04adafc2abc513ae1429a1686e71b3b4e0e7907d17c9b6548
 SHA512 
2f3f1da3eae10b90daa672690ec90de303d87e9b0390f795daf80927a7c42f6aac9d3516b63051a6237a5609b5fda1dec92a1b8adc172115f3478b7edfa04918
 DIST util-linux-2.37.1.tar.xz 5628360 BLAKE2B 
309ea7202f32c0ec750cb01486cf32c3e9dd457d83e5beab8d6b97a5e7f312332ecfcd1ddbb88ae5ec9ee483bb15452b8d58bce1f931f9dfa35be3ce042da3da
 SHA512 
ec300c830869e10a0d7f8c0b99e9bb46e0b88fc51f3c6c6a4d9752a89f035e8d69d81f25fd103ef8d7d253e81440695ef3f5d72dccc94815ec8d5f6f949f7555
 DIST util-linux-2.37.2.tar.xz 5621624 BLAKE2B 
40ab80485781dfc58e6d0e98dae115b96f11ee0cc370524e1e13d3c4a4dfed3a5a4a248311f8ca645f6f84bbaf4785412ca8282b840af4e37a01312764885abe
 SHA512 
38f0fe820445e3bfa79550e6581c230f98c7661566ccc4daa51c7208a5f972c61b4e57dfc86bed074fdbc7c40bc79f856be8f6a05a8860c1c0cecc4208e8b81d
-DIST util-linux-2.37.tar.xz 5519268 BLAKE2B 
37d4f260d636539c60b7196545c7c542c7e08a24cf3395be0c14054b5f05765c9f8234ded1c8fed60855e76bf0cfedc557d45e99b37d1e6b4a0244897fe06860
 SHA512 
84cf1df46165f286caa1a1204b335dc1fc826a8e1d52a817c28eb80ef19734eccd6efdfb078e87ade9e4381a9102e59d4df83e9bb100e4c73aff2aa4bfb85615

diff --git a/sys-apps/util-linux/files/util-linux-2.37-avoid_autoreconf.patch 
b/sys-apps/util-linux/files/util-linux-2.37-avoid_autoreconf.patch
deleted file mode 100644
index 44ea6e5c2be..000
--- a/sys-apps/util-linux/files/util-linux-2.37-avoid_autoreconf.patch
+++ /dev/null
@@ -1,136 +0,0 @@
 util-linux-2.37/config.h.in
-+++ util-linux-2.37/config.h.in
-@@ -216,9 +216,6 @@
- /* Define to 1 if you have the `cap-ng' library (-lcap-ng). */
- #undef HAVE_LIBCAP_NG
- 
--/* Do we need -lcrypt? */
--#undef HAVE_LIBCRYPT
--
- /* Define if libeconf is available */
- #undef HAVE_LIBECONF
- 
 util-linux-2.37/configure
-+++ util-linux-2.37/configure
-@@ -4965,12 +4965,7 @@
- program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
- 
- if test x"${MISSING+set}" != xset; then
--  case $am_aux_dir in
--  *\ * | *\   *)
--MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
--  *)
--MISSING="\${SHELL} $am_aux_dir/missing" ;;
--  esac
-+  MISSING="\${SHELL} '$am_aux_dir/missing'"
- fi
- # Use eval to expand $SHELL
- if eval "$MISSING --is-lightweight"; then
-@@ -25591,7 +25586,10 @@
- 
- else
- 
-+
-+  old_LIBS="$LIBS"
-   LIBS="$LIBS -lcrypt"
-+
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- 
-@@ -25612,10 +25610,7 @@
-   return 0;
- }
- _ACEOF
--if ac_fn_c_try_compile "$LINENO"; then :
--
--
--$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
-+if ac_fn_c_try_link "$LINENO"; then :
- 
-   have_libcrypt=yes
-   have_crypt=yes
-@@ -25626,7 +25621,11 @@
- $as_echo "$as_me: WARNING: crypt() is not available" >&2;}
- 
- fi
--rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-+rm -f core conftest.err conftest.$ac_objext \
-+conftest$ac_exeext conftest.$ac_ext
-+
-+  LIBS="$old_LIBS"
-+
- 
- fi
- rm -f core conftest.err conftest.$ac_objext \
-@@ -25768,12 +25767,8 @@
- 
- 
- 
--  old_CFLAGS="$CFLAGS"
--  old_CPPFLAGS="$CPPFLAGS"
--  old_LDFLAGS="$LDFLAGS"
--  CFLAGS="$CFLAGS "
--  CPPFLAGS="$CPPFLAGS "
--  LDFLAGS="$LDFLAGS $SELINUX_LIBS"
-+  old_LIBS="$LIBS"
-+  LIBS="$LIBS $SELINUX_LIBS"
- 
- # This function is missing in old libselinux 1.xx versions
- for ac_func in security_get_initial_context
-@@ -25788,9 +25783,7 @@
- done
- 
- 
--  CFLAGS="$old_CFLAGS"
--  

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2021-08-11 Thread Lars Wendler
commit: da60551412d12ea1b7b0fe27a7603fb7873d63c2
Author: Lars Wendler  gentoo  org>
AuthorDate: Wed Aug 11 12:25:48 2021 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Aug 11 12:30:42 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da605514

sys-apps/util-linux: Revbump to add various upstream fixes

* Erase names in agetty by pressing CTRL-C (#804972)
* Fixed user mount of davfs2 filesystems (#805218)
* Fixed lscpu segfault on riscv plattform with upstream patch (#802606)
+ Fixed potential buffer overflow in ipcutils (#806070) (CVE-2021-37600)

Bug: https://bugs.gentoo.org/806070
Closes: https://bugs.gentoo.org/804972
Closes: https://bugs.gentoo.org/805218
Closes: https://bugs.gentoo.org/802606
Signed-off-by: Lars Wendler  gentoo.org>

 .../util-linux-2.37.1-agetty_ctrl-c_erase.patch|  50 +++
 .../util-linux-2.37.1-ipcutils_calloc_check.patch  |  25 ++
 .../util-linux-2.37.1-libmount_setgroups_fix.patch |  38 +++
 ...l-linux-2.37.1-lscpu_NULL_dereference_fix.patch |  50 +++
 sys-apps/util-linux/util-linux-2.37.1-r1.ebuild| 338 +
 5 files changed, 501 insertions(+)

diff --git 
a/sys-apps/util-linux/files/util-linux-2.37.1-agetty_ctrl-c_erase.patch 
b/sys-apps/util-linux/files/util-linux-2.37.1-agetty_ctrl-c_erase.patch
new file mode 100644
index 000..4828fd449f9
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.37.1-agetty_ctrl-c_erase.patch
@@ -0,0 +1,50 @@
+From 6eb1c01e9dd25a73100f06db37190c63fd57d4d9 Mon Sep 17 00:00:00 2001
+From: Karel Zak 
+Date: Fri, 30 Jul 2021 11:50:46 +0200
+Subject: [PATCH] agetty: use CTRL+C to erase username
+
+aggety(8) from the beginning ignores ^C (the small exception was
+between 2.32 and 2.34 when this char has been misinterpreted).
+
+This patch forces agetty to interpret ^C like ^U, it means to
+erase the user's input and wait for a completely new username.
+The small difference is that for ^C it does not set 'kill character'.
+
+This change does not affect serial lines where ^C is still ignored like
+in previous decades. I'd like to avoid any regression as I have
+no clue if any serial lines do not send this control char in some
+context ...
+
+Fixes: https://github.com/karelzak/util-linux/issues/1399
+References: https://github.com/karelzak/util-linux/issues/1046
+Signed-off-by: Karel Zak 
+---
+ term-utils/agetty.c | 8 +---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/term-utils/agetty.c b/term-utils/agetty.c
+index 3b3d5101a..d072d64d3 100644
+--- a/term-utils/agetty.c
 b/term-utils/agetty.c
+@@ -2267,6 +2267,11 @@ static char *get_logname(struct issue *ie, struct 
options *op, struct termios *t
+   break;
+   case CTL('U'):
+   cp->kill = ascval;  /* set kill 
character */
++  /* fallthrough */
++  case CTL('C'):
++  if (key == CTL('C') && !(op->flags & 
F_VCONSOLE))
++  /* Ignore CTRL+C on serial line */
++  break;
+   while (bp > logname) {
+   if ((tp->c_lflag & ECHO) == 0)
+   write_all(1, erase[cp->parity], 
3);
+@@ -2275,9 +2280,6 @@ static char *get_logname(struct issue *ie, struct 
options *op, struct termios *t
+   break;
+   case CTL('D'):
+   exit(EXIT_SUCCESS);
+-  case CTL('C'):
+-  /* Ignore */
+-  break;
+   default:
+   if ((size_t)(bp - logname) >= sizeof(logname) - 
1)
+   log_err(_("%s: input overrun"), 
op->tty);

diff --git 
a/sys-apps/util-linux/files/util-linux-2.37.1-ipcutils_calloc_check.patch 
b/sys-apps/util-linux/files/util-linux-2.37.1-ipcutils_calloc_check.patch
new file mode 100644
index 000..44490ce1bd0
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.37.1-ipcutils_calloc_check.patch
@@ -0,0 +1,25 @@
+From 86d5de52d43501711586054e7b601fbc57403085 Mon Sep 17 00:00:00 2001
+From: Karel Zak 
+Date: Tue, 27 Jul 2021 11:58:31 +0200
+Subject: [PATCH] sys-utils/ipcutils: be careful when call calloc() for uint64
+ nmembs
+
+Fix: https://github.com/karelzak/util-linux/issues/1395
+Signed-off-by: Karel Zak 
+---
+ sys-utils/ipcutils.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sys-utils/ipcutils.c b/sys-utils/ipcutils.c
+index e784c4dcb9..18868cfd38 100644
+--- a/sys-utils/ipcutils.c
 b/sys-utils/ipcutils.c
+@@ -218,7 +218,7 @@ static void get_sem_elements(struct sem_data *p)
+ {
+   size_t i;
+ 
+-  if (!p || !p->sem_nsems || p->sem_perm.id < 0)
++  if (!p || !p->sem_nsems || p->sem_nsems 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2021-07-30 Thread Marek Szuba
commit: a8c8e0a371b8b48481ff8d79c0841e20a8ce78d8
Author: Marek Szuba  gentoo  org>
AuthorDate: Fri Jul 30 12:16:59 2021 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Fri Jul 30 12:20:58 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8c8e0a3

sys-apps/util-linux-2.37.1: fix lscpu segfault on some arches

Observed on rv64 but could in princple happen elsewhere too.

Bug: https://bugs.gentoo.org/802606
Signed-off-by: Marek Szuba  gentoo.org>

 .../files/util-linux-2.37.1-lscpu_nullptr.patch| 26 ++
 sys-apps/util-linux/util-linux-2.37.1.ebuild   |  4 
 2 files changed, 30 insertions(+)

diff --git a/sys-apps/util-linux/files/util-linux-2.37.1-lscpu_nullptr.patch 
b/sys-apps/util-linux/files/util-linux-2.37.1-lscpu_nullptr.patch
new file mode 100644
index 000..bfb528cf1f1
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.37.1-lscpu_nullptr.patch
@@ -0,0 +1,26 @@
+If you call a function which can return a null pointer you probably want
+to check the return value before attempting to dereference it. 
+
+--- a/sys-utils/lscpu.c
 b/sys-utils/lscpu.c
+@@ -966,7 +966,7 @@
+   *(p - 2) = '\0';
+   add_summary_s(tb, sec, _("CPU op-mode(s):"), buf);
+   }
+-  if (ct->addrsz)
++  if (ct && ct->addrsz)
+   add_summary_s(tb, sec, _("Address sizes:"), ct->addrsz);
+ #if !defined(WORDS_BIGENDIAN)
+   add_summary_s(tb, sec, _("Byte Order:"), "Little Endian");
+@@ -1008,9 +1008,9 @@
+   sec = NULL;
+ 
+   /* Section: cpu type description */
+-  if (ct->vendor)
++  if (ct && ct->vendor)
+   sec = add_summary_s(tb, NULL, _("Vendor ID:"), ct->vendor);
+-  if (ct->bios_vendor)
++  if (ct && ct->bios_vendor)
+   add_summary_s(tb, sec, _("BIOS Vendor ID:"), ct->bios_vendor);
+ 
+   for (i = 0; i < cxt->ncputypes; i++)

diff --git a/sys-apps/util-linux/util-linux-2.37.1.ebuild 
b/sys-apps/util-linux/util-linux-2.37.1.ebuild
index 141bdf409cb..c12359853f4 100644
--- a/sys-apps/util-linux/util-linux-2.37.1.ebuild
+++ b/sys-apps/util-linux/util-linux-2.37.1.ebuild
@@ -86,6 +86,10 @@ RESTRICT="!test? ( test )"
 
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=(
+   "${FILESDIR}"/${PN}-2.37.1-lscpu_nullptr.patch
+)
+
 src_prepare() {
default
 



[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2021-07-10 Thread Lars Wendler
commit: f97eb250b55904388c542a546ec048f239f89b5c
Author: Lars Wendler  gentoo  org>
AuthorDate: Sat Jul 10 21:24:33 2021 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Sat Jul 10 21:31:41 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f97eb250

sys-apps/util-linux: Attempt fix build with sys-libs/libxcrypt[-abi_x86_32]

Bug: https://bugs.gentoo.org/801403
Signed-off-by: Lars Wendler  gentoo.org>

 .../files/util-linux-2.37-avoid_autoreconf.patch   | 136 +
 .../files/util-linux-2.37-lcrypt_link_fix.patch|  50 
 .../files/util-linux-2.37-lcrypt_use_LIBS.patch|  91 ++
 sys-apps/util-linux/util-linux-2.37.ebuild |   4 +
 4 files changed, 281 insertions(+)

diff --git a/sys-apps/util-linux/files/util-linux-2.37-avoid_autoreconf.patch 
b/sys-apps/util-linux/files/util-linux-2.37-avoid_autoreconf.patch
new file mode 100644
index 000..44ea6e5c2be
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.37-avoid_autoreconf.patch
@@ -0,0 +1,136 @@
+--- util-linux-2.37/config.h.in
 util-linux-2.37/config.h.in
+@@ -216,9 +216,6 @@
+ /* Define to 1 if you have the `cap-ng' library (-lcap-ng). */
+ #undef HAVE_LIBCAP_NG
+ 
+-/* Do we need -lcrypt? */
+-#undef HAVE_LIBCRYPT
+-
+ /* Define if libeconf is available */
+ #undef HAVE_LIBECONF
+ 
+--- util-linux-2.37/configure
 util-linux-2.37/configure
+@@ -4965,12 +4965,7 @@
+ program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
+ 
+ if test x"${MISSING+set}" != xset; then
+-  case $am_aux_dir in
+-  *\ * | *\   *)
+-MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+-  *)
+-MISSING="\${SHELL} $am_aux_dir/missing" ;;
+-  esac
++  MISSING="\${SHELL} '$am_aux_dir/missing'"
+ fi
+ # Use eval to expand $SHELL
+ if eval "$MISSING --is-lightweight"; then
+@@ -25591,7 +25586,10 @@
+ 
+ else
+ 
++
++  old_LIBS="$LIBS"
+   LIBS="$LIBS -lcrypt"
++
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
+@@ -25612,10 +25610,7 @@
+   return 0;
+ }
+ _ACEOF
+-if ac_fn_c_try_compile "$LINENO"; then :
+-
+-
+-$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
++if ac_fn_c_try_link "$LINENO"; then :
+ 
+   have_libcrypt=yes
+   have_crypt=yes
+@@ -25626,7 +25621,11 @@
+ $as_echo "$as_me: WARNING: crypt() is not available" >&2;}
+ 
+ fi
+-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++rm -f core conftest.err conftest.$ac_objext \
++conftest$ac_exeext conftest.$ac_ext
++
++  LIBS="$old_LIBS"
++
+ 
+ fi
+ rm -f core conftest.err conftest.$ac_objext \
+@@ -25768,12 +25767,8 @@
+ 
+ 
+ 
+-  old_CFLAGS="$CFLAGS"
+-  old_CPPFLAGS="$CPPFLAGS"
+-  old_LDFLAGS="$LDFLAGS"
+-  CFLAGS="$CFLAGS "
+-  CPPFLAGS="$CPPFLAGS "
+-  LDFLAGS="$LDFLAGS $SELINUX_LIBS"
++  old_LIBS="$LIBS"
++  LIBS="$LIBS $SELINUX_LIBS"
+ 
+ # This function is missing in old libselinux 1.xx versions
+ for ac_func in security_get_initial_context
+@@ -25788,9 +25783,7 @@
+ done
+ 
+ 
+-  CFLAGS="$old_CFLAGS"
+-  CPPFLAGS="$old_CPPFLAGS"
+-  LDFLAGS="$old_LDFLAGS"
++  LIBS="$old_LIBS"
+ 
+ 
+ fi
+--- util-linux-2.37/Makefile.in
 util-linux-2.37/Makefile.in
+@@ -1,4 +1,4 @@
+-# Makefile.in generated by automake 1.16.2 from Makefile.am.
++# Makefile.in generated by automake 1.16.3 from Makefile.am.
+ # @configure_input@
+ 
+ # Copyright (C) 1994-2020 Free Software Foundation, Inc.
+@@ -4649,6 +4649,8 @@
+ GZIP_ENV = --best
+ DIST_ARCHIVES = $(distdir).tar.xz
+ DIST_TARGETS = dist-xz
++# Exists only to be overridden by the user if desired.
++AM_DISTCHECK_DVI_TARGET = dvi
+ distuninstallcheck_listfiles = find . -type f -print
+ am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
+   | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
+@@ -14854,7 +14856,7 @@
+   $(DISTCHECK_CONFIGURE_FLAGS) \
+   --srcdir=../.. --prefix="$$dc_install_base" \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+-&& $(MAKE) $(AM_MAKEFLAGS) dvi \
++&& $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+@@ -14920,7 +14922,8 @@
+   done
+ install: $(BUILT_SOURCES)
+   $(MAKE) $(AM_MAKEFLAGS) install-recursive
+-install-exec: install-exec-recursive
++install-exec: $(BUILT_SOURCES)
++  $(MAKE) $(AM_MAKEFLAGS) install-exec-recursive
+ install-data: install-data-recursive
+ uninstall: uninstall-recursive
+ 
+@@ -16157,7 +16160,8 @@
+   uninstall-man8
+ 
+ .MAKE: $(am__recursive_targets) all check check-am install install-am \
+-  install-data-am install-exec-am install-strip uninstall-am
++  install-data-am install-exec install-exec-am install-strip \
++  uninstall-am
+ 
+ .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
+   am--depfiles am--refresh check check-am check-local clean \

diff --git 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2021-06-02 Thread Georgy Yakovlev
commit: 9433975dc4e373168c535e1d65d0b1a7c8429ac9
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Wed Jun  2 21:08:15 2021 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Wed Jun  2 21:12:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9433975d

sys-apps/util-linux: fix build on powerpc

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Georgy Yakovlev  gentoo.org>

 .../files/util-linux-2.37-ppc-nortas.patch | 36 ++
 sys-apps/util-linux/util-linux-2.37.ebuild |  2 ++
 2 files changed, 38 insertions(+)

diff --git a/sys-apps/util-linux/files/util-linux-2.37-ppc-nortas.patch 
b/sys-apps/util-linux/files/util-linux-2.37-ppc-nortas.patch
new file mode 100644
index 000..b3ac4716323
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.37-ppc-nortas.patch
@@ -0,0 +1,36 @@
+From 45cd3aa4ded6df54dde85e6939b48bb273c8b6c3 Mon Sep 17 00:00:00 2001
+From: Georgy Yakovlev 
+Date: Wed, 2 Jun 2021 13:59:26 -0700
+Subject: [PATCH] lscpu: fix build on powerpc
+
+fails with error: label at end of compound statement
+and fix typo as bonus.
+
+Signed-off-by: Georgy Yakovlev 
+---
+ sys-utils/lscpu-cputype.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/sys-utils/lscpu-cputype.c b/sys-utils/lscpu-cputype.c
+index cf7af361c..d5ca8e1f1 100644
+--- a/sys-utils/lscpu-cputype.c
 b/sys-utils/lscpu-cputype.c
+@@ -724,7 +724,7 @@ int lscpu_read_archext(struct lscpu_cxt *cxt)
+   }
+ 
+ #if defined(HAVE_LIBRTAS)
+-  /* Get PowerPC speficic info */
++  /* Get PowerPC specific info */
+   if (!cxt->noalive) {
+   int rc, len, ntypes;
+ 
+@@ -745,8 +745,8 @@ int lscpu_read_archext(struct lscpu_cxt *cxt)
+   ct->physsockets = strbe16toh(buf, 4);
+   ct->physchips = strbe16toh(buf, 6);
+   ct->physcoresperchip = strbe16toh(buf, 8);
+-nortas:
+   }
++nortas:
+ #endif
+   return 0;
+ }

diff --git a/sys-apps/util-linux/util-linux-2.37.ebuild 
b/sys-apps/util-linux/util-linux-2.37.ebuild
index 66a36a6cd0c..2b3ff76f988 100644
--- a/sys-apps/util-linux/util-linux-2.37.ebuild
+++ b/sys-apps/util-linux/util-linux-2.37.ebuild
@@ -88,6 +88,8 @@ RESTRICT="!test? ( test )"
 S="${WORKDIR}/${MY_P}"
 
 PATCHES=(
+   # https://github.com/karelzak/util-linux/pull/1329
+   "${FILESDIR}/${P}-ppc-nortas.patch"
 )
 
 rm_man() {



[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2021-05-23 Thread David Seifert
commit: 4250131c3c11b35ca66dd52adad47e9c83a0cc5d
Author: David Seifert  gentoo  org>
AuthorDate: Sun May 23 12:14:20 2021 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun May 23 12:14:20 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4250131c

sys-apps/util-linux: drop 2.35.2

Signed-off-by: David Seifert  gentoo.org>

 sys-apps/util-linux/Manifest   |   1 -
 .../util-linux-2.35.1-cleanup-pidfd-include.patch  |  36 ---
 sys-apps/util-linux/util-linux-2.35.2.ebuild   | 319 -
 3 files changed, 356 deletions(-)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index 35bd262712a..d68e70c68f2 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,4 +1,3 @@
-DIST util-linux-2.35.2.tar.xz 5150488 BLAKE2B 
93eb90ab33db7795b46425ec4ec87f8a2d3d6e0dad671345375ea02efd654bf72041932d30b41bea494e4b62952e2fd14ea9f9e6c738d4eb4b050bd170b9bb0e
 SHA512 
59e038ba71aa74c9af6f927b357483a965f675ab3ffcd25cf0c1b043656312d2d2d07c55659fd3da69ede165bec313e0ae7e1cd73758e49681ae610604b399a2
 DIST util-linux-2.36.2.tar.xz 5348032 BLAKE2B 
17e49515f8d0430f3ed26b80bf1d6e811d847141020d0dae1340dc92887549b7b711f3db6e3913120871fc912435def73586a7aef09d8d9cc6ff7ca331b2770f
 SHA512 
6ab141f44ca4cb6b600081f10eae17e15d23abd122a37eb3ac6c845513a6a4396dc9dcff30b3032de80116ddde50e27dfbc86f92708c1051f84f0c919194664b
 DIST util-linux-2.37-rc2-manpages.tar.xz 160480 BLAKE2B 
9d9ad7a74fe8bdd523fa5075c1031c43596c16e7db6bc04e3c8cf0447200ec9c24db9b973a1e47b3aada4ae48f3b82d16105fdc8f98373c1d6cc6aa82bcac454
 SHA512 
2dd6050dec6732231087cf83c6db6593ed47cc986be9e6b28d57cb3fa03eb31992fd0cb92bd6f0ab971dc33e633c3b27bf7f9d53dee20f011d5461a9af68e23c
 DIST util-linux-2.37-rc2.tar.xz 5437912 BLAKE2B 
8fb6183537bc3a6d2831d2f91c7222518dd844e080b86e1f927f8418f7c075e3ae816d2bac2d8d493bf297f30f26a0deaaa0d37e1437f7caf625f92370606970
 SHA512 
9a7f301604c2ae914b8c33f17a22563ec0128e45d7687bf11142d190bb1f51adeff7f392efc27b87ac088c615097ccc270a886a5c912e363f4748b3ed6f5a6ef

diff --git 
a/sys-apps/util-linux/files/util-linux-2.35.1-cleanup-pidfd-include.patch 
b/sys-apps/util-linux/files/util-linux-2.35.1-cleanup-pidfd-include.patch
deleted file mode 100644
index 85e4d705735..000
--- a/sys-apps/util-linux/files/util-linux-2.35.1-cleanup-pidfd-include.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 0a4035ff2e4fd5b5ae0cf8f8665696c2aff53b75 Mon Sep 17 00:00:00 2001
-From: Karel Zak 
-Date: Tue, 10 Mar 2020 11:43:16 +0100
-Subject: [PATCH] include: cleanup pidfd inckudes
-
-Signed-off-by: Karel Zak 

- include/pidfd-utils.h | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/include/pidfd-utils.h b/include/pidfd-utils.h
-index 0baedd2c9..4a6c3a604 100644
 a/include/pidfd-utils.h
-+++ b/include/pidfd-utils.h
-@@ -3,10 +3,10 @@
- 
- #if defined(__linux__)
- # include 
--# if defined(SYS_pidfd_send_signal)
-+# if defined(SYS_pidfd_send_signal) && defined(SYS_pidfd_open)
- #  include 
- 
--#  ifndef HAVE_PIDFD_OPEN
-+#  ifndef HAVE_PIDFD_SEND_SIGNAL
- static inline int pidfd_send_signal(int pidfd, int sig, siginfo_t *info,
-   unsigned int flags)
- {
-@@ -14,7 +14,7 @@ static inline int pidfd_send_signal(int pidfd, int sig, 
siginfo_t *info,
- }
- #  endif
- 
--#  ifndef HAVE_PIDFD_SEND_SIGNAL
-+#  ifndef HAVE_PIDFD_OPEN
- static inline int pidfd_open(pid_t pid, unsigned int flags)
- {
-   return syscall(SYS_pidfd_open, pid, flags);

diff --git a/sys-apps/util-linux/util-linux-2.35.2.ebuild 
b/sys-apps/util-linux/util-linux-2.35.2.ebuild
deleted file mode 100644
index 1df44660f8f..000
--- a/sys-apps/util-linux/util-linux-2.35.2.ebuild
+++ /dev/null
@@ -1,319 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8} )
-
-inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \
-   pam python-r1 multilib-minimal multiprocessing systemd
-
-MY_PV="${PV/_/-}"
-MY_P="${PN}-${MY_PV}"
-
-if [[ ${PV} ==  ]] ; then
-   inherit git-r3 autotools
-   
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git;
-else
-   [[ "${PV}" = *_rc* ]] || \
-   KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
-   
SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz;
-fi
-
-DESCRIPTION="Various useful Linux utilities"
-HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ 
https://github.com/karelzak/util-linux;
-
-LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
-SLOT="0"
-IUSE="audit build caps +cramfs cryptsetup fdformat hardlink kill +logger magic 
ncurses nls pam python +readline selinux slang static-libs su +suid systemd 
test tty-helpers udev unicode userland_GNU"
-
-# Most lib deps here are related to 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2020-12-22 Thread Andreas K. Hüttel
commit: e03739738c852415ce57e1d996f6e915b3272d82
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Tue Dec 22 14:42:39 2020 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Tue Dec 22 14:42:58 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0373973

sys-apps/util-linux: Fix build on riscv32

Patch is backport from upstream master

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel  gentoo.org>

 .../files/util-linux-2.36.1-riscv32.patch  | 29 ++
 sys-apps/util-linux/util-linux-2.36.1-r1.ebuild|  1 +
 2 files changed, 30 insertions(+)

diff --git a/sys-apps/util-linux/files/util-linux-2.36.1-riscv32.patch 
b/sys-apps/util-linux/files/util-linux-2.36.1-riscv32.patch
new file mode 100644
index 000..b18a01906eb
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.36.1-riscv32.patch
@@ -0,0 +1,29 @@
+From 367972fae13d170675768d63678577cae1890143 Mon Sep 17 00:00:00 2001
+From: Pino Toscano 
+Date: Tue, 17 Nov 2020 11:32:45 +0100
+Subject: [PATCH] hwclock: do not assume __NR_settimeofday_time32
+
+Check that __NR_settimeofday_time32 exists before trying to use it as
+syscall number.
+
+Signed-off-by: Pino Toscano 
+---
+ sys-utils/hwclock.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
+index 1f7ef3317..db448687d 100644
+--- a/sys-utils/hwclock.c
 b/sys-utils/hwclock.c
+@@ -678,7 +678,7 @@ display_time(struct timeval hwctime)
+ #ifndef SYS_settimeofday
+ # ifdef __NR_settimeofday
+ #  define SYS_settimeofday__NR_settimeofday
+-# else
++# elif defined(__NR_settimeofday_time32)
+ #  define SYS_settimeofday__NR_settimeofday_time32
+ # endif
+ #endif
+-- 
+2.26.2
+

diff --git a/sys-apps/util-linux/util-linux-2.36.1-r1.ebuild 
b/sys-apps/util-linux/util-linux-2.36.1-r1.ebuild
index f7acbfdb151..8008e211b8d 100644
--- a/sys-apps/util-linux/util-linux-2.36.1-r1.ebuild
+++ b/sys-apps/util-linux/util-linux-2.36.1-r1.ebuild
@@ -77,6 +77,7 @@ S="${WORKDIR}/${MY_P}"
 
 PATCHES=(
"${FILESDIR}/${P}-libmount_dont_use_symfollow.patch" #755878
+   "${FILESDIR}/${P}-riscv32.patch"
 )
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2020-11-16 Thread Lars Wendler
commit: 4fa98909b99fbf08d15c0b33e29dcfb7983baae3
Author: Lars Wendler  gentoo  org>
AuthorDate: Mon Nov 16 17:35:43 2020 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Mon Nov 16 17:35:58 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fa98909

sys-apps/util-linux: Removed old

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Lars Wendler  gentoo.org>

 sys-apps/util-linux/Manifest   |   1 -
 .../util-linux-2.35.1-hwclock-glibc-2.31.patch | 165 ---
 ...til-linux-2.35.1-include_sys_types-header.patch |  58 
 sys-apps/util-linux/util-linux-2.35.1-r2.ebuild| 317 -
 4 files changed, 541 deletions(-)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index 416b9d35a2a..ad836f18647 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,6 +1,5 @@
 DIST util-linux-2.33.2.tar.xz 4707024 BLAKE2B 
fdeed0a236edd26d268bccca8cde2cf1b7ecbff521ede9fa26ea22c8e5cdfc380a416a168789504b303f1b569d163e41f6630ee28829be7f2b2129fa14c4fffa
 SHA512 
ac88790a0272366b384b54df19cb28318014d98819d5d96aa05528ff17ab57a8c66d012a2f1b59caca4c5d4ea669e8c041e1123517c1f1c2d9960ef701aaf749
 DIST util-linux-2.34.tar.xz 4974812 BLAKE2B 
d26b2f74d490eaee0a40d4c75a1a351ba165b4a52f9bbf6cf9d1afd7ae1382a3a3dfe41180584e97e9aaad6950f604cad928f30747590e3e1e669c8797689758
 SHA512 
2d0b76f63d32e7afb7acf61a83fabbfd58baa34ab78b3a331ce87f9c676a5fd71c56a493ded95039540d2c46b6048caaa38d7fb4491eb3d52d7b09dc54655cd7
-DIST util-linux-2.35.1.tar.xz 5138360 BLAKE2B 
08c16d4d9fd670b62c2d664feda2cfa53d0cecc36bbaa2c3ed5960bf70f905f11caa7a904c63f36e12b472f10b8e781351cca0cf2f858c2b66e4fd0204b1c456
 SHA512 
6e27e08bfc02378970f015decfea5a52d6c342c4c8f4ac48dd07d248485eb797e506d91d290dbbca344c3e5cfe1fc150db80a23d510367427232f5abeabe591a
 DIST util-linux-2.35.2.tar.xz 5150488 BLAKE2B 
93eb90ab33db7795b46425ec4ec87f8a2d3d6e0dad671345375ea02efd654bf72041932d30b41bea494e4b62952e2fd14ea9f9e6c738d4eb4b050bd170b9bb0e
 SHA512 
59e038ba71aa74c9af6f927b357483a965f675ab3ffcd25cf0c1b043656312d2d2d07c55659fd3da69ede165bec313e0ae7e1cd73758e49681ae610604b399a2
 DIST util-linux-2.36.1.tar.xz 5231880 BLAKE2B 
52d867aa0b722a84828c37958d80b0bdcc1ceaae4e46fa6550ad0f2f152c52e4aaf2c8bc5fdf4f27b522037a870ff2554382abac0eaa50a6791d8b8016e3d74c
 SHA512 
9dfd01ae4c16fa35015dafd222d555988b72e4d1d2fbadd140791b9ef78f84fa8254d4d08dc67cabf41e873338867f19e786b989d708ccfe5161c4f7679bba7a
 DIST util-linux-2.36.tar.xz 5242420 BLAKE2B 
a03b626a376815f37a17b3808d1d421c7ec27a133edf857116603de38f7e13f527687691d0c8aa68f4f6868be6f3bcc64573d759308d74731107e02067449ce6
 SHA512 
cbb4975da8d99a1edd45514171d59ea7b019ce0f77a81e88b447a733f725e91c53540d9dc78bc626dc011dca129b8b150aaf9e64ccf62a4202ae816581acf4fd

diff --git 
a/sys-apps/util-linux/files/util-linux-2.35.1-hwclock-glibc-2.31.patch 
b/sys-apps/util-linux/files/util-linux-2.35.1-hwclock-glibc-2.31.patch
deleted file mode 100644
index c8b5cf76a23..000
--- a/sys-apps/util-linux/files/util-linux-2.35.1-hwclock-glibc-2.31.patch
+++ /dev/null
@@ -1,165 +0,0 @@
-From cd781c405be82540484da3bfe3d3f17a39b8eb5c Mon Sep 17 00:00:00 2001
-From: J William Piggott 
-Date: Fri, 21 Feb 2020 20:03:47 -0500
-Subject: hwclock: make glibc 2.31 compatible
-
-__
-GNU C Library NEWS -- history of user-visible changes.
-Version 2.31
-Deprecated and removed features, and other changes affecting compatibility:
-
-* The settimeofday function can still be used to set a system-wide time
-  zone when the operating system supports it.  This is because the Linux
-  kernel reused the API, on some architectures, to describe a system-wide
-  time-zone-like offset between the software clock maintained by the kernel,
-  and the "RTC" clock that keeps time when the system is shut down.
-
-  However, to reduce the odds of this offset being set by accident,
-  settimeofday can no longer be used to set the time and the offset
-  simultaneously.  If both of its two arguments are non-null, the call
-  will fail (setting errno to EINVAL).
-
-  Callers attempting to set this offset should also be prepared for the call
-  to fail and set errno to ENOSYS; this already happens on the Hurd and on
-  some Linux architectures.  The Linux kernel maintainers are discussing a
-  more principled replacement for the reused API.  After a replacement
-  becomes available, we will change settimeofday to fail with ENOSYS on all
-  platforms when its 'tzp' argument is not a null pointer.
-
-  settimeofday itself is obsolescent according to POSIX.  Programs that set
-  the system time should use clock_settime and/or the adjtime family of
-  functions instead.  We may cease to make settimeofday available to newly
-  linked binaries after there is a replacement for Linux's time-zone-like
-  offset API.
-__
-
-hwclock(8) had one settimeofday(2) call 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2020-03-25 Thread Thomas Deutschmann
commit: 935c99eeed01166ca391aed5711ad63b51e5
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Wed Mar 25 14:09:40 2020 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Wed Mar 25 14:10:40 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=935c99ee

sys-apps/util-linux: fix compile error caused by undefined SYS_pidfd_send_signal

Closes: https://bugs.gentoo.org/714100
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Thomas Deutschmann  gentoo.org>

 .../util-linux-2.35.1-cleanup-pidfd-include.patch  | 36 ++
 ...til-linux-2.35.1-include_sys_types-header.patch | 58 ++
 sys-apps/util-linux/util-linux-2.35.1.ebuild   |  5 ++
 3 files changed, 99 insertions(+)

diff --git 
a/sys-apps/util-linux/files/util-linux-2.35.1-cleanup-pidfd-include.patch 
b/sys-apps/util-linux/files/util-linux-2.35.1-cleanup-pidfd-include.patch
new file mode 100644
index 000..85e4d705735
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.35.1-cleanup-pidfd-include.patch
@@ -0,0 +1,36 @@
+From 0a4035ff2e4fd5b5ae0cf8f8665696c2aff53b75 Mon Sep 17 00:00:00 2001
+From: Karel Zak 
+Date: Tue, 10 Mar 2020 11:43:16 +0100
+Subject: [PATCH] include: cleanup pidfd inckudes
+
+Signed-off-by: Karel Zak 
+---
+ include/pidfd-utils.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/include/pidfd-utils.h b/include/pidfd-utils.h
+index 0baedd2c9..4a6c3a604 100644
+--- a/include/pidfd-utils.h
 b/include/pidfd-utils.h
+@@ -3,10 +3,10 @@
+ 
+ #if defined(__linux__)
+ # include 
+-# if defined(SYS_pidfd_send_signal)
++# if defined(SYS_pidfd_send_signal) && defined(SYS_pidfd_open)
+ #  include 
+ 
+-#  ifndef HAVE_PIDFD_OPEN
++#  ifndef HAVE_PIDFD_SEND_SIGNAL
+ static inline int pidfd_send_signal(int pidfd, int sig, siginfo_t *info,
+   unsigned int flags)
+ {
+@@ -14,7 +14,7 @@ static inline int pidfd_send_signal(int pidfd, int sig, 
siginfo_t *info,
+ }
+ #  endif
+ 
+-#  ifndef HAVE_PIDFD_SEND_SIGNAL
++#  ifndef HAVE_PIDFD_OPEN
+ static inline int pidfd_open(pid_t pid, unsigned int flags)
+ {
+   return syscall(SYS_pidfd_open, pid, flags);

diff --git 
a/sys-apps/util-linux/files/util-linux-2.35.1-include_sys_types-header.patch 
b/sys-apps/util-linux/files/util-linux-2.35.1-include_sys_types-header.patch
new file mode 100644
index 000..8c646ee73a9
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.35.1-include_sys_types-header.patch
@@ -0,0 +1,58 @@
+From 3cfde0370d3a8949df0c5bcf447cec6692910ed2 Mon Sep 17 00:00:00 2001
+From: Sami Kerola 
+Date: Sat, 15 Feb 2020 21:12:50 +
+Subject: [PATCH] kill: include sys/types.h before checking
+ SYS_pidfd_send_signal
+
+Including sys/types.h must happen before SYS_pidfd_send_signal is checked,
+because that header defines variable in normal conditions.  When sys/types.h
+does not have SYS_pidfd_send_signal then fallback is defined in config.h
+that is included by default, and has therefore worked fine before and after
+this change.
+
+Signed-off-by: Sami Kerola 
+---
+ include/pidfd-utils.h | 18 ++
+ 1 file changed, 10 insertions(+), 8 deletions(-)
+
+diff --git a/include/pidfd-utils.h b/include/pidfd-utils.h
+index 593346576..0baedd2c9 100644
+--- a/include/pidfd-utils.h
 b/include/pidfd-utils.h
+@@ -1,26 +1,28 @@
+ #ifndef UTIL_LINUX_PIDFD_UTILS
+ #define UTIL_LINUX_PIDFD_UTILS
+ 
+-#if defined(__linux__) && defined(SYS_pidfd_send_signal)
+-# include 
++#if defined(__linux__)
+ # include 
++# if defined(SYS_pidfd_send_signal)
++#  include 
+ 
+-# ifndef HAVE_PIDFD_OPEN
++#  ifndef HAVE_PIDFD_OPEN
+ static inline int pidfd_send_signal(int pidfd, int sig, siginfo_t *info,
+   unsigned int flags)
+ {
+   return syscall(SYS_pidfd_send_signal, pidfd, sig, info, flags);
+ }
+-# endif
++#  endif
+ 
+-# ifndef HAVE_PIDFD_SEND_SIGNAL
++#  ifndef HAVE_PIDFD_SEND_SIGNAL
+ static inline int pidfd_open(pid_t pid, unsigned int flags)
+ {
+   return syscall(SYS_pidfd_open, pid, flags);
+ }
+-# endif
++#  endif
+ 
+-# define UL_HAVE_PIDFD 1
++#  define UL_HAVE_PIDFD 1
+ 
+-#endif /* __linux__ && SYS_pidfd_send_signal */
++# endif   /* SYS_pidfd_send_signal */
++#endif /* __linux__ */
+ #endif /* UTIL_LINUX_PIDFD_UTILS */

diff --git a/sys-apps/util-linux/util-linux-2.35.1.ebuild 
b/sys-apps/util-linux/util-linux-2.35.1.ebuild
index c3759ac85c7..6c0d78321cc 100644
--- a/sys-apps/util-linux/util-linux-2.35.1.ebuild
+++ b/sys-apps/util-linux/util-linux-2.35.1.ebuild
@@ -76,6 +76,11 @@ RESTRICT="!test? ( test )"
 
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=(
+   "${FILESDIR}"/util-linux-2.35.1-include_sys_types-header.patch
+   "${FILESDIR}"/util-linux-2.35.1-cleanup-pidfd-include.patch
+)
+
 src_prepare() {
default
 



[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2019-05-30 Thread Lars Wendler
commit: b4ba1268f4634f68b331b3210ae548e7dbbb246a
Author: Lars Wendler  gentoo  org>
AuthorDate: Thu May 30 23:27:36 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Fri May 31 00:58:09 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4ba1268

sys-apps/util-linux: Bump to version 2.34_rc2. Removed old.

Package-Manager: Portage-2.3.67, Repoman-2.3.13
Signed-off-by: Lars Wendler  gentoo.org>

 sys-apps/util-linux/Manifest   |  2 +-
 ...ux-2.34_rc1-lsblk_fix_heap_use_after_free.patch | 23 --
 ...34_rc1-lscpu_floating_point_exception_fix.patch | 28 --
 ...-2.34_rc1.ebuild => util-linux-2.34_rc2.ebuild} | 19 +++
 4 files changed, 9 insertions(+), 63 deletions(-)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index d1e17410555..6ef615f749a 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,4 +1,4 @@
 DIST util-linux-2.33.1.tar.xz 4650936 BLAKE2B 
9ee6bc1a1b800e8537f5552c28cf608f32e89c8ab716434a2de6b4b5e257c53065b9c11cd355f2ef759f69069071ef930790ecd55806deef300ce77f31e38e98
 SHA512 
94ada47e472b62a612c26fd5a5b7423e09366690a8a96f777191a5d920981eb0f224474bc2f128e827299bf60062770011332757e1551a8cd3764b5c70ae4ba2
 DIST util-linux-2.33.2.tar.xz 4707024 BLAKE2B 
fdeed0a236edd26d268bccca8cde2cf1b7ecbff521ede9fa26ea22c8e5cdfc380a416a168789504b303f1b569d163e41f6630ee28829be7f2b2129fa14c4fffa
 SHA512 
ac88790a0272366b384b54df19cb28318014d98819d5d96aa05528ff17ab57a8c66d012a2f1b59caca4c5d4ea669e8c041e1123517c1f1c2d9960ef701aaf749
 DIST util-linux-2.33.tar.xz 4663072 BLAKE2B 
df601f6aa6dd1e77c722d5e7350a3b14c6099057487384eb8cd7adee8693711c1d24663f76682c958884559fddf61cc4b6d987bdca70f88e6cb14109e328e8a9
 SHA512 
5eb419607c5a2634117a604d425d6413763d1e48910acabc7e19d574a4c3fb0ceb34a68671a8e4fe396a4c6d611932082f77cd669d009e218bf64095da0d5689
-DIST util-linux-2.34-rc1.tar.xz 4930092 BLAKE2B 
742322c85c2b92ff16cc95e98da40522350d84c9e72b929d763da882f54ff88e4ff38d1622a2642b88fcb124e9221ff32e26403e5d76cc06bcfeb6c92e450d91
 SHA512 
4f968f04394f6beaafd60a84daf1db808ec486dbfa82d2f58b0678f93adc37477395a1b22c0c2af33f9652c5fa82f8bb3c1ce8b62146c983bce270fe45c1419b
+DIST util-linux-2.34-rc2.tar.xz 4990080 BLAKE2B 
63c7bc91d04e8cde2f67e2fad5a6a4b6ffe7b392d284c29b01b5a89eea26b42436656f8c454445b3718a739674c795c13a41e3a1e1cb2a98e952d02f9283
 SHA512 
54ae5ab146a2f8185dd1e46b363d3f83fd6791eb95f83522307ea59dcf23be93a9496fd1ca10bb09788ebd429c62db8fcde8747ed793c7826340289efb4e77d0

diff --git 
a/sys-apps/util-linux/files/util-linux-2.34_rc1-lsblk_fix_heap_use_after_free.patch
 
b/sys-apps/util-linux/files/util-linux-2.34_rc1-lsblk_fix_heap_use_after_free.patch
deleted file mode 100644
index 41291205c5a..000
--- 
a/sys-apps/util-linux/files/util-linux-2.34_rc1-lsblk_fix_heap_use_after_free.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From f6f8a671a9a45125b6261c08b849833bce0f39a8 Mon Sep 17 00:00:00 2001
-From: Karel Zak 
-Date: Mon, 6 May 2019 12:39:07 +0200
-Subject: [PATCH] lsblk: fix heap-use-after-free
-
-Addresses: https://github.com/karelzak/util-linux/issues/787
-Signed-off-by: Karel Zak 

- misc-utils/lsblk.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
-index 34a6cd9ca..30d5d9b4e 100644
 a/misc-utils/lsblk.c
-+++ b/misc-utils/lsblk.c
-@@ -1560,6 +1560,7 @@ static int process_all_devices(struct lsblk_devtree *tr)
-   if (is_maj_excluded(dev->maj) || !is_maj_included(dev->maj)) {
-   DBG(DEV, ul_debug(" %s: ignore (by filter)", 
d->d_name));
-   lsblk_devtree_remove_device(tr, dev);
-+  dev = NULL;
-   goto next;
-   }
- 

diff --git 
a/sys-apps/util-linux/files/util-linux-2.34_rc1-lscpu_floating_point_exception_fix.patch
 
b/sys-apps/util-linux/files/util-linux-2.34_rc1-lscpu_floating_point_exception_fix.patch
deleted file mode 100644
index b1314e0e44c..000
--- 
a/sys-apps/util-linux/files/util-linux-2.34_rc1-lscpu_floating_point_exception_fix.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 836455917879333e94d4a535aa22f1235b5d4885 Mon Sep 17 00:00:00 2001
-From: Sami Kerola 
-Date: Sat, 18 May 2019 10:19:35 +0100
-Subject: [PATCH] lscpu: fix floating point exception
-
-FIXME: this commit should include vmware_fpe regression test inclusion.
-
-Caused-by: e5f721132ec8b8c933a396d8dcb3efcb67854f13
-Addresses: https://github.com/karelzak/util-linux/issues/788
-Reported-by: Lars Wendler 
-Signed-off-by: Sami Kerola 

- sys-utils/lscpu.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
-index ca7f6a037..7f6277f00 100644
 a/sys-utils/lscpu.c
-+++ b/sys-utils/lscpu.c
-@@ -1925,6 +1925,8 @@ static int get_cache_full_size(struct lscpu_desc *desc,
-   /* Correction for CPU threads */
-   if (desc->nthreads > desc->ncores)
-   nshares /= 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2018-12-29 Thread Mikle Kolyada
commit: b3fc94e26e94fdd3db193a8e77a4f0977d1591a4
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sat Dec 29 17:45:26 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sat Dec 29 17:45:47 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3fc94e2

sys-apps/util-linux: fix set_arch detection for sparc

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 .../files/util-linux-2.33-sparc-setarch.patch  | 80 ++
 sys-apps/util-linux/util-linux-2.33.ebuild |  3 +-
 2 files changed, 82 insertions(+), 1 deletion(-)

diff --git a/sys-apps/util-linux/files/util-linux-2.33-sparc-setarch.patch 
b/sys-apps/util-linux/files/util-linux-2.33-sparc-setarch.patch
new file mode 100644
index 000..cbae6c0f263
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.33-sparc-setarch.patch
@@ -0,0 +1,80 @@
+From 3fa06e049012218d883d0e1251df86bafbc446bf Mon Sep 17 00:00:00 2001
+From: Karel Zak 
+Date: Thu, 22 Nov 2018 11:03:35 +0100
+Subject: [PATCH] setarch: fix obscure sparc32bash use-case
+
+Reported-by: Carlos Santos 
+Signed-off-by: Karel Zak 
+---
+ sys-utils/setarch.c | 28 ++--
+ 1 file changed, 18 insertions(+), 10 deletions(-)
+
+diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c
+index a733f7b3c..7c0a63fbb 100644
+--- a/sys-utils/setarch.c
 b/sys-utils/setarch.c
+@@ -268,6 +268,7 @@ int main(int argc, char *argv[])
+   int c;
+   struct arch_domain *doms, *target;
+   unsigned long pers_value = 0;
++  char *shell = NULL, *shell_arg = NULL;
+ 
+   /* Options without equivalent short options */
+   enum {
+@@ -310,14 +311,14 @@ int main(int argc, char *argv[])
+   archwrapper = strcmp(program_invocation_short_name, "setarch") != 0;
+   if (archwrapper) {
+   arch = program_invocation_short_name;   /* symlinks to setarch 
*/
+-#if defined(__sparc64__) || defined(__sparc__)
++
++  /* Don't use ifdef sparc here, we get "Unrecognized 
architecture"
++   * error message later if necessary */
+   if (strcmp(arch, "sparc32bash") == 0) {
+-  if (set_arch(arch, 0L, 0))
+-  err(EXIT_FAILURE, _("Failed to set personality 
to %s"), arch);
+-  execl("/bin/bash", "", NULL);
+-  errexec("/bin/bash");
++  shell = "/bin/bash";
++  shell_arg = "";
++  goto set_arch;
+   }
+-#endif
+   } else {
+   if (1 < argc && *argv[1] != '-') {
+   arch = argv[1];
+@@ -391,6 +392,7 @@ int main(int argc, char *argv[])
+   argc -= optind;
+   argv += optind;
+ 
++set_arch:
+   /* get execution domain (architecture) */
+   if (arch) {
+   doms = init_arch_domains();
+@@ -422,17 +424,23 @@ int main(int argc, char *argv[])
+   if (arch)
+   verify_arch_domain(target, arch);
+ 
++  if (!argc) {
++  shell = "/bin/sh";
++  shell_arg = "-sh";
++  }
+   if (verbose) {
+-  printf(_("Execute command `%s'.\n"), argc ? argv[0] : 
"/bin/sh");
++  printf(_("Execute command `%s'.\n"), shell ? shell : argv[0]);
+   /* flush all output streams before exec */
+   fflush(NULL);
+   }
+ 
+-  if (!argc) {
+-  execl("/bin/sh", "-sh", NULL);
+-  errexec("/bin/sh");
++  /* Execute shell */
++  if (shell) {
++  execl(shell, shell_arg, NULL);
++  errexec(shell);
+   }
+ 
++  /* Execute on command line specified command */
+   execvp(argv[0], argv);
+   errexec(argv[0]);
+ }

diff --git a/sys-apps/util-linux/util-linux-2.33.ebuild 
b/sys-apps/util-linux/util-linux-2.33.ebuild
index c95e045cc20..cf66f3c521b 100644
--- a/sys-apps/util-linux/util-linux-2.33.ebuild
+++ b/sys-apps/util-linux/util-linux-2.33.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation and others
+# Copyright 1999-2018 Gentoo Authors and others
 # Copyright 2018 Sony Interactive Entertainment Inc.
 # Distributed under the terms of the GNU General Public License v2
 
@@ -65,6 +65,7 @@ S="${WORKDIR}/${MY_P}"
 
 PATCHES=(

"${FILESDIR}/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch"
+   "${FILESDIR}/${P}-sparc-setarch.patch"
 )
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2018-07-13 Thread Patrick McLean
commit: 94c60fe1a9fe3baeff8163e7197c4ce93ef199f8
Author: Patrick McLean  gentoo  org>
AuthorDate: Fri Jul 13 16:41:31 2018 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Fri Jul 13 16:41:31 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94c60fe1

sys-apps/util-linux: Revbump to 2.32-r5, fix tests with py3 #624132

Revert back to unstable since we are adding a patch from upstream git.
Patch is from here: https://github.com/karelzak/util-linux/pull/664

Bug: https://bugs.gentoo.org/624132
Package-Manager: Portage-2.3.42, Repoman-2.3.9

 .../files/util-linux-2.32-python3-tests.patch  | 105 +
 sys-apps/util-linux/util-linux-2.32-r5.ebuild  | 242 +
 2 files changed, 347 insertions(+)

diff --git a/sys-apps/util-linux/files/util-linux-2.32-python3-tests.patch 
b/sys-apps/util-linux/files/util-linux-2.32-python3-tests.patch
new file mode 100644
index 000..7b8867ba034
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.32-python3-tests.patch
@@ -0,0 +1,105 @@
+From 8a12ab57755afc36546834f175ef0b9e9376ba59 Mon Sep 17 00:00:00 2001
+From: Frank Schaefer 
+Date: Tue, 10 Jul 2018 20:21:02 -0500
+Subject: [PATCH] * break up large strings for PySys_WriteStdout()
+
+---
+ libmount/python/fs.c | 56 
+ 1 file changed, 43 insertions(+), 13 deletions(-)
+
+diff --git a/libmount/python/fs.c b/libmount/python/fs.c
+index d6490d248..634a914ef 100644
+--- a/libmount/python/fs.c
 b/libmount/python/fs.c
+@@ -63,32 +63,62 @@ static PyObject *Fs_get_devno(FsObject *self)
+   return PyObjectResultInt(mnt_fs_get_devno(self->fs));
+ }
+ 
++static void _dump_debug_string(const char *lead, const char *s, char quote)
++{
++  /* PySys_WriteStdout() will automatically truncate any '%s' token
++   * longer than a certain length (documented as 1000 bytes, but we
++   * give ourselves some margin here just in case).  The only way I
++   * know to get around this is to print such strings in bite-sized
++   * chunks.
++   */
++  static const unsigned int _PY_MAX_LEN = 900;
++  static const char *_PY_MAX_LEN_FMT = "%.900s";
++  unsigned int len;
++
++  if (lead != NULL)
++  PySys_WriteStdout("%s", lead);
++
++  if (quote != 0)
++  PySys_WriteStdout("%c", quote);
++
++  for (len = strlen(s); len > _PY_MAX_LEN; len -= _PY_MAX_LEN, s += 
_PY_MAX_LEN) 
++  PySys_WriteStdout(_PY_MAX_LEN_FMT, s);
++
++  if (len > 0)
++  PySys_WriteStdout(_PY_MAX_LEN_FMT, s);
++
++  if (quote != 0)
++  PySys_WriteStdout("%c\n", quote);
++  else
++  PySys_WriteStdout("\n");
++}
++
+ #define Fs_print_debug_HELP "print_debug()\n\n"
+ static PyObject *Fs_print_debug(FsObject *self)
+ {
+   PySys_WriteStdout("-- fs: %p\n", self->fs);
+-  PySys_WriteStdout("source: %s\n", mnt_fs_get_source(self->fs));
+-  PySys_WriteStdout("target: %s\n", mnt_fs_get_target(self->fs));
+-  PySys_WriteStdout("fstype: %s\n", mnt_fs_get_fstype(self->fs));
++  _dump_debug_string("source: ", mnt_fs_get_source(self->fs), 0);
++  _dump_debug_string("target: ", mnt_fs_get_target(self->fs), 0);
++  _dump_debug_string("fstype: ", mnt_fs_get_fstype(self->fs), 0);
+ 
+   if (mnt_fs_get_options(self->fs))
+-  PySys_WriteStdout("optstr: %s\n", mnt_fs_get_options(self->fs));
++  _dump_debug_string("optstr: ", mnt_fs_get_options(self->fs), 0);
+   if (mnt_fs_get_vfs_options(self->fs))
+-  PySys_WriteStdout("VFS-optstr: %s\n", 
mnt_fs_get_vfs_options(self->fs));
++  _dump_debug_string("VFS-optstr: ", 
mnt_fs_get_vfs_options(self->fs), 0);
+   if (mnt_fs_get_fs_options(self->fs))
+-  PySys_WriteStdout("FS-opstr: %s\n", 
mnt_fs_get_fs_options(self->fs));
++  _dump_debug_string("FS-opstr: ", 
mnt_fs_get_fs_options(self->fs), 0);
+   if (mnt_fs_get_user_options(self->fs))
+-  PySys_WriteStdout("user-optstr: %s\n", 
mnt_fs_get_user_options(self->fs));
++  _dump_debug_string("user-optstr: ", 
mnt_fs_get_user_options(self->fs), 0);
+   if (mnt_fs_get_optional_fields(self->fs))
+-  PySys_WriteStdout("optional-fields: '%s'\n", 
mnt_fs_get_optional_fields(self->fs));
++  _dump_debug_string("optional-fields: ", 
mnt_fs_get_optional_fields(self->fs), '\'');
+   if (mnt_fs_get_attributes(self->fs))
+-  PySys_WriteStdout("attributes: %s\n", 
mnt_fs_get_attributes(self->fs));
++  _dump_debug_string("attributes: ", 
mnt_fs_get_attributes(self->fs), 0);
+ 
+   if (mnt_fs_get_root(self->fs))
+-  PySys_WriteStdout("root:   %s\n", mnt_fs_get_root(self->fs));
++  _dump_debug_string("root:   ", mnt_fs_get_root(self->fs), 0);
+ 
+   if (mnt_fs_get_swaptype(self->fs))
+-  PySys_WriteStdout("swaptype: %s\n", 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2018-04-10 Thread Thomas Deutschmann
commit: 92895a39a8deb689e5e8d663dddcb257d97a7bb7
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Tue Apr 10 19:13:10 2018 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Tue Apr 10 19:29:11 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92895a39

sys-apps/util-linux: Rev bump to add missing -lintl

Bugs: https://bugs.gentoo.org/652674
Package-Manager: Portage-2.3.28, Repoman-2.3.9

 .../files/util-linux-2.32-add-missing-lintl.patch  | 38 ++
 ...ux-2.32-r1.ebuild => util-linux-2.32-r2.ebuild} |  4 +++
 2 files changed, 42 insertions(+)

diff --git a/sys-apps/util-linux/files/util-linux-2.32-add-missing-lintl.patch 
b/sys-apps/util-linux/files/util-linux-2.32-add-missing-lintl.patch
new file mode 100644
index 000..8cca093d7cb
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.32-add-missing-lintl.patch
@@ -0,0 +1,38 @@
+From 3188ea9a9292604e537f06f11adddf474fc9e52d Mon Sep 17 00:00:00 2001
+From: Karel Zak 
+Date: Mon, 9 Apr 2018 12:11:36 +0200
+Subject: [PATCH] build: Add missing -lintl linkage to lib{smartcols,uuid}
+
+Addresses: https://github.com/karelzak/util-linux/pull/615
+Signed-off-by: Karel Zak 
+---
+ libsmartcols/src/Makemodule.am | 2 +-
+ libuuid/src/Makemodule.am  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/libsmartcols/src/Makemodule.am b/libsmartcols/src/Makemodule.am
+index 664aca30b..665b2aa7f 100644
+--- a/libsmartcols/src/Makemodule.am
 b/libsmartcols/src/Makemodule.am
+@@ -19,7 +19,7 @@ libsmartcols_la_SOURCES= \
+   libsmartcols/src/version.c \
+   libsmartcols/src/init.c
+ 
+-libsmartcols_la_LIBADD = libcommon.la
++libsmartcols_la_LIBADD = $(LDADD) libcommon.la
+ 
+ libsmartcols_la_CFLAGS = \
+   $(AM_CFLAGS) \
+diff --git a/libuuid/src/Makemodule.am b/libuuid/src/Makemodule.am
+index 5122622a5..e58fa261c 100644
+--- a/libuuid/src/Makemodule.am
 b/libuuid/src/Makemodule.am
+@@ -31,7 +31,7 @@ libuuid_la_SOURCES = \
+ EXTRA_libuuid_la_DEPENDENCIES = \
+   libuuid/src/libuuid.sym
+ 
+-libuuid_la_LIBADD   = $(SOCKET_LIBS)
++libuuid_la_LIBADD   = $(LDADD) $(SOCKET_LIBS)
+ 
+ libuuid_la_CFLAGS = \
+   $(AM_CFLAGS) \

diff --git a/sys-apps/util-linux/util-linux-2.32-r1.ebuild 
b/sys-apps/util-linux/util-linux-2.32-r2.ebuild
similarity index 97%
rename from sys-apps/util-linux/util-linux-2.32-r1.ebuild
rename to sys-apps/util-linux/util-linux-2.32-r2.ebuild
index 6d113163470..b616055b934 100644
--- a/sys-apps/util-linux/util-linux-2.32-r1.ebuild
+++ b/sys-apps/util-linux/util-linux-2.32-r2.ebuild
@@ -68,6 +68,10 @@ pkg_setup() {
 src_prepare() {
default
 
+   eapply "${FILESDIR}"/${P}-add-missing-lintl.patch
+   touch -r "${S}"/configure "${S}"/libsmartcols/src/Makemodule.am || die
+   touch -r "${S}"/configure "${S}"/libuuid/src/Makemodule.am || die
+
# Prevent uuidd test failure due to socket path limit. #593304
sed -i \
-e "s|UUIDD_SOCKET=\"\$(mktemp -u 
\"\${TS_OUTDIR}/uuiddX\")\"|UUIDD_SOCKET=\"\$(mktemp -u 
\"${T}/uuiddX.sock\")\"|g" \



[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2017-12-17 Thread Lars Wendler
commit: 0c2433fca87fbcb2c38b69deb3267605de4c5e33
Author: Lars Wendler  gentoo  org>
AuthorDate: Sun Dec 17 15:41:40 2017 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Sun Dec 17 15:48:28 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c2433fc

sys-apps/util-linux: Fixed too generic symbols with USE="static".

Bug: https://bugs.gentoo.org/641226
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../util-linux-2.31-too_generic_symbols_pt1.patch  | 207 
 .../util-linux-2.31-too_generic_symbols_pt2.patch  | 355 +
 .../util-linux-2.31-too_generic_symbols_pt3.patch  |  43 +++
 sys-apps/util-linux/util-linux-2.31-r1.ebuild  | 206 
 4 files changed, 811 insertions(+)

diff --git 
a/sys-apps/util-linux/files/util-linux-2.31-too_generic_symbols_pt1.patch 
b/sys-apps/util-linux/files/util-linux-2.31-too_generic_symbols_pt1.patch
new file mode 100644
index 000..aa296d2bf2f
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.31-too_generic_symbols_pt1.patch
@@ -0,0 +1,207 @@
+From ff5feb96ec70e8a3fde41bd591b28c9855dab3fc Mon Sep 17 00:00:00 2001
+From: Karel Zak 
+Date: Tue, 12 Dec 2017 11:29:02 +0100
+Subject: [PATCH] lib/sha1: use ul_/UL_prefix for symbols
+
+Unfortunately, the symbols are visible in statically compiled libuuid
+and the names are too generic.
+
+Addresses: https://github.com/karelzak/util-linux/issues/548
+Signed-off-by: Karel Zak 
+---
+ include/sha1.h | 49 +++--
+ lib/sha1.c | 34 +-
+ libuuid/src/gen_uuid.c | 12 ++--
+ 3 files changed, 38 insertions(+), 57 deletions(-)
+
+diff --git a/include/sha1.h b/include/sha1.h
+index 5c28bce92..62af1da6f 100644
+--- a/include/sha1.h
 b/include/sha1.h
+@@ -1,5 +1,5 @@
+-#ifndef SHA1_H
+-#define SHA1_H
++#ifndef UTIL_LINUX_SHA1_H
++#define UTIL_LINUX_SHA1_H
+ 
+ /*
+SHA-1 in C
+@@ -9,38 +9,19 @@
+ 
+ #include "stdint.h"
+ 
+-#define SHA1LENGTH20
++#define UL_SHA1LENGTH 20
+ 
+ typedef struct
+ {
+-uint32_t state[5];
+-uint32_t count[2];
+-unsigned char buffer[64];
+-} SHA1_CTX;
+-
+-void SHA1Transform(
+-uint32_t state[5],
+-const unsigned char buffer[64]
+-);
+-
+-void SHA1Init(
+-SHA1_CTX * context
+-);
+-
+-void SHA1Update(
+-SHA1_CTX * context,
+-const unsigned char *data,
+-uint32_t len
+-);
+-
+-void SHA1Final(
+-unsigned char digest[SHA1LENGTH],
+-SHA1_CTX * context
+-);
+-
+-void SHA1(
+-char *hash_out,
+-const char *str,
+-unsigned len);
+-
+-#endif /* SHA1_H */
++uint32_t  state[5];
++uint32_t  count[2];
++unsigned  char buffer[64];
++} UL_SHA1_CTX;
++
++void ul_SHA1Transform(uint32_t state[5], const unsigned char buffer[64]);
++void ul_SHA1Init(UL_SHA1_CTX *context);
++void ul_SHA1Update(UL_SHA1_CTX *context, const unsigned char *data, uint32_t 
len);
++void ul_SHA1Final(unsigned char digest[UL_SHA1LENGTH], UL_SHA1_CTX *context);
++void ul_SHA1(char *hash_out, const char *str, unsigned len);
++
++#endif /* UTIL_LINUX_SHA1_H */
+diff --git a/lib/sha1.c b/lib/sha1.c
+index a2ac7f8ef..62c036774 100644
+--- a/lib/sha1.c
 b/lib/sha1.c
+@@ -51,7 +51,7 @@ A million repetitions of "a"
+ 
+ /* Hash a single 512-bit block. This is the core of the algorithm. */
+ 
+-void SHA1Transform(
++void ul_SHA1Transform(
+ uint32_t state[5],
+ const unsigned char buffer[64]
+ )
+@@ -179,8 +179,8 @@ void SHA1Transform(
+ 
+ /* SHA1Init - Initialize new context */
+ 
+-void SHA1Init(
+-SHA1_CTX * context
++void ul_SHA1Init(
++UL_SHA1_CTX * context
+ )
+ {
+ /* SHA1 initialization constants */
+@@ -195,8 +195,8 @@ void SHA1Init(
+ 
+ /* Run your data through this. */
+ 
+-void SHA1Update(
+-SHA1_CTX * context,
++void ul_SHA1Update(
++UL_SHA1_CTX * context,
+ const unsigned char *data,
+ uint32_t len
+ )
+@@ -213,10 +213,10 @@ void SHA1Update(
+ if ((j + len) > 63)
+ {
+ memcpy(>buffer[j], data, (i = 64 - j));
+-SHA1Transform(context->state, context->buffer);
++ul_SHA1Transform(context->state, context->buffer);
+ for (; i + 63 < len; i += 64)
+ {
+-SHA1Transform(context->state, [i]);
++ul_SHA1Transform(context->state, [i]);
+ }
+ j = 0;
+ }
+@@ -228,9 +228,9 @@ void SHA1Update(
+ 
+ /* Add padding and return the message digest. */
+ 
+-void SHA1Final(
++void ul_SHA1Final(
+ unsigned char digest[20],
+-SHA1_CTX * context
++UL_SHA1_CTX * context
+ )
+ {
+ unsigned i;
+@@ -262,13 +262,13 @@ void SHA1Final(
+ }
+ #endif
+ c = 0200;
+-SHA1Update(context, , 1);
++ul_SHA1Update(context, , 1);
+ while ((context->count[0] & 504) != 448)
+ {
+ c = ;
+-SHA1Update(context, , 1);
++ul_SHA1Update(context, , 1);
+ }
+-

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2017-06-08 Thread Lars Wendler
commit: 73318be505bc35e10cd9b4ec43b04c38cdb7da2f
Author: Lars Wendler  gentoo  org>
AuthorDate: Thu Jun  8 23:21:43 2017 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Fri Jun  9 01:18:43 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73318be5

sys-apps/util-linux: Bump to version 2.30. Removed old.

Also fix pylibmount segfault with python3.6 (bug #621176).

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 sys-apps/util-linux/Manifest   |  2 +-
 .../util-linux-2.30-pylibmount_segfault.patch  | 25 ++
 ...inux-2.30_rc2.ebuild => util-linux-2.30.ebuild} |  6 ++
 3 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index cc57bb33ef8..21f4ab9dce9 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -2,4 +2,4 @@ DIST util-linux-2.26.2.tar.xz 3863868 SHA256 
0e29bda142528a48a0a953c39ff63093651
 DIST util-linux-2.28.2.tar.xz 4149700 SHA256 
b89d37146f20bede93a42c847bce881a17e6dbd8066ff2db2bee733fa409f0cd SHA512 
ac1c2d4c92bbc4eabed464cb0334c1d9b21e58df0f07f0b26e7adcfa188879de8632d195b65a4358c5e11e14ac6e09a1c6206265bbf1fab4ce122414bee7e940
 WHIRLPOOL 
1735e33620dba30cc1f42e60b707adb72234006b7fea242ac98c389295617bd0225563bcffa76b9d0753dfa100775dd9a2b73614843645ce667db5536842e308
 DIST util-linux-2.29.1.tar.xz 4278756 SHA256 
0ce40600b934ec2fecfa6bfc4efe6982d051ba96c2832b05201347aec582f54f SHA512 
221fc7651eb0534c55206eaf9184b2eb55d9f838cd0e1623cadac5d4ac57a118d96cdd770b6492b39381dd1316b81553866bc0f8c25dbb52dac9641f2fa0f7fa
 WHIRLPOOL 
d509168960b0ad54ade4d03dc39dca1dcf0bb0a5b51a594f04bc02ff3a6c89fc5966cff4653dfc826f75f8864497da600c7a86039099845b98e6f9d7981cff98
 DIST util-linux-2.29.2.tar.xz 4277668 SHA256 
accea4d678209f97f634f40a93b7e9fcad5915d1f4749f6c47bee6bf110fe8e3 SHA512 
0a87e6758531f74276f3de7607ef545f324b9b36b444aa5d163140c5fb0f4f7602655d7ec9939f92550dcb320d922cd69521a2183199d463795e67d3c27fce79
 WHIRLPOOL 
1f45711e593c76c6e208a28892ed2bf2622adb5fa1334867e13c6bf775a8903c2f1ebf18c3238d96fe139c5b60d61abf496251cf594a339209ce044f2bb8c17a
-DIST util-linux-2.30-rc2.tar.xz 4376864 SHA256 
5cdb28f6221ab68cb593c5e3fb01bb7cce9466a42bad031411eea6b5adc08c5d SHA512 
df03ca776af6838c06387e017fdf38abb29adc1d29df56ce7c55d1df5a5ab16d6123e649c63734e75a0239f89b994147f261edd5e78e16881fd5ec12a4365763
 WHIRLPOOL 
7961bbc51117dd7ee2768ecfaef20758db882bdd888ff0495cba41860caf91354a78332d5131bdedb0cbb7fa2380485e15bbbc80ee8cd6f927787816c9d04e83
+DIST util-linux-2.30.tar.xz 4478016 SHA256 
c208a4ff6906cb7f57940aa5bc3a6eed146e50a7cc0a092f52ef2ab65057a08d SHA512 
30e311768718508066829567200e975fd08a22360915b27c8839f368fe6d84c8eca6c2f69a60f113d934eea9934e49f05cd98c3db7fd6bc5ad8f7f770badbc97
 WHIRLPOOL 
11749d9842e6de9ba0b164b533ac6eeae26557eed8da601eedc1505c5da88d0a6ef25586efb17c68ba0644a5ba8110188587c197f360b75191f1d4f90691d23b

diff --git 
a/sys-apps/util-linux/files/util-linux-2.30-pylibmount_segfault.patch 
b/sys-apps/util-linux/files/util-linux-2.30-pylibmount_segfault.patch
new file mode 100644
index 000..73fbc994923
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.30-pylibmount_segfault.patch
@@ -0,0 +1,25 @@
+https://bugs.gentoo.org/621176
+
+From 29b721bc9d20ed44858017689ce1745c220bd0d4 Mon Sep 17 00:00:00 2001
+From: Zac Medico 
+Date: Wed, 7 Jun 2017 17:21:33 -0700
+Subject: [PATCH] pylibmount: NULL terminate kwlist in Context_init
+
+Fixes a segfault observed with python3.6.
+---
+ libmount/python/context.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libmount/python/context.c b/libmount/python/context.c
+index 6d82e1432..982414d01 100644
+--- a/libmount/python/context.c
 b/libmount/python/context.c
+@@ -90,7 +90,7 @@ static int Context_init(ContextObjext *self, PyObject *args, 
PyObject *kwds)
+   "source", "target", "fstype",
+   "options", "mflags", "fstype_pattern",
+   "options_pattern", "fs", "fstab",
+-  "optsmode"
++  "optsmode", NULL
+   };
+ 
+   if (!PyArg_ParseTupleAndKeywords(

diff --git a/sys-apps/util-linux/util-linux-2.30_rc2.ebuild 
b/sys-apps/util-linux/util-linux-2.30.ebuild
similarity index 98%
rename from sys-apps/util-linux/util-linux-2.30_rc2.ebuild
rename to sys-apps/util-linux/util-linux-2.30.ebuild
index 37dbeaf6c98..b016bb8652f 100644
--- a/sys-apps/util-linux/util-linux-2.30_rc2.ebuild
+++ b/sys-apps/util-linux/util-linux-2.30.ebuild
@@ -61,11 +61,17 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=(
+   "${FILESDIR}"/${PN}-2.30-pylibmount_segfault.patch
+)
+
 pkg_setup() {
use python && python-single-r1_pkg_setup
 }
 
 src_prepare() {
+   epatch "${PATCHES[@]}"
+
if [[ ${PV} ==  ]] ; then
po/update-potfiles
eautoreconf



[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2017-01-20 Thread Lars Wendler
commit: e422bb8f40b88a7317718049ab1e8eaa6801c91f
Author: Lars Wendler  gentoo  org>
AuthorDate: Sat Jan 21 00:36:10 2017 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Sat Jan 21 00:36:10 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e422bb8f

sys-apps/util-linux: Removed old.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 sys-apps/util-linux/Manifest   |   1 -
 .../files/util-linux-2.27.1-sysmacros.patch| 278 -
 sys-apps/util-linux/util-linux-2.27.1.ebuild   | 186 --
 3 files changed, 465 deletions(-)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index adaf831..7cadb19 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,5 +1,4 @@
 DIST util-linux-2.26.2.tar.xz 3863868 SHA256 
0e29bda142528a48a0a953c39ff63093651a4809042e1790fbd6aa8663fd9666 SHA512 
1cb8e2f32882b3f496d31c250a45cfb61bedb79f7a2802b358c23134d4257fa9bc9cdecfa1aaba12109f82b93345c6dc0bec2d11629ffa084f2a4476a91b
 WHIRLPOOL 
699ff057f9930fe53f44090817c64ffe089345e7aba4c836e18cd3d201add805640b0e41b8d60bc08e3632be919025417feb9c2ddda454c87821a59122ed
-DIST util-linux-2.27.1.tar.xz 3964512 SHA256 
0a818fcdede99aec43ffe6ca5b5388bff80d162f2f7bd4541dca94fecb87a290 SHA512 
a450a0c2d26a6deaf5e53b8f6bddf59409aefb1f0aaf07393f68a418408fbc62c5da353c8ba53c7cac8ea6e3dddfad59161753d888c31f5ccea445e81accbad8
 WHIRLPOOL 
b0641f013762a667efcb2fabe6e3e09dd09252835d841e25cde506aca3a74876ad34f8130f3227683c7e8f19359205c4014dfcd9055d860ae6e3e54621478639
 DIST util-linux-2.28.2.tar.xz 4149700 SHA256 
b89d37146f20bede93a42c847bce881a17e6dbd8066ff2db2bee733fa409f0cd SHA512 
ac1c2d4c92bbc4eabed464cb0334c1d9b21e58df0f07f0b26e7adcfa188879de8632d195b65a4358c5e11e14ac6e09a1c6206265bbf1fab4ce122414bee7e940
 WHIRLPOOL 
1735e33620dba30cc1f42e60b707adb72234006b7fea242ac98c389295617bd0225563bcffa76b9d0753dfa100775dd9a2b73614843645ce667db5536842e308
 DIST util-linux-2.29.1.tar.xz 4278756 SHA256 
0ce40600b934ec2fecfa6bfc4efe6982d051ba96c2832b05201347aec582f54f SHA512 
221fc7651eb0534c55206eaf9184b2eb55d9f838cd0e1623cadac5d4ac57a118d96cdd770b6492b39381dd1316b81553866bc0f8c25dbb52dac9641f2fa0f7fa
 WHIRLPOOL 
d509168960b0ad54ade4d03dc39dca1dcf0bb0a5b51a594f04bc02ff3a6c89fc5966cff4653dfc826f75f8864497da600c7a86039099845b98e6f9d7981cff98
 DIST util-linux-2.29.tar.xz 4249020 SHA256 
2c59ea67cc7b564104f60532f6e0a95fe17a91acb870ba8fd7e986f273abf9e7 SHA512 
ec6d5b2ef49069341dbb805ccdaca7a2e4d6aaa4d06f34c1de24e538ed971bd83749b6c5a6ce75d72d86817edb6b4eb3396579d18cdb523eb02b92427f41d7f3
 WHIRLPOOL 
b07750566086a183175c6ec6eb935ce2e37ffaf5eeca4b58ea7e823c6dfdd63dd52543b7009014ace20ef9cb9be363cfade85bcbfbd4fa7ac388e0eefbb80f05

diff --git a/sys-apps/util-linux/files/util-linux-2.27.1-sysmacros.patch 
b/sys-apps/util-linux/files/util-linux-2.27.1-sysmacros.patch
deleted file mode 100644
index 9c64e07..
--- a/sys-apps/util-linux/files/util-linux-2.27.1-sysmacros.patch
+++ /dev/null
@@ -1,278 +0,0 @@
-From 71cd37a19acef366ff12f322c78c711559764e13 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger 
-Date: Mon, 7 Mar 2016 16:42:05 -0500
-Subject: [PATCH] include sysmacros.h where used
-
-BSD/Linux systems stick major/minor/makedev in sysmacros.h.  Newer Linux
-libraries have been moving away from including sysmacros.h implicitly via
-sys/types.h, so include it directly.
-
-Signed-off-by: Mike Frysinger 

-
-diff --git a/lib/ismounted.c b/lib/ismounted.c
-index f83be65..9b0e447 100644
 a/lib/ismounted.c
-+++ b/lib/ismounted.c
-@@ -18,6 +18,7 @@
- #include 
- #include 
- #include 
-+#include 
- #ifdef __APPLE__
- #include 
- #include 
-diff --git a/lib/sysfs.c b/lib/sysfs.c
-index 9e973a4..4b46459 100644
 a/lib/sysfs.c
-+++ b/lib/sysfs.c
-@@ -7,6 +7,7 @@
-  * Written by Karel Zak 
-  */
- #include 
-+#include 
- 
- #include "c.h"
- #include "at.h"
-diff --git a/login-utils/sulogin-consoles.c b/login-utils/sulogin-consoles.c
-index fe8eab1..56f5336 100644
 a/login-utils/sulogin-consoles.c
-+++ b/login-utils/sulogin-consoles.c
-@@ -27,6 +27,7 @@
- #include 
- #include 
- #include 
-+#include 
- #include 
- #include 
- #include 
-diff --git a/libblkid/src/devname.c b/libblkid/src/devname.c
-index dbbe5b5..d583800 100644
 a/libblkid/src/devname.c
-+++ b/libblkid/src/devname.c
-@@ -25,6 +25,7 @@
- #ifdef HAVE_SYS_TYPES_H
- #include 
- #endif
-+#include 
- #include 
- #ifdef HAVE_SYS_STAT_H
- #include 
-diff --git a/libblkid/src/devno.c b/libblkid/src/devno.c
-index 58fbce5..4b8f3db 100644
 a/libblkid/src/devno.c
-+++ b/libblkid/src/devno.c
-@@ -31,6 +31,7 @@
- #endif
- #include 
- #include 
-+#include 
- 
- #include "blkidP.h"
- #include "pathnames.h"
-diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c
-index cee7008..29b4428 100644
 a/libmount/src/tab_parse.c
-+++ b/libmount/src/tab_parse.c
-@@ -16,6 +16,7 @@
- #include 
- #include 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2015-09-07 Thread Lars Wendler
commit: 37cdafdff4ec644124e502146d15634325469901
Author: Lars Wendler  gentoo  org>
AuthorDate: Mon Sep  7 14:36:44 2015 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Mon Sep  7 14:37:05 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37cdafdf

sys-apps/util-linux: Removed old.

Package-Manager: portage-2.2.20.1
Signed-off-by: Lars Wendler  gentoo.org>

 sys-apps/util-linux/Manifest   |   5 -
 sys-apps/util-linux/files/crypto-loop.confd|   9 --
 sys-apps/util-linux/files/crypto-loop.initd|  70 
 .../files/util-linux-2.24-fix-fdisk-on-alpha.patch |  13 --
 .../files/util-linux-2.24-last-tests.patch |  86 --
 .../files/util-linux-2.24-skip-last-tests.patch|  41 -
 .../files/util-linux-2.25.1-blkid-probe-fix.patch  |  43 -
 sys-apps/util-linux/metadata.xml   |   1 -
 sys-apps/util-linux/util-linux-2.24.1-r2.ebuild| 147 -
 sys-apps/util-linux/util-linux-2.24.1-r3.ebuild| 174 
 sys-apps/util-linux/util-linux-2.24.2.ebuild   | 177 
 sys-apps/util-linux/util-linux-2.25.1-r1.ebuild| 174 
 sys-apps/util-linux/util-linux-2.25.1.ebuild   | 173 
 sys-apps/util-linux/util-linux-2.25.2-r1.ebuild| 177 
 sys-apps/util-linux/util-linux-2.25.2.ebuild   | 174 
 sys-apps/util-linux/util-linux-2.26.1-r1.ebuild| 178 -
 sys-apps/util-linux/util-linux-2.26.1.ebuild   | 177 
 sys-apps/util-linux/util-linux-2.26.ebuild | 177 
 18 files changed, 1996 deletions(-)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index ff7a239..4a7495b 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,8 +1,3 @@
-DIST util-linux-2.24.1.tar.xz 3543692 SHA256 
835eb6232cfab0118ef2e4fd649de0ba9f5bd1b8cbf9a7d4d84594541dec8410 SHA512 
5636e1c57bd57954518e90ff0f079810cc2927f52bb925dde556ce2744a088577f8adbc19c19b2bd079efd253406767faa44d1de5f557e024762522e647f044b
 WHIRLPOOL 
25862a85788eb1c275c7e06f3d2be8e6a9605811665e06a4b21d1e274fc4a5e19dd03e5c52061ee5d98ce8c86ba757a7f8076683edb603ad0c43c05ab5e52a51
-DIST util-linux-2.24.2.tar.xz 3586580 SHA256 
1243d6c07f1c5b38aa4c3814c81a71c24cba7dafe08942916bf216a90a460ff0 SHA512 
a0c03876ef19fa09e434e3e5362fb3f3e0a254b3b39a623ac7a9a207d06afce00366792244ed0fac86931f8340c046620660f33c3444a07a12037182fc191240
 WHIRLPOOL 
4b8185e1832145c050a8aa0761ae017d846ed58cd7e07710e4c32bf92a8f6e530bddb56dab70c8025eddb4cafafed79e658b0aced3a190b61b508078a438a9ed
-DIST util-linux-2.25.1.tar.xz 3695172 SHA256 
4701305ae22790c3a92ce48e50794fa05b7ee01f4227f419a171c100d08986e8 SHA512 
a670cb4318beed0a455efb339ebea6ec7c5d672e15877e7e25cae2ec9c0795fbe4275b6c85a590467c3de92ab2f64cdcd0427c9a2a6e4c6b76f563592fb7be8d
 WHIRLPOOL 
44c17bd3ad0b05c47bb955b934011b460c3992ea5d5b43977d2001b245820b775e16bedbaa10ff9c223d59b0809674884c76f0dc34d707864d17b49b4deaab9d
 DIST util-linux-2.25.2.tar.xz 3703644 SHA256 
e0457f715b73f4a349e1acb08cb410bf0edc9a74a3f75c357070f31f70e33cd6 SHA512 
cf8c5bde78f844425150c2a81bdecb87aa57bcd5cebd177a78160835627f58037fa2cfe4db26fd8f35eedb3beb499a91492a297a27d065465e2ea0c6218dc387
 WHIRLPOOL 
dd1685f2e694bf3de95acc3ba3170d231426c18c3395a867c815bbd3ab5ee0f07567b49d0ae083ce669c89db711e39fd2b990bc7321985ec2279d78816ec5258
-DIST util-linux-2.26.1.tar.xz 3859740 SHA256 
22dc1c957262e2cbdfb4d524a63d5cd4f219d3ac9b5eab570fc771076799bb6e SHA512 
9321793b3fa219ffc46e10639b9e45094c3cae6c48be4b80e652d9768f40dcedbd49342e17345b61c85f46540a7bd93d118a8e226c315e112bb2e959e2855ad9
 WHIRLPOOL 
1bcd5c3c14c278ec3b10535546706b6830a283fd72e7d1933101bf1ab6ec5b03d9ff7a53745d34a97cbb4d7d1b0e35852bb841be4b53a55c2aca07624bf06fbd
 DIST util-linux-2.26.2.tar.xz 3863868 SHA256 
0e29bda142528a48a0a953c39ff63093651a4809042e1790fbd6aa8663fd9666 SHA512 
1cb8e2f32882b3f496d31c250a45cfb61bedb79f7a2802b358c23134d4257fa9bc9cdecfa1aaba12109f82b93345c6dc0bec2d11629ffa084f2a4476a91b
 WHIRLPOOL 
699ff057f9930fe53f44090817c64ffe089345e7aba4c836e18cd3d201add805640b0e41b8d60bc08e3632be919025417feb9c2ddda454c87821a59122ed
-DIST util-linux-2.26.tar.xz 3847960 SHA256 
a23c6f39dea0ed215ccd589509ffc7bb6f706f6e1a04760f493fb0fd7e93c489 SHA512 
af07d49a433fce683da7bdf9aea5693ad108aa16166e0147716175bd779fe5090029617dd7db153bc0f5efcf7bdd377761a616efd4cca90a87bf317132ede88c
 WHIRLPOOL 
4f7c9463bfe1523819671824de26e051c496c86884ca34b25208762179345c799fe61e566228ebfcbca2f2b63163539e37b06e438a58f562cf7b53f954564150
 DIST util-linux-2.27.tar.xz 3968872 SHA256 
fcbf04e3ef8377fc8369af7f9afee341c5eef9b02dd5a7ce71532d0957e86dc7 SHA512 
06ee17f4801fd3e35fb4cf3717722ea3f709e3dd9f9153510c399742a5cfca341e3a3a400d35a091b74f0de3636e62c7a14b7dd91d63482b7b98b1991aa6fa3c
 WHIRLPOOL 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2015-09-07 Thread Lars Wendler
commit: 2b5775f59fc77e0cf453c92ca79f802f224f90a9
Author: Lars Wendler  gentoo  org>
AuthorDate: Mon Sep  7 20:02:09 2015 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Mon Sep  7 20:02:28 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b5775f5

sys-apps/util-linux: Removed old with respect to bug #559902.

Package-Manager: portage-2.2.20.1
Signed-off-by: Lars Wendler  gentoo.org>

 sys-apps/util-linux/Manifest   |   3 -
 sys-apps/util-linux/files/crypto-loop.confd|   9 --
 sys-apps/util-linux/files/crypto-loop.initd|  70 
 .../files/util-linux-2.25.1-blkid-probe-fix.patch  |  43 -
 sys-apps/util-linux/util-linux-2.24.1-r2.ebuild| 147 -
 sys-apps/util-linux/util-linux-2.25.1-r1.ebuild| 174 
 sys-apps/util-linux/util-linux-2.25.1.ebuild   | 173 
 sys-apps/util-linux/util-linux-2.25.2-r1.ebuild| 177 
 sys-apps/util-linux/util-linux-2.25.2.ebuild   | 174 
 sys-apps/util-linux/util-linux-2.26.1-r1.ebuild| 178 -
 sys-apps/util-linux/util-linux-2.26.1.ebuild   | 177 
 sys-apps/util-linux/util-linux-2.26.ebuild | 177 
 12 files changed, 1502 deletions(-)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index ff7a239..435eed7 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,8 +1,5 @@
 DIST util-linux-2.24.1.tar.xz 3543692 SHA256 
835eb6232cfab0118ef2e4fd649de0ba9f5bd1b8cbf9a7d4d84594541dec8410 SHA512 
5636e1c57bd57954518e90ff0f079810cc2927f52bb925dde556ce2744a088577f8adbc19c19b2bd079efd253406767faa44d1de5f557e024762522e647f044b
 WHIRLPOOL 
25862a85788eb1c275c7e06f3d2be8e6a9605811665e06a4b21d1e274fc4a5e19dd03e5c52061ee5d98ce8c86ba757a7f8076683edb603ad0c43c05ab5e52a51
 DIST util-linux-2.24.2.tar.xz 3586580 SHA256 
1243d6c07f1c5b38aa4c3814c81a71c24cba7dafe08942916bf216a90a460ff0 SHA512 
a0c03876ef19fa09e434e3e5362fb3f3e0a254b3b39a623ac7a9a207d06afce00366792244ed0fac86931f8340c046620660f33c3444a07a12037182fc191240
 WHIRLPOOL 
4b8185e1832145c050a8aa0761ae017d846ed58cd7e07710e4c32bf92a8f6e530bddb56dab70c8025eddb4cafafed79e658b0aced3a190b61b508078a438a9ed
-DIST util-linux-2.25.1.tar.xz 3695172 SHA256 
4701305ae22790c3a92ce48e50794fa05b7ee01f4227f419a171c100d08986e8 SHA512 
a670cb4318beed0a455efb339ebea6ec7c5d672e15877e7e25cae2ec9c0795fbe4275b6c85a590467c3de92ab2f64cdcd0427c9a2a6e4c6b76f563592fb7be8d
 WHIRLPOOL 
44c17bd3ad0b05c47bb955b934011b460c3992ea5d5b43977d2001b245820b775e16bedbaa10ff9c223d59b0809674884c76f0dc34d707864d17b49b4deaab9d
 DIST util-linux-2.25.2.tar.xz 3703644 SHA256 
e0457f715b73f4a349e1acb08cb410bf0edc9a74a3f75c357070f31f70e33cd6 SHA512 
cf8c5bde78f844425150c2a81bdecb87aa57bcd5cebd177a78160835627f58037fa2cfe4db26fd8f35eedb3beb499a91492a297a27d065465e2ea0c6218dc387
 WHIRLPOOL 
dd1685f2e694bf3de95acc3ba3170d231426c18c3395a867c815bbd3ab5ee0f07567b49d0ae083ce669c89db711e39fd2b990bc7321985ec2279d78816ec5258
-DIST util-linux-2.26.1.tar.xz 3859740 SHA256 
22dc1c957262e2cbdfb4d524a63d5cd4f219d3ac9b5eab570fc771076799bb6e SHA512 
9321793b3fa219ffc46e10639b9e45094c3cae6c48be4b80e652d9768f40dcedbd49342e17345b61c85f46540a7bd93d118a8e226c315e112bb2e959e2855ad9
 WHIRLPOOL 
1bcd5c3c14c278ec3b10535546706b6830a283fd72e7d1933101bf1ab6ec5b03d9ff7a53745d34a97cbb4d7d1b0e35852bb841be4b53a55c2aca07624bf06fbd
 DIST util-linux-2.26.2.tar.xz 3863868 SHA256 
0e29bda142528a48a0a953c39ff63093651a4809042e1790fbd6aa8663fd9666 SHA512 
1cb8e2f32882b3f496d31c250a45cfb61bedb79f7a2802b358c23134d4257fa9bc9cdecfa1aaba12109f82b93345c6dc0bec2d11629ffa084f2a4476a91b
 WHIRLPOOL 
699ff057f9930fe53f44090817c64ffe089345e7aba4c836e18cd3d201add805640b0e41b8d60bc08e3632be919025417feb9c2ddda454c87821a59122ed
-DIST util-linux-2.26.tar.xz 3847960 SHA256 
a23c6f39dea0ed215ccd589509ffc7bb6f706f6e1a04760f493fb0fd7e93c489 SHA512 
af07d49a433fce683da7bdf9aea5693ad108aa16166e0147716175bd779fe5090029617dd7db153bc0f5efcf7bdd377761a616efd4cca90a87bf317132ede88c
 WHIRLPOOL 
4f7c9463bfe1523819671824de26e051c496c86884ca34b25208762179345c799fe61e566228ebfcbca2f2b63163539e37b06e438a58f562cf7b53f954564150
 DIST util-linux-2.27.tar.xz 3968872 SHA256 
fcbf04e3ef8377fc8369af7f9afee341c5eef9b02dd5a7ce71532d0957e86dc7 SHA512 
06ee17f4801fd3e35fb4cf3717722ea3f709e3dd9f9153510c399742a5cfca341e3a3a400d35a091b74f0de3636e62c7a14b7dd91d63482b7b98b1991aa6fa3c
 WHIRLPOOL 
da19c56dfe424c59bc982096f08c02d864718f030bbad79661968f1da972ea10e0eacaa2477cda45ec9a3c688d220740ca2c8823918dae5139a943f6c9d8e2a4

diff --git a/sys-apps/util-linux/files/crypto-loop.confd 
b/sys-apps/util-linux/files/crypto-loop.confd
deleted file mode 100644
index 6a88434..000
--- a/sys-apps/util-linux/files/crypto-loop.confd
+++ /dev/null
@@ -1,9 +0,0 @@
-# /etc/conf.d/crypto-loop: Configuration file for /etc/init.d/crypto-loop
-
-# More info can be found in the 

[gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/, sys-apps/util-linux/files/

2015-09-07 Thread Michał Górny
commit: 1cce04532d91c46c4e53d1ced1d6ba86ac1d8669
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Sep  7 18:27:18 2015 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Sep  7 18:27:18 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cce0453

sys-apps/util-linux: Revert "Removed old."

Revert old ebuild removal due to sys-fs/lvm2 dependencies being no
longer satisfiable.

Bug: https://bugs.gentoo.org/show_bug.cgi?id=559902
Reverts: 37cdafdff4ec64 (sys-apps/util-linux: Removed old.)

 sys-apps/util-linux/Manifest   |   5 +
 sys-apps/util-linux/files/crypto-loop.confd|   9 ++
 sys-apps/util-linux/files/crypto-loop.initd|  70 
 .../files/util-linux-2.24-fix-fdisk-on-alpha.patch |  13 ++
 .../files/util-linux-2.24-last-tests.patch |  86 ++
 .../files/util-linux-2.24-skip-last-tests.patch|  41 +
 .../files/util-linux-2.25.1-blkid-probe-fix.patch  |  43 +
 sys-apps/util-linux/metadata.xml   |   1 +
 sys-apps/util-linux/util-linux-2.24.1-r2.ebuild| 147 +
 sys-apps/util-linux/util-linux-2.24.1-r3.ebuild| 174 
 sys-apps/util-linux/util-linux-2.24.2.ebuild   | 177 
 sys-apps/util-linux/util-linux-2.25.1-r1.ebuild| 174 
 sys-apps/util-linux/util-linux-2.25.1.ebuild   | 173 
 sys-apps/util-linux/util-linux-2.25.2-r1.ebuild| 177 
 sys-apps/util-linux/util-linux-2.25.2.ebuild   | 174 
 sys-apps/util-linux/util-linux-2.26.1-r1.ebuild| 178 +
 sys-apps/util-linux/util-linux-2.26.1.ebuild   | 177 
 sys-apps/util-linux/util-linux-2.26.ebuild | 177 
 18 files changed, 1996 insertions(+)

diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
index 4a7495b..ff7a239 100644
--- a/sys-apps/util-linux/Manifest
+++ b/sys-apps/util-linux/Manifest
@@ -1,3 +1,8 @@
+DIST util-linux-2.24.1.tar.xz 3543692 SHA256 
835eb6232cfab0118ef2e4fd649de0ba9f5bd1b8cbf9a7d4d84594541dec8410 SHA512 
5636e1c57bd57954518e90ff0f079810cc2927f52bb925dde556ce2744a088577f8adbc19c19b2bd079efd253406767faa44d1de5f557e024762522e647f044b
 WHIRLPOOL 
25862a85788eb1c275c7e06f3d2be8e6a9605811665e06a4b21d1e274fc4a5e19dd03e5c52061ee5d98ce8c86ba757a7f8076683edb603ad0c43c05ab5e52a51
+DIST util-linux-2.24.2.tar.xz 3586580 SHA256 
1243d6c07f1c5b38aa4c3814c81a71c24cba7dafe08942916bf216a90a460ff0 SHA512 
a0c03876ef19fa09e434e3e5362fb3f3e0a254b3b39a623ac7a9a207d06afce00366792244ed0fac86931f8340c046620660f33c3444a07a12037182fc191240
 WHIRLPOOL 
4b8185e1832145c050a8aa0761ae017d846ed58cd7e07710e4c32bf92a8f6e530bddb56dab70c8025eddb4cafafed79e658b0aced3a190b61b508078a438a9ed
+DIST util-linux-2.25.1.tar.xz 3695172 SHA256 
4701305ae22790c3a92ce48e50794fa05b7ee01f4227f419a171c100d08986e8 SHA512 
a670cb4318beed0a455efb339ebea6ec7c5d672e15877e7e25cae2ec9c0795fbe4275b6c85a590467c3de92ab2f64cdcd0427c9a2a6e4c6b76f563592fb7be8d
 WHIRLPOOL 
44c17bd3ad0b05c47bb955b934011b460c3992ea5d5b43977d2001b245820b775e16bedbaa10ff9c223d59b0809674884c76f0dc34d707864d17b49b4deaab9d
 DIST util-linux-2.25.2.tar.xz 3703644 SHA256 
e0457f715b73f4a349e1acb08cb410bf0edc9a74a3f75c357070f31f70e33cd6 SHA512 
cf8c5bde78f844425150c2a81bdecb87aa57bcd5cebd177a78160835627f58037fa2cfe4db26fd8f35eedb3beb499a91492a297a27d065465e2ea0c6218dc387
 WHIRLPOOL 
dd1685f2e694bf3de95acc3ba3170d231426c18c3395a867c815bbd3ab5ee0f07567b49d0ae083ce669c89db711e39fd2b990bc7321985ec2279d78816ec5258
+DIST util-linux-2.26.1.tar.xz 3859740 SHA256 
22dc1c957262e2cbdfb4d524a63d5cd4f219d3ac9b5eab570fc771076799bb6e SHA512 
9321793b3fa219ffc46e10639b9e45094c3cae6c48be4b80e652d9768f40dcedbd49342e17345b61c85f46540a7bd93d118a8e226c315e112bb2e959e2855ad9
 WHIRLPOOL 
1bcd5c3c14c278ec3b10535546706b6830a283fd72e7d1933101bf1ab6ec5b03d9ff7a53745d34a97cbb4d7d1b0e35852bb841be4b53a55c2aca07624bf06fbd
 DIST util-linux-2.26.2.tar.xz 3863868 SHA256 
0e29bda142528a48a0a953c39ff63093651a4809042e1790fbd6aa8663fd9666 SHA512 
1cb8e2f32882b3f496d31c250a45cfb61bedb79f7a2802b358c23134d4257fa9bc9cdecfa1aaba12109f82b93345c6dc0bec2d11629ffa084f2a4476a91b
 WHIRLPOOL 
699ff057f9930fe53f44090817c64ffe089345e7aba4c836e18cd3d201add805640b0e41b8d60bc08e3632be919025417feb9c2ddda454c87821a59122ed
+DIST util-linux-2.26.tar.xz 3847960 SHA256 
a23c6f39dea0ed215ccd589509ffc7bb6f706f6e1a04760f493fb0fd7e93c489 SHA512 
af07d49a433fce683da7bdf9aea5693ad108aa16166e0147716175bd779fe5090029617dd7db153bc0f5efcf7bdd377761a616efd4cca90a87bf317132ede88c
 WHIRLPOOL 
4f7c9463bfe1523819671824de26e051c496c86884ca34b25208762179345c799fe61e566228ebfcbca2f2b63163539e37b06e438a58f562cf7b53f954564150
 DIST util-linux-2.27.tar.xz 3968872 SHA256 
fcbf04e3ef8377fc8369af7f9afee341c5eef9b02dd5a7ce71532d0957e86dc7 SHA512