Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437240 - net-wireless/wpa_supplicant-1.0-r1 - src_prepare() - failed patch: wpa_supplicant-1.0-libnl_path_fix.patch
Summary: net-wireless/wpa_supplicant-1.0-r1 - src_prepare() - failed patch: wpa_suppli...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-10-04 21:41 UTC by Konstantin (elxa)
Modified: 2012-10-05 21:15 UTC (History)
4 users (show)

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


Attachments
/var/tmp/portage/net-wireless/wpa_supplicant-1.0-r1/temp/wpa_supplicant-1.0-libnl_path_fix.patch.out (wpa_supplicant-1.0-libnl_path_fix.patch.out,5.76 KB, text/plain)
2012-10-04 21:43 UTC, Konstantin (elxa)
Details
patch for wpa_supplicant-1.0-r1.ebuild (wpa_supplicant-1.0-r1-pushd.patch,482 bytes, patch)
2012-10-05 17:57 UTC, Ben Kohler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin (elxa) 2012-10-04 21:41:36 UTC
Package pulled in when updating world, but patch wpa_supplicant-1.0-libnl_path_fix.patch

Reproducible: Always

Steps to Reproduce:
1. emerge -v =net-wireless/wpa_supplicant-1.0-r1

Actual Results:  
1. patch wpa_supplicant-1.0-libnl_path_fix.patch fails
2. emerge fails


Expected Results:  
successful patch and emerge
Comment 1 Konstantin (elxa) 2012-10-04 21:42:17 UTC
emerge --info
Portage 2.2.0_alpha135 (default/linux/amd64/10.0/desktop/gnome, gcc-4.7.2, glibc-2.15-r3, 3.6.0 x86_64)
=================================================================
System uname: Linux-3.6.0-x86_64-Intel-R-_Core-TM-_i7-2720QM_CPU_@_2.20GHz-with-gentoo-2.2
Timestamp of tree: Thu, 04 Oct 2012 19:45:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3, 4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4::gnome
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x11 tlp gnome local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=6.0 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ http://mirror.opteamax.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j7 -l7"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/tlp /var/lib/layman/gnome /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aio airplay alsa amd64 audit avahi avx berkdb bluetooth bluray branding bzip2 cairo call cdda cdr cli clutter colord connection-sharing consolekit cracklib crypt cryptsetup css cups custom-cflags custom-cpuopts custom-optimization cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran fprint gdbm geoip gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle hdaps highlight hires-icons iconv icq icu ios ipod ipv6 irc jabber jpeg laptop lastfm lcms ldap libnotify lzma mad map mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp optimization optimized-qmake pam pango pcre pdf pgo playlist png policykit ppds pppd pulseaudio qemu qt3support qt4 readline scanner sdl sendto session sip sna socialweb spell sse sse2 sse3 sse4_1 ssl ssse3 startup-notification strong-optimization svg systemd taglib tcpd theora threads thunderbird tiff tls truetype udev udisks unicode upower usb v4l vaapi virt-network vorbis vpx wavpack webm webrtc-aec wifi wimax wxwidgets x264 xcb xinerama xml xv xvid zeitgeist zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="bootchart crypt syslog systemd" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" NETBEANS_MODULES="cnd enterprise gsf ide j2ee java javafx nb profiler xml soa visualweb webcommon websvccommon mobility" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Konstantin (elxa) 2012-10-04 21:43:48 UTC
Created attachment 325684 [details]
/var/tmp/portage/net-wireless/wpa_supplicant-1.0-r1/temp/wpa_supplicant-1.0-libnl_path_fix.patch.out
Comment 3 BillWho 2012-10-05 13:11:03 UTC
Experienced the same error here:

 * Messages for package net-wireless/wpa_supplicant-1.0-r1:

 * Failed Patch: wpa_supplicant-1.0-libnl_path_fix.patch !
 *  ( /usr/portage/net-wireless/wpa_supplicant/files/wpa_supplicant-1.0-libnl_path_fix.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/net-wireless/wpa_supplicant-1.0-r1/temp/wpa_supplicant-1.0-libnl_path_fix.patch.out
 * ERROR: net-wireless/wpa_supplicant-1.0-r1 failed (prepare phase):
 *   Failed Patch: wpa_supplicant-1.0-libnl_path_fix.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   89:  Called src_prepare
 *   environment, line 2406:  Called epatch '/usr/portage/net-wireless/wpa_supplicant/files/wpa_supplicant-1.0-libnl_path_fix.patch'
 *   environment, line 1051:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of `emerge --info '=net-wireless/wpa_supplicant-1.0-r1'`,
 * the complete build log and the output of `emerge -pqv '=net-wireless/wpa_supplicant-1.0-r1'`.
 * The complete build log is located at '/var/tmp/portage/net-wireless/wpa_supplicant-1.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/wpa_supplicant-1.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-wireless/wpa_supplicant-1.0-r1/work'
 * S: '/var/tmp/portage/net-wireless/wpa_supplicant-1.0-r1/work/wpa_supplicant-1.0/wpa_supplicant'



gentoo portage # emerge --info '=net-wireless/wpa_supplicant-1.0-r1'
Portage 2.1.11.24 (default/linux/x86/10.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.6.0-rc7 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.6.0-rc7-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.2
Timestamp of tree: Fri, 05 Oct 2012 11:30:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.the-best-hosting.net"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa auto-hinter bindist bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt css cups cvs cxx dbus dri dts dvd dvdr emboss enca encode exceptions exif fam firefox flac fontconfig fortran gdbm gif git gpm gtk iconv icu ipc ipv6 jpeg lcms ldap libffi libnotify lua lxde lzma mad mercurial midi minizip mmx mng modules mp3 mp4 mpeg mudflap mx ncurses network nfsv3 nls nptl ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd pulseaudio python qt-bundled qt3support qt4 readline rss sasl schroedinger sdl session sound spell sse2 ssl startup-notification static-libs subversion svg tcpd threads tiff truetype udev udisks unicode unlock-notify upower usb utils video vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="i915 intel fbdev vesa radeon" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 schwaahed 2012-10-05 14:28:21 UTC
I have experienced the same error
Comment 5 Ben Kohler gentoo-dev 2012-10-05 17:57:28 UTC
Created attachment 325740 [details, diff]
patch for wpa_supplicant-1.0-r1.ebuild

This seems to be a current-working-dir issue, this block of code changes the working dir for USE=wimax fixes but doesn't undo its change:

if use wimax; then
        cd "${WORKDIR}/${P}"
        epatch "${FILESDIR}/${P}-generate-libeap-peer.patch"

        # multilib-strict fix (bug #373685)
        sed -e "s/\/usr\/lib/\/usr\/$(get_libdir)/" -i src/eap_peer/Makefile
fi

It doesn't affect the first 2 patches because their paths are stripped until it works.  Changing the simple "cd" to a pushd/popd should fix, ebuild patch attached.
Comment 6 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2012-10-05 21:15:32 UTC
Thanks for reporting, I fixed it by moving the cd "${WORKDIR}/${P}" outside the if, allowing me to remove the ugly cd .. hack :)

Please wait a few hours, and try and resync the tree, and test again.