[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Implement guix-package --upgrade
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] Implement guix-package --upgrade |
Date: |
Tue, 12 Feb 2013 11:08:55 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) |
Andreas Enge <address@hidden> skribis:
> Am Dienstag, 12. Februar 2013 schrieb Ludovic Courtès:
>> It’s actually slightly more complex: you need to select those packages
>> that are installed and for which either a newer version is available
>> (per ‘version-string>?’, see gnu-maintenance.scm; should be moved to
>> utils.scm)
>
> This reminds me:
> guix-package -i libjpeg
> still installs version 8d and not 9, so apparently, there is no check on
> the version number.
Indeed, we should fix it.
> And
> guix-package -A jpeg
> prints
> libjpeg 9 out gnu/packages/libjpeg.scm:27:3
> libjpeg 8d out gnu/packages/libjpeg.scm:27:3
> which is strange since libjpeg-9 is indeed defined around line 27, but
> libjpeg-8 comes later in the file.
Yes. That’s because the record ‘libjpeg-8d’ “inherits” from the other
one, so it takes its ‘location’ field unchanged. Currently you have to
explicitly add the ‘location’ field when inheriting:
(location (source-properties->location (current-source-location)))
That’s inconvenient though, and perhaps ‘define-record-type*’ should be
extended to support non-inheritable fields.
Thoughts?
Ludo’.
- [PATCH] Implement guix-package --upgrade, Mark H Weaver, 2013/02/12
- Re: [PATCH] Implement guix-package --upgrade, Ludovic Courtès, 2013/02/12
- Re: [PATCH] Implement guix-package --upgrade, Andreas Enge, 2013/02/12
- Re: [PATCH] Implement guix-package --upgrade,
Ludovic Courtès <=
- Re: [PATCH] Implement guix-package --upgrade, Mark H Weaver, 2013/02/12
- Re: [PATCH] Implement guix-package --upgrade, Ludovic Courtès, 2013/02/12
- Re: [PATCH] Implement guix-package --upgrade, Mark H Weaver, 2013/02/12
- Re: [PATCH] Implement guix-package --upgrade, Mark H Weaver, 2013/02/12
- Re: [PATCH] Implement guix-package --upgrade, Andreas Enge, 2013/02/12
- Re: [PATCH] Implement guix-package --upgrade, Ludovic Courtès, 2013/02/12
- [PATCH] Build newest versions unless specified, and upgrades., Mark H Weaver, 2013/02/13
- Re: [PATCH] Build newest versions unless specified, and upgrades., Mark H Weaver, 2013/02/13
- Re: [PATCH] Build newest versions unless specified, and upgrades., Ludovic Courtès, 2013/02/13
- Re: [PATCH] Build newest versions unless specified, and upgrades., Mark H Weaver, 2013/02/13