Received: from shark1.inbox.lv (shark1.inbox.lv [194.152.32.81]) by mx.groups.io with SMTP id smtpd.web10.7541.1620376494453480971 for ; Fri, 07 May 2021 01:34:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@inbox.lv header.s=30062014 header.b=bj1Xae4P; spf=pass (domain: inbox.lv, ip: 194.152.32.81, mailfrom: tom.hill@inbox.lv) Received: by shark1.inbox.lv (Postfix, from userid 2004) id 27026111813A; Fri, 7 May 2021 11:34:51 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=inbox.lv; s=30062014; t=1620376491; bh=SS6KGyVZdlZVWvE1+cicI3ZaMLpakaCyKbRv2WBhCOQ=; h=Date:From:Subject:To; b=bj1Xae4P6XScm+g+c5obcfmOe/8+Qc69otupxPD5pIrp/EZspc2DLO/9xFfSCf3qK PVzz4ITOex7neC8VqVqRcx7xoijion5voZJMcoM+6o/jHkleMcPU8VDhSMZC0ZfOYN abEwUY7QsoYVfsD0Ql5aMAEsfnDweASfLMDN37Rc= Received: from localhost (localhost [127.0.0.1]) by shark1-in.inbox.lv (Postfix) with ESMTP id EDC5111180E4 for ; Fri, 7 May 2021 11:34:50 +0300 (EEST) Received: from shark1.inbox.lv ([127.0.0.1]) by localhost (shark1.inbox.lv [127.0.0.1]) (spamfilter, port 35) with ESMTP id tLbVz2i7TLN2 for ; Fri, 7 May 2021 11:34:50 +0300 (EEST) Received: from w9.inbox.lv (w9 [127.0.0.1]) by shark1-in.inbox.lv (Postfix) with ESMTP id B1A3A11180C6 for ; Fri, 7 May 2021 11:34:50 +0300 (EEST) MIME-Version: 1.0 X-HTTP-USER-AGENT: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Message-ID: <1620376490.6094fbaaa220c@mail.inbox.lv> Date: Fri, 07 May 2021 11:34:50 +0300 From: "Thomas Hill" Subject: Path ./package/usr/lib/libcryptopp.so.8 is owned by uid 1111, gid 1111, which doesn't match any user/group on target. This may be due to host contamination. To: "Yocto-mailing-list" User-Agent: Inbox.lv Webmail X-ESPOL: EZqEIQwB6gdL38mgUvoemIv6urCvJT4u3TuDrrAy6HBHvrbfu91rcWqSB+acFAOlDh2o9bSjcmU+68rof0IueCHShmSC X-Groupsio-MsgNum: 53416 Content-Type: multipart/mixed; boundary="=_9b160483a9eea8147845e7cb2b75f7c7" --=_9b160483a9eea8147845e7cb2b75f7c7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi! I try to create a libcryptopp package for my yocto build with the appended = bb-recipe. That worked without problems on my old build server with Yocto 3.0. Now I have moved to a new build server and upgrade to Yocto 3.3. Now I have= the problem that the do_package function failed. ,---[ bitbake core-image-minimal ]--- | WARNING: libcryptopp-8.2.0+gitAUTOINC+9dcc26c582-r8 do_package: KeyError = in ./package/usr/lib/libcryptopp.so.8 | ERROR: libcryptopp-8.2.0+gitAUTOINC+9dcc26c582-r8 do_package: Error execu= ting a python function in exec_python_func() autogenerated: | [...] | Exception: Exception: KeyError: 'getpwuid(): uid not found: 1001' | Path ./package/usr/lib/libcryptopp.so.8 is owned by uid 1001, gid 1001, w= hich doesn't match any user/group on target. This may be due to host contam= ination. | [...] | ERROR: Task (/home/thomas/yocto/meta-X2/recipes-X2/libcryptopp/libcryptop= p_8.2.0.bb:do_package) failed with exit code '1' `------------------ I checked the list and found similar problems but not a real solution for m= e. libcryptopp's Makefile uses "cp" for installation. I understand this is bad= so I patched the Makefile to use "install" instead. That is the recommende= d usage I could read in the yocto manual. But this does not help either. As I understand will the do_install and oe_runmake using the bitbake user's= UID for installation in a temp dir. Afterwards the do_package uses fakeroo= t to create the package with root:root file ownership in the package. Right= ? In this case I don't understand where the problem is. I do not run bitbake as root - why should I? So I don't see a possibility t= o change the files in the temp dir with "chmod" or "install -o 0". My current bitbake user has UID 1001. On the old server I think it was 1000= =2E Can this be a problem? I tried a new user with UID 1111 but got the sam= e error. Unfortunatelly I can't test with user 1000. It is occupied. I am out of ideas. Can someone please poke me in the right direction? Thanks a lot! Tom --=_9b160483a9eea8147845e7cb2b75f7c7 Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=libcryptopp_8.2.0.bb Content-Disposition: attachment; filename=libcryptopp_8.2.0.bb U1VNTUFSWSA9ICJBIGZyZWUgQysrIGNsYXNzIGxpYnJhcnkgb2YgY3J5cHRvZ3JhcGhpYyBzY2hl bWVzIgoKREVTQ1JJUFRJT04gPSAiRnJlZSBDKysgbGlicmFyeSBmb3IgY3J5cHRvZ3JhcGhpYyBz Y2hlbWVzIHdyaXR0ZW4gYnkgXApXZWkgRGFpIGFuZCBpbmNsdWRlcyBjaXBoZXJzLCBtZXNzYWdl IGF1dGhlbnRpY2F0aW9uIGNvZGVzLCBvbmUtd2F5IFwKaGFzaCBmdW5jdGlvbnMsIHB1YmxpYy1r ZXkgY3J5cHRvc3lzdGVtcywga2V5IGFncmVlbWVudCBzY2hlbWVzLCBhbmQgXApkZWZsYXRlIGNv bXByZXNzaW9uLiIKCkhPTUVQQUdFID0gImh0dHBzOi8vd3d3LmNyeXB0b3BwLmNvbS8iCkJVR1RS QUNLRVIgPSAiaHR0cHM6Ly9naXRodWIuY29tL3dlaWRhaTExL2NyeXB0b3BwL2lzc3VlcyIKU0VD VElPTiA9ICJsaWJzIgoKTElDRU5TRSA9ICJQRCIKTElDX0ZJTEVTX0NIS1NVTSA9ICJmaWxlOi8v TGljZW5zZS50eHQ7bWQ1PWVjNmZiYjQzZjEzNDQzMzY3NzJhOTI1MTcxZDlmMzU4IgoKQkJDTEFT U0VYVEVORCA9ICJuYXRpdmUgbmF0aXZlc2RrIgoKU1JDUkVWID0gIjlkY2MyNmM1ODIxM2FiYjgz NTFmYmIxYjJhN2ExZDJjNjY3MzY2ZTQiCgojIFBSIC0gVGhlIHJldmlzaW9uIG9mIHRoaXMgcmVj aXBlLgpQUiA9ICJyOCIKClBWID0gIjguMi4wK2dpdCR7U1JDUFZ9IgoKUyA9ICIke1dPUktESVJ9 L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