From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 EBK5AXZUSWNtiQAAbAwnHQ (envelope-from ) for ; Fri, 14 Oct 2022 14:22:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OIfVAXZUSWNbqAAA9RJhRA (envelope-from ) for ; Fri, 14 Oct 2022 14:22:14 +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 7D4799AEB for ; Fri, 14 Oct 2022 14:22:13 +0200 (CEST) Received: from localhost ([::1]:59158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojJhb-0004cT-4h for larch@yhetil.org; Fri, 14 Oct 2022 08:22:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojJgO-0004Y0-A6 for help-guix@gnu.org; Fri, 14 Oct 2022 08:20:56 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:36684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojJgM-0002Ic-DD for help-guix@gnu.org; Fri, 14 Oct 2022 08:20:55 -0400 Received: by mail-wm1-x332.google.com with SMTP id c3-20020a1c3503000000b003bd21e3dd7aso5233409wma.1 for ; Fri, 14 Oct 2022 05:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=lVfV1PaXUse/2SzAfXBAsi82nWLpx1NY4UaNyxa/IkY=; b=HZYOzdBT3lcJ4OmToRnS4abFcIzhIioZREx/WRL2CmgZq/yN6oIvuvm7kMLLv14VxT yNJtkfO/TIZftV2QJeEnz+lxf+BMq+AqDlw1HaPXmx67B5Q95eYTnEnPSJT2xKfUgfh6 0bnbLo3y1x4mJkHCdQ6VMbri6SJq+gLJV1sh7ePBBo7zmdU7htmxpBGAM20mncL4Pd4L SwqhS0k7AJd6QJJhoDHJsO+kKN0UUZE1tBL6NT42x7ANyNWPw1rx3XehHFULKz5E9eEo 0916oe/PmgV60lFg1OKPHGLY2UlS+wKMxnoWiYoyPJNi1bEuRdHIVIZugIYMiwwJAPH1 thoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lVfV1PaXUse/2SzAfXBAsi82nWLpx1NY4UaNyxa/IkY=; b=J4zKFIHfGdCETy7Ppc+LyiCkMqT0RdOi3UpCZb0XWmsPeyY4AMnIbbcE958O/jFPbJ AxRrpa6ANddsAFkzsFv6/7NxzrOPkeCMc59zHfE6eZX3412RX4QZiC3U8whVaDDS1SpB qbeu9Pf1J9IVU2wFOssa1wlYWlXhLobyLZDAWPCLyBn27xK5FKcpFgdU9sRlSpCRH7YX iFaLE9us9V71A4tLk20iqXcRkqEhmgtcevbSy5Us3cWKi+sKBtybe2r38jFUg/r8FU0I j1PjiFVVsE2vZ7GRTfoZgKDYPwCOe09IXCc2TtgxnwjPkCxjG6adrVj2PfygcBOuWSwL VePw== X-Gm-Message-State: ACrzQf2+To+CWWsSYeo9bliA23isbFZgxlWqlEaizeqxtTutnd548m2+ Kowek2zD/M6dxXue27z12jxfY07r+x4= X-Google-Smtp-Source: AMsMyM6TsIiYYCyJPWHxd3PHwy+aaMX4IFQO9ziXSrjk2IjMB7setpfD4DcT0f37rWVRiXJlsFD6KA== X-Received: by 2002:a1c:a1c3:0:b0:3c6:b709:aa49 with SMTP id k186-20020a1ca1c3000000b003c6b709aa49mr3363764wme.197.1665750051735; Fri, 14 Oct 2022 05:20:51 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id r124-20020a1c2b82000000b003bf3fe1d0c4sm2031742wmr.22.2022.10.14.05.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 05:20:51 -0700 (PDT) From: zimoun To: Wojtek Kosior Cc: help-guix@gnu.org Subject: Re: program prepared with `guix pack` unusable by end users In-Reply-To: <20221014110911.66168330@koszkonutek-tmp.pl.eu.org> References: <20221013182027.2044d8ff@koszkonutek-tmp.pl.eu.org> <87czaurh9e.fsf@gmail.com> <20221014110911.66168330@koszkonutek-tmp.pl.eu.org> Date: Fri, 14 Oct 2022 13:00:18 +0200 Message-ID: <87mt9ypt4t.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x332.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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" 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=1665750133; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=lVfV1PaXUse/2SzAfXBAsi82nWLpx1NY4UaNyxa/IkY=; b=igTvZ8JCnqoKbkuP97FriOK5UyQfXjMQwIvYsV3HiJZU1Gde8oGV4RdbjR8XkBXNCeC83Y mvWMkJvFq/esOHpYRNBLWBIHnSr43RSIzJlR8vkr0gSyJquilLblM9O3nI2t7lb+J0tDe/ 0dm4Q9Ki64w+nJ8RENVbF2pNkUpKMuWcU9JZaf2Gca16a7cF/lkb23PxBpE+aSkkGApTai U10chTO2luEj1x9/nI3kewmxIZP0fBZt2uPBwQ3k2cqvv5wJsefScNaP2J0MT0/t4r23JT LuRybNMTwiGyxBBMP/bVcVIDOKRPmxQ3zDhYePr5clFWqKxa1ophcVASErmu4Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665750133; a=rsa-sha256; cv=none; b=j7FTfHUUcSt66anCpSA8fjYPRUBlXtNQzVllPwwp5iFO+m/DfCd1SRN4isxSVIofL6tz9I LjTqz354S6vdZkJ+lxG7iHZDn3WMjwJHRBpWyGqb+0SeSkTfFw3As+575QTenkEzn+b5GX E2mCX9lGo+WEYMhnJgqHzOJU1cP5RYOyjlwipy9cGkOtlzqziM8ANT/H3Ji9UzXUEZH0MX VOoCZmwWWWkM1SxBPPrt3M4/Rl6THLxIqxFXuqwRfX41RoW0f73R019OoXY1JM+LYxQJZb MFTJqALaeWYMTVQlR1U5a2kF1L17Fs7rehz8e1magUl8YSIaOhUQ8QdPf4XdKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HZYOzdBT; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.39 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HZYOzdBT; dmarc=pass (policy=none) header.from=gmail.com; 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: 7D4799AEB X-Spam-Score: -4.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: FOZxWrqZasyc Hi, On ven., 14 oct. 2022 at 11:09, Wojtek Kosior via wrote: > I accidently just replied to you, Simon, instead of making a "reply > all". I'm reposting the same now, sorry for the nuisance... Do not worry. :-) > So, I did run `guix shell -L. hydrilla`. First, I got a warning about > >> ambiguous package specification `hydrilla' That=E2=80=99s expected because: --8<---------------cut here---------------start------------->8--- (define-public hydrilla (package (name "hydrilla") [...] (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--- It means that the package =E2=80=99hydrilla=E2=80=99 has the name =E2=80=9C= hydrilla=E2=80=9D and because the package =E2=80=99hydrilla-dist-tarball=E2=80=99 inherits then it also h= as the name =E2=80=9Chydrilla=E2=80=9D. Idem for the version field. Therefore, guix shell -L . hydrilla 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. Well, then I tried to reproduce your failure in order to understand what is going wrong but I hit this: --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.x= z.drv... pyOpenSSL-22.0.0/ [...] 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-ope= nssl-compat.patch'... Backtrace: [...] ERROR: 1. &invoke-error: program: "/gnu/store/z39hnrwds1dgcbpfgj8dnv2cngjb2xbl-patch-2.7.6/bin= /patch" arguments: ("--force" "--no-backup-if-mismatch" "-p1" "--input" "/gnu= /store/4cd1x970w3jg3rwaiqg174x56mvkihij-python2-pyopenssl-openssl-compat.pa= tch") [...] builder for `/gnu/store/rfawn8bnr1vz71gcm6dz171gfpk0fwai-pyOpenSSL-22.0.0.t= ar.xz.drv' failed with exit code 1 build of /gnu/store/rfawn8bnr1vz71gcm6dz171gfpk0fwai-pyOpenSSL-22.0.0.tar.x= z.drv failed View build log at '/var/log/guix/drvs/rf/awn8bnr1vz71gcm6dz171gfpk0fwai-pyO= penSSL-22.0.0.tar.xz.drv.gz'. cannot build derivation `/gnu/store/gyc6sw8a9vq09z6p7plv3k5sjjvrcz9i-python= -pyopenssl-22.0.0.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/gyc6sw8a9vq09z6p7plv3k5sjjvrcz9i-py= thon-pyopenssl-22.0.0.drv' failed --8<---------------cut here---------------end--------------->8--- That=E2=80=99s because your package =E2=80=99python-pyopenssl-for-haketilo= =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 (origin (inherit (package-source base)) =20=20=20=20=20=20=20=20=20 and thus (patches (search-patches "python2-pyopenssl-openssl-compat.patch")))) does not make sense anymore because this patch is against 21.0.0 and your variant is about 22.0.0. Well, further investigations about what could be wrong for =E2=80=9Cguix pa= ck=E2=80=9D needs a way to reproduce. :-) Could you fix or point a working example in your Git repository? Thanks, simon