From nobody Tue May 17 16:09:34 2022 X-Original-To: freebsd-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 0D6741B34C41 for ; Tue, 17 May 2022 16:09:38 +0000 (UTC) (envelope-from se@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 4L2h016Qkcz4vTD; Tue, 17 May 2022 16:09:37 +0000 (UTC) (envelope-from se@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652803777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ezoCwTDUMhUfq7mKoYTZq2x4Oz6RSyHSj5U8L3TVgA8=; b=U9GePxrBMC1JpGw6KmYXkOC9T30vDcO0JSFcQvkElV0SbJSig/3cPUOxnI2yv9OAxW4V+H BP9MJ4o6AeQH1HuhN7MQqZ7wTpqEWK5use2fxcyMDw3uU8ERVn4GGhzVQbdcGVJ2P0U/YD QueGyCXC6lozVGctUimPFE9aLkDXGuk3v2suh4nlZ3JcqEgUdWVrcLKKgcN2PtCYlkCmwR d0qlnMtIGB2YdzZCOrUSrXhIcMvMK8tcC3JrUt3u7Kav7KWVNF4F7ZV0uYKWyP3gW/rewy V23wksPWUJ/9v2mStu3BrWZ1t6ec/b4o+4PCgK4A129S8do7ql/3eXx4es1+LA== Received: from [IPV6:2003:cd:5f19:3600:64bb:7ed0:9a0e:d4d9] (p200300cd5f19360064bb7ed09a0ed4d9.dip0.t-ipconnect.de [IPv6:2003:cd:5f19:3600:64bb:7ed0:9a0e:d4d9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 40CE96784; Tue, 17 May 2022 16:09:37 +0000 (UTC) (envelope-from se@FreeBSD.org) Message-ID: <35424a18-7483-766d-9d51-fa74825d4a72@FreeBSD.org> Date: Tue, 17 May 2022 18:09:34 +0200 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 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: How to port a PHP application that uses Composer? Content-Language: en-US To: Mel Pilgrim , Peter Beckman Cc: freebsd-ports@freebsd.org References: <130ec10a-219a-ac8b-06d9-80d31261dd39@bluerosetech.com> <6eaa632a-c56-f1fa-3ae2-b66e14b26ab7@angryox.com> <485d6ba0-abbe-628b-7bcf-9a808960e08e@bluerosetech.com> From: Stefan Esser In-Reply-To: <485d6ba0-abbe-628b-7bcf-9a808960e08e@bluerosetech.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------8wqwOU2j0r2n3fhFEnsdmEiw" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652803777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ezoCwTDUMhUfq7mKoYTZq2x4Oz6RSyHSj5U8L3TVgA8=; b=DXHx89Ek0IjbIODFOyyfHj+LRdbIWbp3mipS7uH05mJHzUWV8mWB7/XBD0R+TZl2v1bjaf n39u0Svsh2oxvyDQh9bOO0Lq3ys+i0Bts/rKSJstRxBMsw9hVDF6U6eQNmjp6DdFYE53Py ErKruEgoi5U031Dgl6VAXlrDvPJ1RNVSVu4KvGDq6jsBlG5BlndSNgQEHzqLCUrbIyaP9Q VMoSnm/K8sBDEgM4FGVAfvpjOrCiZhKKrbDrYo4aSP0/nyqSrpDCEM+jBn1gw5fBaoVB/q kH6a2sFvVPkO7BO7khOvyhYkPJDyBgmKZrZUtX0akPWqkMuKLdTRPmYdupUKqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652803777; a=rsa-sha256; cv=none; b=Rm8GnQ3m+jogHh+CO0GdFRr9SWJi/9dMvsYkka8mfQKzEKFaS/Y3stEyRqSxHsl8NiY+1t WdG+JdhCLWz4yMJ31MFcsOoSsWL/zpw0ftC7Zm5pG+K/SUqZQAQTPSwY2rvx3mOWkygG+q 7XyHTE4k3GhVLyEUgsjdmvfWgNUHVQSlpsY/ZvUWIGaCxS86tTKkcbRIbE9GD5yw59Y95/ 7Y/hb56WpMG8MotJWPcoKTzrOAJzd5Xc3VC2/xix3IZ+J9zA6wVfQh8IezOzD4rRLS9mQc 6Lv9TFKN6K4A62IjHcM/ehrZ1XVmosNpy/qMeIsFa+GcYcInZo9WwajAOBsTCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------8wqwOU2j0r2n3fhFEnsdmEiw Content-Type: multipart/mixed; boundary="------------WosLi4A2JpAFmeysx6uXje6J"; protected-headers="v1" From: Stefan Esser To: Mel Pilgrim , Peter Beckman 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--