Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2019 10:37:32 +0100
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        Lars Engels <lars.engels@0x20.net>
Cc:        Mathieu Arnold <mat@freebsd.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r519284 - head/Mk
Message-ID:  <20191209093732.luyq6g73sd77rlsj@atuin.in.mat.cc>
In-Reply-To: <20191208171914.GU5400@e.0x20.net>
References:  <201912081019.xB8AJc4D022130@repo.freebsd.org> <20191208115420.c4pjy4lygxllnxgv@atuin.in.mat.cc> <20191208171914.GU5400@e.0x20.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--ahuk3np4o27arv5e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Dec 08, 2019 at 06:19:14PM +0100, Lars Engels wrote:
> On Sun, Dec 08, 2019 at 12:54:20PM +0100, Mathieu Arnold wrote:
> > On Sun, Dec 08, 2019 at 10:19:38AM +0000, Lars Engels wrote:
> > > +# Install missing dependencies from package
> > > +install-missing-packages:
> > > +	@_dirs=3D$$(${MISSING-DEPENDS-LIST}); \
> > > +	${PKG_BIN} install -A $$(${ECHO} $${_dirs} | ${SED} "s%${PORTSDIR}/=
%%g")
> >=20
> > While this seems to be ok, it will fail in most cases.
> >=20
> > You cannot install packages using their origin.  It will install all
> > available flavors, and in many many cases, flavors conflict with each
> > others.
> > Also, when subpackages come along, it will install all the subpackages
> > of a port.
> >=20
> > You need to get the actuall package names that a port depends on, and
> > use that to run pkg install on.
>=20
> Hmm, you're right.
> Is there  a way to get the actual package names?

The magic of installing the required dependencies happens in
Mk/Scripts/do-depends.sh.
If something like this had to be done, it should be hooked in there.
Keep in mind that unless you are extremly lucky (as in, it'll never
happen), the packages you will be fetching will not match the ports tree
you are using, and it will most probably not work correctly.

It is the main reason why a feature like this was never added. It will
only ever bring pain and suffering to those who use it because unless
used in an experimental and controlled setting where you build the
packages you need from your ports tree, and then use that repository to
install them, it will never give you the correct packages for your ports
tree.  And if you are doing it, well, poudriere already does all this
and I do not see a reason to try and do in in some strange other way.

--=20
Mathieu Arnold

--ahuk3np4o27arv5e
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAABCgB9FiEEOraXidLtEhBkQLpbOkUW81GDzkgFAl3uFdtfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNB
QjY5Nzg5RDJFRDEyMTA2NDQwQkE1QjNBNDUxNkYzNTE4M0NFNDgACgkQOkUW81GD
zkh8IA//Tb2me+sPN72NnMs07wi3D/BSF6DqCV6hqONZYGEpF1momo1AvbgZVpVc
P7C1xhiOIdW8CTKEJD6liboI3ETm+13/AtkT4b9aDPH5n6QNkgjz9ZakDydGZ5kR
3dEx+n9GXG0sOif8f9W3RqKG3GEBnNDt+8osX37IvBk283GEa9HXsJY7wLGMtJzC
g1VEI8WP/kNKqHqgYK7Nie/WlayssACWQwkZRN1X5FxLuVH2TOsILV4IrL/uVMVg
7hJ5XCRla333sj5h5Xh/4bsfV51GI7B3wbgdLQUNwBkLAM42xXfhT6vwBgKSOB3u
K9J31ffWlXR9OFtZNB5UYpGqbbHKy46Bm06NAS6TfpSyUp1okqgo8V8jeJzTu6tt
ZPypRleBRlp+n0saCI5W4U7ZhcIbIRYfXAxKMxjBo37buDaU109aoZJei5bCgXM2
jTP9ejf9qgaUEu/fCJth8mJ/q2YL/zx1ByuN3Py5uDZMDK6PFa6YhhhrQwsE+/0n
9PTz3k81Yqve6kzb2IszKzOrMJT19ZoMNMrB1I427x1GZNiAgKhlWfplvvfk6UU2
sP7CGJ6VNlE0BsFMYA3h6wo2DE+4onIDK8WS8JYHPih0VCNIxjiwu1SYxc+MnLGd
HPtexmnF+K3LPorh8HtuVgrrRToq+y2bda+/CghpWJoAH1vpGrc=
=ksOF
-----END PGP SIGNATURE-----

--ahuk3np4o27arv5e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191209093732.luyq6g73sd77rlsj>