Red Hat Bugzilla – Bug 1434661
unbound-event.h is not installed and packaged in unbound-devel
Last modified: 2018-04-10 07:58:30 EDT
Description of problem: some functions in unbound with respect to its libevent support cannot be used because unbound-event.h is not installed. This will be required for libreswan-3.21 that uses this functionality. The fix is to call: %{__make} DESTDIR=%{buildroot} unbound-event-install after the make install line, and add new file to the file list. I have done this for the fedora package
http://pkgs.fedoraproject.org/cgit/rpms/unbound.git/commit/?id=3e1303eda9867892d419beb597dde39be5c9aac9
note I actually updated that commit to only run install once, eg: -%{__make} DESTDIR=%{buildroot} install -%{__make} DESTDIR=%{buildroot} unbound-event-install +%{__make} DESTDIR=%{buildroot} unbound-event-install install
(In reply to Paul Wouters from comment #5) > note I actually updated that commit to only run install once, eg: > > -%{__make} DESTDIR=%{buildroot} install > -%{__make} DESTDIR=%{buildroot} unbound-event-install > +%{__make} DESTDIR=%{buildroot} unbound-event-install install Yes, I know, but this is more a cosmetic modification and has no impact on the result.
I looked at the code and it is not as simple as just installing the header, as the event API is not preset in the 1.4.20 version at all. This could be ideally solved by some future rebase of Unbound or backported. Moving to 7.5 as this is not material for 7.4 at this point.
note that unbound-1.6.0 still fails to install the include file but does contain the libevent code in the shared library. The event code was introduced in unbound-1.4.22 upstream
Created attachment 1325588 [details] install unbound-event.h like in Fedora
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0743