Date: Thu, 27 May 2021 07:07:42 -0700 From: Dan Mahoney <freebsd@gushi.org> To: Mathieu Arnold <mat@freebsd.org> Cc: Philipp Ost <pj@smo.de>, ports@freebsd.org Subject: Re: How to correctly reference WRKSRC of another port? Message-ID: <9EF3CBFD-F521-431B-9A07-36785841948F@gushi.org> In-Reply-To: <20210527123144.n4q3wzx5bibcv2sd@aching.in.mat.cc> References: <c2d98e8d-483d-052e-9df2-473d15c96ff1@smo.de> <20210525141641.fugewdzmhscbua7p@aching.in.mat.cc> <ec5a99df-da23-c6f3-cd46-e7a334cd289b@smo.de> <20210527123144.n4q3wzx5bibcv2sd@aching.in.mat.cc>
next in thread | previous in thread | raw e-mail | index | archive | help
> On May 27, 2021, at 5:31 AM, Mathieu Arnold <mat@freebsd.org> wrote: >=20 > On Wed, May 26, 2021 at 12:46:20AM +0200, Philipp Ost wrote: >> Thanks everyone for your help and suggestions so far! >>=20 >> 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: >>>=20 >>> BUILD_DEPENDS=3D ${NONEXISTENT}:math/nauty:patch >>> NAUTY_WRKSRC=3D $$(${MAKE} -C ${PORTSDIR}/math/nauty -VWRKSRC) >>>=20 >>> and then wherever you hardcoded the /usr/ports/... just put >>> ${NAUTY_WRKSRC}. >>=20 >> Jan suggested essentially the same. ;-) >>=20 >>> 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. This feels like the kind of thing that a "How Do I"...wiki would benefit = from. >>=20 >> 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. >=20 > If you only need the sources, it is probably better to simply add the > nauty distribution file to DISTFILES. >=20 > --=20 > Mathieu Arnold
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9EF3CBFD-F521-431B-9A07-36785841948F>