summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-12-18 12:03:42 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-12-18 12:03:42 +0000
commit093ede7dc044e88acf62ed3c1d8ca8b58b127190 (patch)
tree85f0f3bef0948248e616046d7651a80cc3982f2e
parent57bf590cc99423f1ef8cffbc86105aca0ee2db71 (diff)
downloadmidipix_build-093ede7dc044e88acf62ed3c1d8ca8b58b127190.tar.bz2
midipix_build-093ede7dc044e88acf62ed3c1d8ca8b58b127190.tar.xz
vars/build.vars:util_linux: updated to v2.34 (via Redfoxmoon.)
vars/build.vars:util_linux:${PKG_CONFIGURE_ARGS_EXTRA}: configure w/ --disable-agetty --disable-lslogins --disable-wall --disable-write --disable-nologin --disable-sulogin --disable-hwclock -- (via Redfoxmoon.) patches/util_linux-2.34.local.patch: via Redfoxmoon.
-rw-r--r--patches/util_linux-2.34.local.patch159
-rw-r--r--vars/build.vars8
2 files changed, 163 insertions, 4 deletions
diff --git a/patches/util_linux-2.34.local.patch b/patches/util_linux-2.34.local.patch
new file mode 100644
index 00000000..432deb84
--- /dev/null
+++ b/patches/util_linux-2.34.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,
diff --git a/vars/build.vars b/vars/build.vars
index f69bac96..99116c90 100644
--- a/vars/build.vars
+++ b/vars/build.vars
@@ -990,10 +990,10 @@ NATIVE_PACKAGES_DEPS_PYTHON="${PREFIX}/bin/python2";
: ${PKG_TCL_VERSION:=8.7a1};
: ${PKG_TCL_URL:=http://kuiper.mirrorservice.org/sites/ftp.tcl.tk/pub/tcl/tcl8_7/tcl${PKG_TCL_VERSION}-src.tar.gz};
: ${PKG_TCL_SUBDIR:=tcl${PKG_TCL_VERSION}/unix};
-: ${PKG_UTIL_LINUX_SHA256SUM:=3bbf9f3d4a33d6653cf0f7e4fc422091b6a38c3b1195c0ee716c67148a1a7122};
-: ${PKG_UTIL_LINUX_VERSION:=2.32.1};
-: ${PKG_UTIL_LINUX_URL:=https://www.kernel.org/pub/linux/utils/util-linux/v${PKG_UTIL_LINUX_VERSION%.*}/util-linux-${PKG_UTIL_LINUX_VERSION}.tar.gz};
-: ${PKG_UTIL_LINUX_CONFIGURE_ARGS_EXTRA:=--disable-agetty --disable-lslogins --disable-wall --disable-write};
+: ${PKG_UTIL_LINUX_SHA256SUM:=b62c92e5e1629642113cd41cec1ee86d1ee7e36b8ffe8ec3ac89c11797e9ac25};
+: ${PKG_UTIL_LINUX_VERSION:=2.34};
+: ${PKG_UTIL_LINUX_URL:=https://www.kernel.org/pub/linux/utils/util-linux/v${PKG_UTIL_LINUX_VERSION}/util-linux-${PKG_UTIL_LINUX_VERSION}.tar.gz};
+: ${PKG_UTIL_LINUX_CONFIGURE_ARGS_EXTRA:=--disable-agetty --disable-lslogins --disable-wall --disable-write --disable-nologin --disable-sulogin --disable-hwclock};
: ${PKG_SLANG_SHA256SUM:=fc9e3b0fc4f67c3c1f6d43c90c16a5c42d117b8e28457c5b46831b8b5d3ae31a};
: ${PKG_SLANG_VERSION:=2.3.2};
: ${PKG_SLANG_URL:=https://www.jedsoft.org/releases/slang/slang-${PKG_SLANG_VERSION}.tar.bz2};