Need help debugging makefile changes

Roman Neuhauser neuhauser at chello.cz
Mon Mar 15 13:47:30 PST 2004


# koziol at ncsa.uiuc.edu / 2004-02-22 21:37:47 -0600:
> Hi all,
>     I'm trying to get my changes to the graphics/hdf5 port working correctly
> and I'm running into a problem that I don't know how to solve.
> 
>     Here's my changed Makefile:

    ...

> post-patch:
> 	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
> 	@${REINPLACE_CMD} -e 's|[\$$]CFLAGS -pthread|\$$CFLAGS|g ; \
> 		 s|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
> 		 s|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g'  \
> 			${WRKSRC}/config/freebsd
> 	@${REINPLACE_CMD} -e 's|[\$$]CFLAGS -pthread|\$$CFLAGS|g ; \
> 		 s|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
> 		 s|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g'  \
> 			${WRKSRC}/config/c++/freebsd
> 	@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/config/gnu-flags

    ...

> 'make' now gives this output:

    ...

> Patching file configure using Plan A...
> Hunk #1 succeeded at 7315 (offset 52 lines).
> done
> sed: lstat: No such file or directory
> *** Error code 1
> 
> Stop in /usr/ports/graphics/hdf5.
> 
> ============================================================================
> 
>     It's processed all the patches, but I don't know if the "sed: lstat: No
> such file or directory" is coming from the tail end of the 'patch' target
> or a later target?  Can anyone help me out?

    do all the files patched in post-patch exist when the target is run?
    IOW, make it:

post-patch:
	ls -l ${WRKSRC}/configure ${WRKSRC}/config/freebsd \
	${WRKSRC}/config/c++/freebsd ${WRKSRC}/config/gnu-flags
	${FALSE}

    or at least remove the silencing @s.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html


More information about the freebsd-ports mailing list