pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/60184 (Fix chibi-scheme installation on macos)



> Date: Sat, 11 Apr 2026 22:14:46 +0200
> From: "Diogo" <db7%sdf.org@localhost>
> 
> > So why isn't shlib-dylib.awk already working here?
> 
> I tried looking in the logs inside work/, but couldn't find any
> hint. How would you proceed to figure out that?

Here's the relevant fragments of mk/plist/plist.mk:

# This is the path to the generated PLIST file.
PLIST=		${WRKDIR}/.PLIST
...
_PLIST_SHLIB_AWK=	-f ${_SHLIB_AWKFILE.${SHLIB_TYPE}}
...
_SHLIB_AWKFILE.dylib=	${.CURDIR}/../../mk/plist/shlib-dylib.awk
...
${PLIST}:
	${RUN}								\
	${TEST} -d ${.TARGET:H} || ${MKDIR} ${.TARGET:H};		\
	{ ${_GENERATE_PLIST} } > ${.TARGET}-1src;			\
	${PKGSRC_SETENV} ${_PLIST_AWK_ENV} ${AWK}			\
		${_PLIST_1_AWK} < ${.TARGET}-1src > ${.TARGET}-2mac;	\
	${PKGSRC_SETENV} ${_PLIST_AWK_ENV} ${AWK}			\
		${_PLIST_AWK} < ${.TARGET}-2mac > ${.TARGET}-3mag;	\
	${PKGSRC_SETENV} ${_PLIST_AWK_ENV} ${AWK}			\
		${_PLIST_SHLIB_AWK} < ${.TARGET}-3mag > ${.TARGET}

So the files to look at should be lang/chibi-scheme/work/.PLIST*.  in
particular, .PLIST-3mag should have the .so paths, and .PLIST should
have them all fixed up to be dylibs.

You can, say, insert debug prints into shlib-dylib.awk, and then run
`bmake plist-clean && bmake plist' to rerun it to generate the plist
afresh without having to rebuild anything else.



Home | Main Index | Thread Index | Old Index