Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609040 - sys-kernel/gentoo-sources-4.9.9 - Failed to dry-run patch genpatches-4.9-11.base.tar.patch
Summary: sys-kernel/gentoo-sources-4.9.9 - Failed to dry-run patch genpatches-4.9-11.b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-12 07:05 UTC by Juergen Rose
Modified: 2017-02-20 12:01 UTC (History)
3 users (show)

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


Attachments
genpatches-4.9-11.base.tar.err (genpatches-4.9-11.base.tar.err.gz,205.47 KB, application/gzip)
2017-02-12 10:32 UTC, Vladimir
Details
genpatches-4.9-11.base.tar.err.bz2 (genpatches-4.9-11.base.tar.err.bz2,100.66 KB, application/x-bzip2)
2017-02-14 07:09 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2017-02-12 07:05:31 UTC
'emerge -v1 gentoo-sources' fails with:
root@caiman:/usr/local/portage/gnome-base(109)# emerge -v1 gentoo-sources

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS    ] sys-kernel/gentoo-sources-4.9.9:4.9.9::gentoo [4.9.7:4.9.7::gentoo, 4.9.8:4.9.8::gentoo] USE="-build -experimental -symlink" 0 KiB

Total: 1 package (1 in new slot), Size of downloads: 0 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-kernel/gentoo-sources-4.9.9::gentoo
 * linux-4.9.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                               [ ok ]
 * genpatches-4.9-11.base.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                  [ ok ]
 * genpatches-4.9-11.extras.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                [ ok ]
>>> Preparing to unpack ...
>>> Unpacking source...
>>> Unpacking linux-4.9.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.9.9/work
 * Excluding Patch #5000_enable-additional-cpu-optimizations-for-gcc.patch ...                                                         [ ok ]
 * Failed to dry-run patch genpatches-4.9-11.base.tar.patch
 * Please attach /var/tmp/portage/sys-kernel/gentoo-sources-4.9.9/temp/genpatches-4.9-11.base.tar.err to any bug you may post.
 * ERROR: sys-kernel/gentoo-sources-4.9.9::gentoo failed (unpack phase):
 *   Unable to dry-run patch on any patch depth lower than 5.
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_unpack
 *   environment, line 3732:  Called kernel-2_src_unpack
 *   environment, line 2079:  Called unipatch '  /var/tmp/portage/sys-kernel/gentoo-sources-4.9.9/distdir/genpatches-4.9-11.base.tar.xz /var/tmp/portage/sys-kernel/gentoo-sources-4.9.9/distdir/genpatches-4.9-11.extras.tar.xz '
 *   environment, line 4513:  Called die





root@caiman:/usr/local/portage/gnome-base(110)# emerge --info '=sys-kernel/gentoo-sources-4.9.9::gentoo'
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.24-r1, 4.9.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.4-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.3
KiB Mem:    16175152 total,   1378616 free
KiB Swap:  100663280 total, 100639140 free
Timestamp of repository gentoo: Sun, 12 Feb 2017 03:00:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage_caiman
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

g-cpan
    location: /var/lib/cpan
    masters: gentoo
    priority: 1

g-octave
    location: /var/lib/g-octave
    masters: gentoo
    priority: 2

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/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=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 amr ao apache2 apng applet archive armadillo arpack asf aspell assistant atlas audacious audiofile automap automount barcode bash-completion berkdb blas blast bluetooth bluray boost btrfs bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cilk cli cmake collada contrib cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia digitalradio djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples excel exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx ftp fuse gcj gd gdal gdbm gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jadetex java jbig jit john jpeg jpeg2k kate kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libgda libkms libnotify libsamplerate live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mpi-threads mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg opencl opencv openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm pstricks pulseaudio python q16 q32 qemu qhull qml qt3support qt4 qt5 quicktime raw readline reiserfs reports rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl seccomp secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite ssl stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tbb tcl tcpd tex tex4ht theora thesaurus threads thunderbird tidy tiff tk toolbar tools truetype udev udisks unicode usb utempter v4l v4l2 vaapi vala valgrind vdpau video vim-syntax virt-network virtualbox visio vorbis vpx vtk wav wayland webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xetex xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zsh-completion zvbi" ABI_X86="64" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu efi-64 pc xen" INPUT_DEVICES="keyboard mouse evdev void" KERNEL="linux" L10N="de en fr ru" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd SureElec" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr ru" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="radeon displaylink" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



