On Mon, 2021-05-24 at 15:46 +0200, Chencheng Zhang wrote:
>
> I don't have any problem building the recipe on my local Ubuntu. But on our
> Jenkins pipeline
> docker container (UID 111 GID 113), it complains:
> > 18:58:46 | ERROR: 'python3 setup.py install
> > --root=/var/lib/jenkins/workspace/_build-system_bug-oecore-
> > bisect5/build/tmp-glibc/work/aarch64-wittra-linux/python3-bluepy/1.3.0-r0/image
> > --prefix=/usr --
> > install-lib=/usr/lib/python3.8/site-packages --install-data=/usr/share'
> > execution failed.
> > 18:58:46 | WARNING: exit code 1 from a shell command.
> > 18:58:46 | ERROR: Execution of
> > '/var/lib/jenkins/workspace/_build-system_bug-oecore-bisect5/build/tmp-
> > glibc/work/aarch64-wittra-linux/python3-bluepy/1.3.0-r0/temp/run.do_install.1587527'
> > failed with exit code
> > 1:
> > 18:58:46 | running build
> > 18:58:46 | running build_py
> > 18:58:46 | Working dir is
> > /var/lib/jenkins/workspace/_build-system_bug-oecore-bisect5/build/tmp-
> > glibc/work/aarch64-wittra-linux/python3-bluepy/1.3.0-r0/bluepy-1.3.0
> > 18:58:46 | execute make -C ./bluepy clean
> > 18:58:46 | execute make -C bluepy -j1
> > 18:58:46 | Failed to compile bluepy-helper. Exiting install.
> > 18:58:46 | Command was 'make -C bluepy -j1' in
> > /var/lib/jenkins/workspace/_build-system_bug-oecore-
> > bisect5/build/tmp-glibc/work/aarch64-wittra-linux/python3-bluepy/1.3.0-r0/bluepy-1.3.0
> > 18:58:46 | Return code was 2
> > 18:58:46 | Output was:
> > 18:58:46 | b"make: Entering directory
> > '/var/lib/jenkins/workspace/_build-system_bug-oecore-
> > bisect5/build/tmp-glibc/work/aarch64-wittra-linux/python3-bluepy/1.3.0-r0/bluepy-1.3.0/bluepy'\ntar
> > xzf
> > bluez-src.tgz\ntar: ./bluez-5.47/AUTHORS: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/COPYING.LIB: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/config.h: Cannot change ownership to uid 1000,
> > gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/src/shared/mgmt.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not
> > permitted\ntar: ./bluez-5.47/src/shared/gap.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not
> > permitted\ntar: ./bluez-5.47/src/shared/btsnoop.h: Cannot change ownership
> > to uid 1000, gid 1000:
> > Operation
> > not permitted\ntar: ./bluez-5.47/src/shared/io-glib.c: Cannot change
> > ownership to uid 1000, gid 1000:
> > Operation not permitted\ntar: ./bluez-5.47/src/shared/uhid.h: Cannot change
> > ownership to uid 1000, gid
> > 1000:
> > Operation not permitted\ntar: ./bluez-5.47/src/shared/util.h: Cannot change
> > ownership to uid 1000, gid
> > 1000:
> > Operation not permitted\ntar: ./bluez-5.47/src/shared/timeout.h: Cannot
> > change ownership to uid 1000, gid
> > 1000: Operation not permitted\ntar: ./bluez-5.47/src/shared/hci-crypto.h:
> > Cannot change ownership to uid
> > 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/gatt-db.h: Cannot change ownership
> > to
> > uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/io.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/ad.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/mainloop.h: Cannot change
> > ownership to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/pcap.h: Cannot
> > change
> > ownership to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/ringbuf.h: Cannot
> > change ownership to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/crypto.c:
> > Cannot change ownership to uid 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-
> > 5.47/src/shared/crypto.h: Cannot change ownership to uid 1000, gid 1000:
> > Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/queue.c: Cannot change ownership to uid 1000, gid
> > 1000: Operation not
> > permitted\ntar: ./bluez-5.47/src/shared/hci.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not
> > permitted\ntar: ./bluez-5.47/src/shared/util.c: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not
> > permitted\ntar: ./bluez-5.47/src/shared/tty.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not
> > permitted\ntar: ./bluez-5.47/src/shared/queue.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not permitted\ntar: ./bluez-5.47/src/shared/att-types.h: Cannot change
> > ownership to uid 1000, gid 1000:
> > Operation not permitted\ntar: ./bluez-5.47/src/shared/timeout-glib.c:
> > Cannot change ownership to uid 1000,
> > gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/gatt-server.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/att.h: Cannot change ownership
> > to
> > uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/hfp.h: Cannot change ownership
> > to
> > uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/tester.h: Cannot change
> > ownership
> > to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/mgmt.c: Cannot change
> > ownership
> > to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/ecc.h: Cannot change
> > ownership
> > to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/att.c: Cannot change
> > ownership
> > to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/gatt-helpers.h: Cannot change
> > ownership to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared/gatt-client.h:
> > Cannot
> > change ownership to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/shared: Cannot
> > change
> > ownership to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/log.c: Cannot change
> > ownership to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src/log.h: Cannot change
> > ownership to uid 1000, gid 1000: Operation not permitted\ntar:
> > ./bluez-5.47/src: Cannot change ownership
> > to
> > uid 1000, gid 1000: Operation not permitted\ntar: ./bluez-5.47/COPYING:
> > Cannot change ownership to uid
> > 1000,
> > gid 1000: Operation not permitted\ntar: ./bluez-5.47/btio/btio.h: Cannot
> > change ownership to uid 1000, gid
> > 1000: Operation not permitted\ntar: ./bluez-5.47/btio/btio.c: Cannot change
> > ownership to uid 1000, gid
> > 1000:
> > Operation not permitted\ntar: ./bluez-5.47/btio: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not permitted\ntar: ./bluez-5.47/lib/bnep.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/mgmt.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/sdp.c: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/rfcomm.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/bluetooth.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/hci.c: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/l2cap.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/hci_lib.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/sdp_lib.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/hidp.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/uuid.c: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/uuid.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/sdp.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/hci.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/bluetooth.c: Cannot change ownership to
> > uid 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/cmtp.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/sco.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/amp.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib/a2mp.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/lib: Cannot change ownership to uid 1000, gid
> > 1000: Operation not
> > permitted\ntar: ./bluez-5.47/attrib/gatt.c: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/attrib/att-database.h: Cannot change ownership
> > to uid 1000, gid 1000:
> > Operation
> > not permitted\ntar: ./bluez-5.47/attrib/utils.c: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not permitted\ntar: ./bluez-5.47/attrib/gattrib.h: Cannot change ownership
> > to uid 1000, gid 1000:
> > Operation
> > not permitted\ntar: ./bluez-5.47/attrib/gatt.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not
> > permitted\ntar: ./bluez-5.47/attrib/gatttool.h: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not
> > permitted\ntar: ./bluez-5.47/attrib/gattrib.c: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not
> > permitted\ntar: ./bluez-5.47/attrib/att.h: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/attrib/gatt-service.h: Cannot change ownership
> > to uid 1000, gid 1000:
> > Operation
> > not permitted\ntar: ./bluez-5.47/attrib/att.c: Cannot change ownership to
> > uid 1000, gid 1000: Operation
> > not
> > permitted\ntar: ./bluez-5.47/attrib: Cannot change ownership to uid 1000,
> > gid 1000: Operation not
> > permitted\ntar: ./bluez-5.47/sys/bluetooth/bluetooth.h: Cannot change
> > ownership to uid 1000, gid 1000:
> > Operation not permitted\ntar: ./bluez-5.47/sys/bluetooth/hci.h: Cannot
> > change ownership to uid 1000, gid
> > 1000: Operation not permitted\ntar: ./bluez-5.47/sys/bluetooth: Cannot
> > change ownership to uid 1000, gid
> > 1000: Operation not permitted\ntar: ./bluez-5.47/sys: Cannot change
> > ownership to uid 1000, gid 1000:
> > Operation not permitted\ntar: ./bluez-5.47: Cannot change ownership to uid
> > 1000, gid 1000: Operation not
> > permitted\ntar: Exiting with failure status due to previous errors\nmake:
> > *** [Makefile:33: bluez-
> > 5.47/lib/bluetooth.c] Error 2\nmake: Leaving directory
> > '/var/lib/jenkins/workspace/_build-system_bug-
> > oecore-
> > bisect5/build/tmp-glibc/work/aarch64-wittra-linux/python3-bluepy/1.3.0-r0/bluepy-1.3.0/bluepy'\n"
> > 18:58:46 | WARNING: exit code 1 from a shell command.
> >
>
>
> I agree that this library is pretty badly written and has a bluez tarball in
> its source code.
> I have attached both the recipe and the Jenkins log.
> May I ask for your suggestions on how I can resolve this?
The issue is that after those patches, the source directory ${S} is not under
pseudo
control therefore changing the ownership of files there to root/root won't work.
Those files in ${S} shouldn't need to be owned by root/root so the fix is
probably
to find out what is trying to change them and stop it.
Cheers,
Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152185):
https://lists.openembedded.org/g/openembedded-core/message/152185
Mute This Topic: https://lists.openembedded.org/mt/83052560/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-