* guix installation age warning sometimes wrong
@ 2017-07-24 17:06 Troy Sankey
2017-07-24 17:55 ` Vincent Legoll
0 siblings, 1 reply; 3+ messages in thread
From: Troy Sankey @ 2017-07-24 17:06 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 915 bytes --]
About 125 days ago, I updated my root profile's ".config/guix/latest"
symlink to point to my primary user's guix package definitions:
# ls -l /root/.config/guix/latest
lrwxrwxrwx 1 root root 32 Mar 21 15:00 /root/.config/guix/latest -> /home/sankey/.config/guix/latest
I did this because I didn't want to run `guix pull` twice every time,
once as root and once as my normal user. Since then I've been keeping
up to date, running `guix pull` frequently as my normal user.
But now when I invoke guix as root, it constantly tells me:
guix package: warning: Your Guix installation is 125 days old.
guix package: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.
...presumably because it's reading the mtime/ctime on the symlink. Is
there a more precise way to asses the age of the guix installation
symlink?
Troy
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE0zLJ6STd4Cp+CgbIgs677ofYV8IFAll2KQkACgkQgs677ofY
V8KyqhAAsGJNxuS31PxSGaB5+lTU4wOIJSiK6DGJAD937eeQcLZApeH/CUrRgG6X
ZIrcZ+/PqxDViJdmoJUlW3SLimjpgAsbdG3DzZ/ZuNvre8gVdLnJ/V1n6h99uXj8
Nrlk8G3kMna1n0Lky/4XatdZA2+82Ul5n96uh6YLPRc5kcT6P0clSKKAwVaSL2B0
ssWc0adfr3B4qHnogyUNIuNm4g3fZtZ7nzUTl6XZtrSFLIaaLEgzsq7Ss9lrUWzd
PJD8iaJNuHTh/VxLsOhlkjZ8UE+W3GI9N3SARae2bm5xN2L5dGCl88NQokw+cFzo
O7XNKlrbHBEnawShmBFQAThhTXzxX4Ki0WvasXu9uJ6+3M+UbCFIaTbLxEUnkfFE
w5DvaZahPPaEc0EHjgy+t0WofoMP6m5UcaHDDQkiSHCBj0lF4TMyWhM+b59876kb
wmU1SgGuwS+4AfL+7lsDFnTA/IGeUfRgo3Brg1m+49IvP9oWNORIcf7mK0UY3R0a
OSZwMSAzTMdSpdeqjRHnUDpapap8AgWiTjmp4N6gfoCKPwXSOVATIP/7xzuHxZE4
YZ3wfdCw0Hrqby5IBLddBqKxz0uU/Zo8hSJFQfXvBjT1K4xx3OZ3X1FzcaZQ7ROF
zZanwp85U/Fwcum2g4MWjuwDF7AwXYT/iC01I5G9p+R3d0oZmGQ=
=otgw
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: guix installation age warning sometimes wrong
2017-07-24 17:06 guix installation age warning sometimes wrong Troy Sankey
@ 2017-07-24 17:55 ` Vincent Legoll
2017-07-25 8:16 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Vincent Legoll @ 2017-07-24 17:55 UTC (permalink / raw)
To: Troy Sankey; +Cc: guix-devel
Hello,
On Mon, Jul 24, 2017 at 7:06 PM, Troy Sankey <sankeytms@gmail.com> wrote:
> guix package: warning: Your Guix installation is 125 days old.
> guix package: warning: Consider running 'guix pull' followed by
> 'guix package -u' to get up-to-date packages and security updates.
>
> ...presumably because it's reading the mtime/ctime on the symlink. Is
> there a more precise way to asses the age of the guix installation
> symlink?
This has been discussed previously, for example in this thread:
https://lists.gnu.org/archive/html/guix-devel/2017-05/msg00123.html
--
Vincent Legoll
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: guix installation age warning sometimes wrong
2017-07-24 17:55 ` Vincent Legoll
@ 2017-07-25 8:16 ` Ludovic Courtès
0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2017-07-25 8:16 UTC (permalink / raw)
To: Vincent Legoll; +Cc: guix-devel
Hi,
Vincent Legoll <vincent.legoll@gmail.com> skribis:
> On Mon, Jul 24, 2017 at 7:06 PM, Troy Sankey <sankeytms@gmail.com> wrote:
>> guix package: warning: Your Guix installation is 125 days old.
>> guix package: warning: Consider running 'guix pull' followed by
>> 'guix package -u' to get up-to-date packages and security updates.
>>
>> ...presumably because it's reading the mtime/ctime on the symlink. Is
>> there a more precise way to asses the age of the guix installation
>> symlink?
>
> This has been discussed previously, for example in this thread:
> https://lists.gnu.org/archive/html/guix-devel/2017-05/msg00123.html
Yeah currently this is based on the mtime.
Eventually I think we’ll rather check the Git commit that this
corresponds to, compared to the latest one available (though that’s
tricky since it involves making a network connection.)
So that’s what we have for now. As long as you don’t fiddle manually
with the ‘latest’ symlink, everything should be fine; otherwise be
prepared for things like this.
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-07-25 8:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-24 17:06 guix installation age warning sometimes wrong Troy Sankey
2017-07-24 17:55 ` Vincent Legoll
2017-07-25 8:16 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).