From patchwork Thu Sep 24 10:42:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Norbert Lange X-Patchwork-Id: 1370601 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=J9OPmIjk; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bxs7T0JPHz9sTN for ; Thu, 24 Sep 2020 20:42:29 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9BC3887502; Thu, 24 Sep 2020 10:42:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bUkm-RMvtUAo; Thu, 24 Sep 2020 10:42:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E2635874EA; Thu, 24 Sep 2020 10:42:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 01B921BF2C0 for ; Thu, 24 Sep 2020 10:42:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id ED0CF86A75 for ; Thu, 24 Sep 2020 10:42:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w3TY8HVQxNJN for ; Thu, 24 Sep 2020 10:42:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 945F686A2B for ; Thu, 24 Sep 2020 10:42:18 +0000 (UTC) Received: by mail-ed1-f48.google.com with SMTP id e22so2871559edq.6 for ; Thu, 24 Sep 2020 03:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AmR5rH2p2gQr2GxfmirpffTxvx5IMpTYDpz96BBvN4A=; b=J9OPmIjkf2Yv9QJv0LEPjf+ZgJzjyl7taoTe4AhIFZzSbvQMANl5aeTbFH6scbTjTr t3hDLntg6H0sc5xD1N++y2qwCb3GAQM1RVkFvQ3I8tdt0+p+3Vk7eKgTpT4Qlu0MThup UMjb9CzEj7ji/3EuAM13sNiuKPJkWA2G0kJ97aH0uhxBvSyDuNi4Y3PBeZ4g5A4LrvFw xZXvTMMQAS4YIPtccnDnwn74cMxdlqVlQhfPjWsbzfQTO1kbAQzHvS+opEvwL4cLkB7e JZ07kAkI/LJPXlveZftoEJzQwHU1IyCHUPN9B7mk21aTL4BhPGDFeDh+UdQNrmeMZeQ+ 4mMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AmR5rH2p2gQr2GxfmirpffTxvx5IMpTYDpz96BBvN4A=; b=lMReeq7fMzzau1FRKFtplhP95zd1nOlnklEwGOvuuKjranlfgljc7WWDkTEgeHJnnr UVUQhHxIvRUrjcHE6/Xk7YQLe/sFR5o26HNTupFrMsxMdQUmEO5Wn1twB4eDhuLDOdQf VgjxTmLUR7R8o5QD4EQ8FNUHYwqqP4hrY0j9iFAh+CYG5zk8SVz/2+2AOxcdLq1U3FLE YpS1djdVRQecN/wO8gxV3BtIV3r1K5E3Hmom7U+EVDNi1hivyOkzdt8+PGMDjdaXmTOM BSsWq2KlAxdlitDRLQoyRsQIPZ84+oGKryoNjcxLh+ibsYYmQC4sB/nN2tYSqHE4INMj mT7A== X-Gm-Message-State: AOAM532s64JzPx4EQIGDxrwdNvx8JI2xOZQBMpX+quSCj+qwnSFDvQt8 9opVxHcR3sxyAEPUf6HT1ZJBGaIoEx4= X-Google-Smtp-Source: ABdhPJxwH+y/ygeOM2f9vDlJIip6ugxkriVFd1q4Dwx81TGL2QVx8o/w7Le4LMc1fbsuIQPgEgGEZg== X-Received: by 2002:aa7:d747:: with SMTP id a7mr304261eds.304.1600944136339; Thu, 24 Sep 2020 03:42:16 -0700 (PDT) Received: from localhost.localdomain (84-114-45-16.cable.dynamic.surfer.at. [84.114.45.16]) by smtp.gmail.com with ESMTPSA id d24sm2189214edp.17.2020.09.24.03.42.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 03:42:15 -0700 (PDT) From: Norbert Lange To: buildroot@buildroot.org Date: Thu, 24 Sep 2020 12:42:04 +0200 Message-Id: <20200924104205.131437-1-nolange79@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 1/1] package/fakeroot: bump version to 1.25.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Norbert Lange Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This version adds wrappers for getgroups and statx, the latter is used by coreutils 8.32. Removed patches that are now in upstream. Added a patch to fix failure when installing. Signed-off-by: Norbert Lange --- v1->v2 - rebased on master (instead of my private branch) v2->v3 - use debian.snapshot as source URL Signed-off-by: Norbert Lange --- package/fakeroot/0001-hide-dlsym-error.patch | 34 -------- package/fakeroot/0001-skip-doc-subdirs.patch | 14 ++++ ...nicate-check-return-status-of-msgrcv.patch | 46 ----------- ...003-Select-TCP-when-lack-of-SYSV-IPC.patch | 77 ------------------- ...Fix-forwarding-fchownat-fchmod-flags.patch | 28 ------- package/fakeroot/fakeroot.hash | 8 +- package/fakeroot/fakeroot.mk | 8 +- 7 files changed, 21 insertions(+), 194 deletions(-) delete mode 100644 package/fakeroot/0001-hide-dlsym-error.patch create mode 100644 package/fakeroot/0001-skip-doc-subdirs.patch delete mode 100644 package/fakeroot/0002-communicate-check-return-status-of-msgrcv.patch delete mode 100644 package/fakeroot/0003-Select-TCP-when-lack-of-SYSV-IPC.patch delete mode 100644 package/fakeroot/0004-Fix-forwarding-fchownat-fchmod-flags.patch diff --git a/package/fakeroot/0001-hide-dlsym-error.patch b/package/fakeroot/0001-hide-dlsym-error.patch deleted file mode 100644 index 2c61fab248..0000000000 --- a/package/fakeroot/0001-hide-dlsym-error.patch +++ /dev/null @@ -1,34 +0,0 @@ -Description: Hide error from dlsym() - dlsym(), starting in glibc 2.24 actually reports errors. In our case, - we try to get ACL functions which are not in the glibc. This causes - failures in test suites, so hide those messages for non-debugging - purposes for now. It also makes the build logs annoying to read. -Author: Julian Andres Klode -Origin: vendor -Bug-Debian: https://bugs.debian.org/830912 -Forwarded: no -Last-Update: 2016-08-12 - -Signed-off-by: Maxime Hadjinlian - ---- a/libfakeroot.c -+++ b/libfakeroot.c -@@ -256,10 +256,16 @@ void load_library_symbols(void){ - /* clear dlerror() just in case dlsym() legitimately returns NULL */ - msg = dlerror(); - *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name); -+ - if ( (msg = dlerror()) != NULL){ -- fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg); --/* abort ();*/ -+#ifdef LIBFAKEROOT_DEBUGGING -+ if (fakeroot_debug) { -+ fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg); -+/* abort ();*/ -+ } -+#endif - } -+ - } - } - diff --git a/package/fakeroot/0001-skip-doc-subdirs.patch b/package/fakeroot/0001-skip-doc-subdirs.patch new file mode 100644 index 0000000000..91663fb64d --- /dev/null +++ b/package/fakeroot/0001-skip-doc-subdirs.patch @@ -0,0 +1,14 @@ +For some reason, version 1.25 and up is missing all localized doc, +and thus fails on the install stage. + +Skip the directories. + +Signed-off-by: Norbert Lange +--- fakeroot-1.25.1.org/doc/Makefile.am 2020-09-22 23:52:20.000000000 +0200 ++++ fakeroot-1.25.1/doc/Makefile.am 2020-09-24 11:05:27.611298673 +0200 +@@ -1,5 +1,4 @@ + AUTOMAKE_OPTIONS=foreign +-SUBDIRS = de es fr nl pt sv + + man_MANS = faked.1 fakeroot.1 + diff --git a/package/fakeroot/0002-communicate-check-return-status-of-msgrcv.patch b/package/fakeroot/0002-communicate-check-return-status-of-msgrcv.patch deleted file mode 100644 index 4e81b49122..0000000000 --- a/package/fakeroot/0002-communicate-check-return-status-of-msgrcv.patch +++ /dev/null @@ -1,46 +0,0 @@ -From a853f21633693f9eefc4949660253a5328d2d2f3 Mon Sep 17 00:00:00 2001 -From: "Yann E. MORIN" -Date: Sun, 13 Aug 2017 23:21:54 +0200 -Subject: [PATCH] communicate: check return status of msgrcv() - -msgrcv can return with -1 to indicate an error condition. -One such error is to have been interrupted by a signal. - -Being interrupted by a signal is very rare in this code, except in a -very special condition: a highly-parallel (1000 jobs!) mksquashfs on -a filesystem with extended attributes, where we see errors like (those -are mksquashfs errors): - llistxattr for titi/603/883 failed in read_attrs, because Unknown - error 1716527536 - -See: https://bugs.busybox.net/show_bug.cgi?id=10141 - -In this case, we just have to retry the call to msgrcv(). - -Signed-off-by: "Yann E. MORIN" ---- - communicate.c | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/communicate.c b/communicate.c -index 293f404..787bb63 100644 ---- a/communicate.c -+++ b/communicate.c -@@ -553,10 +553,13 @@ void send_get_fakem(struct fake_msg *buf) - l=msgrcv(msg_get, - (struct my_msgbuf*)buf, - sizeof(*buf)-sizeof(buf->mtype),0,0); -- while((buf->serial!=serial)||buf->pid!=pid); -+ while(((l==-1)&&(errno==EINTR))||(buf->serial!=serial)||buf->pid!=pid); - - semaphore_down(); - -+ if(l==-1) -+ buf->xattr.flags_rc=errno; -+ - /* - (nah, may be wrong, due to allignment) - --- -2.11.0 - diff --git a/package/fakeroot/0003-Select-TCP-when-lack-of-SYSV-IPC.patch b/package/fakeroot/0003-Select-TCP-when-lack-of-SYSV-IPC.patch deleted file mode 100644 index 07b206b68e..0000000000 --- a/package/fakeroot/0003-Select-TCP-when-lack-of-SYSV-IPC.patch +++ /dev/null @@ -1,77 +0,0 @@ -From 8e9a7a8c72a9fe407d296ec0ffeb56b2cd271959 Mon Sep 17 00:00:00 2001 -From: Matt Weber -Date: Mon, 16 Sep 2019 22:00:29 -0500 -Subject: [PATCH] Select TCP when lack of SYSV IPC - -Update to add a configure test to build and install the TCP IPC version -when detecting SYSV IPC MsgQ support isn't available. - -The issue was initially discovered on Windows Services for Linux -(WSL1.0). WSL does have some SysV IPC, but no message Q's, which is -required by fakeroot/faked by default. - -Fixes: -https://github.com/Microsoft/WSL/issues/2465 - -Additional bug reports: -https://bugs.busybox.net/show_bug.cgi?id=11366 - -Upstream: -https://salsa.debian.org/clint/fakeroot/merge_requests/2 - -Signed-off-by: Jean-Francois Doyon -Signed-off-by: Matthew Weber ---- - configure.ac | 36 ++++++++++++++++++++++++++++++++++++ - 1 file changed, 36 insertions(+) - -diff --git a/configure.ac b/configure.ac -index a9189e6..1650f77 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -25,6 +25,42 @@ AC_CACHE_CHECK([which IPC method to use], - [ac_cv_use_ipc], - [ac_cv_use_ipc=sysv]) - -+if test $ac_cv_use_ipc = "sysv"; then -+ AC_MSG_CHECKING([whether SysV IPC message queues are actually working on the host]) -+ -+ AC_LANG_PUSH(C) -+ AC_TRY_RUN([ -+#include -+#include -+#include -+#include -+#include -+#include -+ -+int main() { -+ -+ srandom(time(NULL)+getpid()*33151); -+ key_t msg_key = random(); -+ int msg_get = msgget(msg_key, IPC_CREAT|0600); -+ -+ if (msg_get==-1) { -+ return 1; -+ } else { -+ msgctl(msg_get, IPC_RMID, NULL); -+ return 0; -+ } -+ -+}], [ac_cv_use_ipc=sysv], [ac_cv_use_ipc=tcp]) -+ -+ if test $ac_cv_use_ipc = "tcp"; then -+ AC_MSG_RESULT([No, using TCP]) -+ else -+ AC_MSG_RESULT([Yes]) -+ fi -+ -+ AC_LANG_POP(C) -+fi -+ - AC_ARG_WITH([dbformat], - AS_HELP_STRING([--with-dbformat@<:@=DBFORMAT@:>@], - [database format to use: either inode (default) or path]), --- -2.17.1 - diff --git a/package/fakeroot/0004-Fix-forwarding-fchownat-fchmod-flags.patch b/package/fakeroot/0004-Fix-forwarding-fchownat-fchmod-flags.patch deleted file mode 100644 index fc74543378..0000000000 --- a/package/fakeroot/0004-Fix-forwarding-fchownat-fchmod-flags.patch +++ /dev/null @@ -1,28 +0,0 @@ -Forward supported flags to fstatat, this fixes issues like -using an empty path - -Upstream BR: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959876 - -Signed-off-by: Norbert Lange - -diff -burN fakeroot-1.20.2.org/libfakeroot.c fakeroot-1.20.2/libfakeroot.c ---- fakeroot-1.20.2.org/libfakeroot.c 2014-10-05 17:16:00.000000000 +0200 -+++ fakeroot-1.20.2/libfakeroot.c 2020-05-10 22:24:18.896625085 +0200 -@@ -880,7 +880,7 @@ - /* If AT_SYMLINK_NOFOLLOW is set in the fchownat call it should - be when we stat it. */ - INT_STRUCT_STAT st; -- r=INT_NEXT_FSTATAT(dir_fd, path, &st, (flags & AT_SYMLINK_NOFOLLOW)); -+ r=INT_NEXT_FSTATAT(dir_fd, path, &st, (flags & (AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH | AT_NO_AUTOMOUNT))); - - if(r) - return(r); -@@ -1017,7 +1017,7 @@ - - /* If AT_SYMLINK_NOFOLLOW is set in the fchownat call it should - be when we stat it. */ -- r=INT_NEXT_FSTATAT(dir_fd, path, &st, flags & AT_SYMLINK_NOFOLLOW); -+ r=INT_NEXT_FSTATAT(dir_fd, path, &st, flags & (AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH | AT_NO_AUTOMOUNT)); - - if(r) - return(r); diff --git a/package/fakeroot/fakeroot.hash b/package/fakeroot/fakeroot.hash index d1d959df6f..e92523109a 100644 --- a/package/fakeroot/fakeroot.hash +++ b/package/fakeroot/fakeroot.hash @@ -1,6 +1,4 @@ -# From http://snapshot.debian.org/package/fakeroot/1.20.2-1/ -sha1 367040df07043edb630942b21939e493f3fad888 fakeroot_1.20.2.orig.tar.bz2 -# Calculated based on the hash above -sha256 7c0a164d19db3efa9e802e0fc7cdfeff70ec6d26cdbdc4338c9c2823c5ea230c fakeroot_1.20.2.orig.tar.bz2 +# From http://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.25.1-1.dsc +sha256 95cd11cf057c1ae38905c1c6be29a1d1e402f15cde4707b5009cc9cb995256c5 fakeroot_1.25.1.orig.tar.gz # License files, locally calculated -sha256 fc82ca8b6fdb18d4e3e85cfd8ab58d1bcd3f1b29abe782895abd91d64763f8e7 COPYING +sha256 fc82ca8b6fdb18d4e3e85cfd8ab58d1bcd3f1b29abe782895abd91d64763f8e7 COPYING diff --git a/package/fakeroot/fakeroot.mk b/package/fakeroot/fakeroot.mk index 1be99071bf..ab0883d054 100644 --- a/package/fakeroot/fakeroot.mk +++ b/package/fakeroot/fakeroot.mk @@ -4,9 +4,9 @@ # ################################################################################ -FAKEROOT_VERSION = 1.20.2 -FAKEROOT_SOURCE = fakeroot_$(FAKEROOT_VERSION).orig.tar.bz2 -FAKEROOT_SITE = http://snapshot.debian.org/archive/debian/20141005T221953Z/pool/main/f/fakeroot +FAKEROOT_VERSION = 1.25.1 +FAKEROOT_SOURCE = fakeroot_$(FAKEROOT_VERSION).orig.tar.gz +FAKEROOT_SITE = http://snapshot.debian.org/archive/debian/20200923T030305Z/pool/main/f/fakeroot HOST_FAKEROOT_DEPENDENCIES = host-acl # Force capabilities detection off @@ -15,7 +15,7 @@ HOST_FAKEROOT_DEPENDENCIES = host-acl HOST_FAKEROOT_CONF_ENV = \ ac_cv_header_sys_capability_h=no \ ac_cv_func_capset=no -# 0003-Select-TCP-when-lack-of-SYSV-IPC.patch touches configure.ac +# upstream does not ship with configure script anymore HOST_FAKEROOT_AUTORECONF = YES FAKEROOT_LICENSE = GPL-3.0+ FAKEROOT_LICENSE_FILES = COPYING