Subject: Re: INFO_DIR not used
To: None <tech-pkg@NetBSD.org>
From: Stoned Elipot <seb@ssr.univ-paris7.fr>
List: tech-pkg
Date: 03/31/2004 20:04:31
On Tue, Mar 30, 2004 at 08:42:54AM -0800, Jeremy C. Reed wrote:
> mk/texinfo.mk has:
> 
> # Pathname relative to ${PREFIX} of directory holding the info
> # files and the Info dir file.
> INFO_DIR?=      info
> 
> 
> This implies that INFO_DIR can be customized. So I am testing
[SNIP]

==> Not really, it is supposed to be a package creator/maintainer knob.
I added INFO_DIR a while back so a package Makefile had
a way to pass down to the automatically generated INSTALL/DEINSTALL script
snippets the installation directory of its info files. Yes some
package install info files in a weird^Wnon-default location.

> So in the GNU_CONFIGURE section in mk/bsd.pkg.mk I added:
> 
> +.  if !empty(INFO_FILES)
> +CONFIGURE_ARGS+=       --infodir=${PREFIX}${INFO_DIR}
> +.  endif

==> And well now that info files are no longer listed in PLIST files
but automatically added the the package inventory listing I suppose
that yes this can be done. I mean you can consider INFO_DIR to be a
package builder/user knob vs a package creater/maintainer knob.

But I won't do it I guess i.e. I would not provide more
shoot-yourself-in-the-foot opportunities :} Besides $prefix/info
is a pretty well established convention, isn't ?
Oh right NetBSD uses /usr/share/info...

Cheers.