Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 2004 22:48:17 +0100
From:      Roman Neuhauser <neuhauser@chello.cz>
To:        Quincey Koziol <koziol@ncsa.uiuc.edu>
Cc:        ports@freebsd.org
Subject:   Re: Need help debugging makefile changes
Message-ID:  <20040315214817.GC77608@isis.wad.cz>
In-Reply-To: <200402230337.i1N3blMk091103@sleipnir.ncsa.uiuc.edu>
References:  <200402230337.i1N3blMk091103@sleipnir.ncsa.uiuc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
# koziol@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040315214817.GC77608>