loose dependency
Hiroki Sato
hrs at FreeBSD.org
Thu Mar 14 07:52:27 UTC 2019
Koichiro Iwao <meta at FreeBSD.org> wrote
in <20190314061242.ixvtakqiel4aa4r3 at icepick.vmeta.jp>:
me> On Thu, Mar 14, 2019 at 01:40:14PM +0900, Hiroki Sato wrote:
me> > There is no easy solution to solve it completely because currently
me> > package dependency is solved in a strict manner including package
me> > names and version numbers, not only existence of specific files.
me> > Creating multiple ports which depend on each software or using
me> > FLAVORS to make it easier is a way to provide packages with every
me> > possible combinations of dependency and let one to choose.
me>
me> Specifically talking, net/tigervnc is the case. Actually, the dependency
me> is build dependency not runtime. ImageMagick is used to create multiple
me> sizes of icons such as 24x24, 32x32, 48x48 during the build. Whichever
me> versions of ImageMagick in the current ports tree can be used for the
me> purpose. Once the port is built, ImageMagick is not required at all and
me> can be uninstalled if no other packages depends on it.
In this case BUILD_DEPENDS with bin/convert just works. It does not
record package-level dependency and it does not matter that where
bin/convert came from while you have to put a specific version of
ImageMagick on the BUILD_DEPENDS line. An installed bin/convert will
used if it exists already, and the specified version will be
installed if not.
One problem is that "a specific version" on the BUILD_DEPENDS line
can be different from other ports. In that case, which version will
be installed during the build can depend on the order of builds
including other ports. We define Mk/bsd.default-versions.mk to make
it consistent especially for runtime dependency. It should work for
build-time dependency though I am not sure if it is worth doing.
-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20190314/774b34d9/attachment.sig>
More information about the freebsd-ports
mailing list