Bug 1044637 - iptables fails to build when iptables installed
Summary: iptables fails to build when iptables installed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: iptables
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Thomas Woerner
QA Contact: Tomas Dolezal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-18 17:53 UTC by Kanstantsin Shautsou
Modified: 2022-10-18 07:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:27:23 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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