root@caiman:/usr/local/portage/gnome-base(111)# emerge -pqv '=sys-kernel/gentoo-sources-4.9.9::gentoo'
[ebuild  NS   ] sys-kernel/gentoo-sources-4.9.9 [4.9.7, 4.9.8] USE="-build -experimental -symlink"
Comment 1 Vladimir 2017-02-12 10:32:42 UTC
Created attachment 463426 [details]
genpatches-4.9-11.base.tar.err
Comment 2 Vladimir 2017-02-12 10:33:43 UTC
Same issue here. My emerge --info:
 
emerge --info =sys-kernel/gentoo-sources-4.9.9
Portage 2.3.3 (python 3.5.2-final-0, default/linux/amd64/13.0/systemd, gcc-5.4.0, glibc-2.24-r1, 4.9.8-gentoo-friend-1.8s x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.8-gentoo-friend-1.8s-x86_64-QEMU_Virtual_CPU_version_-cpu64-rhel6-with-gentoo-2.3
KiB Mem:     1023220 total,    140196 free
KiB Swap:     786428 total,    706644 free
Timestamp of repository gentoo: Sun, 12 Feb 2017 08:45:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://mirror.yandex.ru/gentoo-portage
    priority: -1000

Local
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/lib/redmine/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/var/lib/portage/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --binpkg-respect-use=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/var/lib/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm git http2 iconv idn ipv6 mmx modules multilib ncurses nls nptl openmp optimization pam pcre readline seccomp security session sse sse2 ssl symlink systemd tcmalloc tcpd udev unicode xattr zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="cirrus" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Chris Pritchard 2017-02-12 17:27:45 UTC
Same issue here.
Comment 4 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2017-02-13 17:28:14 UTC
I cannot reproduce...

could you try again?
Comment 5 Karol Krizka 2017-02-13 19:59:55 UTC
Same issue here after a fresh emerge --sync. My info is as follows:

Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.4.0, glibc-2.24-r1, 4.9.0-gentoo x86_64)
=================================================================
System uname: Linux-4.9.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-5200U_CPU_@_2.20GHz-with-gentoo-2.3
KiB Mem:     8073920 total,    525264 free
KiB Swap:   15624188 total,  15598472 free
Timestamp of repository gentoo: Mon, 13 Feb 2017 19:00:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

akonadi-ews
    location: /usr/local/overlays/akonadi-ews-overlay
    sync-type: git
    sync-uri: https://github.com/KrissN/akonadi-ews-overlay.git
    masters: gentoo
    priority: 50

gamerlay
    location: /var/lib/layman/gamerlay
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/gamerlay.git
    masters: gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core-avx2 -mabm -madx -mavx256-split-unaligned-load -mavx256-split-unaligned-store -mprfchw -mrdseed"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -pipe -march=core-avx2 -mabm -madx -mavx256-split-unaligned-load -mavx256-split-unaligned-store -mprfchw -mrdseed"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac accessibility acl acpi afs alsa amd64 atm avahi berkdb bluetooth branding bzip2 cairo cdda cdr chm clang cli cracklib crypt cups cxx dbus declarative djvu dolphin dri dts dvd dvdr dvi ebook emacs emboss encode exif extra facebook fam farstream fbcondecor firefox flac fontforge fortran ftdi gdbm gedit gegl geolocation gif git glamor google googledrive gpm grub headless iconv icu import-filter infinality introspection ipv6 java jpeg kde kerberos kipi lapack latex lcms ldap legacy-systray libnotify loop-aes mad matplotlib mdnsresponder-compat mmx mng modules mp3 mp4 mpeg mpeg2 mpeg4pt2 mtp multilib ncurses networkmanager nls nptl offensive office ogg openconnect opengl openmp otr pam pango pcre pdf pdfimport perl phonon plasma plotutils png policykit portaudio ppds pptx printsupport pulseaudio python qalculate qml qt3support qt4 qt5 rdp readline real sdl seccomp semantic-desktop session slp socks5 spell sqlite sse sse2 ssl startup-notification static-ppds subversion svc svg sync-plugin-portage systemd tcpd telepathy threads tiff toolkit-scroll-bars tools touchpad truetype udev udisks unicode upnp-av usb vboxwebsrv vino visio vnc vorbis widgets x264 xattr xcb xcomposite xetex xinerama xml xps xrootd xscreensaver xv xvid zeroconf zlib" ABI_X86="64 32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en en-CA" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_CA" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4 python2_7" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="menu" 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"
