unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37790: MANPATH missing from non-default profile
@ 2019-10-17 12:58 Pierre Neidhardt
  2019-10-17 14:54 ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Pierre Neidhardt @ 2019-10-17 12:58 UTC (permalink / raw)
  To: 37790

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

`man` fails to find man pages from non-default profiles.
Indeed, MANPATH is set in /etc/profile to

export MANPATH=\
$HOME/.guix-profile/share/man\
:/run/current-system/profile/share/man

I believe that each profile should set MANPATH in their own etc/profile.

Thoughts?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* bug#37790: MANPATH missing from non-default profile
  2019-10-17 12:58 bug#37790: MANPATH missing from non-default profile Pierre Neidhardt
@ 2019-10-17 14:54 ` Ludovic Courtès
  2019-10-17 15:11   ` Pierre Neidhardt
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2019-10-17 14:54 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 37790

Hi Pierre,

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

> `man` fails to find man pages from non-default profiles.
> Indeed, MANPATH is set in /etc/profile to
>
> export MANPATH=\
> $HOME/.guix-profile/share/man\
> :/run/current-system/profile/share/man
>
> I believe that each profile should set MANPATH in their own etc/profile.

As usual, ‘MANPATH’ is only defined when ‘man-db’ is also present in the
profile, since ‘MANPATH’ “belongs” to ‘man-db’.

HTH!

Ludo’.

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

* bug#37790: MANPATH missing from non-default profile
  2019-10-17 14:54 ` Ludovic Courtès
@ 2019-10-17 15:11   ` Pierre Neidhardt
  2019-10-17 16:17     ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Pierre Neidhardt @ 2019-10-17 15:11 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37790

[-- Attachment #1: Type: text/plain, Size: 464 bytes --]


> As usual, ‘MANPATH’ is only defined when ‘man-db’ is also present in the
> profile, since ‘MANPATH’ “belongs” to ‘man-db’.

Indeed, but I'm suggesting we add an exception for the sake of
convenience and consistency:

- The default profile ~/.guix-profile is added, man-db or not.
- It's seems a bit unfortunate that all my profiles need to have man-db
  in it.

What do you think?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* bug#37790: MANPATH missing from non-default profile
  2019-10-17 15:11   ` Pierre Neidhardt
@ 2019-10-17 16:17     ` Ludovic Courtès
  2019-10-18  8:20       ` Pierre Neidhardt
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2019-10-17 16:17 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 37790

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

>> As usual, ‘MANPATH’ is only defined when ‘man-db’ is also present in the
>> profile, since ‘MANPATH’ “belongs” to ‘man-db’.
>
> Indeed, but I'm suggesting we add an exception for the sake of
> convenience and consistency:

I agree it’s inconvenient, but how would you add an exception?

Ludo’.

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

* bug#37790: MANPATH missing from non-default profile
  2019-10-17 16:17     ` Ludovic Courtès
@ 2019-10-18  8:20       ` Pierre Neidhardt
  2022-03-03  6:24         ` Maxim Cournoyer
  0 siblings, 1 reply; 8+ messages in thread
From: Pierre Neidhardt @ 2019-10-18  8:20 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37790

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

Ludovic Courtès <ludo@gnu.org> writes:

> I agree it’s inconvenient, but how would you add an exception?

I'm not too sure how Guix works here, but what about when building the
profile, systematically populating etc/profile with MANPATH=...?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* bug#37790: MANPATH missing from non-default profile
  2019-10-18  8:20       ` Pierre Neidhardt
@ 2022-03-03  6:24         ` Maxim Cournoyer
  2022-03-03  8:32           ` zimoun
  0 siblings, 1 reply; 8+ messages in thread
From: Maxim Cournoyer @ 2022-03-03  6:24 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 37790-close

tags 37790 notabug
thanks

Hi,

Pierre Neidhardt <mail@ambrevar.xyz> writes:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> I agree it’s inconvenient, but how would you add an exception?
>
> I'm not too sure how Guix works here, but what about when building the
> profile, systematically populating etc/profile with MANPATH=...?

I don't think special casing ~/.guix-profile like this, polluting other
profiles is a good idea.

I'm closing this 2+ years old bug.

Thank you,

Maxim




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

* bug#37790: MANPATH missing from non-default profile
  2022-03-03  6:24         ` Maxim Cournoyer
@ 2022-03-03  8:32           ` zimoun
  2022-03-03 14:04             ` Maxim Cournoyer
  0 siblings, 1 reply; 8+ messages in thread
From: zimoun @ 2022-03-03  8:32 UTC (permalink / raw)
  To: 37790, Maxim Cournoyer, Pierre Neidhardt; +Cc: 37790-close

Hi Maxim,

On Thu, 3 Mar 2022 at 07:26, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:

> tags 37790 notabug

From my understanding, it is a "bug" as explained here:

1: <https://issues.guix.gnu.org/37790#2>

Or at least an inconvenient behaviour. :-)


> >> I agree it’s inconvenient, but how would you add an exception?
> >
> > I'm not too sure how Guix works here, but what about when building the
> > profile, systematically populating etc/profile with MANPATH=...?
>
> I don't think special casing ~/.guix-profile like this, polluting other
> profiles is a good idea.

It appears to me the contrary, no?  That ~/.guix-profile is special here.

Well, using a multi-profiles style management, it appears to me
adequate to install "man" (or man-db) once, i.e.,  in one profile say
~/.cache/guix/profiles/utilities, and then install other packages, say
git, in another profile, say ~/, .cache/guix/profiles/tools, etc.

With the current design, each profile other than ~/.guix-profile
requires 'man-db' which seems unfortunate, non?


Cheers,
simon




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

* bug#37790: MANPATH missing from non-default profile
  2022-03-03  8:32           ` zimoun
@ 2022-03-03 14:04             ` Maxim Cournoyer
  0 siblings, 0 replies; 8+ messages in thread
From: Maxim Cournoyer @ 2022-03-03 14:04 UTC (permalink / raw)
  To: zimoun; +Cc: Pierre Neidhardt, 37790-close, 37790

Hi Simon,

zimoun <zimon.toutoune@gmail.com> writes:

> Hi Maxim,
>
> On Thu, 3 Mar 2022 at 07:26, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>
>> tags 37790 notabug
>
> From my understanding, it is a "bug" as explained here:
>
> 1: <https://issues.guix.gnu.org/37790#2>
>
> Or at least an inconvenient behaviour. :-)

Sorry, I fail to see where is the bug :-).  This is our the search-path
specifications have always worked; they work per profile and are
attached to the application acting as the "consumer" of the environment
variable it sets.

If we want to work on improving this we already have the following
issues opened awaiting work:

20255 'search-paths' should respect both user and system profile.

and somewhat related:

22138 Search paths of dependencies are not honored

Thanks,

Maxim




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

end of thread, other threads:[~2022-03-03 14:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-17 12:58 bug#37790: MANPATH missing from non-default profile Pierre Neidhardt
2019-10-17 14:54 ` Ludovic Courtès
2019-10-17 15:11   ` Pierre Neidhardt
2019-10-17 16:17     ` Ludovic Courtès
2019-10-18  8:20       ` Pierre Neidhardt
2022-03-03  6:24         ` Maxim Cournoyer
2022-03-03  8:32           ` zimoun
2022-03-03 14:04             ` Maxim Cournoyer

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).