public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Shared distfiles directory between different virtual machines
@ 2024-11-06 17:16 whiteman808
  2024-11-06 17:24 ` [gentoo-user] " Holger Hoffstätte
  0 siblings, 1 reply; 5+ messages in thread
From: whiteman808 @ 2024-11-06 17:16 UTC (permalink / raw
  To: gentoo-user

Hi,

Let's say I have a shared by NFS /var/cache/distfiles directory between 
miscellaneous Gentoo VMs whose purpose is to build binaries for 
different machines.

How can I prevent portage from overwriting the same source files in the 
distfiles directory and possible checksum mismatches caused by that 
behavior if I tell emerge to update @world simultaneously on these 
different binary package servers?

Thank you,
whiteman808


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user] Re: Shared distfiles directory between different virtual machines
  2024-11-06 17:16 [gentoo-user] Shared distfiles directory between different virtual machines whiteman808
@ 2024-11-06 17:24 ` Holger Hoffstätte
  2024-11-06 17:39   ` whiteman808
  0 siblings, 1 reply; 5+ messages in thread
From: Holger Hoffstätte @ 2024-11-06 17:24 UTC (permalink / raw
  To: gentoo-user

On 2024-11-06 18:16, whiteman808 wrote:
> How can I prevent portage from overwriting the same source files in
> the distfiles directory and possible checksum mismatches caused by
> that behavior if I tell emerge to update @world simultaneously on
> these different binary package servers?

portage uses a lockfile for every download, so the problem does not exist.

-h


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: Shared distfiles directory between different virtual machines
  2024-11-06 17:24 ` [gentoo-user] " Holger Hoffstätte
@ 2024-11-06 17:39   ` whiteman808
  2024-11-06 17:53     ` Filip Kobierski
  2024-11-07  0:34     ` Grant Taylor
  0 siblings, 2 replies; 5+ messages in thread
From: whiteman808 @ 2024-11-06 17:39 UTC (permalink / raw
  To: gentoo-user

What in case when two lock files are being created at the same time? How 
can I prevent in this case emerge fail?

On 11/6/24 18:24, Holger Hoffstätte wrote:
> On 2024-11-06 18:16, whiteman808 wrote:
>> How can I prevent portage from overwriting the same source files in
>> the distfiles directory and possible checksum mismatches caused by
>> that behavior if I tell emerge to update @world simultaneously on
>> these different binary package servers?
> 
> portage uses a lockfile for every download, so the problem does not exist.
> 
> -h
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: Shared distfiles directory between different virtual machines
  2024-11-06 17:39   ` whiteman808
@ 2024-11-06 17:53     ` Filip Kobierski
  2024-11-07  0:34     ` Grant Taylor
  1 sibling, 0 replies; 5+ messages in thread
From: Filip Kobierski @ 2024-11-06 17:53 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org


[-- Attachment #1.1: Type: text/plain, Size: 835 bytes --]

AFAIR creating a file (adding an entry to a dir's list) is an atomic operation so that problem also is solved.


-------- Original Message --------
On 11/6/24 18:39, whiteman808 <whiteman808@paraboletancza.org> wrote:

>  What in case when two lock files are being created at the same time? How
>  can I prevent in this case emerge fail?
>  
>  On 11/6/24 18:24, Holger Hoffstätte wrote:
>  > On 2024-11-06 18:16, whiteman808 wrote:
>  >> How can I prevent portage from overwriting the same source files in
>  >> the distfiles directory and possible checksum mismatches caused by
>  >> that behavior if I tell emerge to update @world simultaneously on
>  >> these different binary package servers?
>  >
>  > portage uses a lockfile for every download, so the problem does not exist.
>  >
>  > -h
>  >
>  
>  
>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: Shared distfiles directory between different virtual machines
  2024-11-06 17:39   ` whiteman808
  2024-11-06 17:53     ` Filip Kobierski
@ 2024-11-07  0:34     ` Grant Taylor
  1 sibling, 0 replies; 5+ messages in thread
From: Grant Taylor @ 2024-11-07  0:34 UTC (permalink / raw
  To: gentoo-user

On 11/6/24 11:39, whiteman808 wrote:
> What in case when two lock files are being created at the same time? How 
> can I prevent in this case emerge fail?

Have you actually experienced this type of failure?

Or are you just thinking about worst case?

I've been sharing distfiles between multiple systems over NFS for years 
and not had a problem.  Granted, usually the systems aren't emerging at 
the same time.



-- 
Grant. . . .


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-11-07  0:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 17:16 [gentoo-user] Shared distfiles directory between different virtual machines whiteman808
2024-11-06 17:24 ` [gentoo-user] " Holger Hoffstätte
2024-11-06 17:39   ` whiteman808
2024-11-06 17:53     ` Filip Kobierski
2024-11-07  0:34     ` Grant Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox