From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CF+aIbpaTWOzGQEAbAwnHQ (envelope-from ) for ; Mon, 17 Oct 2022 15:38:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AJ5tIbpaTWM0GAAAauVa8A (envelope-from ) for ; Mon, 17 Oct 2022 15:38:02 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2BD2D126A5 for ; Mon, 17 Oct 2022 15:38:02 +0200 (CEST) Received: from localhost ([::1]:47920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okQJd-0004Qb-8q for larch@yhetil.org; Mon, 17 Oct 2022 09:38:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okQIk-0004Nx-3H for help-guix@gnu.org; Mon, 17 Oct 2022 09:37:07 -0400 Received: from koszko.org ([93.95.227.159]:46568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okQId-0004yt-Sy for help-guix@gnu.org; Mon, 17 Oct 2022 09:37:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bTphK4Bbcb2mMrN9hkTq5Y3W6d6H/irKg7oJnnzhoyA=; b=X8OMW69IrpYcIFGDnL2vCHXG9S CI7EzTz4KMFz9Izu/TfrqQt1/XwCNSp63s1H0q2aFvjc1Y98BYCIOA1Oif958qh2Uxgm85BquRdqQ nUMG41sT/CNvAR3vBwclGIH4J5iKvJVZT6r2m/Yaq88le2+2d9rumAh5ePBaK78mtxT1t3tjz1gt9 u/YxF+1/8yiK4aBtlcROAXkmfrKM7FoQ8nI4emsyeeaVP8HgaxW6YXvtXT5FniPmyIH87UOSh807K JnkW21oFktu+WGe0OlXVm0cCIlMfwDr3teb5f2mWSm+4Fx/bzJOOGFzLHBXRhk5FmsQpHQRhD0GfZ omHI6EJNhcAE+qPaM+gFCN1Nm3+K+Vs1ttYmSfcBWfSG1MuTf4/OaOiPEQJ/7IGjCxg2nSGYy1315 0U+nGp9M8bnTKfUTqmMVMIzNEFxu+F9P0FF5QUXbLDipvZWVYUgUL4IAQwOn679f+mOUTXxaU/WW3 FE7i1ATFOfEQ/WgCGKIWp8aZowYyV8luiSJqMRkxgKnQ/AktPqOigK35mBE1+jkuw3NMIcCKyBaDO WaM5miYO3MwRbahXhyKHpNb2+OcLi84hp6sb48eCn8iKIuGCu+Kbw0IpNkc7pI2vGY8w6Odk0lu+I 5RWDi/OrsnmvG6zPCERX34bahv7FeZeDeUK35fME0=; Received: from 77-252-46-225.static.ip.netia.com.pl ([77.252.46.225] helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1okQIU-0005ig-C4; Mon, 17 Oct 2022 15:36:50 +0200 Date: Mon, 17 Oct 2022 15:36:48 +0200 To: zimoun Cc: help-guix@gnu.org Subject: Re: program prepared with `guix pack` unusable by end users Message-ID: <20221017153648.7185c235@koszkonutek-tmp.pl.eu.org> In-Reply-To: <87mt9ypt4t.fsf@gmail.com> References: <20221013182027.2044d8ff@koszkonutek-tmp.pl.eu.org> <87czaurh9e.fsf@gmail.com> <20221014110911.66168330@koszkonutek-tmp.pl.eu.org> <87mt9ypt4t.fsf@gmail.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/jktipl_JX2zequ0sn8ooEzT"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" Reply-to: Wojtek Kosior From: Wojtek Kosior via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666013882; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bTphK4Bbcb2mMrN9hkTq5Y3W6d6H/irKg7oJnnzhoyA=; b=ep0R6m94IgXqs7w8UXklqUkqtnm4wpjfis/cKoZfHvbmrp1w/dhj82OodTIVVZPges66vT sCJudifI/qdE3CLLHHe22nOiz7y23GMFVG2hehMn9TdyoUX/+lRH4Zi5dL3PPLEqJJ1ylR FPm6y02ggwnqKodQp3bVedKStp3XC/JNjkWoL7lB64wOCcIoYrUqUbWZgcVoUPEDO+o0Tp iTE8hqPDOskLB0JPbw1xb299urJ2l3YgWigOdX8svnOvV561fxeDO10845g77VgsuvTJ/V eESXuRkmb6BmTinb6hBQ9Cf1U2navQxT4+ZGkv0UvanzdENUgp5Hi11iLG3kPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666013882; a=rsa-sha256; cv=none; b=CYjgdj2kAPbTN8pewUDB+KzA5zgcl9N1bDHB3ztOlcLrPFmuLlN4GxuGYWLG6wblMy3QTk qL80tYBFsWpapjkdJnJmy/MzEMGhdvCFKuHS0DljcoUefzzIOmAykj8r3Tbq/U+XNbCOtd eS1w8aCh0/qWZ9jewX/DavtM2AnndnFEF8zCwZBWAn5GNNjX+FACPFyhca28k+ShATAIV+ QGL3P/uyLp+S0yV0rDn/IK16P2L912LsOpENwhXgsW2s/UIjCO843hPCR4q5KTPpioiu0W HOwx8kEMfCbsDRgt8AblV6KWXT/BeQ4TZ5JgyCrxW81eaihPE7Pev3ROIPKWrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=X8OMW69I; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.62 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=X8OMW69I; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2BD2D126A5 X-Spam-Score: -5.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: KLdR65hhyz1r --Sig_/jktipl_JX2zequ0sn8ooEzT Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello again after a break, > Well, then I tried to reproduce your failure in order to understand what > is going wrong but I hit this: > > [...] >=20 > That=E2=80=99s because your package =E2=80=99python-pyopenssl-for-haketil= o=E2=80=99 inherit from > =E2=80=99python-pyopenssl=E2=80=99 defined in (gnu packages python-crypto= ). The issue > is that the =E2=80=99origin=E2=80=99 also inherits >=20 > (origin > (inherit (package-source base)) > =20 > and thus >=20 > (patches (search-patches "python2-pyopenssl-openssl-compat.patch")= ))) >=20 > does not make sense anymore because this patch is against 21.0.0 and > your variant is about 22.0.0. Thank you for your time spent on trying this out. The error is surely a result of us using different Guix versions. In the version I had the pyOpenSSL version was 20.0.1 and no patch was being used yet[1]. Another user also had problems building from source under a different Guix version. I knew this would happen but I didn't have a ready solution before. I now came up with a Makefile that organizes most common development tasks in my project into rules that call `guix time-machine` under the hood[2]. This should be a general solution for this kind of problems. > Well, further investigations about what could be wrong for =E2=80=9Cguix = pack=E2=80=9D > needs a way to reproduce. :-) Could you fix or point a working > example in your Git repository? As for troubleshooting the creation of Hydrilla 3.0-beta1 pack, one can get the same enviroment I was using by pulling Guix from commit fd00ac7e27c8a6d4b4d4719b4f8797bdce204623. Although most list users here probably know how to achieve this, I'm putting this here for convenience > guix time-machine --commit=3Dfd00ac7e27c8a6d4b4d4719b4f8797bdce204623 -- = Anyway, the main problem could probably be also troubleshooted by experimenting with the pack I made available[3] as it is also the one that is known to have caused problems. Thank you again, Wojtek [1] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/python-cry= pto.scm?id=3Dfd00ac7e27c8a6d4b4d4719b4f8797bdce204623#n650 [2] https://git.koszko.org/pydrilla/commit/?h=3Dkoszko&id=3Ded2e14dd6ced4f6= 4b6ac707c5998b38a78e6d7ad [3] https://hydrillabugs.koszko.org/projects/haketilo/wiki/Releases#Files -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A Meet Krak=C3=B3w saints! #13: blessed Jan Beyzym Poznaj =C5=9Bwi=C4=99tych krakowskich! #13: b=C5=82ogos=C5=82awiony Jan Be= yzym https://pl.wikipedia.org/wiki/Jan_Beyzym -- (sig_end) On Fri, 14 Oct 2022 13:00:18 +0200 zimoun wrote: > Hi, >=20 > On ven., 14 oct. 2022 at 11:09, Wojtek Kosior via wro= te: >=20 > > I accidently just replied to you, Simon, instead of making a "reply > > all". I'm reposting the same now, sorry for the nuisance... =20 >=20 > Do not worry. :-) >=20 > > So, I did run `guix shell -L. hydrilla`. First, I got a warning about > > =20 > >> ambiguous package specification `hydrilla' =20 >=20 > That=E2=80=99s expected because: >=20 > --8<---------------cut here---------------start------------->8--- > (define-public hydrilla > (package > (name "hydrilla") >=20 > [...] >=20 > (define-public hydrilla-dist-tarball > (let ((base hydrilla) > (filename (string-append "hydrilla-" %hydrilla-version ".tar.gz")= )) > (package > (inherit base) > (source (local-file > --8<---------------cut here---------------end--------------->8--- >=20 > It means that the package =E2=80=99hydrilla=E2=80=99 has the name =E2=80= =9Chydrilla=E2=80=9D and because > the package =E2=80=99hydrilla-dist-tarball=E2=80=99 inherits then it also= has the name > =E2=80=9Chydrilla=E2=80=9D. Idem for the version field. >=20 > Therefore, >=20 > guix shell -L . hydrilla >=20 > refers to 2 possible packages. All Guix CLI commands use =E2=80=9Cname= =E2=80=9C and > =E2=80=9Cversion=E2=80=9D for looking up to packages and not the symbols. >=20 >=20 > Well, then I tried to reproduce your failure in order to understand what > is going wrong but I hit this: >=20 > --8<---------------cut here---------------start------------->8--- > $ guix build -L . python-pyopenssl@22.0.0 > The following derivations will be built: > /gnu/store/gyc6sw8a9vq09z6p7plv3k5sjjvrcz9i-python-pyopenssl-22.0.0.drv > /gnu/store/rfawn8bnr1vz71gcm6dz171gfpk0fwai-pyOpenSSL-22.0.0.tar.xz.drv > building /gnu/store/rfawn8bnr1vz71gcm6dz171gfpk0fwai-pyOpenSSL-22.0.0.tar= .xz.drv... > pyOpenSSL-22.0.0/ >=20 > [...] >=20 > pyOpenSSL-22.0.0/tox.ini > patching file src/OpenSSL/SSL.py > Hunk #1 FAILED at 1421. > Hunk #2 FAILED at 2449. > 2 out of 2 hunks FAILED -- saving rejects to file src/OpenSSL/SSL.py.rej > patching file tests/test_ssl.py > Hunk #1 FAILED at 1928. > 1 out of 1 hunk FAILED -- saving rejects to file tests/test_ssl.py.rej > source is at 'pyOpenSSL-22.0.0' > applying '/gnu/store/4cd1x970w3jg3rwaiqg174x56mvkihij-python2-pyopenssl-o= penssl-compat.patch'... > Backtrace: >=20 > [...] >=20 > ERROR: > 1. &invoke-error: > program: "/gnu/store/z39hnrwds1dgcbpfgj8dnv2cngjb2xbl-patch-2.7.6/b= in/patch" > arguments: ("--force" "--no-backup-if-mismatch" "-p1" "--input" "/g= nu/store/4cd1x970w3jg3rwaiqg174x56mvkihij-python2-pyopenssl-openssl-compat.= patch") >=20 > [...] >=20 > builder for `/gnu/store/rfawn8bnr1vz71gcm6dz171gfpk0fwai-pyOpenSSL-22.0.0= .tar.xz.drv' failed with exit code 1 > build of /gnu/store/rfawn8bnr1vz71gcm6dz171gfpk0fwai-pyOpenSSL-22.0.0.tar= .xz.drv failed > View build log at '/var/log/guix/drvs/rf/awn8bnr1vz71gcm6dz171gfpk0fwai-p= yOpenSSL-22.0.0.tar.xz.drv.gz'. > cannot build derivation `/gnu/store/gyc6sw8a9vq09z6p7plv3k5sjjvrcz9i-pyth= on-pyopenssl-22.0.0.drv': 1 dependencies couldn't be built > guix build: error: build of `/gnu/store/gyc6sw8a9vq09z6p7plv3k5sjjvrcz9i-= python-pyopenssl-22.0.0.drv' failed > --8<---------------cut here---------------end--------------->8--- >=20 > That=E2=80=99s because your package =E2=80=99python-pyopenssl-for-haketil= o=E2=80=99 inherit from > =E2=80=99python-pyopenssl=E2=80=99 defined in (gnu packages python-crypto= ). The issue > is that the =E2=80=99origin=E2=80=99 also inherits >=20 > (origin > (inherit (package-source base)) > =20 > and thus >=20 > (patches (search-patches "python2-pyopenssl-openssl-compat.patch")= ))) >=20 > does not make sense anymore because this patch is against 21.0.0 and > your variant is about 22.0.0. >=20 >=20 > Well, further investigations about what could be wrong for =E2=80=9Cguix = pack=E2=80=9D > needs a way to reproduce. :-) Could you fix or point a working example > in your Git repository? >=20 >=20 > Thanks, > simon >=20 --Sig_/jktipl_JX2zequ0sn8ooEzT Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY01acAAKCRBLxSIcWnn9 GsPXAQDwJ1hvFL78Sbq/Tmh0aV6ZoimKlJtSP3olv4jX92WIQgD9HTuJhKIzZ+Me qipG9ztuopKogMBoyKT2GlX5UdCr8wI= =Y81w -----END PGP SIGNATURE----- --Sig_/jktipl_JX2zequ0sn8ooEzT--