Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395033 - net-libs/libpcap-1.1.1-r1 emerge error due an invalid patch name
Summary: net-libs/libpcap-1.1.1-r1 emerge error due an invalid patch name
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-17 07:08 UTC by Piotr Mrożek
Modified: 2011-12-17 12:32 UTC (History)
2 users (show)

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 Piotr Mrożek 2011-12-17 07:08:34 UTC
When trying to emerge libpcap-1.1.1-r1 I get an emerge error:
 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /usr/portage/net-libs/libpcap/files/libpcap-1.1.1-cross-linux.patch
 *   ( libpcap-1.1.1-cross-linux.patch )
 * ERROR: net-libs/libpcap-1.1.1-r1 failed (prepare phase):
 *   Cannot find $EPATCH_SOURCE!

The whole problem is about the line that changed from:

epatch "${FILESDIR}/${PN}-1.1-cross-linux.patch"

in ebuild version 1.1.1 to:

epatch "${FILESDIR}/${P}-cross-linux.patch"

in ebuild version 1.1.1-r1. However the name of the patch hasn't been changed, so while there is a libpcap-1.1-cross-linux.patch, the ebuild is searching for libpcap-1.1.1-cross-linux.patch.

I did an "emerge --sync" on the same day, before updating, so it's not a case of old emerge files.

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge libpcap

Actual Results:  
 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /usr/portage/net-libs/libpcap/files/libpcap-1.1.1-cross-linux.patch
 *   ( libpcap-1.1.1-cross-linux.patch )
 * ERROR: net-libs/libpcap-1.1.1-r1 failed (prepare phase):
 *   Cannot find $EPATCH_SOURCE!

Expected Results:  
The package should be emerged without problems.

Portage 2.1.10.11 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.5, glibc-2.13-r4, 3.0.6-gentoo x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 16 Dec 2011 19:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo dberkholz gamerlay-stable proaudio gnome enlightenment x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1 Broadcom PUEL Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.utf8"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/dberkholz /var/lib/layman/gamerlay /var/lib/layman/pro-audio /var/lib/layman/gnome /var/lib/layman/enlightenment /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apm avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups custom-cflags custom-optimization cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam fbcon ffmpeg firefox flac fontforge fortran ftp gdbm gdu gif gimp gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gzip hal hddtemp iconv ios ipc iphone ipod ipv6 ithreads jabber jack javascript jpeg jpeg2k ladspa lame lcms ldap libnotify lm_sensors mad matroska mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly nsplugin nvidia offensive ogg opencl opengl openmp pam pango pcre pdf perl png policykit posix ppds pppd pulseaudio python qt3support qt4 readline samba sdl session smp socialweb spell sse sse2 sse3 sse4 sse4a ssl ssse3 startup-notification svg symlink sysfs syslog system-sqlite tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vaapi vdpau vorbis wifi x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2 sony_dscf1 sony_dscf55" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Piotr Mrożek 2011-12-17 07:18:53 UTC
I emerged libpcap-1.1.1-r1 successfully after changing the said line in libpcap-1.1.1-r1.ebuild to: epatch "${FILESDIR}/${PN}-1.1-cross-linux.patch", so a workaround is simple to make.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-17 12:32:19 UTC
Ooops. I didn't mean to change that file. Working version restored.