guix update -u always wants to update: python-wrapper & python-ipython

  • Done
  • quality assurance status badge
Details
3 participants
  • Benjamin Andresen
  • Ludovic Courtès
  • zimoun
Owner
unassigned
Submitted by
Benjamin Andresen
Severity
normal
B
B
Benjamin Andresen wrote on 10 Nov 2017 14:58
(address . bug-guix@gnu.org)
87o9oafd6g.fsf@in-ulm.de
Hello everyone,

this is with an empty user account that has no packages installed
before this:
Toggle quote (9 lines)
> guixsd% guix package -u
> The following packages will be upgraded:
> python-wrapper 3.5.3 → 3.5.3
> /gnu/store/xnb9bn2vgr3ch8zznsv23w65bb5psshh-python-wrapper-3.5.3
> python-ipython 5.3.0 → 5.3.0
> /gnu/store/7lg8s2kc6k8fxbdx80ykz39kz2lwj08g-python-ipython-5.3.0
>
> nothing to be done

The problem exists with both installed and with them individually.

The full log follows:
Toggle quote (119 lines)
> guixsd% guix --version | head -1
> guix (GNU Guix) 011f57695a817f9b13c75e43069e572101a3edf7
> guixsd% guix package -u
> guixsd% guix package -i python-wrapper python-ipython
> The following packages will be installed:
> python-wrapper 3.5.3
> /gnu/store/xnb9bn2vgr3ch8zznsv23w65bb5psshh-python-wrapper-3.5.3
> python-ipython 5.3.0
> /gnu/store/7lg8s2kc6k8fxbdx80ykz39kz2lwj08g-python-ipython-5.3.0
>
> substitute: updating list of substitutes from
> 'https://mirror.hydra.gnu.org'... 100.0%
> The following derivations will be built:
> /gnu/store/blf8y4d32qdq18pskbb6izhp293b6g7w-profile.drv
> /gnu/store/zc348d3nn5ib92r1aakkrzmdsw2dkfan-gtk-icon-themes.drv
> /gnu/store/v9012vmlxji3xl46ffjsmcyc0g8fp4vl-xdg-mime-database.drv
> /gnu/store/kil8lpbfg486awimiwx2j9cvlpvil4ii-xdg-desktop-database.drv
> /gnu/store/iai78rn3m2cgqvdd8clw9yj60fvfxqyi-fonts-dir.drv
> /gnu/store/clsaw0ny0k4wjc2c3fbz6ngmhpi0vlsv-gtk-im-modules.drv
> /gnu/store/88smx74xhmk8wnr297dvb1p6jzzqq6zh-ca-certificate-bundle.drv
> /gnu/store/0kcp2mxa01zjmg1s99sw15rbnhb1di3y-info-dir.drv
> /gnu/store/iwavxfqba2j025j3b7h2g024ap9ckgh9-manual-database.drv
> Creating manual page database for 71 packages... done in 11.566
> s
> 2 packages in profile
> The following environment variable definitions may be needed:
> export
> PATH="/home/test/.guix-profile/bin:/home/test/.guix-profile/sbin${PATH:+:}$PATH"
> export
> PYTHONPATH="/home/test/.guix-profile/lib/python3.5/site-packages${PYTHONPATH:+:}$PYTHONPATH"
> export
> GUIX_GTK3_PATH="/home/test/.guix-profile/lib/gtk-3.0${GUIX_GTK3_PATH:+:}$GUIX_GTK3_PATH"
> export
> GI_TYPELIB_PATH="/home/test/.guix-profile/lib/girepository-1.0${GI_TYPELIB_PATH:+:}$GI_TYPELIB_PATH"
> export
> GIO_EXTRA_MODULES="/home/test/.guix-profile/lib/gio/modules${GIO_EXTRA_MODULES:+:}$GIO_EXTRA_MODULES"
> guixsd% echo $SHELL
> /gnu/store/4xxrs4ip83c7ji4nh8jclx2j0p1kj6rg-zsh-5.2/bin/zsh
> guixsd% vim .zlogin
> guixsd% guix package -u
> The following packages will be upgraded:
> python-wrapper 3.5.3 → 3.5.3
> /gnu/store/xnb9bn2vgr3ch8zznsv23w65bb5psshh-python-wrapper-3.5.3
> python-ipython 5.3.0 → 5.3.0
> /gnu/store/7lg8s2kc6k8fxbdx80ykz39kz2lwj08g-python-ipython-5.3.0
>
> nothing to be done
> guixsd% guix package -r python-ipython
> The following package will be removed:
> python-ipython 5.3.0
> /gnu/store/7lg8s2kc6k8fxbdx80ykz39kz2lwj08g-python-ipython-5.3.0
>
> substitute: updating list of substitutes from
> 'https://mirror.hydra.gnu.org'... 100.0%
> The following derivations will be built:
> /gnu/store/xh1f3avgvcbp8agzld2vi878mya5m4nd-profile.drv
> /gnu/store/lkg6zp4qlmnixfzgzb93k0sdspj1n6ma-ca-certificate-bundle.drv
> /gnu/store/6v3cmccrgm1sq86xqi4si95rpj5hhf7n-info-dir.drv
> /gnu/store/1532igqvamrbaaw577mns21cgjm7ggah-fonts-dir.drv
> /gnu/store/hifxa1zb6invg4w1v908ili82dlnys4m-manual-database.drv
> Creating manual page database for 1 packages... done in 0.051 s
> 1 package in profile
>
> guixsd% guix package -u
> The following package will be upgraded:
> python-wrapper 3.5.3 → 3.5.3
> /gnu/store/xnb9bn2vgr3ch8zznsv23w65bb5psshh-python-wrapper-3.5.3
>
> substitute: updating list of substitutes from
> 'https://mirror.hydra.gnu.org'... 100.0%
> The following derivations will be built:
> /gnu/store/svml5qir06llsv8p88vqn55q51qyfhar-profile.drv
> /gnu/store/pg0c1z4z31k4qk3cgakm1ax5cm8vs4k8-info-dir.drv
> /gnu/store/ljiyfird93jprpffk97nhhpx7fx3ckrg-ca-certificate-bundle.drv
> /gnu/store/ipx6hk4g7nalw7nir5bwnbv25a1i0av3-fonts-dir.drv
> /gnu/store/08651512643lavv3d45fcsk8kh7x1i0k-manual-database.drv
> Creating manual page database for 1 packages... done in 0.039 s
> 1 package in profile
> guixsd% guix package -r python-wrapper -i python-ipython
> The following package will be removed:
> python-wrapper 3.5.3
> /gnu/store/xnb9bn2vgr3ch8zznsv23w65bb5psshh-python-wrapper-3.5.3
>
> The following package will be installed:
> python-ipython 5.3.0
> /gnu/store/7lg8s2kc6k8fxbdx80ykz39kz2lwj08g-python-ipython-5.3.0
>
> substitute: updating list of substitutes from
> 'https://mirror.hydra.gnu.org'... 100.0%
> The following derivations will be built:
> /gnu/store/3nscgarm0m26gyfpaac7pf9vhwjxbylg-profile.drv
> /gnu/store/rqr8jyiz5nqyzis2zxxiq2vifsmyxp8k-info-dir.drv
> /gnu/store/nxnw1rbdbgcm9n1r32rjsllz4jsn52dp-fonts-dir.drv
> /gnu/store/mnah8vfgs2qblnr18zc5jyiyrwcfg506-xdg-desktop-database.drv
> /gnu/store/j9k8kqhrmbpifp39ak6cchf43svmi8ha-xdg-mime-database.drv
> /gnu/store/i14dmlap8vfa3jgvxamp25gf6jsxkxi1-ca-certificate-bundle.drv
> /gnu/store/8h3hr19jclr9c5134k0kjmanw2x3sbsh-gtk-icon-themes.drv
> /gnu/store/5xys2xj1fvi3k943ia0pdlypg2silrl7-gtk-im-modules.drv
> /gnu/store/wyzv6lrdxd358q96y5v43hm9q2spw4sl-manual-database.drv
> Creating manual page database for 70 packages... done in 10.911
> s
> 1 package in profile
>
> guixsd% guix package -u
> The following package will be upgraded:
> python-ipython 5.3.0 → 5.3.0
> /gnu/store/7lg8s2kc6k8fxbdx80ykz39kz2lwj08g-python-ipython-5.3.0
>
> nothing to be done
> guixsd% guix package -r python-ipython
> The following package will be removed:
> python-ipython 5.3.0
> /gnu/store/7lg8s2kc6k8fxbdx80ykz39kz2lwj08g-python-ipython-5.3.0
>
> The following derivation will be built:
> /gnu/store/4xla7xlznq21and9z7b7k5ym8v72i51l-profile.drv
> 0 packages in profile


