From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:33412) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHf8F-00070q-Sr for guix-patches@gnu.org; Thu, 26 Mar 2020 22:54:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHf8E-0006AD-DZ for guix-patches@gnu.org; Thu, 26 Mar 2020 22:54:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54455) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHf8D-00069j-Vn for guix-patches@gnu.org; Thu, 26 Mar 2020 22:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jHf8D-0003mq-T6 for guix-patches@gnu.org; Thu, 26 Mar 2020 22:54:01 -0400 Subject: [bug#39807] [PATCH] guix: pack: Only wrap executable files. Resent-Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_cb8bb2e850f8bafef4813125ab63d049" Date: Thu, 26 Mar 2020 21:53:18 -0500 From: Eric Bavier In-Reply-To: <87h7ydljyv.fsf@gnu.org> References: <20200227043604.13102-1-bavier@posteo.net> <87d09pohrj.fsf@gnu.org> <87h7ydljyv.fsf@gnu.org> Message-ID: <9929712b169123d7f35169919dfaaa9c@posteo.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39807 <39807@debbugs.gnu.org> --=_cb8bb2e850f8bafef4813125ab63d049 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Latest patch attached. -- `~Eric --=_cb8bb2e850f8bafef4813125ab63d049 Content-Transfer-Encoding: base64 Content-Type: text/x-diff; name=0001-wip-guix-pack-Only-wrap-executable-files.patch Content-Disposition: attachment; filename=0001-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CqSAyMDE4IEtvbnJhZCBIaW5z ZW4gPGtvbnJhZC5oaW5zZW5AZmFzdG1haWwubmV0PgogOzs7IENvcHlyaWdodCDCqSAyMDE4IENo cmlzIE1hcnVzaWNoIDxjbW1hcnVzaWNoQGdtYWlsLmNvbT4KIDs7OyBDb3B5cmlnaHQgwqkgMjAx OCBFZnJhaW0gRmxhc2huZXIgPGVmcmFpbUBmbGFzaG5lci5jby5pbD4KKzs7OyBDb3B5cmlnaHQg wqkgMjAyMCBFcmljIEJhdmllciA8YmF2aWVyQHBvc3Rlby5uZXQ+CiA7OzsKIDs7OyBUaGlzIGZp bGUgaXMgcGFydCBvZiBHTlUgR3VpeC4KIDs7OwpAQCAtNjkwLDkgKzY5MSwxMSBAQCBsYXN0IHJl c29ydCBmb3IgcmVsb2NhdGlvbi4iCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZ3Vp eCBidWlsZCB1bmlvbikpKQogICAgICAgI34oYmVnaW4KICAgICAgICAgICAodXNlLW1vZHVsZXMg KGd1aXggYnVpbGQgdXRpbHMpCi0gICAgICAgICAgICAgICAgICAgICAgICgoZ3VpeCBidWlsZCB1 bmlvbikgIzpzZWxlY3QgKHJlbGF0aXZlLWZpbGUtbmFtZSkpCisgICAgICAgICAgICAgICAgICAg ICAgICgoZ3VpeCBidWlsZCB1bmlvbikgIzpzZWxlY3QgKHN5bWxpbmstcmVsYXRpdmUpKQorICAg ICAgICAgICAgICAgICAgICAgICAoc3JmaSBzcmZpLTEpCiAgICAgICAgICAgICAgICAgICAgICAg IChpY2UtOSBmdHcpCi0gICAgICAgICAgICAgICAgICAgICAgIChpY2UtOSBtYXRjaCkpCisgICAg ICAgICAgICAgICAgICAgICAgIChpY2UtOSBtYXRjaCkKKyAgICAgICAgICAgICAgICAgICAgICAg KGljZS05IHJlY2VpdmUpKQogCiAgICAgICAgICAgKGRlZmluZSBpbnB1dAogICAgICAgICAgICAg OzsgVGhlIE9VVFBVVCogb3V0cHV0IG9mIFBBQ0tBR0UuCkBAIC03NDMsMTUgKzc0NiwyNiBAQCBs YXN0IHJlc29ydCBmb3IgcmVsb2NhdGlvbi4iCiAgICAgICAgICAgKG1rZGlyIHRhcmdldCkKICAg ICAgICAgICAoZm9yLWVhY2ggKGxhbWJkYSAoZmlsZSkKICAgICAgICAgICAgICAgICAgICAgICAo dW5sZXNzIChtZW1iZXIgZmlsZSAnKCIuIiAiLi4iICJiaW4iICJzYmluIiAibGliZXhlYyIpKQot ICAgICAgICAgICAgICAgICAgICAgICAgKGxldCAoKGZpbGUqIChzdHJpbmctYXBwZW5kIGlucHV0 ICIvIiBmaWxlKSkpCi0gICAgICAgICAgICAgICAgICAgICAgICAgIChzeW1saW5rIChyZWxhdGl2 ZS1maWxlLW5hbWUgdGFyZ2V0IGZpbGUqKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAoc3RyaW5nLWFwcGVuZCB0YXJnZXQgIi8iIGZpbGUpKSkpKQorICAgICAgICAgICAgICAg ICAgICAgICAgKHN5bWxpbmstcmVsYXRpdmUgKHN0cmluZy1hcHBlbmQgaW5wdXQgICIvIiBmaWxl KQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHN0cmluZy1hcHBl bmQgdGFyZ2V0ICIvIiBmaWxlKSkpKQogICAgICAgICAgICAgICAgICAgICAoc2NhbmRpciBpbnB1 dCkpCiAKLSAgICAgICAgICAoZm9yLWVhY2ggYnVpbGQtd3JhcHBlcgotICAgICAgICAgICAgICAg ICAgICAoYXBwZW5kIChmaW5kLWZpbGVzIChzdHJpbmctYXBwZW5kIGlucHV0ICIvYmluIikpCi0g ICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZpbmQtZmlsZXMgKHN0cmluZy1hcHBlbmQgaW5w dXQgIi9zYmluIikpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZpbmQtZmlsZXMgKHN0 cmluZy1hcHBlbmQgaW5wdXQgIi9saWJleGVjIikpKSkpKSkKKyAgICAgICAgICAocmVjZWl2ZSAo ZXhlY3V0YWJsZXMgb3RoZXJzKQorICAgICAgICAgICAgICAocGFydGl0aW9uIGV4ZWN1dGFibGUt ZmlsZT8KKyAgICAgICAgICAgICAgICAgICAgICAgICAoYXBwZW5kIChmaW5kLWZpbGVzIChzdHJp bmctYXBwZW5kIGlucHV0ICIvYmluIikpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAoZmluZC1maWxlcyAoc3RyaW5nLWFwcGVuZCBpbnB1dCAiL3NiaW4iKSkKKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIChmaW5kLWZpbGVzIChzdHJpbmctYXBwZW5kIGlucHV0ICIv bGliZXhlYyIpKSkpCisgICAgICAgICAgICA7OyBXcmFwIG9ubHkgZXhlY3V0YWJsZXMsIHNpbmNl IHRoZSB3cmFwcGVyIHdpbGwgZXZlbnR1YWxseSBuZWVkCisgICAgICAgICAgICA7OyB0byBleGVj dmUgdGhlbS4gIEUuZy4gZ2l0J3MgImxpYmV4ZWMiIGRpcmVjdG9yeSBjb250YWlucyBtYW55Cisg ICAgICAgICAgICA7OyBzaGVsbCBzY3JpcHRzIHRoYXQgYXJlIHNvdXJjZSdkIGZyb20gZWxzZXdo ZXJlLCB3aGljaCBmYWlscyBpZgorICAgICAgICAgICAgOzsgdGhleSBhcmUgd3JhcHBlZC4KKyAg ICAgICAgICAgIChmb3ItZWFjaCBidWlsZC13cmFwcGVyIGV4ZWN1dGFibGVzKQorICAgICAgICAg ICAgOzsgTGluayBhbnkgb3RoZXIgbm9uLWV4ZWN1dGFibGUgZmlsZXMKKyAgICAgICAgICAgIChm b3ItZWFjaCAobGFtYmRhIChvbGQpCisgICAgICAgICAgICAgICAgICAgICAgICAobGV0ICgobmV3 IChzdHJpbmctYXBwZW5kIHRhcmdldCAoc3RyaXAtc3RvcmUtcHJlZml4IG9sZCkpKSkKKyAgICAg ICAgICAgICAgICAgICAgICAgICAgKG1rZGlyLXAgKGRpcm5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