public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Eli Schwartz <eschwartz@gentoo.org>
To: Dr Rainer Woitok <rainer.woitok@gmail.com>, gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Where does Portage store what USE flags are required for binhost packages?
Date: Sun, 8 Dec 2024 13:13:41 -0500	[thread overview]
Message-ID: <eb61599d-d531-4b78-9de9-a5886e1392ac@gentoo.org> (raw)
In-Reply-To: <6755dded.050a0220.16f112.3296@mx.google.com>


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

On 12/8/24 12:57 PM, Dr Rainer Woitok wrote:
> Eli,
> 
> On Sun, 8 Dec 2024 10:24:42 -0500 you wrote:
> 
>> ...
>> By the way you don't need to download the Packages file manually. It
>> will be in /var/cache/edb/binhost/ using a directory structure based on
>> your binhost uri.
> 
> Great.  Thankyou for this pointer!
> 
> But: the file "/var/cache/edb/binhost/**/Packages" has a time stamp from
> December 2-nd and differs from the "Packages" file I downloaded manually
> yesterday.   So when does Portage sync it?   I ran "emaint sync -A" yes-
> terday and then experimented with "emerge --pretend".   But this did not
> update file "/var/cache/edb/binhost/**/Packages".
> 
> In any case  the differences between these two files  could well explain
> my problems.


It is definitely downloaded by emerge --pretend --getbinpkg.

It is not downloaded by emaint sync.

If neither FEATURES="getbinpkg" nor EMERGE_DEFAULT_OPTS="--getbinpkg"
are set, then you have to manually pass --getbinpkg on the CLI every
time you want binpackages -- correspondingly, it will only download the
Packages file when you manually pass --getbinpkg (as root). In theory,
this should mean you always have a fresh cached index any time you
actually check for binary updates...

It also will check the timestamp to figure out whether to redownload.
The downloaded file will have a new "DOWNLOAD_TIMESTAMP:" field but you
can ignore that specific line. A timestamp of December 2 is definitely
way too old.

...

So the two possibilities I can think of are that:

- you ran --pretend as non-root, so emerge couldn't update the index

- you usually update with -uDU --getbinpkg, and didn't pass --getbinpkg
  with --pretend


-- 
Eli Schwartz

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

      reply	other threads:[~2024-12-08 18:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-08 14:57 [gentoo-user] Where does Portage store what USE flags are required for binhost packages? Dr Rainer Woitok
2024-12-08 15:24 ` Eli Schwartz
2024-12-08 17:57   ` Dr Rainer Woitok
2024-12-08 18:13     ` Eli Schwartz [this message]

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=eb61599d-d531-4b78-9de9-a5886e1392ac@gentoo.org \
    --to=eschwartz@gentoo.org \
    --cc=gentoo-user@lists.gentoo.org \
    --cc=rainer.woitok@gmail.com \
    /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