And to show that this is not an issue with other packages:

Toggle quote (30 lines)
> guixsd% guix package -i hello
> substitute: updating list of substitutes from
> 'https://mirror.hydra.gnu.org'... 100.0%
> The following package will be installed:
> hello 2.10
> /gnu/store/lr8c1yswvrgckkaa6nzdi7q0d618bazs-hello-2.10
>
> substitute: updating list of substitutes from
> 'https://mirror.hydra.gnu.org'... 100.0%
> The following derivations will be built:
> /gnu/store/rfpcms1idn9527j44nn2f09gbgk1x8sv-profile.drv
> /gnu/store/vl8cn02rldz7wa03rcgc7daid3hz1nn0-info-dir.drv
> /gnu/store/pnaiz7z2156a9yj5hxmmhbkp8mqzc9av-ca-certificate-bundle.drv
> /gnu/store/1f58a70palfbx2pilzfh3wglif2mv077-fonts-dir.drv
> /gnu/store/6cjikirka4hxpg19jly6qagjjsrviy7b-hello-2.10.drv
> /gnu/store/vykvgqizig5yw7rhpmfb9zzm40r8bakk-manual-database.drv
> 0.0 MB will be downloaded:
> /gnu/store/wf65hjwqwpz4wllasn63zysi5irql2sx-hello-2.10
> Downloading
> https://mirror.hydra.gnu.org/guix/nar/gzip/wf65hjwqwpz4wllasn63zysi5irql2sx-hello-2.10...
> hello-2.10 48KiB
>
> grafting
> '/gnu/store/wf65hjwqwpz4wllasn63zysi5irql2sx-hello-2.10' ->
> '/gnu/store/lr8c1yswvrgckkaa6nzdi7q0d618bazs-hello-2.10'...
> Creating manual page database for 1 packages... done in 0.046 s
> 1 package in profile
> guixsd% guix package -u
> guixsd%

