Bug 2054 - [non-GPLv3] util-linux-native do_patch failed
Summary: [non-GPLv3] util-linux-native do_patch failed
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.2
Hardware: x86 x86
: Medium normal
Target Milestone: 1.2 M4
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-03-05 06:07 UTC by MaNing
Modified: 2012-04-05 15:54 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
log (859 bytes, application/octet-stream)
2012-03-05 06:09 UTC, MaNing
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description MaNing 2012-03-05 06:07:52 UTC
The nonGPLv3 options set in local.conf as below:
#######
MACHINE = "qemux86"
INCOMPATIBLE_LICENSE = "GPLv3"
#######
Tree/Branch: Poky/1.2_M3
Commit: 320558f494c618f53e0c773db3ea0109476e8359

When i build a core-image-minimal with nonGPLv3 enable, it will
report do_patch task failed for 'util-linux-native-2.21-r0'.

Error log as below:

######
NOTE: SKIPPING lttng-control because it's GPLv3                 | ETA:  00:00:13
NOTE: SKIPPING gnome-common because it's GPLv3                  | ETA:  00:00:06
NOTE: SKIPPING cpio because it's GPLv3                          | ETA:  00:00:05
NOTE: SKIPPING parted because it's GPLv3+                       | ETA:  00:00:05
NOTE: SKIPPING sed because it's GPLv3+                          | ETA:  00:00:04
NOTE: SKIPPING texinfo because it's GPLv3+
NOTE: SKIPPING gawk because it's GPLv3
NOTE: SKIPPING findutils because it's GPLv3+
NOTE: SKIPPING msmtp because it's GPLv3
NOTE: SKIPPING ed because it's GPLv3+
NOTE: SKIPPING diffutils because it's GPLv3+                    | ETA:  00:00:04
NOTE: SKIPPING gperf because it's GPLv3+
NOTE: SKIPPING gzip because it's GPLv3+                         | ETA:  00:00:04
NOTE: SKIPPING xz because it's GPLv2+ & GPLv3+ & LGPLv2.1+      | ETA:  00:00:04
NOTE: SKIPPING tar because it's GPLv3###                        | ETA:  00:00:04
NOTE: SKIPPING bash because it's GPLv3+
NOTE: SKIPPING mc because it's GPLv3
NOTE: SKIPPING grep because it's GPLv3#####                     | ETA:  00:00:03
NOTE: SKIPPING gdb because it's GPLv2 & GPLv3 & LGPLv2 & LGPLv3 | ETA:  00:00:03
NOTE: SKIPPING grub because it's GPLv3#######                   | ETA:  00:00:03
NOTE: SKIPPING which because it's GPLv3+#######                 | ETA:  00:00:02
NOTE: SKIPPING guile because it's GPLv3#########                | ETA:  00:00:02
NOTE: SKIPPING ghostscript because it's GPLv3#####              | ETA:  00:00:02
NOTE: SKIPPING binutils-cross-canadian-i586 because it's GPLv3  | ETA:  00:00:02
NOTE: SKIPPING rsync because it's GPLv3+##############          | ETA:  00:00:01
NOTE: SKIPPING bison because it's GPLv3
NOTE: SKIPPING m4 because it's GPLv3###################         | ETA:  00:00:01
NOTE: SKIPPING m4-nativesdk because it's GPLv3
NOTE: SKIPPING mtools because it's GPLv3###############         | ETA:  00:00:01
NOTE: SKIPPING gettext because it's GPL-3+ & LGPL-2.1+
NOTE: SKIPPING gettext-nativesdk because it's GPL-3+ & LGPL-2.1+
NOTE: SKIPPING gcc because it's GPL-3.0-with-GCC-exception & GPLv3ETA:  00:00:01
NOTE: SKIPPING autoconf because it's GPLv2 & GPLv3########      | ETA:  00:00:01
NOTE: SKIPPING gdb-cross-canadian-i586 because it's GPLv3+
NOTE: SKIPPING gcc-cross-canadian-i586 because it's GPL-3.0-with-GCC-exception &                                                                                                  GPLv3
NOTE: SKIPPING autoconf-nativesdk because it's GPLv2 & GPLv3    | ETA:  00:00:00
NOTE: SKIPPING patch because it's GPLv3#####################    | ETA:  00:00:00
NOTE: SKIPPING ubootchart because it's GPLv3################### | ETA:  00:00:00
Parsing recipes: 100% |#########################################| Time: 00:00:07
Parsing of 830 .bb files complete (0 cached, 830 parsed). 1105 targets, 76 skipp                                                                                                 ed, 0 masked, 0 errors.
NOTE: SKIPPING binutils because it's GPLv3
NOTE: SKIPPING ccache because it's GPLv3+
NOTE: SKIPPING coreutils because it's GPLv3+
NOTE: SKIPPING binutils because it's GPLv3
NOTE: SKIPPING gcc-runtime-nativesdk because it's GPL-3.0-with-GCC-exception & G                                                                                                 PLv3
NOTE: SKIPPING contacts because it's GPLv2 & GPLv2+ & GPLv3+
NOTE: SKIPPING libunistring because it's GPLv3&LGPLv3
NOTE: SKIPPING libunistring-nativesdk because it's GPLv3&LGPLv3
NOTE: SKIPPING libgcc-nativesdk because it's GPL-3.0-with-GCC-exception & GPLv3
NOTE: SKIPPING readline because it's GPLv3+
NOTE: SKIPPING readline-nativesdk because it's GPLv3+
NOTE: SKIPPING mpfr because it's GPLv3&LGPLv3
NOTE: SKIPPING mpfr-nativesdk because it's GPLv3&LGPLv3
NOTE: SKIPPING gnupg because it's GPLv3 & LGPLv3
NOTE: SKIPPING gdbm because it's GPLv3
NOTE: SKIPPING gdbm-nativesdk because it's GPLv3
NOTE: SKIPPING contacts because it's GPLv2 & GPLv2+ & GPLv3+
NOTE: SKIPPING gmp because it's LGPLv3&GPLv3
NOTE: SKIPPING gmp-nativesdk because it's LGPLv3&GPLv3
NOTE: SKIPPING libksba because it's GPLv3

OE Build Configuration:
BB_VERSION        = "1.15.1"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.1+snapshot-20120305"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-yocto        = "1.2_M3:320558f494c618f53e0c773db3ea0109476e8359"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 198 of 1308 (ID: 470, /home/build/poky/meta/recipes-devtools/ gcc/gcc-cross_4.6.bb, do_configure)
NOTE: Running task 381 of 1308 (ID: 497, /home/build/poky/meta/recipes-core/eglibc/eglibc_2.13.bb, do_package)
NOTE: Running task 414 of 1308 (ID: 411, virtual:native:/home/build/poky/meta/recipes-core/gettext/gettext_0.18.1.1.bb, do_install)
NOTE: Running task 545 of 1308 (ID: 167, virtual:native:/home/build/poky/meta/recipes-core/util-linux/util-linux_2.21.bb, do_patch)
NOTE: package gcc-cross-4.6.2+svnr181430-r22: task do_configure: Started
NOTE: package eglibc-2.13-r20+svnr15508: task do_package: Started
NOTE: package gettext-native-0.18.1.1-r7: task do_install: Started
NOTE: package util-linux-native-2.21-r0: task do_patch: Started
ERROR: Command Error: exit status: 1  Output:
Applying patch remove-lscpu.patch
patching file sys-utils/Makefile.am
Hunk #1 FAILED at 17.
1 out of 1 hunk FAILED -- rejects in file sys-utils/Makefile.am
Patch remove-lscpu.patch does not apply (enforce with -f)
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/build/poky/build/tmp/work/x86_64-linux/util-linux-native-2.21-r0/temp/log.do_patch.3205
NOTE: package util-linux-native-2.21-r0: task do_patch: Failed
ERROR: Task 167 (virtual:native:/home/build/poky/meta/recipes-core/util-linux/util-linux_2.21.bb, do_patch) failed with exit code '1'
Waiting for 3 active tasks to finish:
0: gcc-cross-4.6.2+svnr181430-r22 do_configure (pid 3200)
1: eglibc-2.13-r20+svnr15508 do_package (pid 3201)
2: gettext-native-0.18.1.1-r7 do_install (pid 3204)
Waiting for 2 active tasks to finish:
0: eglibc-2.13-r20+svnr15508 do_package (pid 3201)
1: gettext-native-0.18.1.1-r7 do_install (pid 3204)
NOTE: package gcc-cross-4.6.2+svnr181430-r22: task do_configure: Succeeded
Waiting for 1 active tasks to finish:
0: eglibc-2.13-r20+svnr15508 do_package (pid 3201)
NOTE: package gettext-native-0.18.1.1-r7: task do_install: Succeeded
NOTE: package eglibc-2.13-r20+svnr15508: task do_package: Succeeded
NOTE: Tasks Summary: Attempted 545 tasks of which 541 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:native:/home/build/poky/meta/recipes-core/util-linux/util-linux_2.21.bb, do_patch
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
######

Detailed log as attachment
Comment 1 MaNing 2012-03-05 06:09:17 UTC
Created attachment 342 [details]
log

Add the attachment.
Comment 2 Jiajun Xu 2012-03-05 06:13:53 UTC
There is fixing patch on master for the issue, 100111f6ff2e0d9d39d9c828178ccf2be715877a.
Comment 4 Jiajun Xu 2012-04-05 15:54:34 UTC
Verify the bug as fixed in 1.2 M4 testing with following commit:

tree/branch: poky/1.2_M4
commit: da6233ea034f35eff59306fdad31f318c340c359