On Sat, Feb 26, 2022 at 11:10 AM Roy Marples <r...@marples.name> wrote:
>
> On 26/02/2022 09:04, Martin-Éric Racine wrote:
> >> So it's very assumptive that configure is a shell script and sets the 
> >> variable
> >> ${prefix} to what --prefix is AND evaluates each assignment so it can work 
> >> out
> >> the variable prefix.
> >>
> >> This behaviour is not documented by autoconf as far as I can see.
> >>
> >> If you do --mandir=/usr/share/man or don't set it all all then dhcpcd's
> >> configure gets the results you want.
> >
> > Not setting it at all results in the manual pages getting incorrectly
> > installed in /share/man/manX/ as shown in the previous e-mail. This is
> > a bug. It should inherit prefix, but it somehow doesn't.
> >
> > Explicitly setting --mandir=/usr/share/man obviously works, but should
> > not be needed if prefix was correctly inherited.
>
> $ ./configure --prefix=/tmp/foo
> ...
>     SYSCONFDIR =         /tmp/foo/etc
>     SBINDIR =            /tmp/foo/sbin
>     LIBDIR =             /tmp/foo/lib
>     LIBEXECDIR =         /tmp/foo/libexec
>     DBDIR =              /var/db/dhcpcd
>     RUNDIR =             /var/run/dhcpcd
>     MANDIR =             /tmp/foo/share/man
>     DATADIR =            /tmp/foo/share
>     HOOKSCRIPTS =        50-ntp.conf
>     EGHOOKSCRIPTS =      50-ypbind
>     STATUSARG =
>     PRIVSEPUSER =        _dhcpcd
>
> How is this broken?

See above messages.

Martin-Éric

Reply via email to