Re: How to correctly reference WRKSRC of another port?

From: Philipp Ost <pj_at_smo.de>
Date: Wed, 26 May 2021 00:46:20 +0200
Thanks everyone for your help and suggestions so far!

On 5/25/21 4:16 PM, Mathieu Arnold wrote:
> On Mon, May 24, 2021 at 08:16:47PM +0200, Philipp Ost wrote:
[snip]>
> There is no best way to achieve what you need.  The probably easiest way
> would be to follow what audio/pulseaudio-module-xrdp does, mainly:
> 
> BUILD_DEPENDS=	${NONEXISTENT}:math/nauty:patch
> NAUTY_WRKSRC=   $$(${MAKE} -C ${PORTSDIR}/math/nauty -VWRKSRC)
> 
> and then wherever you hardcoded the /usr/ports/... just put
> ${NAUTY_WRKSRC}.

Jan suggested essentially the same. ;-)

> Note that the special BUILD_DEPENDS is required, otherwise, there is no
> guarantee that the sources will actually be there.  Also, the :patch at
> the end is the target youu actually need the sources to be in, maybe it
> should be :configure or :build.

The :extract target did work fine, it's actually just the raw sources 
which are needed. In the meantime some gremlins have crept in and now 
nothing seems to work as it did yesterday... Now I can't get the nauty 
sources to extract properly, neither using :extract or :patch. 
NAUTY_WRKSRC is set correctly; right now I don't know what might be 
amiss. If I can't figure it out myself I fear I have to bug the list again.

Philipp
Received on Tue May 25 2021 - 22:46:20 UTC

Original text of this message