Thanks in advance!

--
Best regards,
Benny
0x9EC76EA52B8F32A1
6315 887D 6E46 6967 7AC0 3E76 9EC7 6EA5 2B8F 32A1
Attachment: file
L
L
Ludovic Courtès wrote on 20 Nov 2017 22:50
(name . Benjamin Andresen)(address . benny@in-ulm.de)(address . 29244@debbugs.gnu.org)
87vai4zkkw.fsf@gnu.org
Hello,

Benjamin Andresen <benny@in-ulm.de> skribis:

Toggle quote (10 lines)
> this is with an empty user account that has no packages installed before this:
>> guixsd% guix package -u
>> The following packages will be upgraded:
>> python-wrapper 3.5.3 → 3.5.3 /gnu/store/xnb9bn2vgr3ch8zznsv23w65bb5psshh-python-wrapper-3.5.3
>> python-ipython 5.3.0 → 5.3.0 /gnu/store/7lg8s2kc6k8fxbdx80ykz39kz2lwj08g-python-ipython-5.3.0
>>
>> nothing to be done
>
> The problem exists with both installed and with them individually.

This is because ‘transaction-upgrade-entry’ in (guix profiles)
conservatively assumes that any package with propagated inputs, like
‘python-wrapper’, always has to be upgraded:

(case (version-compare candidate-version version)
((>)
(manifest-transaction-install-entry
(package->manifest-entry pkg output)
transaction))
((<)
transaction)
((=)
(let ((candidate-path (derivation->output-path
(package-derivation (%store) pkg))))
;; XXX: When there are propagated inputs, assume we need to
;; upgrade the whole entry.
(if (and (string=? path candidate-path)
(null? (package-propagated-inputs pkg)))
transaction
(manifest-transaction-install-entry
(package->manifest-entry pkg output)
transaction)))))

I think we can refine this code.

Thanks for your report,
Ludo’.
Z
Z
zimoun wrote on 16 Sep 2021 09:28
(name . Benjamin Andresen)(address . benny@in-ulm.de)(address . 29244@debbugs.gnu.org)
867dfhrnbq.fsf@gmail.com
Hi

On Fri, 10 Nov 2017 at 14:58, Benjamin Andresen <benny@in-ulm.de> wrote:

