From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from na3sys009aog136.obsmtp.com ([74.125.149.85]) by linuxtogo.org with smtp (Exim 4.72) (envelope-from ) id 1SX5Zg-0004To-93 for openembedded-devel@lists.openembedded.org; Wed, 23 May 2012 09:01:37 +0200 Received: from mail-ob0-f170.google.com ([209.85.214.170]) (using TLSv1) by na3sys009aob136.postini.com ([74.125.148.12]) with SMTP ID DSNKT7yI7//dbcntl85EsZUidgnxsrbkQ8Yp@postini.com; Tue, 22 May 2012 23:51:28 PDT Received: by obbuo13 with SMTP id uo13so2098763obb.15 for ; Tue, 22 May 2012 23:51:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:x-gm-message-state; bh=sJHw7vzibvnqLEq2elW4Z3d7IAfvDZnkolbee/UgSqw=; b=prhqgcFvyMZP3k34kYIUjFokRqIY5gVggoF5mJw+/ZrehKYpdjEFw6wPAiocnCgt+q a/U2tybT7h2BmLVOPTTKxUbJBgV4nNXuJkU1lN24l42kC6YlT77Qa7PxHH2O5/pUMkNq +xJE2Mpqh0yV0bw3j4g5KlEa+Fz7H0OyrIqeHGw+Dp3xiPGoXEtr8tGPrGrHgguEmnXg //b+rft5u45DZ1E16DrSV2pHc5Alr4IZqk6Ba6MNCa0LPrB7ZpCjARvZsvS2CXpigeA3 nub7Y+ihuHJtC1KJQkgje/DGwah2RoP3s0CZ9MV2jVxP032gcmah2t/uID9sHfjG+sNs V5qQ== Received: by 10.60.172.231 with SMTP id bf7mr22767547oec.45.1337698257623; Tue, 22 May 2012 07:50:57 -0700 (PDT) Received: from [10.2.3.118] ([63.231.215.146]) by mx.google.com with ESMTPS id x10sm4911156oeb.8.2012.05.22.07.50.53 (version=SSLv3 cipher=OTHER); Tue, 22 May 2012 07:50:54 -0700 (PDT) Message-ID: <4FBBA7CD.4080805@windenergy.com> Date: Tue, 22 May 2012 08:50:53 -0600 From: Craig Swank User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: openembedded-devel@lists.openembedded.org X-Gm-Message-State: ALoCoQnULjFc97LVOOFu/OOFPKE4bOwu/zutyMpAo0hKbNes8uVN3UOh+pCqqlikPovApoCxZPsA X-Content-Filtered-By: Mailman/MimeDel 2.1.11 Subject: bitbake recipes with wildcards fail X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2012 07:01:37 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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): 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 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. -- Craig Swank Data Engineer Southwest Windpower 100 Technology Drive, Suite 315-325, Broomfield, CO 80021 craig.swank@windenergy.com www.windenergy.com This electronic message transmission contains information that may be confidential or privileged. The information is intended to be only for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this formation is prohibited, unless expressly authorized in an advanced writing. If you have received this electronic transmission in error, please notify the sender immediately. Any Intellectual Property contained in this electronic message transmission, or any attachments to it, are confidential or privileged and shall not be forwarded, shared, used, disclosed, copied, or distributed in any form without the prior written consent.