>>> Failed to emerge sys-kernel/git-sources-4.1_rc1, Log file: >>> '/var/tmp/portage/sys-kernel/git-sources-4.1_rc1/temp/build.log' >>> Jobs: 1 of 2 complete, 1 failed Load avg: 1.13, 0.74, 0.37 * Package: sys-kernel/git-sources-4.1_rc1 * Repository: gentoo * Maintainer: mpagano@gentoo.org kernel@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux symlink userland_GNU * FEATURES: ccache preserve-libs sandbox userpriv usersandbox >>> Preparing to unpack ... >>> Unpacking source... >>> Unpacking linux-3.19.tar.xz to /var/tmp/portage/sys-kernel/git-sources-4.1_rc1/work * Excluding Patch #5000_enable-additional-cpu-optimizations-for-gcc.patch ... [ ok ] * Failed to dry-run patch patch-4.1-rc1.patch * Please attach /var/tmp/portage/sys-kernel/git-sources-4.1_rc1/temp/patch-4.1-rc1.err to any bug you may post. * ERROR: sys-kernel/git-sources-4.1_rc1::gentoo failed (unpack phase): * Unable to dry-run patch on any patch depth lower than 5. * * Call stack: * ebuild.sh, line 93: Called src_unpack * environment, line 3530: Called kernel-2_src_unpack * environment, line 1929: Called unipatch '/var/tmp/portage/sys-kernel/git-sources-4.1_rc1/distdir/patch-4.1-rc1.xz ' * environment, line 4263: Called die * The specific snippet of code: * die "Unable to dry-run patch on any patch depth lower than 5."; *
Created attachment 402106 [details] patch-4.1-rc1.err.xz Attempting Dry-run: cmd: patch -p0 --no-backup-if-mismatch --dry-run -f < /var/tmp/portage/sys-kernel/git-sources-4.1_rc1/work/patches/000001/patch-4.1-rc1.patch ======================================================= can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/.gitignore b/.gitignore |index acb6afe6b7a3..4ad4a98b884b 100644 |--- a/.gitignore |+++ b/.gitignore -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 17 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/.mailmap b/.mailmap |index 0d971cfb0772..6287004040e7 100644 |--- a/.mailmap |+++ b/.mailmap -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 29 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/CREDITS b/CREDITS |index 96935df0b6fe..40cc4bfb34db 100644 |--- a/CREDITS |+++ b/CREDITS -------------------------- No file to patch. Skipping patch. 4 out of 4 hunks ignored checking file b/Documentation/ABI/obsolete/sysfs-block-zram checking file b/Documentation/ABI/stable/sysfs-devices checking file b/Documentation/ABI/testing/configfs-usb-gadget-printer can't find file to patch at input line 242 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/Documentation/ABI/testing/sysfs-block-dm b/Documentation/ABI/testing/sysfs-block-dm |index 87ca5691e29b..f9f2339b9a0a 100644 |--- a/Documentation/ABI/testing/sysfs-block-dm |+++ b/Documentation/ABI/testing/sysfs-block-dm -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 272 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/Documentation/ABI/testing/sysfs-block-zram b/Documentation/ABI/testing/sysfs-block-zram |index a6148eaf91e5..2e69e83bf510 100644 |--- a/Documentation/ABI/testing/sysfs-block-zram |+++ b/Documentation/ABI/testing/sysfs-block-zram -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 305 ... Whole file is 16MB big.
Thanks for reporting. I fixed this in the kernel-2 eclass, can you please retest once the new eclass hits the mirrors?
I wondered why worldupdate did not want to update git-sources now. Is the keyword change wanted? emerge -va1 git-sources These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild NS *] sys-kernel/git-sources-4.1_rc1:4.1_rc1::gentoo [4.0_rc7:4.0_rc7::gentoo] USE="symlink -build" 0 KiB Total: 1 package (1 in new slot), Size of downloads: 0 KiB The following keyword changes are necessary to proceed: (see "package.accept_keywords" in the portage(5) man page for more details) # required by git-sources (argument) =sys-kernel/git-sources-4.1_rc1 ** >>> Running pre-merge checks for sys-kernel/git-sources-4.1_rc1 * QA Notice: ECLASS 'kernel-2' inherited illegally in sys-kernel/git-sources-4.1_rc1 pretend /usr/portage/eclass/kernel-2.eclass: line 370: 4.0: syntax error: invalid arithmetic operator (error token is ".0") sys-kernel/git-sources-4.1_rc1::gentoo was built with the following: USE="symlink -build" ABI_X86="64" >>> Attempting to run pkg_info() for 'sys-kernel/git-sources-4.1_rc1' * pkg_info() is not defined: 'git-sources-4.1_rc1.ebuild' Nothing new in /usr/src/
Not sure why you're seeing that The following keyword changes are necessary to proceed: (see "package.accept_keywords" in the portage(5) man page for more details) # required by git-sources (argument) =sys-kernel/git-sources-4.1_rc1 ~amd64
I'm having(In reply to jospezial from comment #3) > I wondered why worldupdate did not want to update git-sources now. > Is the keyword change wanted? > > emerge -va1 git-sources > > These are the packages that would be merged, in order: > > Calculating dependencies... done! > [ebuild NS *] sys-kernel/git-sources-4.1_rc1:4.1_rc1::gentoo > [4.0_rc7:4.0_rc7::gentoo] USE="symlink -build" 0 KiB > > Total: 1 package (1 in new slot), Size of downloads: 0 KiB > > The following keyword changes are necessary to proceed: > (see "package.accept_keywords" in the portage(5) man page for more details) > # required by git-sources (argument) > =sys-kernel/git-sources-4.1_rc1 ** > > >>> Running pre-merge checks for sys-kernel/git-sources-4.1_rc1 > * QA Notice: ECLASS 'kernel-2' inherited illegally in > sys-kernel/git-sources-4.1_rc1 pretend > /usr/portage/eclass/kernel-2.eclass: line 370: 4.0: syntax error: invalid > arithmetic operator (error token is ".0") > > > sys-kernel/git-sources-4.1_rc1::gentoo was built with the following: > USE="symlink -build" ABI_X86="64" > > >>> Attempting to run pkg_info() for 'sys-kernel/git-sources-4.1_rc1' > * pkg_info() is not defined: 'git-sources-4.1_rc1.ebuild' > > Nothing new in /usr/src/ I'm having the same issue: Calculating dependencies... done! [ebuild R *] sys-kernel/git-sources-4.1_rc1:4.1_rc1::gentoo USE="-build -symlink" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Running pre-merge checks for sys-kernel/git-sources-4.1_rc1 * QA Notice: ECLASS 'kernel-2' inherited illegally in sys-kernel/git-sources-4.1_rc1 pretend /usr/portage/eclass/kernel-2.eclass: line 370: 4.0: syntax error: invalid arithmetic operator (error token is ".0") >>> Emerging (1 of 1) sys-kernel/git-sources-4.1_rc1::gentoo * QA Notice: ECLASS 'kernel-2' inherited illegally in sys-kernel/git-sources-4.1_rc1 setup /usr/portage/eclass/kernel-2.eclass: line 370: 4.0: syntax error: invalid arithmetic operator (error token is ".0") While emerge successfully merges git-sources nothing really gets installed :(
I'll take a look tonight. Thanks for reporting.
Ok, I've been meaning to make this change for awhile now. Different bumps of git sources require a different base version which the git patch applies too. I added a new kernel environment variable to the git ebuild and use it in the eclass. You'll need the sync and make sure you have both the new eclass and the new git-sources-4.1_r1 ebuild. Please report back any successes or failures.
sys-kernel/git-sources-4.1_rc1::gentoo was built with the following: USE="symlink -build" ABI_X86="64" Linux bastellinux 4.1.0-rc1 #1 SMP Wed Apr 29 03:38:41 CEST 2015 x86_64 AMD Athlon(tm) II X2 240 Processor AuthenticAMD GNU/Linux As you can see it is working now. Well done! The only thing I noticed as always virtualbox-modules have compile problems. But that's another bug.
(In reply to jospezial from comment #8) > sys-kernel/git-sources-4.1_rc1::gentoo was built with the following: > USE="symlink -build" ABI_X86="64" > > Linux bastellinux 4.1.0-rc1 #1 SMP Wed Apr 29 03:38:41 CEST 2015 x86_64 AMD > Athlon(tm) II X2 240 Processor AuthenticAMD GNU/Linux > > > As you can see it is working now. Well done! > > The only thing I noticed as always virtualbox-modules have compile problems. > But that's another bug. Great, thanks for testing.