Bug 237552 - dns/bind-tools conflicts with dns/bindXXX (with XXX != 914)
Summary: dns/bind-tools conflicts with dns/bindXXX (with XXX != 914)
Status: Closed DUPLICATE of bug 237551
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-25 10:44 UTC by Helge Oldach
Modified: 2019-04-25 14:28 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mat)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helge Oldach 2019-04-25 10:44:03 UTC
ports r499757 made all BIND ports depending on dns/bind-tools. This will install the bind tools from the latest version (currently 9.14) even if BIND itself is a different release.

Unfortunately this creates a conflict: Since dns/bind-tools/Makefile slurps in dns/bind914/Makefile, we run into CONFLICTS for any case where the BIND version is /different/ from the one used in dns/bind-tools.

For example, currently I have updates pending for both dns/bind-tools (from 9.14.0 to 9.14.1) as well as dns/bind911 (from 9.11.6 to 9.11.6-P1). But an upgrade of dns/bind-tools (which is before upgrading dns/bind911 because of the a run-time dependency) fails because of this mismatch:


===>  bind-tools-9.14.1 conflicts with installed package(s):
      bind911-9.11.6P1

      They install files into the same place.
      You may want to stop build with Ctrl + C.
===>  License MPL20 accepted by the user
===>   bind-tools-9.14.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by bind-tools-9.14.1 for building

===>  bind-tools-9.14.1 conflicts with installed package(s):
      bind911-9.11.6P1

      They will not build together.
      Please remove them first with pkg delete.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/dns/bind-tools
*** Error code 1

Stop.
make: stopped in /usr/ports/dns/bind-tools


The only way out is to deinstall dns/bind911 (which is a pain, as it potentially kills name resolution), then upgrade dns/bind-tools, and then reinstall dns/bind911.

Furthermore, the error message itself is odd: After firstly indicating a potential conflict (but perhaps still being able to build correctly) it bails out entirely pointing to the same conflict.

Unfortunately, ports r499757 made things worse (although I like the idea) and broke a working proper BIND upgrade.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-04-25 14:28:59 UTC

*** This bug has been marked as a duplicate of bug 237551 ***