mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Baeuerle, Florian" <Florian.Baeuerle@allegion.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] ROOTDIR and image packages
Date: Tue, 16 Oct 2018 12:31:52 +0000	[thread overview]
Message-ID: <d7a05fcf2e1dbf0bf6a44075639bb3e89fe941df.camel@allegion.com> (raw)

Hello,

I making heavy use of image packages with collections. Some images select and
install packages that are in conflict with each other due to installing the same
file. This creates problems when they are targetinstalled to ROOTDIR
concurrently. I often get errors like this:

install alternative:
  src=foo/configs/platform-imx27/projectroot/etc/rauc/system.conf
  dst=/etc/rauc/system.conf
  owner=0 
  group=0 
  permissions=0644

chmod: cannot access '/home/jenkins/workspace/foo/platform-
imx27/root/etc/rauc/system.conf': No such file or directory
Error: install_alternative failed!

xpkg_finish: failed.

/home/jenkins/workspace/foo/configs/platform-imx27/rules/image-squashfs-
jaeger90-release.make:45: recipe for target
'/home/jenkins/workspace/foo/platform-imx27/state/image-squashfs-jaeger90-
release.targetinstall' failed
make: *** [/home/jenkins/workspace/foo/platform-imx27/state/image-squashfs-
jaeger90-release.targetinstall] Error 1
make: *** Waiting for unfinished jobs....

The same file is touched by the -devel package. I suppose that there is a race
condition between those two packages.

Please ignore the fact that I am creating and installing an extra package via an
image package, this works fine. The problem also exists for "normal" packages.


So my question is: How should that be fixed?

My proposals are:

1. Add an option to disable nfsroot / ROOTDIR
 -> Image packages can have their own exclusive nfsroot
 -> With image packages the contents of ROOTDIR are not really useful

2. Lock ROOTDIR similar as was done with sysroot in commit 82d0922
 -> Might slow down targetinstall for no use

3. Lock each and every file or directory
 -> Could be rather complex for no real use

Currently, I use something like "@sleep 3" in .targetinstall, but this just
sucks and it even fails sometimes.


- Florian
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2018-10-16 12:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-16 12:31 Baeuerle, Florian [this message]
2018-10-16 13:04 ` Michael Olbrich

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=d7a05fcf2e1dbf0bf6a44075639bb3e89fe941df.camel@allegion.com \
    --to=florian.baeuerle@allegion.com \
    --cc=ptxdist@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox