From nobody Mon Dec 11 20:19:07 2023 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 4SptPf1HZlz5436h for ; Mon, 11 Dec 2023 20:19:18 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (vogon.madpilot.net [159.69.1.99]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SptPd5sRpz4kQy for ; Mon, 11 Dec 2023 20:19:17 +0000 (UTC) (envelope-from mad@madpilot.net) Authentication-Results: mx1.freebsd.org; none Received: from mail (mail [IPv6:fd5c:5351:d272::3]) by mail.madpilot.net (Postfix) with ESMTP id 4SptPV5TyJz6gss; Mon, 11 Dec 2023 21:19:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject:date:date :message-id:received; s=bjowvop61wgh; t=1702325948; x= 1704140349; bh=E8pWSIelMOA8TYHQ4DHKOWkpMtEwWA6swhqZQriA8Lc=; b=b FEb3JiLIoWPCLQuMY1sw5/kTXVPz8xxA2fX9oDCztElgfLn8lSO+/h3ccxImfLnG qBA/PHc2m5bSSOVeHwKZsiTG67A2MbKcS74nFcyGKQmbXeAx4Dtv1BmxqfK85vbT ORUTbA3ApqEPt1iajC6Cm6Kg2aJxH1AF2JLLOuV4BvOPISIvVeNmG96H9Cz0cDDJ LWYLmqU1zmB5vawmDezQLZsITMZEjTT4O2n7onIL+0N2D53Cr8I/iKvadkBG9iaC u7E/wur6PTJncV4u2iY1gYQJpSJQ/Rgbda2MWNX15U+eOXG7jI4ukkfvGRARZaic Wl/m6+N6cexfldQiOPtWQ== Received: from mail.madpilot.net ([IPv6:fd5c:5351:d272::3]) by mail (mail.madpilot.net [IPv6:fd5c:5351:d272::3]) (amavisd-new, port 10026) with ESMTP id MLEjRvndsVpd; Mon, 11 Dec 2023 21:19:08 +0100 (CET) Message-ID: <6dc882c8-901d-4990-b3b5-8dee969fb9c4@madpilot.net> Date: Mon, 11 Dec 2023 21:19:07 +0100 Subject: Re: Example for port which needs to run php-composer? To: Alexander Leidinger Cc: Freebsd Ports References: <43086cf9d76027a50a0b6d2329601a30@Leidinger.net> <06cd2a94e7a8690a5912f4a3239c9d5c@Leidinger.net> Content-Language: en-US From: Guido Falsi Autocrypt: addr=mad@madpilot.net; keydata= xsBNBE+G+l0BCADi/WBQ0aRJfnE7LBPsM0G3m/m3Yx7OPu4iYFvS84xawmRHtCNjWIntsxuX fptkmEo3Rsw816WUrek8dxoUAYdHd+EcpBcnnDzfDH5LW/TZ4gbrFezrHPdRp7wdxi23GN80 qPwHEwXuF0X4Wy5V0OO8B6VT/nA0ADYnBDhXS52HGIJ/GCUjgqJn+phDTdCFLvrSFdmgx4Wl c0W5Z1p5cmDF9l8L/hc959AeyNf7I9dXnjekGM9gVv7UDUYzCifR3U8T0fnfdMmS8NeI9NC+ wuREpRO4lKOkTnj9TtQJRiptlhcHQiAlG1cFqs7EQo57Tqq6cxD1FycZJLuC32bGbgalABEB AAHNHkd1aWRvIEZhbHNpIDxtYWRAbWFkcGlsb3QubmV0PsLAeAQTAQIAIgUCT4b6XQIbAwYL CQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQGuaGDlbL0pOWigf/YVTVf3+ZRnzeGP7CjGV1 Wrrxzjc8h8W64NZasV0XLHGFjl5MYwtm9jJ9gbL8Ubtqstey7lYpjOk2fG6YDhY5eptWCpR6 1QqYrioukhCfKbodSk6PnIZcx719nJVK2P7ihdFEN78TavpBwqIf9hGEcKkMpbRFQv1mYvXD hKVwQGY+8bkH/a/pAWmIyD4qMfKCMurH5DexxEt5SYWu5BB5hd/DWyZ0wuZ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DLQrQEjrQD/h1FMhfcLhAqsndltRd6DPvTKeMd/6VAxn0 hkoBKhEy5LkWjM9CHppu+bBkQ91/kj2uJQSXO8euonwHHS3c+6N2i2H7I0emcHGu07wuRB2t Dnw/RLBxohffdPZT2kbxuG7lhVHzwVDw5DRwSw8GkOdy In-Reply-To: <06cd2a94e7a8690a5912f4a3239c9d5c@Leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SptPd5sRpz4kQy 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 On 11/12/23 18:59, Alexander Leidinger wrote: > Am 2023-12-11 14:43, schrieb Guido Falsi: >> As a side note, if what you are trying to port is a pure PHP project >> using composer, I'm not sure creating pa port of it is really a good >> idea. The whole idea of composer is that it is handling dependencies >> and also can be configured by the user with various tweaks. It is >> preferable to "git clone" the project and manually run "composer >> install" (or whatever is needed). > > That's how I use what I want to port myself. But this is not very user > friendly for those types which simply want to install a package and play > with it. I do not completely agree with this but this is not important. (see below) > >> On the other hand, if what you're trying to port is a bigger project >> with a php+composer part making a port could make sense, but why >> upstream is not creating a proper distribution with all required files? > > It's a plugin for the roundcube webmail package. > > I don't like such external package things which can not be used by a > distro-packaging mechanism... and saying that it is the responsability > of upstream to provide something which can be used by a distro-packaging > mechanism fails unfortunately at the reality (keeping this up-to-date in > terms of security or changing APIs is a nightmare for a tiny > hobby-project or something which is "good enough as it is, no real > development going on"-stuff, so I understand if they tell that the > install instructions include the run of composer)... > I did not mean to start a discussion about the merits of this, and will not express further opinions. Anyway the fact is the ports system has its mechanisms, and expects everything fetched to be checksummed, and forbids to download things in other parts of the build. The ports tree also strives for repeatability of the builds, at least in principle. If you expect the port to do "composer upgrade" this cannot be allowed in the official tree and will fail on the cluster. You could do that on your local machine, although it's not really supported. I gave you suggestions on how to work around these (properties|features|limitations|rules|whatever) of the ports tree. I would be more interested to hear if you found those useful or not. -- Guido Falsi