From: ludo@gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong@member.fsf.org>
Cc: guix-devel <guix-devel@gnu.org>, 31770@debbugs.gnu.org
Subject: bug#31770: New ‘guix pull’ dosen’t update the guix manual in GuixSD
Date: Sun, 10 Jun 2018 21:33:45 +0200 [thread overview]
Message-ID: <878t7me8rq.fsf__11023.7937457443$1528659142$gmane$org@gnu.org> (raw)
In-Reply-To: <87fu1wyr3i.fsf@member.fsf.org> ("宋文武"'s message of "Sat, 09 Jun 2018 22:25:21 +0800")
[-- Attachment #1: Type: text/plain, Size: 870 bytes --]
Hello 宋文武!
iyzsong@member.fsf.org (宋文武) skribis:
> After run ‘guix pull’ twice, I have got ‘~/.config/guix/current’, then
> use it to do a system reconfigure for ‘/etc/profile’.
>
> But the guix manual doesn’t got updated, my ‘INFOPATH’ contains:
>
> - /home/iyzsong/.guix-profile/share/info
> - /run/current-system/profile/share/info
> - /home/iyzsong/.config/guix/current/share/info
> - /home/iyzsong/.guix-profile/share/info
> - /run/current-system/profile/share/info
>
> The last there are from the ‘export’ statement of ‘/etc/profile’, the
> first two are added by ‘source’ the profiles. Since there is a guix in
> the system profile contains the old info manual, the current one won’t
> be picked.
Ooh! I think the change below should be enough to ensure
~/.config/guix/current comes first:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1123 bytes --]
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -602,7 +602,7 @@ directory."
# because they would require combining both profiles.
# FIXME: See <http://bugs.gnu.org/20255>.
export MANPATH=$HOME/.guix-profile/share/man:/run/current-system/profile/share/man
-export INFOPATH=$HOME/.config/guix/current/share/info:$HOME/.guix-profile/share/info:/run/current-system/profile/share/info
+export INFOPATH=$HOME/.guix-profile/share/info:/run/current-system/profile/share/info
export XDG_DATA_DIRS=$HOME/.guix-profile/share:/run/current-system/profile/share
export XDG_CONFIG_DIRS=$HOME/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg
@@ -630,7 +630,7 @@ then
export `cat /etc/environment | cut -d= -f1`
fi
-for profile in \"$HOME/.config/guix/current\" \"$HOME/.guix-profile\"
+for profile in \"$HOME/.guix-profile\" \"$HOME/.config/guix/current\"
do
if [ -f \"$profile/etc/profile\" ]
then
@@ -644,6 +644,8 @@ do
fi
done
+export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"
+
# Set the umask, notably for users logging in via 'lsh'.
# See <http://bugs.gnu.org/22650>.
umask 022
[-- Attachment #3: Type: text/plain, Size: 232 bytes --]
How does that sound?
(Note that in the meantime you can always work around the bug by using
‘info -f ~/.config/guix/current/share/info/guix.info’ or ‘C-u C-h i …’
in Emacs.)
Thanks for the heads-up!
Ludo’.
next prev parent reply other threads:[~2018-06-10 19:34 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-09 10:16 New ‘guix pull’ Ludovic Courtès
2018-06-09 14:25 ` New ‘guix pull’ dosen’t update the guix manual in GuixSD 宋文武
2018-06-10 19:33 ` Ludovic Courtès
2018-06-11 11:27 ` bug#31770: " 宋文武
2018-06-11 11:27 ` 宋文武
2018-06-12 13:54 ` Ludovic Courtès
2018-06-12 13:54 ` bug#31770: " Ludovic Courtès
2018-06-10 19:33 ` Ludovic Courtès [this message]
2018-07-08 17:31 ` New ‘guix pull’ Pjotr Prins
2018-07-12 9:35 ` Chris Marusich
2018-07-12 11:04 ` Pjotr Prins
2018-07-12 11:12 ` Pjotr Prins
2018-07-12 12:35 ` New ‘guix pull’ - guile-sqlite3 problem Pjotr Prins
2018-07-12 12:43 ` Pjotr Prins
2018-07-18 5:32 ` Chris Marusich
2018-07-19 7:22 ` Pjotr Prins
2018-07-19 8:12 ` Chris Marusich
2018-07-12 14:17 ` New ‘guix pull’ Ricardo Wurmus
2018-07-12 14:20 ` Pjotr Prins
2018-07-12 14:29 ` Ricardo Wurmus
2018-07-12 16:44 ` Pjotr Prins
2018-07-13 8:39 ` New ‘guix pull’ /root/.config/current/bin/guix: Permission denied Pjotr Prins
2018-07-13 9:08 ` Pjotr Prins
2018-07-13 9:48 ` Pjotr Prins
2018-07-13 9:54 ` Pjotr Prins
2018-07-13 12:04 ` Ludovic Courtès
2018-07-13 15:24 ` Pjotr Prins
2018-07-13 8:41 ` New ‘guix pull’ Pjotr Prins
2018-10-14 18:17 ` Pjotr Prins
2018-10-15 10:14 ` Ludovic Courtès
2018-07-12 16:01 ` Ludovic Courtès
2018-07-12 20:52 ` Brett Gilio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='878t7me8rq.fsf__11023.7937457443$1528659142$gmane$org@gnu.org' \
--to=ludo@gnu.org \
--cc=31770@debbugs.gnu.org \
--cc=guix-devel@gnu.org \
--cc=iyzsong@member.fsf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.