From patchwork Wed May 6 13:11:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Norbert Lange X-Patchwork-Id: 1284422 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=IdmfxSHL; 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 49HH6r4Ykcz9sRY for ; Wed, 6 May 2020 23:11:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1EE2D88419; Wed, 6 May 2020 13:11:47 +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 on39b53UBCmX; Wed, 6 May 2020 13:11:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 03A8C885B4; Wed, 6 May 2020 13:11:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6D4561BF866 for ; Wed, 6 May 2020 13:11:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 69E8987672 for ; Wed, 6 May 2020 13:11:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5hrIj4o5-XSW for ; Wed, 6 May 2020 13:11:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7FCAD87120 for ; Wed, 6 May 2020 13:11:42 +0000 (UTC) Received: by mail-wm1-f51.google.com with SMTP id h4so2530339wmb.4 for ; Wed, 06 May 2020 06:11:42 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=NCmVxP3CYP8c/f4N2caCYh50aialErmixd0D7VkK7vQ=; b=IdmfxSHLSM0vqm+Gtr6CUV9N1Xm3cPxZfjcVfFMxvVQtoG6d6OuS9we8jISFI8rqRT jqwyB4xtNaj9Uii+b4hzz8kJKhynxTyyIzsETVr5LPLZR7I4Q4m2NL7I2O9NlREuyPKn 1/KUfAeWAG/wRpFMzab7OQe37N08cCLKbdHIIZl/VYNud+8AzWmhWqKDJUe4jCrLfVfL dlUhb0z5hZKpEXIzo/GWCofeguBNRTyXBWTP7PqS5H5Zp8toixjKfEMeoz5SJqB7AfgO iShyMWOiJDcuoSfGoNgbQkQbrP7RNubbhrtNEFjK6nRkMO6wujV+sBt2N+4jJxfmUBq9 b09w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=NCmVxP3CYP8c/f4N2caCYh50aialErmixd0D7VkK7vQ=; b=qngkQxMLWi91hnFMUDkx+Gsv3ogjlOadCa46biV8TLD+ss181kR12sdMT2kihl8Oxv Q46r2f52JwVZyaJd8Gst6qKQLfUovGcOU9sZGfWUqvR5Ehevzlbs3Gwb1XBTfd0ZfMuJ 3NmSy/2MZjwqVLFWFSsAdnEBzivMJHdYCkcxMBKIAg9ggRN+9eVDzUZRB0pUNLImwz5u mZkNxKutb6TlURukKhxPYNXR+zxVHOj3Fub2GiH5upwDfrQAsbqqwSlYUl6Ljgwm/qza BXPTmpvY6y3RexFhytw5OVP4wSrkCOOGzrPS4zRX1vdJ/8hcL6UO2XDjzSofEiRA3FtP Ja7g== X-Gm-Message-State: AGi0PuahjpYNt9GkqoA0fU1YzQFPb8tVAsok06z8IaHislXOoY0UnQF0 kVt7yZovaY+EYXDsEmZIEcwSEhgb X-Google-Smtp-Source: APiQypJe+McY1GY7MRwGBTArIdvBwhdd8muYoNBiT+UCiM5COQVDImcvRVFvNYGJhPaGjDwty3kkgQ== X-Received: by 2002:a1c:9816:: with SMTP id a22mr4159451wme.125.1588770700698; Wed, 06 May 2020 06:11:40 -0700 (PDT) Received: from lano-work.andritz.com ([80.120.136.76]) by smtp.gmail.com with ESMTPSA id i129sm3148702wmi.20.2020.05.06.06.11.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 06:11:40 -0700 (PDT) From: Norbert Lange To: buildroot@buildroot.org Date: Wed, 6 May 2020 15:11:29 +0200 Message-Id: <20200506131130.410171-2-nolange79@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200506131130.410171-1-nolange79@gmail.com> References: <20200506131130.410171-1-nolange79@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/2] package/fakeroot: bump version to 1.24 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" Signed-off-by: Norbert Lange --- ...02-Select-TCP-when-lack-of-SYSV-IPC.patch} | 0 ...nicate-check-return-status-of-msgrcv.patch | 46 ------------------- package/fakeroot/fakeroot.hash | 6 +-- package/fakeroot/fakeroot.mk | 6 +-- 4 files changed, 5 insertions(+), 53 deletions(-) rename package/fakeroot/{0003-Select-TCP-when-lack-of-SYSV-IPC.patch => 0002-Select-TCP-when-lack-of-SYSV-IPC.patch} (100%) delete mode 100644 package/fakeroot/0002-communicate-check-return-status-of-msgrcv.patch diff --git a/package/fakeroot/0003-Select-TCP-when-lack-of-SYSV-IPC.patch b/package/fakeroot/0002-Select-TCP-when-lack-of-SYSV-IPC.patch similarity index 100% rename from package/fakeroot/0003-Select-TCP-when-lack-of-SYSV-IPC.patch rename to package/fakeroot/0002-Select-TCP-when-lack-of-SYSV-IPC.patch 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/fakeroot.hash b/package/fakeroot/fakeroot.hash index d1d959df6f..633bda0cb9 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.24-1.dsc +sha256 2e045b3160370b8ab4d44d1f8d267e5d1d555f1bb522d650e7167b09477266ed fakeroot_1.24.orig.tar.gz # License files, locally calculated sha256 fc82ca8b6fdb18d4e3e85cfd8ab58d1bcd3f1b29abe782895abd91d64763f8e7 COPYING diff --git a/package/fakeroot/fakeroot.mk b/package/fakeroot/fakeroot.mk index 1be99071bf..39a6906182 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.24 +FAKEROOT_SOURCE = fakeroot_$(FAKEROOT_VERSION).orig.tar.gz +FAKEROOT_SITE = http://deb.debian.org/debian/pool/main/f/fakeroot HOST_FAKEROOT_DEPENDENCIES = host-acl # Force capabilities detection off From patchwork Wed May 6 13:11:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Norbert Lange X-Patchwork-Id: 1284423 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.136; helo=silver.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=H21DVI4f; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49HH6w3zKYz9sPF for ; Wed, 6 May 2020 23:11:52 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CE77E2530B; Wed, 6 May 2020 13:11:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qWpbuEzAAy1T; Wed, 6 May 2020 13:11:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 216BF25343; Wed, 6 May 2020 13:11:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 7741D1BF866 for ; Wed, 6 May 2020 13:11:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 73ADB884EE for ; Wed, 6 May 2020 13:11:44 +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 R3ZIKZsS-0p4 for ; Wed, 6 May 2020 13:11:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id BA52288419 for ; Wed, 6 May 2020 13:11:43 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id r26so2617528wmh.0 for ; Wed, 06 May 2020 06:11:43 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=DkexjoY+GN7tyjukZ0i8T6k+CUq0QAYTrJMULqSa7I4=; b=H21DVI4flwvbW8HtYj6N4q1HaFw1uxqVY9jM0elYTP0+/ay6ypivttO/OybRCoHvLu vvaLm72r88pob+EDDPK6DpXKBlX14nZUGgNRLRGkIgifunzYamyR5Kq2XdKuJBfrfQgt 54/aS7fW/JfmY5wxlU8QSPONerzXPW3+IejNoi7lpCtPPEtEXJd1zrOREMAai3hM980M FNBPIG7Gd1xSmy4L8t66OZ1Vxu8l1VnT+yV079MM8PptY5qV4UwK35xKx6trN/PHhrdi oKND16VAFPsjPkaXiWRC2fvs32giCliv/f72MwIiKXYFT6/g7MZhLebC4adPuNVB5IpB z62g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=DkexjoY+GN7tyjukZ0i8T6k+CUq0QAYTrJMULqSa7I4=; b=UQmjUhVCF66oItJPm4xk5njGl4++7gRjkREzusE5r1wYr1fHStBFjdsZo/geDQoq1r C/l6LRQHmWgYfRnquRIchqJ5DXjn6enFlymbVOSj5IeL32yeQQ9DvGy19ckUhm7p2GJ6 DbpWMV3om4q6YmSfN7yT6UFgG9X9e0fw0CdOOuN5SLe6ptrCN1miEmLmzXOHSEhLNt1R 4TugKOXXNEusB5ZRkW6vbR/R3txuVEP6U5NP8AdQDjjIS3JH9tqsJ4d2hRJv0n3D4Gyw ftglvbNc/saf8ZJDyTcRJ/ldpRDrGYnzesdHKszJm39D3WtVsjUabGSNUi6tCq53Sj5W F5YA== X-Gm-Message-State: AGi0PuaUgSX3sK/K8+TLlHrVWb6XfNPxt9OmMeI2X97/TcrXUOKy519y f77vyTD9MrS3S6nAc53IEILRmmtH X-Google-Smtp-Source: APiQypJ7Rs1bvEK8bx5NKLMIK2AcmYAH6Gic9nzUmfFpSA1XJenh3+mttVWo77yCPmx9nLg0XR305g== X-Received: by 2002:a1c:5502:: with SMTP id j2mr4810153wmb.56.1588770701966; Wed, 06 May 2020 06:11:41 -0700 (PDT) Received: from lano-work.andritz.com ([80.120.136.76]) by smtp.gmail.com with ESMTPSA id i129sm3148702wmi.20.2020.05.06.06.11.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 06:11:41 -0700 (PDT) From: Norbert Lange To: buildroot@buildroot.org Date: Wed, 6 May 2020 15:11:30 +0200 Message-Id: <20200506131130.410171-3-nolange79@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200506131130.410171-1-nolange79@gmail.com> References: <20200506131130.410171-1-nolange79@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 2/2] package/fakeroot: fix for fchownat/fchmodat 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" fakeroot does mask out necessary flags, instead pass through the flags that are supported by fstatat Upstream BR: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959876 Signed-off-by: Norbert Lange --- package/fakeroot/0003_fix_fchownat.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/fakeroot/0003_fix_fchownat.patch diff --git a/package/fakeroot/0003_fix_fchownat.patch b/package/fakeroot/0003_fix_fchownat.patch new file mode 100644 index 0000000000..d200654910 --- /dev/null +++ b/package/fakeroot/0003_fix_fchownat.patch @@ -0,0 +1,24 @@ +Description: fix chownat/chmodat when pathname is empty + this forwards all supported flags to fstatat, + instead of masking them out and causing errors. + +--- a/libfakeroot.c ++++ b/libfakeroot.c +@@ -886,7 +886,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); +@@ -1023,7 +1023,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);