From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AFPXBxcypGDNDAEAgWs5BA (envelope-from ) for ; Tue, 18 May 2021 23:31:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IPmNAxcypGDIawAA1q6Kng (envelope-from ) for ; Tue, 18 May 2021 21:31:03 +0000 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 2BED61B023 for ; Tue, 18 May 2021 23:31:02 +0200 (CEST) Received: from localhost ([::1]:58064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lj7Iq-00066u-6g for larch@yhetil.org; Tue, 18 May 2021 17:31:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj7Ib-00066Z-8i for help-guix@gnu.org; Tue, 18 May 2021 17:30:45 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:55064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj7IX-0004Zd-Lj; Tue, 18 May 2021 17:30:44 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e4ecb87c; Tue, 18 May 2021 21:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=ijcicLBx8T9CtEH099MlRzMR3ZgbWrosWC4muE9hvbo=; b=TC8VnS1RJExJ kB6aGiIw4RJiGtcCbHBjmtkr9vodtEGRcVkKQmCvJhp0TOisALmxaCJ2CPUL/ZHK t3FnGRJYwF/tlYOoS1RqEvxG5nEQFh1Om/VrZSq4VpwWrsshJrlJ1FqjNgwuwYZn v09ItH4QXV3yOp1EPiGjV9xlTLuUC8wVw2QlP1+5RJH4GDXN+VDao9SpFD5cRK+9 7o5USZg3JDlGjwIRD9+EwXcYQYsg31Zoi21cXbV0F5M8DNAOBis/J+lTYUmyt2h9 apMMPX5gjK9/sR/SkPRuNN9ZACWIoJekC4rgiFLf7roBA70kDD3F+niSU+/huDTM BRURPL2HGQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 36469d53 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 18 May 2021 21:30:34 +0000 (UTC) Date: Tue, 18 May 2021 17:30:24 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Subject: Re: Inconsistencies in Package Transformation? To: help-guix@gnu.org, Phil Beadling , help-guix From: Julien Lepiller Message-ID: Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) AC_BR_BONANZA=0.001, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621373462; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=XIkAOTQUkdIKnzyxN925JUeoo8Z0KAH+OjLqvajU3Wg=; b=Y0OB7eXV24ON5oc7NKP0KJYXbMdKv61IpMZQvBWpMPLpM3aozFoUfFOy5z3Na4FTDv2m7m k45iSonZ8pc1+vF6ZP4O4cnFUEUkcJr8Gpdu3N49lK9lbN9yJnssIGAEMMYk4HZSGEhvfL Cf2yotV6+smtHZGnIJCypWhR993BxFutF/g/2hzKORZfocUsC6foyvAy1yNNgiHLyqkf69 1e5+UXdJNtlT3+PZlLJBPVwY61RGzm+HGXtgdSeN8tSWvv2xVqRJPK5M6c/xaaW17dyN0A cGsoFRqQ+BzQsylW33T4zX5H3Tjp6hDaAHPG5NZnHzEZw+psajjJnutmkMwtQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621373462; a=rsa-sha256; cv=none; b=aZwT4d0cTrC6r/3tO2VSb2bfRoGHtGRwIK9qNFyj3MWdV8bXVyuWrq9wfedKbjt3OuXcUO kYMntpxmJFJikxwxVwQY2j6r2WqCMKruC5qfErZVCjAGzyjT8rpBJwPvG0enY76qHhSlxc dNvOwRWObEImj8VKRrhpu1Y+wE0IQMKy0HyJ2pPkTABceuQNxTLdPRLkVFHFH3PI31wl2d MQCBDibgAe1NfDyVxuAPSdmXjBZi1Q7lrZCOuVjvb8wu8Qvu67Z+zB62lL99Uqvq/KyEht 7FoaK2eKqGB0tTTAvFrYMjmUe4OM0qKbB94jqg1mpb06TCKIGuKT0577Cr2kZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=TC8VnS1R; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=TC8VnS1R; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 2BED61B023 X-Spam-Score: -0.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: dacwzcUJe2kV I think this is because the syntax works by first transforming the name to = a package variable, so when you replace python-pandas, it only replaces the= python-pandas guix install would install, not your custom version=2E Does = it make sense? Le 18 mai 2021 17:01:49 GMT-04:00, Phil Beadling = a =C3=A9crit : >Hi all, > >I've read through this link: >https://guix=2Egnu=2Eorg/manual/en/html_node/Package-Transformation-Optio= ns=2Ehtml > >But I seem to get unexpected outcomes in some examples - see below=2E > >Any advice or confirmation that this is a bug or misuse by me? > >Thanks, >Phil=2E > >A simple case of package transformation without any dependencies seems >to >work fine - for example, let's upgrade pandas to v1=2E1=2E5: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >*$ guix package -i python-pandas python -p ~/profiles/pandas-1=2E1=2E5 >--with-git-url=3Dpython-pandas=3Dhttps://github=2Ecom/pandas-dev/pandas= =2Egit > >--with-commit=3Dpython-pandas=3Dv1=2E1=2E5 --without-tests=3Dpython-panda= sThe >following packages will be installed: python 3=2E8=2E2 =20 >python-pandas >1=2E1=2E5updating checkout of 'https://github=2Ecom/pandas-dev/pandas=2Eg= it'=2E >=2E=2Eretrieved commit >af3e67970ff8e9e3eccfef54c8de96f850e36912The following derivation will >be >built: =20 >/gnu/store/cd045q1l75wx59d62f1b8sb6p92yjf4d-profile=2Edrvbuilding CA >certificate bundle=2E=2E=2Elisting Emacs sub-directories=2E=2E=2Ebuilding= fonts >directory=2E=2E=2Ebuilding directory of Info manuals=2E=2E=2Ebuilding dat= abase for >manual pages=2E=2E=2Ebuilding profile with 2 packages=2E=2E=2Ehint: Consi= der >setting >the necessary environment variables by running: > GUIX_PROFILE=3D"/home/phil/profiles/pandas-1=2E1=2E5" =2E >"$GUIX_PROFILE/etc/profile"Alternately, see `guix package >--search-paths -p >"/home/phil/profiles/pandas-1=2E1=2E5"'=2E$ >GUIX_PROFILE=3D"/home/phil/profiles/pandas-1=2E1=2E5"$ =2E >"$GUIX_PROFILE/etc/profile"$ python3Python 3=2E8=2E2 (default, Jan 1 197= 0, >00:00:01)[GCC 7=2E5=2E0] on linuxType "help", "copyright", "credits" or >"license" for more information=2E>>> import pandas as pd>>> >pd=2E__version__'0+unknown'>>>* > >The right commit is taken from github, and after the build we use the >profile to access our new version of pandas (the 0+unknown version I >think >is caused by building from git)=2E > > >Next, I try exactly the same transformation, but I want to instead >build >one of my own applications which has python-pandas as propagated input=2E > My >understanding from the docs is this should work find as a deep >transformation should occur? > > > > > > > > > > > > > > > > > > > > > > > > > > > >*$ guix package -i foo python -p ~/profiles/foo-pandas-1=2E1=2E5 >--with-git-url=3Dpython-pandas=3Dhttps://github=2Ecom/pandas-dev/pandas= =2Egit > >--with-commit=3Dpython-pandas=3Dv1=2E1=2E5 --without-tests=3Dpython-panda= s >--without-tests=3Dpython-dask --without-tests=3DfooThe following packages >will >be installed: python 3=2E8=2E2 foo 3=2E196=2E0updating checkout of >'ssh://git@bitbucket:7999/foo/foo=2Egit'=2E=2E=2Eretrieved commit >a723e52bec22ca36bbfda62f34a1f46e0065b7eaupdating checkout of >'https://github=2Ecom/pandas-dev/pandas=2Egit'=2E >=2E=2Eretrieved commit >af3e67970ff8e9e3eccfef54c8de96f850e36912hint: Consider setting the >necessary environment variables by running: > GUIX_PROFILE=3D"/home/phil/profiles/simm-pandas-1=2E1=2E5" =2E >"$GUIX_PROFILE/etc/profile"Alternately, see `guix package >--search-paths -p >"/home/phil/profiles/simm-pandas-1=2E1=2E5"'=2E$ >GUIX_PROFILE=3D"/home/phil/profiles/simm-pandas-1=2E1=2E5"$ =2E >"$GUIX_PROFILE/etc/profile"$ python3Python 3=2E8=2E2 (default, Jan 1 197= 0, >00:00:01)[GCC 7=2E5=2E0] on linuxType "help", "copyright", "credits" or >"license" for more information=2E>>> import pandas as pd>>> >pd=2E__version__'1=2E1=2E2'>>>* > >Everything looks to be going to plan, but when I import pandas using >the >new profile I get version *1=2E1=2E2* - which is my standard untransforme= d >python-pandas package - no replacement has taken place, despite the >process >reporting the correct location and commit id for the pandas checkout=2E > > >This either looks like a) a bug, or b) I've misunderstood the scope of >the >transformation syntax=2E > > >One last detail - my own definiton of python-pandas v1=2E1=2E2 inherits >from >the gnu package in Guix=2E Whilst I inherit the name python-pandas the >actual package is called python-pandas-foo, and it is referenced in >foo's >package's propagated inputs like this: >*("python-pandas" ,python-pandas-foo)* > >Package definition snippet: > > > > > > > > > > >*(define-public python-pandas-foo (package (inherit python-pandas) >(version "1=2E1=2E2") (source (origin (method url-fetch) > (uri (pypi-uri "pandas" version)) (sha256 (base32 >"0i0lbp26kzbq1qa4rv2s2r42m9d95svjrfflmi01plygla3zskxn")))) =2E=2E=2E=2E a= nd so >on* > >I don't think this last detail should matter, but I include is as the >only >other significant detail that may differ from other systems=2E