Re: [gmx-users] GMXRC removes trailing colon from existing MANPATH

2018-08-27 Thread Szilárd Páll
On Mon, Aug 27, 2018 at 11:18 AM Peter Kroon  wrote:

> Hi,
>
>
> sorry for the late reply, holidays took priority :)
>
> I made a redmine issue here: https://redmine.gromacs.org/issues/2628


Thanks.


> What change would you like me to submit? I don't have a fix other than
> simply appending a colon in my bashrc.
>

The MANPATH is generated at build-time from the
scripts/GMXRC.*.cmakein
input files the result of which in turn get installed. These files need the
one-liner fix ;)

Cheers,
--
Szilard


> Peter
>
>
> On 07-08-18 14:45, Szilárd Páll wrote:
> > Hi,
> >
> > Can you please submit your change to gerrit.gromacs.org -- and perhaps
> it's
> > best if you also file an issue on redmine.gromacs.org with your brief
> > description you posted here?
> >
> > Thanks,
> > --
> > Szilárd
> >
> >
> > On Fri, Jul 27, 2018 at 2:28 PM Peter Kroon  wrote:
> >
> >> Hi all,
> >>
> >> I noticed that sourcing GMXRC removes any trailing colons from a set
> >> MANPATH environment variable. This colon *is* syntactically significant,
> >> and removing it causes `mandb` to ignore /etc/manpath.config instead of
> >> appending that file:
> >>
> >>
> >>> unset MANPATH
> >>> export MANPATH=/opt/puppetlabs/puppet/share/man:
> >>> # Note the trailing colon
> >>> echo $MANPATH
> >> /opt/puppetlabs/puppet/share/man:
> >>> mandb
> >> mandb: warning: $MANPATH set, appending /etc/manpath.config
> >> ...
> >>> source /usr/local/gromacs-2018.1/bin/GMXRC
> >>> # No more trailing colon
> >>> echo $MANPATH
> >>> /usr/local/gromacs-2018.1/share/man:/opt/puppetlabs/puppet/share/man
> >> mandb: warning: $MANPATH set, ignoring /etc/manpath.config
> >> ...
> >>
> >> Should I also report this on redmine, or is this sufficient?
> >>
> >>
> >> Peter
> >>
> >>
> >> --
> >> Gromacs Users mailing list
> >>
> >> * Please search the archive at
> >> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
> >> posting!
> >>
> >> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
> >>
> >> * For (un)subscribe requests visit
> >> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
> >> send a mail to gmx-users-requ...@gromacs.org.
>
>
> --
> Gromacs Users mailing list
>
> * Please search the archive at
> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
> posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
> send a mail to gmx-users-requ...@gromacs.org.
-- 
Gromacs Users mailing list

* Please search the archive at 
http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!

* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists

* For (un)subscribe requests visit
https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a 
mail to gmx-users-requ...@gromacs.org.

Re: [gmx-users] GMXRC removes trailing colon from existing MANPATH

2018-08-27 Thread Peter Kroon
Hi,


sorry for the late reply, holidays took priority :)

I made a redmine issue here: https://redmine.gromacs.org/issues/2628

What change would you like me to submit? I don't have a fix other than
simply appending a colon in my bashrc.


Peter


On 07-08-18 14:45, Szilárd Páll wrote:
> Hi,
>
> Can you please submit your change to gerrit.gromacs.org -- and perhaps it's
> best if you also file an issue on redmine.gromacs.org with your brief
> description you posted here?
>
> Thanks,
> --
> Szilárd
>
>
> On Fri, Jul 27, 2018 at 2:28 PM Peter Kroon  wrote:
>
>> Hi all,
>>
>> I noticed that sourcing GMXRC removes any trailing colons from a set
>> MANPATH environment variable. This colon *is* syntactically significant,
>> and removing it causes `mandb` to ignore /etc/manpath.config instead of
>> appending that file:
>>
>>
>>> unset MANPATH
>>> export MANPATH=/opt/puppetlabs/puppet/share/man:
>>> # Note the trailing colon
>>> echo $MANPATH
>> /opt/puppetlabs/puppet/share/man:
>>> mandb
>> mandb: warning: $MANPATH set, appending /etc/manpath.config
>> ...
>>> source /usr/local/gromacs-2018.1/bin/GMXRC
>>> # No more trailing colon
>>> echo $MANPATH
>>> /usr/local/gromacs-2018.1/share/man:/opt/puppetlabs/puppet/share/man
>> mandb: warning: $MANPATH set, ignoring /etc/manpath.config
>> ...
>>
>> Should I also report this on redmine, or is this sufficient?
>>
>>
>> Peter
>>
>>
>> --
>> Gromacs Users mailing list
>>
>> * Please search the archive at
>> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
>> posting!
>>
>> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>>
>> * For (un)subscribe requests visit
>> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
>> send a mail to gmx-users-requ...@gromacs.org.


-- 
Gromacs Users mailing list

* Please search the archive at 
http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!

* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists

* For (un)subscribe requests visit
https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a 
mail to gmx-users-requ...@gromacs.org.

Re: [gmx-users] GMXRC removes trailing colon from existing MANPATH

2018-08-07 Thread Szilárd Páll
Hi,

Can you please submit your change to gerrit.gromacs.org -- and perhaps it's
best if you also file an issue on redmine.gromacs.org with your brief
description you posted here?

Thanks,
--
Szilárd


On Fri, Jul 27, 2018 at 2:28 PM Peter Kroon  wrote:

> Hi all,
>
> I noticed that sourcing GMXRC removes any trailing colons from a set
> MANPATH environment variable. This colon *is* syntactically significant,
> and removing it causes `mandb` to ignore /etc/manpath.config instead of
> appending that file:
>
>
> > unset MANPATH
> > export MANPATH=/opt/puppetlabs/puppet/share/man:
> > # Note the trailing colon
> > echo $MANPATH
> /opt/puppetlabs/puppet/share/man:
> > mandb
> mandb: warning: $MANPATH set, appending /etc/manpath.config
> ...
> > source /usr/local/gromacs-2018.1/bin/GMXRC
> > # No more trailing colon
> > echo $MANPATH
> > /usr/local/gromacs-2018.1/share/man:/opt/puppetlabs/puppet/share/man
> mandb: warning: $MANPATH set, ignoring /etc/manpath.config
> ...
>
> Should I also report this on redmine, or is this sufficient?
>
>
> Peter
>
>
> --
> Gromacs Users mailing list
>
> * Please search the archive at
> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
> posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
> send a mail to gmx-users-requ...@gromacs.org.
-- 
Gromacs Users mailing list

* Please search the archive at 
http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!

* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists

* For (un)subscribe requests visit
https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a 
mail to gmx-users-requ...@gromacs.org.

[gmx-users] GMXRC removes trailing colon from existing MANPATH

2018-07-27 Thread Peter Kroon
Hi all,

I noticed that sourcing GMXRC removes any trailing colons from a set
MANPATH environment variable. This colon *is* syntactically significant,
and removing it causes `mandb` to ignore /etc/manpath.config instead of
appending that file:


> unset MANPATH
> export MANPATH=/opt/puppetlabs/puppet/share/man:
> # Note the trailing colon
> echo $MANPATH
/opt/puppetlabs/puppet/share/man:
> mandb
mandb: warning: $MANPATH set, appending /etc/manpath.config
...
> source /usr/local/gromacs-2018.1/bin/GMXRC
> # No more trailing colon
> echo $MANPATH
> /usr/local/gromacs-2018.1/share/man:/opt/puppetlabs/puppet/share/man
mandb: warning: $MANPATH set, ignoring /etc/manpath.config
...

Should I also report this on redmine, or is this sufficient?


Peter


-- 
Gromacs Users mailing list

* Please search the archive at 
http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!

* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists

* For (un)subscribe requests visit
https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a 
mail to gmx-users-requ...@gromacs.org.