Date: Mon, 17 Sep 2018 14:31:43 +0200 From: Stefan Esser <se@freebsd.org> To: Matthias Fechner <idefix@fechner.net>, freebsd-ports@freebsd.org Cc: Mathieu Arnold <mat@FreeBSD.org> Subject: Re: RUN_DEPENDS and portmaster Message-ID: <957c48fb-bad8-a481-1626-54be15e34993@freebsd.org> In-Reply-To: <9cf4d06d-e49d-aede-ca8f-b9ad1e9f19af@fechner.net> References: <03c14234-538d-fd9f-0c33-22825f3ea91d@fechner.net> <20180910101655.uzyriuylsucz7u3y@ogg.in.absolight.net> <9cf4d06d-e49d-aede-ca8f-b9ad1e9f19af@fechner.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --D1gZrD4xOa82bhwBmYczeIuwq6xpy6eeU Content-Type: multipart/mixed; boundary="dE4vxClUgMBQs4KMYclTQveaVu8ahSngY"; protected-headers="v1" From: Stefan Esser <se@freebsd.org> To: Matthias Fechner <idefix@fechner.net>, freebsd-ports@freebsd.org Cc: Mathieu Arnold <mat@FreeBSD.org> Message-ID: <957c48fb-bad8-a481-1626-54be15e34993@freebsd.org> Subject: Re: RUN_DEPENDS and portmaster References: <03c14234-538d-fd9f-0c33-22825f3ea91d@fechner.net> <20180910101655.uzyriuylsucz7u3y@ogg.in.absolight.net> <9cf4d06d-e49d-aede-ca8f-b9ad1e9f19af@fechner.net> In-Reply-To: <9cf4d06d-e49d-aede-ca8f-b9ad1e9f19af@fechner.net> --dE4vxClUgMBQs4KMYclTQveaVu8ahSngY Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 17.09.18 um 07:47 schrieb Matthias Fechner: > Am 10.09.18 um 12:16 schrieb Mathieu Arnold: >> Reading Mk/bsd.port.mk at line 5274, run-depends are installed before >> do-install runs. >=20 > thanks, I see it the same way and created a PR for it, to get this fixe= d > in portmaster. You are of course free to create a PR against portmaster. But the behavior of portmaster will not be changed. RUN_DEPENDS are dependencies required to run a port, not dependencies required to install a port. And I do not care whether bsd.port.mk treats RUN_DEPENDS as if they were INSTALL_DEPENDS (which do not exist). The fact that bsd.port.mk works in that way is due to the fact, that it generally executes sub processes in a depth first manner. Portmaster distinguishes build and run dependencies and makes sure, that build dependencies not only exist, but are updated before the ports they depend on, while bsd.port.mk will use any build dependency that satisfies the range requirements (if any) and does not upgrade existing but outdated (in the sense that an upgrade is available) dependencies. Portmaster will then upgrade any out-dated run dependencies (again if an upgrade is available, not only if it is strictly required). Thus portmaster guarantees, that a port is built with the latest available build tools, and that run dependency upgrades see the upgraded port that requires them, in case they depend on it. I have spent hundreds of hours to work around the bad design of the FLAVOR support, which ignored the requirements of tools like portmaster or portupgrade. Changes to the port infrastructure tend to ignore the existence and requirements of build tools that have a decade long history and use cases not covered by the port infrastructure alone. I'm not going to spend any time on a change that made portmaster install RUN_DEPENDS before executing "make install" for a port. You are free to create a patch to that effect, but be aware that it is extremely likely to break lots of upgrade scenarios, and I'll make you responsible for fixing them (or back-out your assumed patch that treats run dependencies as if they were build dependencies). Regards, STefan --dE4vxClUgMBQs4KMYclTQveaVu8ahSngY-- --D1gZrD4xOa82bhwBmYczeIuwq6xpy6eeU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAlufnq8ACgkQR+u171r9 9UT+Fwf/WTQ1RScHcfplbvyly6yDTqx1WPKzLvTXLKfHE0ukNytoQ41pKT1oPKj3 z5LfNTqrGRt9L26mO5x9VhxWXOdhFulrveXqKVps3yFvMva6eqUQrAJ8kgMgoTZO St1H+wmIkHTPmZCw3nMJfKGp/teOZKONWmY941fW8vXMgXXHSeP3bteXtYrzS3xN /3bz3sndhGdv4CUGUlrk9qWb95VqO2/VrMsIFC/rFbftH1Aah7o5aVWjE4Drusqd 7iFyI6Pi0P7E8b9GqtG6bg6I+l0MAxy4YliKFb4Uq+yaejXl4+u1wn16H1h3cmYY 4mSJnAAqC9QBpesTlOwM+4Et2ASDzg== =7Vuk -----END PGP SIGNATURE----- --D1gZrD4xOa82bhwBmYczeIuwq6xpy6eeU--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?957c48fb-bad8-a481-1626-54be15e34993>