Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37103 - libpcap 0.8.1
Summary: libpcap 0.8.1
Status: RESOLVED DUPLICATE of bug 37132
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-03 06:19 UTC by Derk W te Bokkel
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments
libpcap-0.8.1-fPIC.patch-11852.out (libpcap-0.8.1-fPIC.patch-11852.out,2.76 KB, text/plain)
2004-01-03 06:26 UTC, Derk W te Bokkel
Details
libpcap-0.8.1-r1.ebuild (libpcap-0.8.1-r1.ebuild,1.23 KB, text/plain)
2004-01-03 16:11 UTC, Derk W te Bokkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Derk W te Bokkel 2004-01-03 06:19:46 UTC
build fails to patch properly

 emerge libpcap apcupsd mm-sources
Calculating dependencies ...done!
>>> emerge (1 of 3) net-libs/libpcap-0.8.1 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/libpcap-0.8.1.tar.gz
--06:18:06--  http://gentoo.oregonstate.edu/distfiles/libpcap-0.8.1.tar.gz
           => `/usr/portage/distfiles/libpcap-0.8.1.tar.gz'
Resolving gentoo.oregonstate.edu... 128.193.0.3
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
06:18:06 ERROR 404: Not Found.

>>> Downloading http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/libpcap-0.8.1.tar.gz
--06:18:06--  http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/libpcap-0.8.1.tar.gz
           => `/usr/portage/distfiles/libpcap-0.8.1.tar.gz'
Resolving distro.ibiblio.org... 152.2.210.109
Connecting to distro.ibiblio.org[152.2.210.109]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
06:18:07 ERROR 404: Not Found.

>>> Downloading http://www.tcpdump.org/release/libpcap-0.8.1.tar.gz
--06:18:07--  http://www.tcpdump.org/release/libpcap-0.8.1.tar.gz
           => `/usr/portage/distfiles/libpcap-0.8.1.tar.gz'
Resolving www.tcpdump.org... 205.150.200.186
Connecting to www.tcpdump.org[205.150.200.186]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 283,567 [application/x-tar]

100%[====================================>] 283,567       36.42K/s    ETA 00:00

06:18:15 (40.02 KB/s) - `/usr/portage/distfiles/libpcap-0.8.1.tar.gz' saved [283567/283567]

>>> md5 src_uri ;-) libpcap-0.8.1.tar.gz
eutils
flag-o-matic
>>> Unpacking source...
>>> Unpacking libpcap-0.8.1.tar.gz to /mnt/bigdisk1/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:
 *
 *   /mnt/bigdisk1/tmp/portage/libpcap-0.8.1/temp/libpcap-0.8.1-fPIC.patch-11852.out


!!! ERROR: net-libs/libpcap-0.8.1 failed.
!!! Function epatch, Line 322, Exitcode 0
!!! Failed Patch: libpcap-0.8.1-fPIC.patch!
Comment 1 Daniel Ahlberg (RETIRED) gentoo-dev 2004-01-03 06:23:43 UTC
Please post /mnt/bigdisk1/tmp/portage/libpcap-0.8.1/temp/libpcap-0.8.1-fPIC.patch-11852.out and emerge info
Comment 2 Derk W te Bokkel 2004-01-03 06:26:03 UTC
Created attachment 23062 [details]
libpcap-0.8.1-fPIC.patch-11852.out 

the error report
Comment 3 Derk W te Bokkel 2004-01-03 06:27:09 UTC
emerge info

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.0-mm1)
=================================================================
System uname: 2.6.0-mm1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -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=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/bigdisk1/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi acpi4linux alsa apm arts avi berkdb bonobo cdr crypt cups dvd dvdr encode esd foomaticdb gb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imlib jack java javascript jpeg kde libg++ libgda libwww mad mikmod motif mozilla mpeg ncurses nls ofx oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl svga tcpd transcode truetype usb v4l x86 xinerama xml xml2 xmms xv zlib"

Comment 4 Daniel Ahlberg (RETIRED) gentoo-dev 2004-01-03 06:47:19 UTC
I've comitted a possible fix. If you want you can try and change the fPIC patch removing /tmp/ from the first line (so the file is the same as the +++ line)
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-01-03 07:35:17 UTC
It seem to be a problem with the package libpcap itself. tar showed up a message to remove the leading /libpcap-0.8.1/./ from the files when extracting them. The result is, that all files of the package aren't extracted into $PORTAGE_TMPDIR/portage/libpcap-0.8.1/work/libpcap-0.8.1/ but $PORTAGE_TMPDIR/portage/libpcap-0.8.1/work/ .
This explains why the patch is unable to find the Makefile.in.
I've unpacked and repacked the libpcap-0.8.1.tar.gz, refreshed the digest and did the changes to the patch like Daniel Ahlberg suggested in his posting above.
This works for me :)
Comment 6 Alberto Ornaghi 2004-01-03 07:39:00 UTC
I've posted a bugreport on the tcpdump-workers mailing list to fix the problem with the tarball...

let's see what happens...

we cannot redistribute the repackaged tarball, since the MD5 will differ from the official one on www.tcpdump.org

bye
Comment 7 Derk W te Bokkel 2004-01-03 16:11:14 UTC
Created attachment 23116 [details]
libpcap-0.8.1-r1.ebuild

For the impatient I've butchered the ebuild to make this work for now .. I have
not checked portage for a fix recently so one may be out there already.
Comment 8 Jan Schubert 2004-01-03 16:23:36 UTC
As long as this is not fixed in portage, you should mask this one (still buggy on my side).
Comment 9 James Cloos 2004-01-03 21:09:26 UTC
A better butchering of the ebuild is to use tar xvzPf rather than unpack.

The -P option to tar tells it not to strip ^.*\./ from the paths of
the files it extracts.
Comment 10 Daniel Ahlberg (RETIRED) gentoo-dev 2004-01-04 04:00:03 UTC

*** This bug has been marked as a duplicate of 37132 ***