From patchwork Tue May 22 14:50:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: bitbake recipes with wildcards fail Date: Tue, 22 May 2012 14:50:53 -0000 From: Craig Swank X-Patchwork-Id: 28403 Message-Id: <4FBBA7CD.4080805@windenergy.com> To: openembedded-devel@lists.openembedded.org I was trying to build a console-image for a beaglebone and the build failed at libpam and again at systemd-compat-units. The problem seems to be with bitbake recipes that have a wildcard in "file://" declarations like: file://*.service or file://pam.d/* I was able to fix libpam by changing .bb (here is a patch): I installed openembedded on Ubuntu 12.04 (and confirmed the problem on Ubuntu 11.10) using the oebb.sh setup script and following the directions at: http://www.angstrom-distribution.org/building-angstrom Error for libpam: ERROR: Error executing a python function in /home/craig/Angstrom/setup-scripts/sources/openembedded-core/meta/recipes-extended/pam/libpam_1.1.5.bb: IOError: [Errno 2] No such file or directory: '/home/craig/Angstrom/setup-scripts/sources/openembedded-core/meta/recipes-extended/pam/libpam/./pam.d/*' ERROR: The stack trace of python calls that resulted in this exception/failure was: ERROR: File "base_do_fetch", line 18, in ERROR: ERROR: File "base_do_fetch", line 13, in base_do_fetch ERROR: ERROR: File "/home/craig/Angstrom/setup-scripts/sources/bitbake/lib/bb/fetch2/__init__.py", line 1006, in download ERROR: update_stamp(u, ud, self.d) ERROR: ERROR: File "/home/craig/Angstrom/setup-scripts/sources/bitbake/lib/bb/fetch2/__init__.py", line 335, in update_stamp ERROR: verify_checksum(u, ud, d) ERROR: ERROR: File "/home/craig/Angstrom/setup-scripts/sources/bitbake/lib/bb/fetch2/__init__.py", line 277, in verify_checksum ERROR: md5data = bb.utils.md5_file(ud.localpath) ERROR: ERROR: File "/home/craig/Angstrom/setup-scripts/sources/bitbake/lib/bb/utils.py", line 362, in md5_file ERROR: for line in open(filename): ERROR: ERROR: The code that was being executed was: ERROR: 0014: except bb.fetch2.BBFetchException, e: ERROR: 0015: raise bb.build.FuncFailed(e) ERROR: 0016: ERROR: 0017: ERROR: *** 0018:base_do_fetch(d) ERROR: 0019: ERROR: (file: 'base_do_fetch', lineno: 18, function: ) ERROR: 0009: bb.data.update_data(localdata) ERROR: 0010: ERROR: 0011: try: ERROR: 0012: fetcher = bb.fetch2.Fetch(src_uri, localdata) ERROR: *** 0013: fetcher.download() ERROR: 0014: except bb.fetch2.BBFetchException, e: ERROR: 0015: raise bb.build.FuncFailed(e) ERROR: 0016: ERROR: 0017: ERROR: (file: 'base_do_fetch', lineno: 13, function: base_do_fetch) ERROR: Function failed: base_do_fetch ERROR: Logfile of failure stored in: /home/craig/Angstrom/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work/armv7a-angstrom-linux-gnueabi/libpam-1.1.5-r3/temp/log.do_fetch.24464 NOTE: package libpam-1.1.5-r3: task do_fetch: Failed NOTE: package shadow-4.1.4.3-r8: task do_fetch: Started NOTE: package shadow-4.1.4.3-r8: task do_fetch: Succeeded ERROR: Task 1087 (/home/craig/Angstrom/setup-scripts/sources/openembedded-core/meta/recipes-extended/pam/libpam_1.1.5.bb, do_fetch) failed with exit code '1' NOTE: Tasks Summary: Attempted 1109 tasks of which 1107 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/craig/Angstrom/setup-scripts/sources/openembedded-core/meta/recipes-extended/pam/libpam_1.1.5.bb, do_fetch Summary: There were 37 ERROR messages shown, returning a non-zero exit code. And the error for systemd-compat-units.bb: ROR: Error executing a python function in /home/craig/Angstrom/setup-scripts/sources/meta-openembedded/meta-oe/recipes-core/systemd/systemd-compat-units.bb: IOError: [Errno 2] No such file or directory: '/home/craig/Angstrom/setup-scripts/sources/meta-openembedded/meta-oe/recipes-core/systemd/systemd-compat-units/./*.service' NOTE: Running task 3142 of 3440 (ID: 1617, /home/craig/Angstrom/setup-scripts/sources/meta-openembedded/meta-oe/recipes-connectivity/iw/iw_3.2.bb, do_patch) ERROR: The stack trace of python calls that resulted in this exception/failure was: ERROR: File "base_do_fetch", line 18, in ERROR: ERROR: File "base_do_fetch", line 13, in base_do_fetch ERROR: ERROR: File "/home/craig/Angstrom/setup-scripts/sources/bitbake/lib/bb/fetch2/__init__.py", line 1006, in download ERROR: update_stamp(u, ud, self.d) ERROR: ERROR: File "/home/craig/Angstrom/setup-scripts/sources/bitbake/lib/bb/fetch2/__init__.py", line 335, in update_stamp ERROR: verify_checksum(u, ud, d) ERROR: ERROR: File "/home/craig/Angstrom/setup-scripts/sources/bitbake/lib/bb/fetch2/__init__.py", line 277, in verify_checksum ERROR: md5data = bb.utils.md5_file(ud.localpath) ERROR: ERROR: File "/home/craig/Angstrom/setup-scripts/sources/bitbake/lib/bb/utils.py", line 362, in md5_file ERROR: for line in open(filename): ERROR: ERROR: The code that was being executed was: ERROR: 0014: except bb.fetch2.BBFetchException, e: ERROR: 0015: raise bb.build.FuncFailed(e) ERROR: 0016: ERROR: 0017: ERROR: *** 0018:base_do_fetch(d) ERROR: 0019: ERROR: (file: 'base_do_fetch', lineno: 18, function: ) ERROR: 0009: bb.data.update_data(localdata) ERROR: 0010: ERROR: 0011: try: ERROR: 0012: fetcher = bb.fetch2.Fetch(src_uri, localdata) ERROR: *** 0013: fetcher.download() ERROR: 0014: except bb.fetch2.BBFetchException, e: ERROR: 0015: raise bb.build.FuncFailed(e) ERROR: 0016: ERROR: 0017: ERROR: (file: 'base_do_fetch', lineno: 13, function: base_do_fetch) ERROR: Function failed: base_do_fetch ERROR: Logfile of failure stored in: /home/craig/Angstrom/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work/all-angstrom-linux/systemd-compat-units-1.0-r15/temp/log.do_fetch.24135 NOTE: package systemd-compat-units-1.0-r15: task do_fetch: Failed ERROR: Task 1607 (/home/craig/Angstrom/setup-scripts/sources/meta-openembedded/meta-oe/recipes-core/systemd/systemd-compat-units.bb, do_fetch) failed with exit code '1' NOTE: package iw-3.2-r1: task do_patch: Started Waiting for 1 running tasks to finish: 0: iw-3.2-r1 do_patch (pid 24140) NOTE: package iw-3.2-r1: task do_patch: Succeeded NOTE: Tasks Summary: Attempted 3142 tasks of which 1568 didn't need to be rerun and 1 failed. diff --git a/meta/recipes-extended/pam/libpam_1.1.5.bb b/meta/recipes-extended/pam/libpam_1.1.5.bb index 08ce1d1..48da73d 100644 --- a/meta/recipes-extended/pam/libpam_1.1.5.bb +++ b/meta/recipes-extended/pam/libpam_1.1.5.bb @@ -13,7 +13,12 @@ PR = "r3" SRC_URI = "https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-${PV}.tar.bz2 \ file://99_pam \ - file://pam.d/* \ + file://pam.d/common-account \ + file://pam.d/common-auth \ + file://pam.d/common-password \ + file://pam.d/common-session \ + file://pam.d/common-session-noninteractive \ + file://pam.d/other \ file://libpam-xtests.patch" SRC_URI_append_libc-uclibc = " file://pam-no-innetgr.patch" I fixed the other problem with this: tuco% git diff diff --git a/meta-oe/recipes-core/systemd/systemd-compat-units.bb b/meta-oe/recipes-core/systemd/systemd-compat-units.bb index c9a6b67..b14862e 100644 --- a/meta-oe/recipes-core/systemd/systemd-compat-units.bb +++ b/meta-oe/recipes-core/systemd/systemd-compat-units.bb @@ -7,7 +7,8 @@ PR = "r15" inherit allarch -SRC_URI = "file://*.service" +SRC_URI = "file://machineid.service \ + file://run-postinsts.service" do_install() { install -d ${D}${systemd_unitdir}/system/basic.target.wants