USE_PYTHON="3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Mike Pagano gentoo-dev 2017-02-13 23:39:24 UTC
Can you try again with:

ECLASS_DEBUG_OUTPUT=on emerge =sys-kernel/gentoo-sources-4.9.9 

I can't reproduce, either.
Comment 7 Juergen Rose 2017-02-14 07:05:06 UTC
root@caiman:/usr/src/linux(137)# ECLASS_DEBUG_OUTPUT=on emerge =sys-kernel/gentoo-sources-4.9.9 
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-kernel/gentoo-sources-4.9.9::gentoo
 * linux-4.9.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                               [ ok ]
 * genpatches-4.9-11.base.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                  [ ok ]
 * genpatches-4.9-11.extras.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                [ ok ]
debug:   eclass exists: /usr/portage_caiman/eclass/kernel-2.eclass
debug: inherit: kernel-2 -> /usr/portage_caiman/eclass/kernel-2.eclass
debug: *** Multiple Inheritence (Level: 2)
debug:   eclass exists: /usr/portage_caiman/eclass/eutils.eclass
debug: inherit: eutils -> /usr/portage_caiman/eclass/eutils.eclass
debug: *** Multiple Inheritence (Level: 3)
debug:   eclass exists: /usr/portage_caiman/eclass/multilib.eclass
debug: inherit: multilib -> /usr/portage_caiman/eclass/multilib.eclass
debug: *** Multiple Inheritence (Level: 4)
debug:   eclass exists: /usr/portage_caiman/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /usr/portage_caiman/eclass/toolchain-funcs.eclass
debug: *** Multiple Inheritence (Level: 5)
debug:   eclass exists: /usr/portage_caiman/eclass/multilib.eclass
debug: inherit: multilib -> /usr/portage_caiman/eclass/multilib.eclass
debug:   eclass exists: /usr/portage_caiman/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /usr/portage_caiman/eclass/toolchain-funcs.eclass
debug:   eclass exists: /usr/portage_caiman/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /usr/portage_caiman/eclass/toolchain-funcs.eclass
debug:   eclass exists: /usr/portage_caiman/eclass/versionator.eclass
debug: inherit: versionator -> /usr/portage_caiman/eclass/versionator.eclass
debug: *** Multiple Inheritence (Level: 3)
debug:   eclass exists: /usr/portage_caiman/eclass/eutils.eclass
debug: inherit: eutils -> /usr/portage_caiman/eclass/eutils.eclass
debug:   eclass exists: /usr/portage_caiman/eclass/multilib.eclass
debug: inherit: multilib -> /usr/portage_caiman/eclass/multilib.eclass
debug:   eclass exists: /usr/portage_caiman/eclass/python-any-r1.eclass
debug: inherit: python-any-r1 -> /usr/portage_caiman/eclass/python-any-r1.eclass
debug: *** Multiple Inheritence (Level: 3)
debug:   eclass exists: /usr/portage_caiman/eclass/python-utils-r1.eclass
debug: inherit: python-utils-r1 -> /usr/portage_caiman/eclass/python-utils-r1.eclass
debug: *** Multiple Inheritence (Level: 4)
debug:   eclass exists: /usr/portage_caiman/eclass/eutils.eclass
debug: inherit: eutils -> /usr/portage_caiman/eclass/eutils.eclass
debug:   eclass exists: /usr/portage_caiman/eclass/multilib.eclass
debug: inherit: multilib -> /usr/portage_caiman/eclass/multilib.eclass
debug: *** Multiple Inheritence (Level: 4)
debug:   eclass exists: /usr/portage_caiman/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /usr/portage_caiman/eclass/toolchain-funcs.eclass
debug: _python_impl_supported: entering function, parameters: python2_6
debug: _python_impl_supported: entering function, parameters: python2_7
debug: python_export: entering function, parameters: python2_7 PYTHON_PKG_DEP
debug: python_export: implementation: python2.7
debug: python_export: PYTHON_PKG_DEP = >=dev-lang/python-2.7.5-r2:2.7
debug: EXPORT_FUNCTIONS: pkg_setup -> python-any-r1_pkg_setup
debug: KV_EXTRA is 
debug: KERNEL_BASE_URI is mirror://kernel/linux/kernel/v4.x
debug: 0 EXTRAVERSION:
debug: 1 EXTRAVERSION:
debug: 1.2 EXTRAVERSION:
debug: 2 EXTRAVERSION:-gentoo
debug: PVR: 4.9.9
debug: CKV: 4.9.9
debug: OKV: 4.9.9
debug: KV: 4.9.9-gentoo
debug: KV_FULL: 4.9.9-gentoo
debug: KV_MAJOR: 4
debug: KV_MINOR: 9
debug: KV_PATCH: 9
debug: RELEASETYPE: 
debug: RELEASE: 
debug: UNIPATCH_LIST_DEFAULT: 
debug: UNIPATCH_LIST_GENPATCHES: 
debug: UNIPATCH_LIST: 
debug: S: /var/tmp/portage/sys-kernel/gentoo-sources-4.9.9/work/linux-4.9.9-gentoo
debug: KERNEL_URI:  mirror://kernel/linux/kernel/v4.x/linux-4.9.tar.xz
debug: K_WANT_GENPATCHES: base extras experimental
debug: Inside handle_genpatches
debug: EXPORT_FUNCTIONS: src_unpack -> kernel-2_src_unpack
debug: EXPORT_FUNCTIONS: src_prepare -> kernel-2_src_prepare
debug: EXPORT_FUNCTIONS: src_compile -> kernel-2_src_compile
debug: EXPORT_FUNCTIONS: src_install -> kernel-2_src_install
debug: EXPORT_FUNCTIONS: src_test -> kernel-2_src_test
debug: EXPORT_FUNCTIONS: pkg_setup -> kernel-2_pkg_setup
debug: EXPORT_FUNCTIONS: pkg_preinst -> kernel-2_pkg_preinst
debug: EXPORT_FUNCTIONS: pkg_postinst -> kernel-2_pkg_postinst
debug: EXPORT_FUNCTIONS: pkg_postrm -> kernel-2_pkg_postrm
>>> Preparing to unpack ...
>>> Unpacking source...
debug: Inside universal_unpack
>>> Unpacking linux-4.9.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.9.9/work
debug: moving linux-4.9 to linux-4.9.9-gentoo 
debug: Doing unipatch
debug: Inside handle_genpatches
debug: genpatches tarball: genpatches-4.9-11.base.tar.xz
debug: genpatches tarball: genpatches-4.9-11.extras.tar.xz
debug: genpatches tarball: 
debug: genpatches tarball: 
 * Excluding Patch #5000_enable-additional-cpu-optimizations-for-gcc.patch ...                                                         [ ok ]
 * Failed to dry-run patch genpatches-4.9-11.base.tar.patch
 * Please attach /var/tmp/portage/sys-kernel/gentoo-sources-4.9.9/temp/genpatches-4.9-11.base.tar.err to any bug you may post.
 * ERROR: sys-kernel/gentoo-sources-4.9.9::gentoo failed (unpack phase):
 *   Unable to dry-run patch on any patch depth lower than 5.
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_unpack
 *   environment, line 3733:  Called kernel-2_src_unpack
 *   environment, line 2080:  Called unipatch '  /var/tmp/portage/sys-kernel/gentoo-sources-4.9.9/distdir/genpatches-4.9-11.base.tar.xz /var/tmp/portage/sys-kernel/gentoo-sources-4.9.9/distdir/genpatches-4.9-11.extras.tar.xz '
 *   environment, line 4514:  Called die
 * The specific snippet of code:
 *                   die "Unable to dry-run patch on any patch depth lower than 5.";
Comment 8 Juergen Rose 2017-02-14 07:09:00 UTC
Created attachment 463694 [details]
genpatches-4.9-11.base.tar.err.bz2
Comment 9 Mike Pagano gentoo-dev 2017-02-14 14:05:18 UTC
Ok, weird. Here's the clue I think:

debug: genpatches tarball: genpatches-4.9-11.base.tar.xz
debug: genpatches tarball: genpatches-4.9-11.extras.tar.xz
debug: genpatches tarball: 
debug: genpatches tarball: 

In the eclass K_WANT_GENPATCHES should be "base extras experiment"

For instance, my output it:

debug: genpatches tarball: genpatches-4.9-11.base.tar.xz                                                                                                                        
debug: genpatches tarball: genpatches-4.9-11.extras.tar.xz
<no blank tarballs>

If I whip up an eclass with more debugging, would you mind temporarily replacing yours with it so I can get more output?

Mike
Comment 10 Sietze Post 2017-02-14 19:35:00 UTC
I had the same problem, only on 1 of several machines. After updating a few packages, interrupting the update, and trying again later, it suddenly worked.

The updated packages were:
sys-apps/grep-2.28 -> sys-apps/grep-3.0
net-misc/wget-1.19 -> net-misc/wget-1.19.1
net-fs/nfs-utils-1.3.4 -> net-fs/nfs-utils-2.1.1
sys-fs/lvm2-2.02.166 -> sys-fs/lvm2-2.02.166-r1

