Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55978 - wrong install path for iptables 1.2.11-r2
Summary: wrong install path for iptables 1.2.11-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
: 55496 56079 56097 56098 56596 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-03 09:59 UTC by Guillaume Castagnino
Modified: 2004-07-10 11:03 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch that correct the ebuild (iptables.patch,865 bytes, patch)
2004-07-03 10:10 UTC, Guillaume Castagnino
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Castagnino 2004-07-03 09:59:58 UTC
Binaries for ibtables 1.2.11-r2 are installed in the wrong place :

>>> Merging net-firewall/iptables-1.2.11-r2 to /
.............
--- /usr/local/
--- /usr/local/sbin/
>>> /usr/local/sbin/iptables-save
>>> /usr/local/sbin/iptables-restore
>>> /usr/local/sbin/iptables
.............

Should be in /sbin as with 1.2.11-r1. All other files are at the right place

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Guillaume Castagnino 2004-07-03 10:10:01 UTC
Created attachment 34719 [details, diff]
Patch that correct the ebuild

This small patch corrects the ebuild
Comment 2 Sven Wegener gentoo-dev 2004-07-03 15:08:40 UTC
It also fails to install the init scripts

cp: cannot stat `/usr/local/portage.d/gentoo-portage/net-firewall/iptables/files/iptables-1.2.11-r1.init': No such file or directory
install: cannot stat `/var/tmp/portage/iptables-1.2.11-r2/temp/iptables': No such file or directory
cp: cannot stat `/usr/local/portage.d/gentoo-portage/net-firewall/iptables/files/iptables-1.2.11-r1.confd': No such file or directory
install: cannot stat `/var/tmp/portage/iptables-1.2.11-r2/temp/iptables': No such file or directory
Comment 3 Daniel Ahlberg (RETIRED) gentoo-dev 2004-07-04 04:34:36 UTC
Fixed in CVS, thanks!
Comment 4 Daniel Ahlberg (RETIRED) gentoo-dev 2004-07-04 04:38:06 UTC
*** Bug 55496 has been marked as a duplicate of this bug. ***
Comment 5 Loz Hygate 2004-07-04 07:05:14 UTC
Guillaume's patch doesn't seem to be in CVS yet. It has been a couple of hours, so the web view should have updated by now.
Comment 6 Sven Wegener gentoo-dev 2004-07-04 17:19:32 UTC
*** Bug 56097 has been marked as a duplicate of this bug. ***
Comment 7 Bryan Østergaard (RETIRED) gentoo-dev 2004-07-04 17:37:42 UTC
*** Bug 56098 has been marked as a duplicate of this bug. ***
Comment 8 Loz Hygate 2004-07-05 03:42:19 UTC
iptables-1.2.11-r2.ebuild 1.3 still installs in /usr/local. Is there a later version that includes Guillaume's patch?
Comment 9 Michal Januszewski (RETIRED) gentoo-dev 2004-07-05 11:14:57 UTC
It has just been fixed in CVS.
Comment 10 Michal Januszewski (RETIRED) gentoo-dev 2004-07-05 11:15:01 UTC
*** Bug 56079 has been marked as a duplicate of this bug. ***
Comment 11 Georgi Georgiev 2004-07-07 13:18:03 UTC
You need to add the PREFIX= line as well. 

Well, 1.2.11-r2 does not seem to be fixed in the CVS. The version I have in my tree is the same as the one in the CVS and it does install in /usr/local/sbin. I added the missing PREFIX= lines to the USE=-extensions section and it worked fine.

--- iptables-1.2.11-r2.ebuild     2004-07-06 03:35:57.000000000 +0900
+++ iptables-1.2.11-r2.ebuild     2004-07-08 05:10:52.845924313 +0900
@@ -120,5 +120,6 @@
        else
                make DESTDIR=${D} ${myconf} \
+                       PREFIX= \
                        LIBDIR=/lib \
                        BINDIR=/sbin \
                        MANDIR=/usr/share/man \
@@ -127,6 +128,7 @@
                        install || die
 
                make DESTDIR=${D} ${myconf} \
+                       PREFIX= \
                        LIBDIR=/usr/lib \
                        BINDIR=/sbin \
                        MANDIR=/usr/share/man \

and it worked fine.
Comment 12 Daniel Ahlberg (RETIRED) gentoo-dev 2004-07-10 11:03:00 UTC
*** Bug 56596 has been marked as a duplicate of this bug. ***