All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: Chencheng Zhang <chencheng@wittra.se>,
	 openembedded-core@lists.openembedded.org
Subject: Re: [dunfell][openembedded]pseudo updates breaks my custom recipe in Jenkins pipeline docker container
Date: Mon, 24 May 2021 15:37:19 +0100	[thread overview]
Message-ID: <1f88aac4b0f11378a24dcfcfe2f7d4a09162d22f.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAE5diG0ZuYyZ3mX+UTVrD-OPKXNuRhaVUVbwTfR=0xgHKWjEig@mail.gmail.com>

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


           reply	other threads:[~2021-05-24 14:37 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAE5diG0ZuYyZ3mX+UTVrD-OPKXNuRhaVUVbwTfR=0xgHKWjEig@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f88aac4b0f11378a24dcfcfe2f7d4a09162d22f.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=chencheng@wittra.se \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.