Bug 1292397

Summary: Bad BuildRequire to bind99-devel
Product: [Fedora] Fedora Reporter: Lameire Alexis <alexis.lameire>
Component: dhcpAssignee: Jiri Popelka <jpopelka>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jpopelka, thozza
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-17 10:52:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lameire Alexis 2015-12-17 10:22:36 UTC
I had to backport this package into CentOS for use. And when I done this I could see a bad BuildRequire to bind99-devel

instead, this package should BuildRequire to bind-lite-devel.

Moreother, to proper work, two change should be applyed :

First, latest version of bind solve a dirty trick under naming of bind librery and remove "-export" perfix to theses library. So you patch should be updated.

this sed command do the trick :
sed -ie 's|-export||g' dhcp-remove-bind.patch dhcp-sharedlib.patch  dhcp-systemtap.patch dhcp-capability.patch

Second, due to the switch of this library, configure option should be edited :
    --with-libbind=%{_includedir}/bind9 \
    --with-libbind-libs=%{_libdir} \

Comment 1 Tomáš Hozza 2015-12-17 10:52:17 UTC
(In reply to Lameire Alexis from comment #0)
> I had to backport this package into CentOS for use. And when I done this I
> could see a bad BuildRequire to bind99-devel

This is not BAD, this is intentional. In Fedora bind version is 9.10.x, which can not be used for building DHCP, therefore there is bind99 package which provides libraries for DHCP from bind 9.9.x version.

> instead, this package should BuildRequire to bind-lite-devel.

t should not. If you rebuild something for CentOS, you should make sure you rebuild all the necessary dependencies.

> Moreother, to proper work, two change should be applyed :
> 
> First, latest version of bind solve a dirty trick under naming of bind
> librery and remove "-export" perfix to theses library. So you patch should
> be updated.
> 
> this sed command do the trick :
> sed -ie 's|-export||g' dhcp-remove-bind.patch dhcp-sharedlib.patch 
> dhcp-systemtap.patch dhcp-capability.patch
> 
> Second, due to the switch of this library, configure option should be edited
> :
>     --with-libbind=%{_includedir}/bind9 \
>     --with-libbind-libs=%{_libdir} \

None of this is relevant for Fedora. Please inspect the git history or changelog of the package to see what happened. Changes in Fedora have their reasons and if you don't rebuild all the necessary dependencies you can not expect the package to work properly.

Comment 2 Lameire Alexis 2015-12-18 10:18:23 UTC
I had check the git history and found the proper comment but no real justification was made about the requirement of this dependancy.

So, I suggest you to add in comment bellow the BuildRequire a reference to the discussion that you made earlier on isc mailling [1] list to avoid dunny people like me.

[1] https://lists.isc.org/pipermail/bind-users/2015-February/094636.html