Subject: "make plist" is broken (before package is installed)
To: None <tech-pkg@netbsd.org>
From: Rhialto <rhialto@azenomei.knuffel.net>
List: tech-pkg
Date: 10/27/2004 15:20:05
If I do this, I get that:

    /vol1/rhialto/cvs/pkgsrc/x11/Xrender$ make plist
    /vol1/rhialto/cvs/pkgsrc/x11/Xrender/../../mk/scripts/print-la-libnames:
    cannot read libtool archive `./lib/libXrender.la'

When the message is printed, the current directory is /usr/pkg, and
./lib/libXrender.la does not exist yet at that time.

make plist uses ${PLIST} which uses ${_PLIST_AWK_SCRIPT} which uses
${_PLIST_AWK_SUBST} which uses ${_PLIST_AWK_LIBTOOL} which is

    system("cd ${PREFIX} && ${SH} ${_PRINT_LA_LIBNAMES} " $$0)

and ${_PRINT_LA_LIBNAMES} is ${.CURDIR}/../../mk/scripts/print-la-libnames .

This is annoying since pkg_hack uses this, and it is still an invaluable
tool for avoiding the upgrade hell (despite its little problems of
itself).

Any idea how to fix it? Maybe not try to use the .la file in ${PREFIX}
but one in the work directory? How to find it?

-Olaf.
-- 
                           -- Ceterum censeo "authored[1]" delendum esse.
___ Olaf 'Rhialto' Seibert -- [1] Ugly English neologism[2].
\X/ rhialto/at/xs4all.nl   -- [2] For lawyers whose English/Latin is below par.