When I try emerge -u net-libs/libpcap I get the error: * Failed Patch: libpcap-0.8.1-fPIC.patch! * * Include in your bugreport the contents of: * * /var/tmp/portage/libpcap-0.8.1/temp/libpcap-0.8.1-fPIC.patch-6796.out Reproducible: Always Steps to Reproduce: 1. emerge -u net-libs/libpcap Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) net-libs/libpcap-0.8.1 to / >>> md5 src_uri ;-) libpcap-0.8.1.tar.gz >>> Unpacking source... >>> Unpacking libpcap-0.8.1.tar.gz to /var/tmp/portage/libpcap-0.8.1/work tar: Removing leading `libpcap-0.8.1/./' from member names * Applying libpcap-0.8.1-fPIC.patch... * Failed Patch: libpcap-0.8.1-fPIC.patch! * * Include in your bugreport the contents of: * * /var/tmp/portage/libpcap-0.8.1/temp/libpcap-0.8.1-fPIC.patch-6796.out !!! ERROR: net-libs/libpcap-0.8.1 failed. !!! Function epatch, Line 354, Exitcode 0 !!! Failed Patch: libpcap-0.8.1-fPIC.patch! Expected Results: emerge successfully contents of /var/tmp/portage/libpcap-0.8.1/temp/libpcap-0.8.1-fPIC.patch-6796.out: ---------------------------------------------------------------------------------- ***** libpcap-0.8.1-fPIC.patch ***** ==================================== PATCH COMMAND: patch -p0 < /usr/portage/net-libs/libpcap/files/libpcap-0.8.1-fPIC.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: -------------------------- |--- Makefile.in 2004-01-03 12:51:50.914715352 +0000 |+++ Makefile.in 2004-01-03 13:04:17.524952464 +0000 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ==================================== PATCH COMMAND: patch -p1 < /usr/portage/net-libs/libpcap/files/libpcap-0.8.1-fPIC.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: -------------------------- |--- Makefile.in 2004-01-03 12:51:50.914715352 +0000 |+++ Makefile.in 2004-01-03 13:04:17.524952464 +0000 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ==================================== PATCH COMMAND: patch -p2 < /usr/portage/net-libs/libpcap/files/libpcap-0.8.1-fPIC.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: -------------------------- |--- Makefile.in 2004-01-03 12:51:50.914715352 +0000 |+++ Makefile.in 2004-01-03 13:04:17.524952464 +0000 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ==================================== PATCH COMMAND: patch -p3 < /usr/portage/net-libs/libpcap/files/libpcap-0.8.1-fPIC.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: -------------------------- |--- Makefile.in 2004-01-03 12:51:50.914715352 +0000 |+++ Makefile.in 2004-01-03 13:04:17.524952464 +0000 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ==================================== PATCH COMMAND: patch -p4 < /usr/portage/net-libs/libpcap/files/libpcap-0.8.1-fPIC.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: -------------------------- |--- Makefile.in 2004-01-03 12:51:50.914715352 +0000 |+++ Makefile.in 2004-01-03 13:04:17.524952464 +0000 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored emerge info: ------------ Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.23) ================================================================= System uname: 2.4.23 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache cvs distcc keeptemp keepwork noauto noclean notitles sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.inode.at http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apm arts avi berkdb crypt cups encode esd foomaticdb gd gdbm gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sasl sdl slang spell ssl svga tcpd tiff truetype wmf x86 xml2 xmms xv zlib"
This is a 'feature' introduced in tar. See http://bugs.gentoo.org/show_bug.cgi?id=37132 for why. "emerge sync && emerge -u tar" should fix it.
*** This bug has been marked as a duplicate of 37132 ***