Date: Tue, 17 May 2022 18:09:34 +0200 From: Stefan Esser <se@FreeBSD.org> To: Mel Pilgrim <list_freebsd@bluerosetech.com>, Peter Beckman <beckman@angryox.com> Cc: freebsd-ports@freebsd.org Subject: Re: How to port a PHP application that uses Composer? Message-ID: <35424a18-7483-766d-9d51-fa74825d4a72@FreeBSD.org> In-Reply-To: <485d6ba0-abbe-628b-7bcf-9a808960e08e@bluerosetech.com> References: <130ec10a-219a-ac8b-06d9-80d31261dd39@bluerosetech.com> <6eaa632a-c56-f1fa-3ae2-b66e14b26ab7@angryox.com> <485d6ba0-abbe-628b-7bcf-9a808960e08e@bluerosetech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------8wqwOU2j0r2n3fhFEnsdmEiw Content-Type: multipart/mixed; boundary="------------WosLi4A2JpAFmeysx6uXje6J"; protected-headers="v1" From: Stefan Esser <se@FreeBSD.org> To: Mel Pilgrim <list_freebsd@bluerosetech.com>, Peter Beckman <beckman@angryox.com> Cc: freebsd-ports@freebsd.org Message-ID: <35424a18-7483-766d-9d51-fa74825d4a72@FreeBSD.org> Subject: Re: How to port a PHP application that uses Composer? References: <130ec10a-219a-ac8b-06d9-80d31261dd39@bluerosetech.com> <6eaa632a-c56-f1fa-3ae2-b66e14b26ab7@angryox.com> <485d6ba0-abbe-628b-7bcf-9a808960e08e@bluerosetech.com> In-Reply-To: <485d6ba0-abbe-628b-7bcf-9a808960e08e@bluerosetech.com> --------------WosLi4A2JpAFmeysx6uXje6J Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 17.05.22 um 06:19 schrieb Mel Pilgrim: > On 2022-05-16 20:14, Peter Beckman wrote: [...] >> Consider that it is something the installer needs to do, or build the >> package as a deterministic set of packages already installed. >=20 > Yes, that's exactly the point I'm stuck on.=C2=A0 The fetch-extract-fet= ch and > toe-stepping problems mentioned in my original email came from me tryin= g to > solve this either way: >=20 > "If I ran [composer] as part of the pkg building process, there's a > fetch-extract race as it needs network access, but also a file extracte= d from > the distfile. You can override the do-fetch target with a more complex sequence of comm= ands. Those have network access and you could extract the required json file to= some temporary location to let the composer do its job. The composer.phar script could be made a separate port referenced as a fe= tch dependency (FETCH_DEPENDS=3D...) in the port you are working on. In combination, the composer.phar would be installed first, then the init= ial distfile fetched and the composer.json file extracted to be operated on b= y the composer script. I'd assume that composer will download the extra distfiles to the directo= ry where the json file is found, and you'll have to move them to the correct= distfiles directory (where "make extract" expects to find them ...). Regards, STefan --------------WosLi4A2JpAFmeysx6uXje6J-- --------------8wqwOU2j0r2n3fhFEnsdmEiw Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmKDyL4FAwAAAAAACgkQR+u171r99UTx RQf/a3sYgSOwPE1Tfbw7uNZXPR/uTRKYtq8zYWwguES6iQrI35wdjowAxufOp7q7mbFKpcya3cvl wN4V4vRq5HykLnVMjwSvwoLby3syEOjCyQmlwXpHuL2ktN7aPVrQRAZ7jNSNj7VI2Jcp3GoGt4Rp /0JJYC0hKgP3HENoqn1MluyPeHE0hULPFZONDvFSNU12XvbQQPFLWmSSq5mpXuQFJAy9qgvOdptz 79DQAdiJwY7Hbv2+Bqon/MiZRXeA8YWEqA8B1Zovb9b7ZDoMLnaFFpww2uVKP+dHpcizRL3bi3wF o9OBOZlbiVew5ODK407Y68XrvEnhqVGTXjQPLaKEew== =drVc -----END PGP SIGNATURE----- --------------8wqwOU2j0r2n3fhFEnsdmEiw--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35424a18-7483-766d-9d51-fa74825d4a72>