Date: Wed, 18 May 2022 12:22:38 -0700 From: Mel Pilgrim <list_freebsd@bluerosetech.com> To: Stefan Esser <se@FreeBSD.org>, Peter Beckman <beckman@angryox.com> Cc: freebsd-ports@freebsd.org Subject: Re: How to port a PHP application that uses Composer? Message-ID: <33fcfa0c-5e40-7e16-595d-9741677ec65c@bluerosetech.com> In-Reply-To: <35424a18-7483-766d-9d51-fa74825d4a72@FreeBSD.org> References: <130ec10a-219a-ac8b-06d9-80d31261dd39@bluerosetech.com> <6eaa632a-c56-f1fa-3ae2-b66e14b26ab7@angryox.com> <485d6ba0-abbe-628b-7bcf-9a808960e08e@bluerosetech.com> <35424a18-7483-766d-9d51-fa74825d4a72@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2022-05-17 9:09, Stefan Esser wrote: > 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. >> >> Yes, that's exactly the point I'm stuck on. The fetch-extract-fetch and >> toe-stepping problems mentioned in my original email came from me trying to >> solve this either way: >> >> "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 extracted from >> the distfile. > > You can override the do-fetch target with a more complex sequence of commands. > Those have network access and you could extract the required json file to some > temporary location to let the composer do its job. WRKDIR doesn't exist until the extract phase, and with this approach Composer would need to do all of its work during the fetch phase. Is it okay to create WRKDIR early? Also, would doing this interfere with commands that batch-download distfiles, such as those used by poudriere?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33fcfa0c-5e40-7e16-595d-9741677ec65c>