Bug 1313890 - missing BuildRequires for systemd causes FTBFS with EPEL-7 enabled
missing BuildRequires for systemd causes FTBFS with EPEL-7 enabled
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: arpwatch (Show other bugs)
All Linux
medium Severity medium
: rc
: ---
Assigned To: Jan Synacek
Robin Hack
: EasyFix, Patch
Depends On:
  Show dependency treegraph
Reported: 2016-03-02 09:46 EST by Kamil Dudka
Modified: 2016-11-03 20:15 EDT (History)
2 users (show)

See Also:
Fixed In Version: arpwatch-2.1a15-32.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-11-03 20:15:04 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kamil Dudka 2016-03-02 09:46:30 EST
Description of problem:
Despite the arpwatch RPM package relies on systemd being installed at build time, the build-time dependency is missing in arpwatch.spec.  The build succeeds only in case /usr/sbin/sendmail is resolved to postfix, which itself requires systemd.  However, if /usr/sbin/sendmail is resolved to ssmtp, which is available in EPEL-7 and does not require systemd, the build of arpwatch fails badly.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Add the EPEL-7 yum repo to the rhel-7-x86_64 mock profile.
2. brew download-build --arch=src arpwatch-2.1a15-31.el7
3. mock -vr rhel-7-x86_64 --rebuild arpwatch-2.1a15-31.el7.src.rpm

Actual results:
RPM build errors:
    bogus date in %changelog: Thu Jan 18 2013 Ales Ledvinka [...]
    File must begin with "/": %{_unitdir}/arpwatch.service

Expected results:
Build succeeds.

Additional info:
This bug could be fixed by the following one-line patch:
--- a/arpwatch.spec
+++ b/arpwatch.spec
@@ -15,6 +15,7 @@ Requires(preun): systemd-units
 Requires(postun): systemd-units
 Requires: /usr/sbin/sendmail
 BuildRequires: /usr/sbin/sendmail libpcap-devel
+BuildRequires: systemd

 Source0: ftp://ftp.ee.lbl.gov/arpwatch-%{version}.tar.gz
 Source1: arpwatch.service
Comment 4 Kamil Dudka 2016-03-04 09:01:41 EST
Thank you for including the fix!
Comment 7 errata-xmlrpc 2016-11-03 20:15:04 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.