From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kJ4dBGcrpGDpAQEAgWs5BA (envelope-from ) for ; Tue, 18 May 2021 23:02:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cMFMO2YrpGBeeAAAbx9fmQ (envelope-from ) for ; Tue, 18 May 2021 21:02:30 +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 513391F52E for ; Tue, 18 May 2021 23:02:30 +0200 (CEST) Received: from localhost ([::1]:59564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lj6rE-00043v-6G for larch@yhetil.org; Tue, 18 May 2021 17:02:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj6qs-00043h-Ji for help-guix@gnu.org; Tue, 18 May 2021 17:02:06 -0400 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]:45901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lj6qo-0003vG-H4 for help-guix@gnu.org; Tue, 18 May 2021 17:02:06 -0400 Received: by mail-il1-x132.google.com with SMTP id e14so10333747ils.12 for ; Tue, 18 May 2021 14:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=Z76Mq7Bb24rgPnJpXcmt+ButJdd88pt1Mj+ICQD+aJw=; b=EktphgnDYQljWO/6bxMNFGVep/yJlxpfqQYCcPTFKo/LM+k3SRcDnou2rCzBKymn6n nTuCvSc7agMOxapo+/lq6STGVRSTFYDygoZBUGADhKmmphV6nKPKUcgXdA4Tc0KfoKx0 wyHmtwEV2GvS25jEU+Ka68xEoDOcz5pxlP8p1q+WWXM/fODhgoEpKMRK1Vfzj85B5b4b +KQc+KVaN8CPyKwY1YUs8AHtwWrQ+p7Ps1kJKkYvPpaSWt1SnLSTDrWsb/UOZ5kyhrHN 30rjsc7OTniDSySlVZKid5LTwlzF5Ki5R3QhbaHUOxepqAjCn+TPDRc0nE1dgQSoxWO4 C9+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Z76Mq7Bb24rgPnJpXcmt+ButJdd88pt1Mj+ICQD+aJw=; b=rxTe6Rvu+LSQdYg5Bzst63TZdnxZLizsiMS1s7EgMyCoPuDI2nkfVjOE4R3zdbQmx9 mnZv/jiszqpdqZytmdyYWO3qT7QlqeLs0+DVnJR1wkDO/i0riU0e/0bxPUoHCAuu5sXF bhyU9la5JqHYglF3rgec6EXc4vQmwpfNFSfn3GhSHNp2LRADDuF9208cL0l1a2fCnSsG GhVo8msUsn6qGIzY/WBnmzoshG3Y6enciJGsH1WTp4i1bwu4AAripJRrBvXg17Fb6ECv vNQt2My9p39pkgZM4q+DLAGv+AWtcLSTQblGFOx3xmcTJYSzlkCgbsP4jc1ua8kwmIUO +ywg== X-Gm-Message-State: AOAM532wNxWLoeTXXVMmori5ErWhTQhUfyL2xhNbIlUj30+LBoInzpDi MpKyfQeO4nHgRHcB/+QAptwvLsfeQEpyT8LDJUMWCHDo5HXP9vjN+3U= X-Google-Smtp-Source: ABdhPJypLZ7YYO9bvqPILO37rlhCn+9XJZvMBiEB1v4MkVF41fhK8RgMFDKDzJEWx237lephJMW05+UDOqo4dHQtC54= X-Received: by 2002:a92:dd89:: with SMTP id g9mr6593773iln.209.1621371720442; Tue, 18 May 2021 14:02:00 -0700 (PDT) MIME-Version: 1.0 From: Phil Beadling Date: Tue, 18 May 2021 22:01:49 +0100 Message-ID: Subject: Inconsistencies in Package Transformation? To: help-guix Received-SPF: none client-ip=2607:f8b0:4864:20::132; envelope-from=phil@beadling.co.uk; helo=mail-il1-x132.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" 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=1621371750; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=h7J91fePKuAkGLVAeiW81Vcz/8qP176b68LzH6tqemY=; b=FvpbfvGVdUvgj6KBshRdhA5uHyECdDfsNeOgvTGdde/eD3beb1Z25EVq9bHlZYKbNil13/ 5RhL8DaxaORwY8nxqU1kOYI/9e/QiyxJKXqUxzvPWHXbo8PMvOV4ENDjVMGdB+4aQyeRZJ 7kiw/PJtVrRKgL3qWtEdP6djbggWsKFfqlhOOhIuWU4H52TWgNzJOELE6gCkyB3L3b0c0K Ik/QkspLniT8gyIuyhWcJj0pC+WWJPYvxjnbhZcsMyDw27Vk0GNVv6VBLuEXj0DQCohvKX u1pB8dh7LyHCWENpOjN/V78Tk/jtW6NEYJ3tmJRMPmEkRqsJiSbHi1qavGhS3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621371750; a=rsa-sha256; cv=none; b=VwfrJByifSUt8pBCEuXXwGtz/OUiNXiraqdPUqSBtRnXcxcCT22aef1mybffy7X/H4PWf3 bMjEgfG5Je2sC42hAx2CTb5DDpvXK4QdnsPBbbqk67BmUrWHntmO3oyE6XZkaBzbjxzsfd 7rwaN6ukKjq6bIS0C2TnPID9etw3pHbgmepZOFmATBM5Rr8R2NCFoS48ENfkmSAfd0pR2o 70lOLQoUyslhouQ46dFwOBSvxHZtpHymiixD4PPJFleiYyM8ks4oScXyc5R5DxtfkT3cR4 F7Nvky9aMTscv8/LedNXYkGbFDef5ju0dj/AU+xsu5EoxmNqppAmtT/+mMNm0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=EktphgnD; 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.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=EktphgnD; dmarc=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: 513391F52E X-Spam-Score: -0.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: OE7S9uO+rfdS Hi all, I've read through this link: https://guix.gnu.org/manual/en/html_node/Package-Transformation-Options.html But I seem to get unexpected outcomes in some examples - see below. Any advice or confirmation that this is a bug or misuse by me? Thanks, Phil. A simple case of package transformation without any dependencies seems to work fine - for example, let's upgrade pandas to v1.1.5: *$ guix package -i python-pandas python -p ~/profiles/pandas-1.1.5 --with-git-url=python-pandas=https://github.com/pandas-dev/pandas.git --with-commit=python-pandas=v1.1.5 --without-tests=python-pandasThe following packages will be installed: python 3.8.2 python-pandas 1.1.5updating checkout of 'https://github.com/pandas-dev/pandas.git'. ..retrieved commit af3e67970ff8e9e3eccfef54c8de96f850e36912The following derivation will be built: /gnu/store/cd045q1l75wx59d62f1b8sb6p92yjf4d-profile.drvbuilding CA certificate bundle...listing Emacs sub-directories...building fonts directory...building directory of Info manuals...building database for manual pages...building profile with 2 packages...hint: Consider setting the necessary environment variables by running: GUIX_PROFILE="/home/phil/profiles/pandas-1.1.5" . "$GUIX_PROFILE/etc/profile"Alternately, see `guix package --search-paths -p "/home/phil/profiles/pandas-1.1.5"'.$ GUIX_PROFILE="/home/phil/profiles/pandas-1.1.5"$ . "$GUIX_PROFILE/etc/profile"$ python3Python 3.8.2 (default, Jan 1 1970, 00:00:01)[GCC 7.5.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import pandas as pd>>> pd.__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). 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. 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.1.5 --with-git-url=python-pandas=https://github.com/pandas-dev/pandas.git --with-commit=python-pandas=v1.1.5 --without-tests=python-pandas --without-tests=python-dask --without-tests=fooThe following packages will be installed: python 3.8.2 foo 3.196.0updating checkout of 'ssh://git@bitbucket:7999/foo/foo.git'...retrieved commit a723e52bec22ca36bbfda62f34a1f46e0065b7eaupdating checkout of 'https://github.com/pandas-dev/pandas.git'. ..retrieved commit af3e67970ff8e9e3eccfef54c8de96f850e36912hint: Consider setting the necessary environment variables by running: GUIX_PROFILE="/home/phil/profiles/simm-pandas-1.1.5" . "$GUIX_PROFILE/etc/profile"Alternately, see `guix package --search-paths -p "/home/phil/profiles/simm-pandas-1.1.5"'.$ GUIX_PROFILE="/home/phil/profiles/simm-pandas-1.1.5"$ . "$GUIX_PROFILE/etc/profile"$ python3Python 3.8.2 (default, Jan 1 1970, 00:00:01)[GCC 7.5.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import pandas as pd>>> pd.__version__'1.1.2'>>>* Everything looks to be going to plan, but when I import pandas using the new profile I get version *1.1.2* - which is my standard untransformed python-pandas package - no replacement has taken place, despite the process reporting the correct location and commit id for the pandas checkout. This either looks like a) a bug, or b) I've misunderstood the scope of the transformation syntax. One last detail - my own definiton of python-pandas v1.1.2 inherits from the gnu package in Guix. 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.1.2") (source (origin (method url-fetch) (uri (pypi-uri "pandas" version)) (sha256 (base32 "0i0lbp26kzbq1qa4rv2s2r42m9d95svjrfflmi01plygla3zskxn")))) .... and 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.