From nobody Thu May 27 12:31:44 2021 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 61446BF0E45 for ; Thu, 27 May 2021 12:31:48 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FrRyX2CLBz3KPK; Thu, 27 May 2021 12:31:48 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from mail.j.mat.cc (owncloud.cube.mat.cc [79.143.240.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.mat.cc", Issuer "R3" (verified OK)) (Authenticated sender: mat/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 197BA961; Thu, 27 May 2021 12:31:48 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from aching.in.mat.cc (unknown [IPv6:2a01:678:ab:0:cc15:b95:b9de:721c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mat@mat.cc) by mail.j.mat.cc (Postfix) with ESMTPSA id C7009942D80; Thu, 27 May 2021 12:31:45 +0000 (UTC) Date: Thu, 27 May 2021 14:31:44 +0200 From: Mathieu Arnold To: Philipp Ost Cc: Mathieu Arnold , ports@freebsd.org Subject: Re: How to correctly reference WRKSRC of another port? Message-ID: <20210527123144.n4q3wzx5bibcv2sd@aching.in.mat.cc> References: <20210525141641.fugewdzmhscbua7p@aching.in.mat.cc> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2q4blcgzalgfhpng" Content-Disposition: inline In-Reply-To: X-ThisMailContainsUnwantedMimeParts: N --2q4blcgzalgfhpng Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > The :extract target did work fine, it's actually just the raw sources whi= ch > 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. If you only need the sources, it is probably better to simply add the nauty distribution file to DISTFILES. --=20 Mathieu Arnold --2q4blcgzalgfhpng Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEVhwchfRfuV0unqO5KesJApEdfgIFAmCvkSxfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU2 MUMxQzg1RjQ1RkI5NUQyRTlFQTNCOTI5RUIwOTAyOTExRDdFMDIACgkQKesJApEd fgJqGg//YFBLsDhayh7RJa2seoKuIzThEf+19KT0Bcoa1YooJUku/z22oulQQheP 6em6+Hn6Uei1eBVGqChhvFlbdwHU7p2g2XHzND4XK84ejGVbLZDg9LIF54OwELw9 pW7CQmmrNPfObOOqBYvfpiG5unvWSu9/UFuhgSF25XLANNtZI6ft2HRT2KILPdon b6gCCm263Cdm7S/ZnOsuBEO0KbemjV46fXGAXLdnKjNoX69zIaxBQ701NYZ1FWng 4sW5+Xp98d0PFq+MnmkfkBUND4xiYCBolNT3+Nc7PbUfeOeEDhOGMQWB1iW9HxTZ Fz9WJY1joPIVe0g1h8mFh1/paEn9OshacX3+bTBhl8U5OcxdVBWUlU1ZpuanvYfD H1Z3kaB+UwxrXpLPTM467cSAtP9rqkMIGC5LAk0CUZbEV5iM5enhJg+mb03eD6B2 AhVVuWqHcnG2qbACAGCIkV2HfpgPrWv3LYWZ+VDcFChU0cfUHDqHR4jw3fBS9SdO +gYFEqJBRiJZ8aOLXiNYfw6zFwpbYnnErHdidEi8NnlgJ/otc3iw+BzLJBncwW9b 3n5n4W09y3GnLVUpQI9+uDx+/tIcTOVA5XghwxMmIr8q8l+TAGAN0KaJWJrQBMta QTGe/bMBgBZge1IYRxQ5heWjzsfKuowOl996VysAKMozhtPVGdw= =PrPf -----END PGP SIGNATURE----- --2q4blcgzalgfhpng--