unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Duplicate entries in $profile/etc/profile
@ 2015-08-10  9:40 Andy Wingo
  2015-08-20 17:16 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Wingo @ 2015-08-10  9:40 UTC (permalink / raw)
  To: guix-devel

Hi,

With this manifest:

    (use-package-modules gcc llvm base python version-control less ccache)

    (packages->manifest
     (list clang
           coreutils
           diffutils
           findutils
           tar
           patch
           sed
           grep
           binutils
           glibc
           glibc-locales
           which
           gnu-make
           python-2
           git
           less
           libstdc++-4.9
           gcc-4.9
           (list gcc-4.9 "lib")
           ccache))

If I install these packages via:

  guix package -p ~/profiles/v8 -m ~/profiles/v8.scm

And then:

  cat ~/profiles/v8/etc/profile

I get:

    # Source this file to define all the relevant environment variables in Bash
    # for this profile.  You may want to define the 'GUIX_PROFILE' environment
    # variable to point to the "visible" name of the profile, like this:
    #
    #  GUIX_PROFILE=/path/to/profile
    #  source /path/to/profile/etc/profile
    #
    # When GUIX_PROFILE is undefined, the various environment variables refer
    # to this specific profile generation.

    export PATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/bin:${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/sbin${PATH:+:}$PATH"
    export CPATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/include${CPATH:+:}$CPATH"
    export LIBRARY_PATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/lib${LIBRARY_PATH:+:}$LIBRARY_PATH"
    export LOCPATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/lib/locale${LOCPATH:+:}$LOCPATH"
    export PYTHONPATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/lib/python2.7/site-packages${PYTHONPATH:+:}$PYTHONPATH"
    export CPATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/include${CPATH:+:}$CPATH"
    export LIBRARY_PATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/lib${LIBRARY_PATH:+:}$LIBRARY_PATH"
    export CPATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/include${CPATH:+:}$CPATH"
    export LIBRARY_PATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/lib${LIBRARY_PATH:+:}$LIBRARY_PATH"
    export CPATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/include${CPATH:+:}$CPATH"
    export LIBRARY_PATH="${GUIX_PROFILE:-/gnu/store/v18xavw7q79rbg0ly697d7q5as785rir-profile}/lib${LIBRARY_PATH:+:}$LIBRARY_PATH"

Which obviously includes three identical copies of CPATH and
LIBRARY_PATH.  What's up with that?

Andy

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Duplicate entries in $profile/etc/profile
  2015-08-10  9:40 Duplicate entries in $profile/etc/profile Andy Wingo
@ 2015-08-20 17:16 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-08-20 17:16 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guix-devel

Andy Wingo <wingo@igalia.com> skribis:

> With this manifest:
>
>     (use-package-modules gcc llvm base python version-control less ccache)
>
>     (packages->manifest
>      (list clang
>            coreutils
>            diffutils
>            findutils
>            tar
>            patch
>            sed
>            grep
>            binutils
>            glibc
>            glibc-locales
>            which
>            gnu-make
>            python-2
>            git
>            less
>            libstdc++-4.9
>            gcc-4.9
>            (list gcc-4.9 "lib")
>            ccache))
>
> If I install these packages via:
>
>   guix package -p ~/profiles/v8 -m ~/profiles/v8.scm
>
> And then:
>
>   cat ~/profiles/v8/etc/profile
>
> I get:

[...]

> Which obviously includes three identical copies of CPATH and
> LIBRARY_PATH.  What's up with that?

Duplication comes from the fact that 3 entries in the manifest claim
these two variables: clang, gcc, and gcc:lib.

In this case all three search path specifications are identical, so this
is harmless.  Commit fa96048 fixes that.

To be complete, we should perhaps warn the user when different
specifications are given for the same variable.  That seems rather
unlikely, though.

Thanks for the report!

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-20 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10  9:40 Duplicate entries in $profile/etc/profile Andy Wingo
2015-08-20 17: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).