My guess is it's the update to grep that fixed it, but sadly I don't have an ebuild for 2.28 anymore (it's not in the portage tree that synched), and my other machines are <= 2.27 (which didn't have the issue)

Total guess, but worth a try?
Comment 11 Mike Pagano gentoo-dev 2017-02-14 20:21:52 UTC
(In reply to priveinformatie from comment #10)
> I had the same problem, only on 1 of several machines. After updating a few
> packages, interrupting the update, and trying again later, it suddenly
> worked.
> 
> The updated packages were:
> sys-apps/grep-2.28 -> sys-apps/grep-3.0
> net-misc/wget-1.19 -> net-misc/wget-1.19.1
> net-fs/nfs-utils-1.3.4 -> net-fs/nfs-utils-2.1.1
> sys-fs/lvm2-2.02.166 -> sys-fs/lvm2-2.02.166-r1
> 
> My guess is it's the update to grep that fixed it, but sadly I don't have an
> ebuild for 2.28 anymore (it's not in the portage tree that synched), and my
> other machines are <= 2.27 (which didn't have the issue)
> 
> Total guess, but worth a try?


You sir, win. 

Guys, please upgrade grep and report back here if it still fails for you. I  I was able to reproduce with grep-2.28

$ eix -e grep 

[?] sys-apps/grep
...
     Installed versions:  2.28(03:13:27 PM 02/14/2017)(nls pcre -static)
...

$ ebuild gentoo-sources-4.9.9.ebuild unpack

...

debug: Inside handle_genpatches                                                                                                                                           
debug: genpatches tarball: genpatches-4.9-11.base.tar.xz                                                                                                                  
debug: genpatches tarball: genpatches-4.9-11.extras.tar.xz                                                                                                                
debug: genpatches tarball:                                                                                                                                                
debug: genpatches tarball:                                                                                                                                                
 * Excluding Patch #1500_XATTR_USER_PREFIX.patch ...                                                                                                               [ ok ]
 * Excluding Patch #5000_enable-additional-cpu-optimizations-for-gcc.patch ...                                                                                     [ ok ]
 * Failed to dry-run patch genpatches-4.9-11.base.tar.patch
...
Comment 12 Chris Pritchard 2017-02-14 21:17:20 UTC
Now fixed for me after upgrading grep.

Is it worth adding "!=sys-apps/grep-2.28" to the dependencies list of the ebuild?
Comment 13 Mike Pagano gentoo-dev 2017-02-14 22:50:16 UTC
(In reply to Chris Pritchard from comment #12)
> Now fixed for me after upgrading grep.
> 
> Is it worth adding "!=sys-apps/grep-2.28" to the dependencies list of the
> ebuild?

Thinking about it, but it should probably be in package.mask.
Comment 14 Juergen Rose 2017-02-19 11:51:49 UTC
After upgrading grep to version 3.0 'emerge gentoo-sources' works for me as well.
Comment 15 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2017-02-20 12:01:57 UTC
i think we can close this bug.

    package.mask: Removed grep-2.28 mask.