Toggle quote (8 lines)
> this is with an empty user account that has no packages installed before this:
>> guixsd% guix package -u
>> The following packages will be upgraded:
>> python-wrapper 3.5.3 → 3.5.3 /gnu/store/xnb9bn2vgr3ch8zznsv23w65bb5psshh-python-wrapper-3.5.3
>> python-ipython 5.3.0 → 5.3.0 /gnu/store/7lg8s2kc6k8fxbdx80ykz39kz2lwj08g-python-ipython-5.3.0
>>
>> nothing to be done

From my understanding, this old bug [1] can be closed. Now it is fixed,
aside the issue reported in bug#28743 [2]. Is it solved for you?

Toggle snippet (20 lines)
$ guix package -i python-wrapper python-ipython -p /tmp/foo 2>/dev/null

$ guix package -p /tmp/foo --list-generations
Generation 1 Sep 16 2021 09:24:06 (current)
python-wrapper 3.8.2 out /gnu/store/nckjv3ccwdi6096j478gvns43ssbls2p-python-wrapper-3.8.2
python-ipython 7.9.0 out /gnu/store/y6rgmla9xr3sxdlv4lwnksy584w2l4xj-python-ipython-7.9.0

$ guix package -p /tmp/foo --upgrade --dry-run
guix package: warning: nothing to do

$ guix package -p /tmp/foo --upgrade
guix package: warning: nothing to do

$ guix package -p /tmp/foo --list-generations
Generation 1 Sep 16 2021 09:24:06 (current)
python-wrapper 3.8.2 out /gnu/store/nckjv3ccwdi6096j478gvns43ssbls2p-python-wrapper-3.8.2
python-ipython 7.9.0 out /gnu/store/y6rgmla9xr3sxdlv4lwnksy584w2l4xj-python-ipython-7.9.0


Z
Z
zimoun wrote on 12 Oct 2021 23:55
(name . Benjamin Andresen)(address . benny@in-ulm.de)(address . 29244-done@debbugs.gnu.org)
86lf2xkiwl.fsf@gmail.com
Hi,

On Thu, 16 Sep 2021 at 09:28, zimoun <zimon.toutoune@gmail.com> wrote:
Toggle quote (35 lines)
> On Fri, 10 Nov 2017 at 14:58, Benjamin Andresen <benny@in-ulm.de> wrote:
>
>> this is with an empty user account that has no packages installed before this:
>>> guixsd% guix package -u
>>> The following packages will be upgraded:
>>> python-wrapper 3.5.3 → 3.5.3 /gnu/store/xnb9bn2vgr3ch8zznsv23w65bb5psshh-python-wrapper-3.5.3
>>> python-ipython 5.3.0 → 5.3.0 /gnu/store/7lg8s2kc6k8fxbdx80ykz39kz2lwj08g-python-ipython-5.3.0
>>>
>>> nothing to be done
>
>>From my understanding, this old bug [1] can be closed. Now it is fixed,
> aside the issue reported in bug#28743 [2]. Is it solved for you?
>
> $ guix package -i python-wrapper python-ipython -p /tmp/foo 2>/dev/null
>
> $ guix package -p /tmp/foo --list-generations
> Generation 1 Sep 16 2021 09:24:06 (current)
> python-wrapper 3.8.2 out /gnu/store/nckjv3ccwdi6096j478gvns43ssbls2p-python-wrapper-3.8.2
> python-ipython 7.9.0 out /gnu/store/y6rgmla9xr3sxdlv4lwnksy584w2l4xj-python-ipython-7.9.0
>
> $ guix package -p /tmp/foo --upgrade --dry-run
> guix package: warning: nothing to do
>
> $ guix package -p /tmp/foo --upgrade
> guix package: warning: nothing to do
>
> $ guix package -p /tmp/foo --list-generations
> Generation 1 Sep 16 2021 09:24:06 (current)
> python-wrapper 3.8.2 out /gnu/store/nckjv3ccwdi6096j478gvns43ssbls2p-python-wrapper-3.8.2
> python-ipython 7.9.0 out /gnu/store/y6rgmla9xr3sxdlv4lwnksy584w2l4xj-python-ipython-7.9.0
>
>
> 1: <http://issues.guix.gnu.org/issue/29244>
> 2: <http://issues.guix.gnu.org/issue/28743>

After waiting 3 weeks without reporting an issue, and from my
understanding, now the bug is fixed. So closing.

If I missed something, feel free to reopen.


All the best,
simon
Closed
?