From unknown Mon Jun 23 11:28:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19830: cannot use snippets with zip source Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 10 Feb 2015 16:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19830 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 19830@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.142358568531502 (code B ref -1); Tue, 10 Feb 2015 16:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Feb 2015 16:28:05 +0000 Received: from localhost ([127.0.0.1]:39520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLDfR-0008C1-1l for submit@debbugs.gnu.org; Tue, 10 Feb 2015 11:28:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34049) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLDfO-0008BT-RT for submit@debbugs.gnu.org; Tue, 10 Feb 2015 11:28:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLDfI-00053g-P7 for submit@debbugs.gnu.org; Tue, 10 Feb 2015 11:27:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDfI-00053c-MO for submit@debbugs.gnu.org; Tue, 10 Feb 2015 11:27:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDfH-0007bn-QG for bug-guix@gnu.org; Tue, 10 Feb 2015 11:27:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLDfC-00052m-RM for bug-guix@gnu.org; Tue, 10 Feb 2015 11:27:55 -0500 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:43365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDfC-00052V-Ik for bug-guix@gnu.org; Tue, 10 Feb 2015 11:27:50 -0500 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id BB35638066A for ; Tue, 10 Feb 2015 17:27:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s=mdc; t= 1423585663; x=1425400064; bh=W6iqm4DB25Odk7onOlqQHrODh4Ky6l7/8dt GH2q/Vfw=; b=VAyK7GQVXNAaOn4rQPnEaS7EuPn16Dg9FI0/4eBCem3ksX67vSu 4Y7FB4qfChqJa9SlGYujbUvRQAWntjXXB+CbSW7IZpRTVIt7+LjqZxu6LMH+ft89 eS+qT1HEJPoLhM3hyNRLaChjYNGIQtGmhaC7K6W5dw7AwAyi1npHpq3U= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aZD1QeY1pksq for ; Tue, 10 Feb 2015 17:27:43 +0100 (CET) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP for ; Tue, 10 Feb 2015 17:27:43 +0100 (CET) Received: from localhost (141.80.180.135) by HTCATWO.mdc-berlin.net (141.80.180.125) with Microsoft SMTP Server (TLS) id 14.3.210.2; Tue, 10 Feb 2015 17:27:43 +0100 From: Ricardo Wurmus Date: Tue, 10 Feb 2015 17:27:43 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [141.80.180.135] X-TM-AS-Product-Ver: SMEX-10.0.0.4211-7.500.1017-21320.000 X-TM-AS-Result: No--5.143700-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Snippets cannot be used when the source archive is not supported by tar. For example, when building HISAT with snippets (instead of patching in a build phase), guix determines the decompression type to be "xz" and then fails as follows: ~~~~~~~ The following derivations will be built: /gnu/store/jra0psbhjkcf66rdmj5bshivf32nyf73-hisat-0.1.4.drv /gnu/store/1hpkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv /gnu/store/pri51516agpcm9k6asgbdmspxnim3l7q-hisat-0.1.4.drv @ build-started /gnu/store/1hpkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv - x86_64-linux /var/log/guix/drvs/1h//pkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv.bz2 /gnu/store/c4km8376y174q7gxqahf4hc1i1xaqkqh-tar-1.28/bin/tar: This does not look like a tar archive /gnu/store/c4km8376y174q7gxqahf4hc1i1xaqkqh-tar-1.28/bin/tar: Skipping to next header /gnu/store/c4km8376y174q7gxqahf4hc1i1xaqkqh-tar-1.28/bin/tar: Exiting with failure status due to previous errors builder for `/gnu/store/1hpkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv' failed with exit code 1 @ build-failed /gnu/store/1hpkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv - 1 builder for `/gnu/store/1hpkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv' failed with exit code 1 cannot build derivation `/gnu/store/pri51516agpcm9k6asgbdmspxnim3l7q-hisat-0.1.4.drv': 1 dependencies couldn't be built cannot build derivation `/gnu/store/jra0psbhjkcf66rdmj5bshivf32nyf73-hisat-0.1.4.drv': 1 dependencies couldn't be built killing process 2524 guix build: error: build failed: build of `/gnu/store/jra0psbhjkcf66rdmj5bshivf32nyf73-hisat-0.1.4.drv' failed ~~~~~~~ That's due to the definiton of `decompression-type' in `patch-and-repack' in the file guix/packages.scm: ~~~~~~ (define decompression-type (cond ((string-suffix? "gz" source-file-name) "gzip") ((string-suffix? "bz2" source-file-name) "bzip2") ((string-suffix? "lz" source-file-name) "lzip") (else "xz"))) ~~~~~~ From unknown Mon Jun 23 11:28:11 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ricardo Wurmus Subject: bug#19830: closed (Re: Bug #19830: cannot use snippets with zip source) Message-ID: References: X-Gnu-PR-Message: they-closed 19830 X-Gnu-PR-Package: guix Reply-To: 19830@debbugs.gnu.org Date: Tue, 24 Mar 2015 21:40:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1427233202-7475-1" This is a multi-part message in MIME format... ------------=_1427233202-7475-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19830: cannot use snippets with zip source which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19830@debbugs.gnu.org. --=20 19830: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19830 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1427233202-7475-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19830-close) by debbugs.gnu.org; 24 Mar 2015 21:39:25 +0000 Received: from localhost ([127.0.0.1]:35324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YaWXk-0001vg-Hs for submit@debbugs.gnu.org; Tue, 24 Mar 2015 17:39:25 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:50257) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YaW0b-0001AQ-Ch for 19830-close@debbugs.gnu.org; Tue, 24 Mar 2015 17:05:10 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 679F52031E8 for <19830-close@debbugs.gnu.org>; Tue, 24 Mar 2015 22:05:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=user-agent:message-id:subject:subject:from:from:date:date :content-transfer-encoding:content-type:content-type :mime-version:received:received; s=openmailbox; t=1427231106; bh=9DMcXSeanyfNtaDR4sxlS0YLlRoPoW4Ul+0Rq+oewmw=; b=Fcx/UASPkHmF dB1TJGUlTAZhD3YBT4/xa2cyPr7hepTqkLcIptkEEDu4CUarFoZyrc+nBviOziqw m5KVLZqieKvsBUSgqpxvF5qLpGBzK70uHw5/umf9V8lFfanc10SZErYpc8zaPo3N SmRSaP+h75x4C92nTyKGUOPjTPJFoO8= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lGRovBOwo8ZY for <19830-close@debbugs.gnu.org>; Tue, 24 Mar 2015 22:05:06 +0100 (CET) Received: from www.openmailbox.org (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id D9CCB20313F for <19830-close@debbugs.gnu.org>; Tue, 24 Mar 2015 22:05:06 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 24 Mar 2015 16:05:06 -0500 From: Eric Bavier To: 19830-close@debbugs.gnu.org Subject: Re: Bug #19830: cannot use snippets with zip source Message-ID: X-Sender: ericbavier@openmailbox.org User-Agent: Roundcube Webmail/1.0.5 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 19830-close X-Mailman-Approved-At: Tue, 24 Mar 2015 17:39:22 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.0 (/) Fixed in commit 17287d7d47567aa1649250182e0f7ab11d5d55d1. -- `~Eric ------------=_1427233202-7475-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Feb 2015 16:28:05 +0000 Received: from localhost ([127.0.0.1]:39520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLDfR-0008C1-1l for submit@debbugs.gnu.org; Tue, 10 Feb 2015 11:28:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34049) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLDfO-0008BT-RT for submit@debbugs.gnu.org; Tue, 10 Feb 2015 11:28:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLDfI-00053g-P7 for submit@debbugs.gnu.org; Tue, 10 Feb 2015 11:27:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDfI-00053c-MO for submit@debbugs.gnu.org; Tue, 10 Feb 2015 11:27:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDfH-0007bn-QG for bug-guix@gnu.org; Tue, 10 Feb 2015 11:27:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLDfC-00052m-RM for bug-guix@gnu.org; Tue, 10 Feb 2015 11:27:55 -0500 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:43365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDfC-00052V-Ik for bug-guix@gnu.org; Tue, 10 Feb 2015 11:27:50 -0500 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id BB35638066A for ; Tue, 10 Feb 2015 17:27:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s=mdc; t= 1423585663; x=1425400064; bh=W6iqm4DB25Odk7onOlqQHrODh4Ky6l7/8dt GH2q/Vfw=; b=VAyK7GQVXNAaOn4rQPnEaS7EuPn16Dg9FI0/4eBCem3ksX67vSu 4Y7FB4qfChqJa9SlGYujbUvRQAWntjXXB+CbSW7IZpRTVIt7+LjqZxu6LMH+ft89 eS+qT1HEJPoLhM3hyNRLaChjYNGIQtGmhaC7K6W5dw7AwAyi1npHpq3U= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aZD1QeY1pksq for ; Tue, 10 Feb 2015 17:27:43 +0100 (CET) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP for ; Tue, 10 Feb 2015 17:27:43 +0100 (CET) Received: from localhost (141.80.180.135) by HTCATWO.mdc-berlin.net (141.80.180.125) with Microsoft SMTP Server (TLS) id 14.3.210.2; Tue, 10 Feb 2015 17:27:43 +0100 From: Ricardo Wurmus To: Subject: cannot use snippets with zip source Date: Tue, 10 Feb 2015 17:27:43 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [141.80.180.135] X-TM-AS-Product-Ver: SMEX-10.0.0.4211-7.500.1017-21320.000 X-TM-AS-Result: No--5.143700-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Snippets cannot be used when the source archive is not supported by tar. For example, when building HISAT with snippets (instead of patching in a build phase), guix determines the decompression type to be "xz" and then fails as follows: ~~~~~~~ The following derivations will be built: /gnu/store/jra0psbhjkcf66rdmj5bshivf32nyf73-hisat-0.1.4.drv /gnu/store/1hpkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv /gnu/store/pri51516agpcm9k6asgbdmspxnim3l7q-hisat-0.1.4.drv @ build-started /gnu/store/1hpkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv - x86_64-linux /var/log/guix/drvs/1h//pkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv.bz2 /gnu/store/c4km8376y174q7gxqahf4hc1i1xaqkqh-tar-1.28/bin/tar: This does not look like a tar archive /gnu/store/c4km8376y174q7gxqahf4hc1i1xaqkqh-tar-1.28/bin/tar: Skipping to next header /gnu/store/c4km8376y174q7gxqahf4hc1i1xaqkqh-tar-1.28/bin/tar: Exiting with failure status due to previous errors builder for `/gnu/store/1hpkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv' failed with exit code 1 @ build-failed /gnu/store/1hpkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv - 1 builder for `/gnu/store/1hpkf8yl4hcifzalnwh2hj6qwi8jid3w-hisat-0.1.4-beta-source.tar.xz.drv' failed with exit code 1 cannot build derivation `/gnu/store/pri51516agpcm9k6asgbdmspxnim3l7q-hisat-0.1.4.drv': 1 dependencies couldn't be built cannot build derivation `/gnu/store/jra0psbhjkcf66rdmj5bshivf32nyf73-hisat-0.1.4.drv': 1 dependencies couldn't be built killing process 2524 guix build: error: build failed: build of `/gnu/store/jra0psbhjkcf66rdmj5bshivf32nyf73-hisat-0.1.4.drv' failed ~~~~~~~ That's due to the definiton of `decompression-type' in `patch-and-repack' in the file guix/packages.scm: ~~~~~~ (define decompression-type (cond ((string-suffix? "gz" source-file-name) "gzip") ((string-suffix? "bz2" source-file-name) "bzip2") ((string-suffix? "lz" source-file-name) "lzip") (else "xz"))) ~~~~~~ ------------=_1427233202-7475-1--