From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 18:54:27 2019 Received: (at submit) by debbugs.gnu.org; 12 Oct 2019 22:54:27 +0000 Received: from localhost ([127.0.0.1]:34447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJQHL-0004rx-Gr for submit@debbugs.gnu.org; Sat, 12 Oct 2019 18:54:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:59588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJQHJ-0004ro-97 for submit@debbugs.gnu.org; Sat, 12 Oct 2019 18:54:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42820) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJQHH-0004RA-Q3 for guix-patches@gnu.org; Sat, 12 Oct 2019 18:54:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJQHG-0000Fk-L3 for guix-patches@gnu.org; Sat, 12 Oct 2019 18:54:23 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:58795) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iJQHG-0000Ex-4R for guix-patches@gnu.org; Sat, 12 Oct 2019 18:54:22 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 7FCE142C; Sat, 12 Oct 2019 18:54:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 12 Oct 2019 18:54:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=terracrypt.net; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=nIpmewpSMePR7YPtnS1RYBBOcY 16patrInRgWgwznOs=; b=gMeYoXzLk0ssPGJ4LuFo1NFgXnzJ1xAurVkgAQVP0z asx2PPGzxYRgisLkabe0CcCENMS6toa9/4GfACW3QGqzhUZpr6lhJJIXjvmLkOaV vAFTPGIwfZlpELPOUMA+yyWGgqarzgFw1wx4TrRdEl12G0MGqLmbNHcPSIKYqWJZ hzcX1I8hxZCxvhxaIvi7VlOU+CzLeh+q8UZhDlwEiqvK5HaWg3IVypSjOiwyjfrX SZW+Nqpf1uD/7DSx3aMniJMZ7opRyVvqHMfIvByXsQgvgvpLPaEz4Jr7A4pZ1xJO o5zeL/JfpMWhf2+0LeN1Ss/Rm/SdKqYWQvghN/8TFKtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=nIpmewpSMePR7YPtn S1RYBBOcY16patrInRgWgwznOs=; b=Cvb2mR5fbY6qHhinTNDB8sDZv9RIneYIw RtiRjfT2znWYPVA8hhI5IpK3cYgGvePC9+q9MscsrDXrTaPwsb91+r6Q0zYJlpaW DQMVC3ewdcifXiPh1+UEfw/0RceDRLGm+APxb48f7ua91PS0PLVn/yy2ub9rw6hD /+aWDFzpPFk+wmD9e++R2PA5eVD7ZTj+ESZa/2TYhiN6FUlKn7v+Z8hlPCxwdBRL Z25l/eAI1H1iEwsM7tcIvKdsdxs1bWc3WZOt1e09ir0hyBiMmbYJrntvXtfQ8Ml/ FL6KOCKVvrMO0DUVnLgScCuJfflBqRF2QOCdGVkG01BQSlaWg8Xvw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrieekgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpeflohhnrghthhgrnhcuhfhrvgguvghrihgtkhhsohhnuceojhhonhgr thhhrghnsehtvghrrhgrtghrhihpthdrnhgvtheqnecukfhppedutdekrdegrddvvdekrd dukeeknecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhnrghthhgrnhesthgvrhhrrggt rhihphhtrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from terrabase.lan (pool-108-4-228-188.phlapa.fios.verizon.net [108.4.228.188]) by mail.messagingengine.com (Postfix) with ESMTPA id 556658005B; Sat, 12 Oct 2019 18:54:18 -0400 (EDT) From: Jonathan Frederickson To: guix-patches@gnu.org Subject: [PATCH] python-build-system: Fix build of packages without sbin directory. Date: Sat, 12 Oct 2019 18:54:04 -0400 Message-Id: <20191012225404.11901-1-jonathan@terracrypt.net> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.25 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: Jonathan Frederickson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Prior to this change, some packages (at least Ansible for example) would fail to build with an error like: starting phase `wrap' find-files: /gnu/store/va1qkgv1qwv1hy6iynzjafqshakqkjs7-ansible-2.8.1/sbin: No such file or directory That directory in the store contained a 'bin' directory, but not an 'sbin directory, and 'find-files' throws an error in that case. * guix/build/python-build-system.scm (list-of-files): Handle case in which directory passed as argument does not exist. --- guix/build/python-build-system.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/guix/build/python-build-system.scm b/guix/build/python-build-system.scm index 09bd8465c8..15c7d2e613 100644 --- a/guix/build/python-build-system.scm +++ b/guix/build/python-build-system.scm @@ -188,9 +188,11 @@ when running checks after installing the package." (define* (wrap #:key inputs outputs #:allow-other-keys) (define (list-of-files dir) - (find-files dir (lambda (file stat) - (and (eq? 'regular (stat:type stat)) - (not (wrapper? file)))))) + (if (not (directory-exists? dir)) + '() + (find-files dir (lambda (file stat) + (and (eq? 'regular (stat:type stat)) + (not (wrapper? file))))))) (define bindirs (append-map (match-lambda -- 2.23.0