Bug 1044637

Summary: iptables fails to build when iptables installed
Product: Red Hat Enterprise Linux 7 Reporter: Kanstantsin Shautsou <gentoo.integer>
Component: iptablesAssignee: Thomas Woerner <twoerner>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Dolezal <todoleza>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: iptables-maint-list, jscotka, twoerner
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:27:23 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:

Description Kanstantsin Shautsou 2013-12-18 17:53:15 UTC
[  160s] RPM build errors:
[  160s]     File not found: /home/abuild/rpmbuild/BUILDROOT/iptables-1.4.19.1-1.myel7b.1.2.x86_64/etc/xtables/connlabel.conf

You will get to this build failure when you have iptables installed in buildenv.
Problem in Makefile target "install-data-hook":
@test -f /etc/xtables/connlabel.conf || $(INSTALL) -m 644 etc/xtables/connlabel.conf $(DESTDIR)/etc/xtables/connlabel.conf || :
should be:
@test -f $(DESTDIR)/etc/xtables/connlabel.conf || $(INSTALL) -m 644 etc/xtables/connlabel.conf $(DESTDIR)/etc/xtables/connlabel.conf || :

Comment 2 Kanstantsin Shautsou 2013-12-19 14:06:48 UTC
One liner:
sed -i 's|@test -f /etc/xtables/connlabel.conf|@test -f $(DESTDIR)/etc/xtables/connlabel.conf|' Makefile

Comment 6 Tomas Dolezal 2014-02-12 16:34:13 UTC
VERIFIED build succeeds for iptables-1.4.21-8.el7.src.rpm on x86_64

Comment 7 Ludek Smid 2014-06-13 12:27:23 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.