[Fwd: readline port weirdness]

Frank Laszlo laszlof at vonostingroup.com
Sat Jan 3 15:36:28 PST 2004

Someone suggested to post this to -ports, so I am doing so.

I'm trying to patch the readline port to support READLINE_OVERWRITE_BASE 
as suggested by Edwin. im running into a bit of a snag with info files. 
Here is what I have in the Makefile

PREFIX= /usr
MANPREFIX=      ${PREFIX}/share
CONFIGURE_ARGS=        --mandir=${MANPREFIX}/man 

the correct location for info files should be /usr/share/info (am I 
wrong?) but when i do a make install for this port I get the following 

ls: /usr/info/readline.info*: No such file or directory
ls: /usr/info/rluserman.info*: No such file or directory
ls: /usr/info/history.info*: No such file or directory

After reading through bsd.port.mk I found this:

.for i in ${INFO}
       @${ECHO_CMD} "@unexec install-info --delete %D/info/$i.info 
%D/info/dir" \
               >> ${TMPPLIST}
       @${LS} ${PREFIX}/info/$i.info* | ${SED} -e s:${PREFIX}/::g >> 
       @${ECHO_CMD} "@exec install-info %D/info/$i.info %D/info/dir" \
               >> ${TMPPLIST}

note the line starting with @${LS} it looks in ${PREFIX}/info. which is 
my case would be /usr/info (which is wrong) is there any reason this 
shouldnt be something like ${INFOPREFIX} instead of ${PREFIX}? where 
This would allow for ports to set the variable without having to write a 
custom installation script for allow for /usr/share/info. any ideas? Thanks


More information about the freebsd-ports mailing list