Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38328 - Compiling iptables (both 1.2.9 and 1.2.8-r1) fails
Summary: Compiling iptables (both 1.2.9 and 1.2.8-r1) fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 13:27 UTC by A. Permyakov
Modified: 2004-01-15 15:10 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A. Permyakov 2004-01-15 13:27:07 UTC
Emerge iptables fails to apply patch 01_all_grsecurity.patch.bz2.  Problem occurs
both with and without ~x86 keyword, in iptables-1.2.8-r1 and 1.2.9.

Reproducible: Always
Steps to Reproduce:
1.emerge iptables
2.
3.

Actual Results:  
# emerge iptables
Calculating dependencies ...done!
>>> emerge (1 of 1) net-firewall/iptables-1.2.9 to /
>>> md5 src_uri ;-) iptables-1.2.9.tar.bz2
>>> Unpacking source...
>>> Unpacking iptables-1.2.9.tar.bz2 to /var/tmp/portage/iptables-1.2.9/work
tar: Removing leading `iptables-1.2.9/./' from member names
 * Applying various patches (bugfixes/updates)...
 *   01_all_grsecurity.patch.bz2...

 * Failed Patch: 01_all_grsecurity.patch.bz2!
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/iptables-1.2.9/temp/01_all_grsecurity.patch.bz2-13161.out


!!! ERROR: net-firewall/iptables-1.2.9 failed.
!!! Function epatch, Line 322, Exitcode 0
!!! Failed Patch: 01_all_grsecurity.patch.bz2!

***

# cat /var/tmp/portage/iptables-1.2.9/temp/01_all_grsecurity.patch.bz2-13161.out
***** 01_all_grsecurity.patch.bz2 *****

=======================================

PIPE_COMMAND:  bzip2 -dc
/usr/portage/net-firewall/iptables/files/1.2.9-files/01_all_grsecurity.patch.bz2
> /var/tmp/portage/iptables-1.2.9/temp/13389.patch
PATCH COMMAND:  patch -g0 -p0 < /var/tmp/portage/iptables-1.2.9/temp/13389.patch

=======================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- iptables-1.2.9/extensions/Makefile 2003-11-04 08:19:02.452734440 +0000
|+++ iptables-1.2.9/extensions/Makefile 2003-11-04 08:19:11.846306400 +0000
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file iptables-1.2.8/extensions/libipt_stealth.c
=======================================

PIPE_COMMAND:  bzip2 -dc
/usr/portage/net-firewall/iptables/files/1.2.9-files/01_all_grsecurity.patch.bz2
> /var/tmp/portage/iptables-1.2.9/temp/13389.patch
PATCH COMMAND:  patch -g0 -p1 < /var/tmp/portage/iptables-1.2.9/temp/13389.patch

=======================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- iptables-1.2.9/extensions/Makefile 2003-11-04 08:19:02.452734440 +0000
|+++ iptables-1.2.9/extensions/Makefile 2003-11-04 08:19:11.846306400 +0000
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file extensions/libipt_stealth.c
=======================================

PIPE_COMMAND:  bzip2 -dc
/usr/portage/net-firewall/iptables/files/1.2.9-files/01_all_grsecurity.patch.bz2
> /var/tmp/portage/iptables-1.2.9/temp/13389.patch
PATCH COMMAND:  patch -g0 -p2 < /var/tmp/portage/iptables-1.2.9/temp/13389.patch

=======================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- iptables-1.2.9/extensions/Makefile 2003-11-04 08:19:02.452734440 +0000
|+++ iptables-1.2.9/extensions/Makefile 2003-11-04 08:19:11.846306400 +0000
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file libipt_stealth.c
=======================================

PIPE_COMMAND:  bzip2 -dc
/usr/portage/net-firewall/iptables/files/1.2.9-files/01_all_grsecurity.patch.bz2
> /var/tmp/portage/iptables-1.2.9/temp/13389.patch
PATCH COMMAND:  patch -g0 -p3 < /var/tmp/portage/iptables-1.2.9/temp/13389.patch

=======================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- iptables-1.2.9/extensions/Makefile 2003-11-04 08:19:02.452734440 +0000
|+++ iptables-1.2.9/extensions/Makefile 2003-11-04 08:19:11.846306400 +0000
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 14 of patch
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- iptables-1.2.8/extensions/libipt_stealth.c 1969-12-31 19:00:00.000000000 -0500
|+++ iptables-1.2.8-new/extensions/libipt_stealth.c     2002-09-10
16:36:24.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=======================================

PIPE_COMMAND:  bzip2 -dc
/usr/portage/net-firewall/iptables/files/1.2.9-files/01_all_grsecurity.patch.bz2
> /var/tmp/portage/iptables-1.2.9/temp/13389.patch
PATCH COMMAND:  patch -g0 -p4 < /var/tmp/portage/iptables-1.2.9/temp/13389.patch

=======================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- iptables-1.2.9/extensions/Makefile 2003-11-04 08:19:02.452734440 +0000
|+++ iptables-1.2.9/extensions/Makefile 2003-11-04 08:19:11.846306400 +0000
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 14 of patch
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- iptables-1.2.8/extensions/libipt_stealth.c 1969-12-31 19:00:00.000000000 -0500
|+++ iptables-1.2.8-new/extensions/libipt_stealth.c     2002-09-10
16:36:24.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored


Expected Results:  
Successful emerge

# emerge info
Portage 2.0.50_pre14 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0,
2.4.24-pre3)
=================================================================
System uname: 2.4.24-pre3 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.uninett.no/pub/linux/Gentoo
ftp://gentoo.linux.no/pub/gentoo/ http://gentoo.linux.no/
ftp://mirror.pudas.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apm avi berkdb cdr crypt cups encode foomaticdb gdbm gif
gtk gtk2 gtkhtml imlib java jpeg libg++ libwww mad maildir mikmod mmx motif
mozilla mpeg ncurses oggvorbis opengl pam pdflib perl png python qt quicktime
readline slang spell sse ssl svga tcpd threads tiff truetype unicode usb wmf x86
xml xml2 xv zlib"
Comment 1 A. Permyakov 2004-01-15 15:10:16 UTC
Error cleared after emerge rsync && emerge -u --deep world