From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: "Vanveerdeghem, Simon" <Simon.Vanveerdeghem@barco.com>
Cc: yocto@yoctoproject.org
Subject: Re: Shared DL_DIR with other users
Date: Tue, 26 Mar 2013 14:25:58 +0000 [thread overview]
Message-ID: <1755052.MPJKo0IPHY@helios> (raw)
In-Reply-To: <8D433CD511BE4646B47F8B31C900818E0CB1C53C@kndmex01.barco.com>
Hi Simon,
On Tuesday 26 March 2013 14:37:36 Vanveerdeghem, Simon wrote:
> We are using Yocto with a couple of users, to prevent that our build
> server has duplicates of downloads, we share the DL_DIR.
>
> But we have problems with permissions. When a user run yocto, it will
> checkout sources, or download tar files with permissions 644 with the
> username of the user who is running yocto.
>
> When another user will do a cleanall of a bitbake recipe, yocto will
> remove the tarball and the svn workingcopy, but because the permissions
> aren't 777 It cannot remove all the files (yocto doesn't throw an error
> here).
>
> When that other user will do a fetch of thqt recipe, yocto will checkout
> the svn directory, it will leave as good as clean because it says
> internally "Skipped ." (yocto doesn't throw an error here) then it wil
> take a tarball of it, again the tarball has only a directory named of
> the checked out module, but have no sources. (yocto doesn't throw an
> error here)
>
> When yocto will building the sources it will fail because the tar was
> clean, and there is nothing to build.
>
> The rootcause of this problem is that the shared download directory only
> use 644. (We can workaround this with the .profile (we can set in the
> .profile a standard permission mask, but then you always use that mask,
> something we don't want)
It's likely that sharing DL_DIR directly between multiple users is not a
heavily tested scenario. One way around it which is fairly widely used
though is to set up a local mirror shared by all of the build machines
and keep DL_DIR separate on each machine. There is some information on
how to do that here:
https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_create_my_own_source_download_mirror_.3F
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
next prev parent reply other threads:[~2013-03-26 14:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-26 13:37 Shared DL_DIR with other users Vanveerdeghem, Simon
2013-03-26 14:25 ` Paul Eggleton [this message]
2013-03-26 19:25 ` Mark Hatle
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=1755052.MPJKo0IPHY@helios \
--to=paul.eggleton@linux.intel.com \
--cc=Simon.Vanveerdeghem@barco.com \
--cc=yocto@yoctoproject.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.