From 00fd5c9fb79e7aa3fc8ec76d7c9480769043a4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Thu, 2 Sep 2021 14:35:51 +0200 Subject: groups/231.native_packages_etc.group: util_linux: bump to v2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ørjan Malde --- groups/231.native_packages_etc.group | 4 +- patches/util_linux-2.37.1.local.patch | 159 ---------------------------------- patches/util_linux-2.37.2.local.patch | 159 ++++++++++++++++++++++++++++++++++ 3 files changed, 161 insertions(+), 161 deletions(-) delete mode 100644 patches/util_linux-2.37.1.local.patch create mode 100644 patches/util_linux-2.37.2.local.patch diff --git a/groups/231.native_packages_etc.group b/groups/231.native_packages_etc.group index e02dbff2..302e11cf 100644 --- a/groups/231.native_packages_etc.group +++ b/groups/231.native_packages_etc.group @@ -484,8 +484,8 @@ tcl_cv_strtod_unbroken=true"}; : ${PKG_TZDB_MAKEFLAGS_INSTALL_EXTRA:="ZIC=${PREFIX}/sbin/zic"}; : ${PKG_UTF8PROC_URLS_GIT:="utf8proc=https://github.com/JuliaStrings/utf8proc@master"}; : ${PKG_UTIL_LINUX_DEPENDS:="ncursesw"}; -: ${PKG_UTIL_LINUX_SHA256SUM:=8e4bd42053b726cf86eb4d13a73bc1d9225a2c2e1a2e0d2a891f1020f83e6b76}; -: ${PKG_UTIL_LINUX_VERSION:=2.37.1}; +: ${PKG_UTIL_LINUX_SHA256SUM:=6a0764c1aae7fb607ef8a6dd2c0f6c47d5e5fd27aa08820abaad9ec14e28e9d9}; +: ${PKG_UTIL_LINUX_VERSION:=2.37.2}; : ${PKG_UTIL_LINUX_URL:=https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v${PKG_UTIL_LINUX_VERSION%.*}/util-linux-${PKG_UTIL_LINUX_VERSION}.tar.xz}; : ${PKG_UTIL_LINUX_CONFIGURE_ARGS_EXTRA:=--disable-agetty --disable-lslogins --disable-wall --disable-write --disable-nologin --disable-sulogin --disable-hwclock --disable-schedutils}; : ${PKG_UTIL_LINUX_CFLAGS_CONFIGURE_EXTRA:=-std=c99}; diff --git a/patches/util_linux-2.37.1.local.patch b/patches/util_linux-2.37.1.local.patch deleted file mode 100644 index 432deb84..00000000 --- a/patches/util_linux-2.37.1.local.patch +++ /dev/null @@ -1,159 +0,0 @@ -diff -ru util-linux-2.34.orig/sys-utils/ipcs.c util-linux-2.34/sys-utils/ipcs.c ---- util-linux-2.34.orig/sys-utils/ipcs.c 2019-04-24 11:02:03.122448801 +0200 -+++ util-linux-2.34/sys-utils/ipcs.c 2019-12-18 11:11:27.423735474 +0100 -@@ -306,7 +306,7 @@ - if (pw) - printf ("%-10d %-10.10s", shmdsp->shm_perm.id, pw->pw_name); - else -- printf ("%-10d %-10u", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); -+ printf ("%-10d %-10lu", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); - /* ctime uses static buffer: use separate calls */ - printf(" %-20.16s", shmdsp->shm_atim - ? xctime(&shmdsp->shm_atim) + 4 : _("Not set")); -@@ -319,7 +319,7 @@ - if (pw) - printf ("%-10d %-10.10s", shmdsp->shm_perm.id, pw->pw_name); - else -- printf ("%-10d %-10u", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); -+ printf ("%-10d %-10lu", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); - printf (" %-10u %-10u\n", - shmdsp->shm_cprid, shmdsp->shm_lprid); - break; -@@ -329,7 +329,7 @@ - if (pw) - printf ("%-10d %-10.10s", shmdsp->shm_perm.id, pw->pw_name); - else -- printf ("%-10d %-10u", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); -+ printf ("%-10d %-10lu", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); - printf (" %-10o ", shmdsp->shm_perm.mode & 0777); - - if (unit == IPC_UNIT_HUMAN) -@@ -425,7 +425,7 @@ - if (pw) - printf ("%-8d %-10.10s", semdsp->sem_perm.id, pw->pw_name); - else -- printf ("%-8d %-10u", semdsp->sem_perm.id, semdsp->sem_perm.uid); -+ printf ("%-8d %-10lu", semdsp->sem_perm.id, semdsp->sem_perm.uid); - printf (" %-26.24s", semdsp->sem_otime - ? xctime(&semdsp->sem_otime) : _("Not set")); - printf (" %-26.24s\n", semdsp->sem_ctime -@@ -439,7 +439,7 @@ - if (pw) - printf ("%-10d %-10.10s", semdsp->sem_perm.id, pw->pw_name); - else -- printf ("%-10d %-10u", semdsp->sem_perm.id, semdsp->sem_perm.uid); -+ printf ("%-10d %-10lu", semdsp->sem_perm.id, semdsp->sem_perm.uid); - printf (" %-10o %-10ju\n", - semdsp->sem_perm.mode & 0777, - semdsp->sem_nsems); -@@ -533,7 +533,7 @@ - if (pw) - printf ("%-8d %-10.10s", msgdsp->msg_perm.id, pw->pw_name); - else -- printf ("%-8d %-10u", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); -+ printf ("%-8d %-10lu", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); - printf (" %-20.16s", msgdsp->q_stime - ? xctime(&msgdsp->q_stime) + 4 : _("Not set")); - printf (" %-20.16s", msgdsp->q_rtime -@@ -545,7 +545,7 @@ - if (pw) - printf ("%-8d %-10.10s", msgdsp->msg_perm.id, pw->pw_name); - else -- printf ("%-8d %-10u", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); -+ printf ("%-8d %-10lu", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); - printf (" %5d %5d\n", - msgdsp->q_lspid, msgdsp->q_lrpid); - break; -@@ -555,7 +555,7 @@ - if (pw) - printf ("%-10d %-10.10s", msgdsp->msg_perm.id, pw->pw_name); - else -- printf ("%-10d %-10u", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); -+ printf ("%-10d %-10lu", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); - printf (" %-10o ", msgdsp->msg_perm.mode & 0777); - - if (unit == IPC_UNIT_HUMAN) -@@ -582,7 +582,7 @@ - } - - printf(_("\nShared memory Segment shmid=%d\n"), shmid); -- printf(_("uid=%u\tgid=%u\tcuid=%u\tcgid=%u\n"), -+ printf(_("uid=%lu\tgid=%lu\tcuid=%lu\tcgid=%lu\n"), - shmdata->shm_perm.uid, shmdata->shm_perm.gid, - shmdata->shm_perm.cuid, shmdata->shm_perm.cgid); - printf(_("mode=%#o\taccess_perms=%#o\n"), shmdata->shm_perm.mode, -@@ -612,7 +612,7 @@ - } - - printf(_("\nMessage Queue msqid=%d\n"), msgid); -- printf(_("uid=%u\tgid=%u\tcuid=%u\tcgid=%u\tmode=%#o\n"), -+ printf(_("uid=%lu\tgid=%lu\tcuid=%lu\tcgid=%lu\tmode=%#o\n"), - msgdata->msg_perm.uid, msgdata->msg_perm.gid, - msgdata->msg_perm.cuid, msgdata->msg_perm.cgid, - msgdata->msg_perm.mode); -@@ -645,7 +645,7 @@ - } - - printf(_("\nSemaphore Array semid=%d\n"), semid); -- printf(_("uid=%u\t gid=%u\t cuid=%u\t cgid=%u\n"), -+ printf(_("uid=%lu\t gid=%lu\t cuid=%lu\t cgid=%lu\n"), - semdata->sem_perm.uid, semdata->sem_perm.gid, - semdata->sem_perm.cuid, semdata->sem_perm.cgid); - printf(_("mode=%#o, access_perms=%#o\n"), -diff -ru util-linux-2.34.orig/sys-utils/ipcutils.c util-linux-2.34/sys-utils/ipcutils.c ---- util-linux-2.34.orig/sys-utils/ipcutils.c 2019-05-23 15:31:58.936589775 +0200 -+++ util-linux-2.34/sys-utils/ipcutils.c 2019-12-18 11:27:34.646919292 +0100 -@@ -120,7 +120,7 @@ - p->shm_swp = 0xdead; - if (sscanf(buf, - "%d %d %o %"SCNu64 " %u %u " -- "%"SCNu64 " %u %u %u %u %"SCNi64 " %"SCNi64 " %"SCNi64 -+ "%"SCNu64 " %lu %lu %lu %lu %"SCNi64 " %"SCNi64 " %"SCNi64 - " %"SCNu64 " %"SCNu64 "\n", - &p->shm_perm.key, - &p->shm_perm.id, -@@ -264,7 +264,7 @@ - - while (feof(f) == 0) { - if (fscanf(f, -- "%d %d %o %" SCNu64 " %u %u %u %u %" -+ "%d %d %o %" SCNu64 " %lu %lu %lu %lu %" - SCNi64 " %" SCNi64 "\n", - &p->sem_perm.key, - &p->sem_perm.id, -@@ -373,7 +373,7 @@ - while (feof(f) == 0) { - if (fscanf(f, - "%d %d %o %" SCNu64 " %" SCNu64 -- " %u %u %u %u %u %u %" SCNi64 " %" SCNi64 " %" SCNi64 "\n", -+ " %u %u %lu %lu %lu %lu %" SCNi64 " %" SCNi64 " %" SCNi64 "\n", - &p->msg_perm.key, - &p->msg_perm.id, - &p->msg_perm.mode, -@@ -474,22 +474,22 @@ - if ((pw = getpwuid(is->cuid))) - fprintf(f, " %-10s", pw->pw_name); - else -- fprintf(f, " %-10u", is->cuid); -+ fprintf(f, " %-10lu", is->cuid); - - if ((gr = getgrgid(is->cgid))) - fprintf(f, " %-10s", gr->gr_name); - else -- fprintf(f, " %-10u", is->cgid); -+ fprintf(f, " %-10lu", is->cgid); - - if ((pw = getpwuid(is->uid))) - fprintf(f, " %-10s", pw->pw_name); - else -- fprintf(f, " %-10u", is->uid); -+ fprintf(f, " %-10lu", is->uid); - - if ((gr = getgrgid(is->gid))) - fprintf(f, " %-10s\n", gr->gr_name); - else -- fprintf(f, " %-10u\n", is->gid); -+ fprintf(f, " %-10lu\n", is->gid); - } - - void ipc_print_size(int unit, char *msg, uint64_t size, const char *end, diff --git a/patches/util_linux-2.37.2.local.patch b/patches/util_linux-2.37.2.local.patch new file mode 100644 index 00000000..432deb84 --- /dev/null +++ b/patches/util_linux-2.37.2.local.patch @@ -0,0 +1,159 @@ +diff -ru util-linux-2.34.orig/sys-utils/ipcs.c util-linux-2.34/sys-utils/ipcs.c +--- util-linux-2.34.orig/sys-utils/ipcs.c 2019-04-24 11:02:03.122448801 +0200 ++++ util-linux-2.34/sys-utils/ipcs.c 2019-12-18 11:11:27.423735474 +0100 +@@ -306,7 +306,7 @@ + if (pw) + printf ("%-10d %-10.10s", shmdsp->shm_perm.id, pw->pw_name); + else +- printf ("%-10d %-10u", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); ++ printf ("%-10d %-10lu", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); + /* ctime uses static buffer: use separate calls */ + printf(" %-20.16s", shmdsp->shm_atim + ? xctime(&shmdsp->shm_atim) + 4 : _("Not set")); +@@ -319,7 +319,7 @@ + if (pw) + printf ("%-10d %-10.10s", shmdsp->shm_perm.id, pw->pw_name); + else +- printf ("%-10d %-10u", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); ++ printf ("%-10d %-10lu", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); + printf (" %-10u %-10u\n", + shmdsp->shm_cprid, shmdsp->shm_lprid); + break; +@@ -329,7 +329,7 @@ + if (pw) + printf ("%-10d %-10.10s", shmdsp->shm_perm.id, pw->pw_name); + else +- printf ("%-10d %-10u", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); ++ printf ("%-10d %-10lu", shmdsp->shm_perm.id, shmdsp->shm_perm.uid); + printf (" %-10o ", shmdsp->shm_perm.mode & 0777); + + if (unit == IPC_UNIT_HUMAN) +@@ -425,7 +425,7 @@ + if (pw) + printf ("%-8d %-10.10s", semdsp->sem_perm.id, pw->pw_name); + else +- printf ("%-8d %-10u", semdsp->sem_perm.id, semdsp->sem_perm.uid); ++ printf ("%-8d %-10lu", semdsp->sem_perm.id, semdsp->sem_perm.uid); + printf (" %-26.24s", semdsp->sem_otime + ? xctime(&semdsp->sem_otime) : _("Not set")); + printf (" %-26.24s\n", semdsp->sem_ctime +@@ -439,7 +439,7 @@ + if (pw) + printf ("%-10d %-10.10s", semdsp->sem_perm.id, pw->pw_name); + else +- printf ("%-10d %-10u", semdsp->sem_perm.id, semdsp->sem_perm.uid); ++ printf ("%-10d %-10lu", semdsp->sem_perm.id, semdsp->sem_perm.uid); + printf (" %-10o %-10ju\n", + semdsp->sem_perm.mode & 0777, + semdsp->sem_nsems); +@@ -533,7 +533,7 @@ + if (pw) + printf ("%-8d %-10.10s", msgdsp->msg_perm.id, pw->pw_name); + else +- printf ("%-8d %-10u", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); ++ printf ("%-8d %-10lu", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); + printf (" %-20.16s", msgdsp->q_stime + ? xctime(&msgdsp->q_stime) + 4 : _("Not set")); + printf (" %-20.16s", msgdsp->q_rtime +@@ -545,7 +545,7 @@ + if (pw) + printf ("%-8d %-10.10s", msgdsp->msg_perm.id, pw->pw_name); + else +- printf ("%-8d %-10u", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); ++ printf ("%-8d %-10lu", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); + printf (" %5d %5d\n", + msgdsp->q_lspid, msgdsp->q_lrpid); + break; +@@ -555,7 +555,7 @@ + if (pw) + printf ("%-10d %-10.10s", msgdsp->msg_perm.id, pw->pw_name); + else +- printf ("%-10d %-10u", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); ++ printf ("%-10d %-10lu", msgdsp->msg_perm.id, msgdsp->msg_perm.uid); + printf (" %-10o ", msgdsp->msg_perm.mode & 0777); + + if (unit == IPC_UNIT_HUMAN) +@@ -582,7 +582,7 @@ + } + + printf(_("\nShared memory Segment shmid=%d\n"), shmid); +- printf(_("uid=%u\tgid=%u\tcuid=%u\tcgid=%u\n"), ++ printf(_("uid=%lu\tgid=%lu\tcuid=%lu\tcgid=%lu\n"), + shmdata->shm_perm.uid, shmdata->shm_perm.gid, + shmdata->shm_perm.cuid, shmdata->shm_perm.cgid); + printf(_("mode=%#o\taccess_perms=%#o\n"), shmdata->shm_perm.mode, +@@ -612,7 +612,7 @@ + } + + printf(_("\nMessage Queue msqid=%d\n"), msgid); +- printf(_("uid=%u\tgid=%u\tcuid=%u\tcgid=%u\tmode=%#o\n"), ++ printf(_("uid=%lu\tgid=%lu\tcuid=%lu\tcgid=%lu\tmode=%#o\n"), + msgdata->msg_perm.uid, msgdata->msg_perm.gid, + msgdata->msg_perm.cuid, msgdata->msg_perm.cgid, + msgdata->msg_perm.mode); +@@ -645,7 +645,7 @@ + } + + printf(_("\nSemaphore Array semid=%d\n"), semid); +- printf(_("uid=%u\t gid=%u\t cuid=%u\t cgid=%u\n"), ++ printf(_("uid=%lu\t gid=%lu\t cuid=%lu\t cgid=%lu\n"), + semdata->sem_perm.uid, semdata->sem_perm.gid, + semdata->sem_perm.cuid, semdata->sem_perm.cgid); + printf(_("mode=%#o, access_perms=%#o\n"), +diff -ru util-linux-2.34.orig/sys-utils/ipcutils.c util-linux-2.34/sys-utils/ipcutils.c +--- util-linux-2.34.orig/sys-utils/ipcutils.c 2019-05-23 15:31:58.936589775 +0200 ++++ util-linux-2.34/sys-utils/ipcutils.c 2019-12-18 11:27:34.646919292 +0100 +@@ -120,7 +120,7 @@ + p->shm_swp = 0xdead; + if (sscanf(buf, + "%d %d %o %"SCNu64 " %u %u " +- "%"SCNu64 " %u %u %u %u %"SCNi64 " %"SCNi64 " %"SCNi64 ++ "%"SCNu64 " %lu %lu %lu %lu %"SCNi64 " %"SCNi64 " %"SCNi64 + " %"SCNu64 " %"SCNu64 "\n", + &p->shm_perm.key, + &p->shm_perm.id, +@@ -264,7 +264,7 @@ + + while (feof(f) == 0) { + if (fscanf(f, +- "%d %d %o %" SCNu64 " %u %u %u %u %" ++ "%d %d %o %" SCNu64 " %lu %lu %lu %lu %" + SCNi64 " %" SCNi64 "\n", + &p->sem_perm.key, + &p->sem_perm.id, +@@ -373,7 +373,7 @@ + while (feof(f) == 0) { + if (fscanf(f, + "%d %d %o %" SCNu64 " %" SCNu64 +- " %u %u %u %u %u %u %" SCNi64 " %" SCNi64 " %" SCNi64 "\n", ++ " %u %u %lu %lu %lu %lu %" SCNi64 " %" SCNi64 " %" SCNi64 "\n", + &p->msg_perm.key, + &p->msg_perm.id, + &p->msg_perm.mode, +@@ -474,22 +474,22 @@ + if ((pw = getpwuid(is->cuid))) + fprintf(f, " %-10s", pw->pw_name); + else +- fprintf(f, " %-10u", is->cuid); ++ fprintf(f, " %-10lu", is->cuid); + + if ((gr = getgrgid(is->cgid))) + fprintf(f, " %-10s", gr->gr_name); + else +- fprintf(f, " %-10u", is->cgid); ++ fprintf(f, " %-10lu", is->cgid); + + if ((pw = getpwuid(is->uid))) + fprintf(f, " %-10s", pw->pw_name); + else +- fprintf(f, " %-10u", is->uid); ++ fprintf(f, " %-10lu", is->uid); + + if ((gr = getgrgid(is->gid))) + fprintf(f, " %-10s\n", gr->gr_name); + else +- fprintf(f, " %-10u\n", is->gid); ++ fprintf(f, " %-10lu\n", is->gid); + } + + void ipc_print_size(int unit, char *msg, uint64_t size, const char *end, -- cgit v1.2.3