View previous topic :: View next topic |
Author |
Message |
midnite Guru


Joined: 09 Apr 2006 Posts: 471 Location: Hong Kong
|
Posted: Sun Jun 01, 2025 10:30 pm Post subject: binrepos.conf "priority" vs listed order? |
|
|
https://wiki.gentoo.org/wiki/Binary_package_guide#Pulling_packages_from_a_binary_package_host
Quote: | When a package exists in multiple binary package repositories, the package is pulled from the binary package host with the highest priority. |
Quote: | The support for multiple binary package servers is somewhat incomplete. If several servers serve a binary package for the same package version, then only the first one will be considered. This can be problematic when these binary packages differ in their USE variable configuration and the USE variable configuration of a later binary package would match the systems configuration. |
These two statements seem contradictory. If the binary package from the first-listed server is always used, then the "priority" variable appears to be meaningless.
If both repositories offer version X of a package, under what circumstances would the package from the higher-priority repository (repoA) be fetched?
Code: | [repoB]
sync-uri = "https://mirrorB.example.com/gentoo-binpackages/"
priority = 50
[repoA]
sync-uri = "https://mirrorA.example.com/gentoo-binpackages/"
priority = 100 |
_________________ - midnite. |
|
Back to top |
|
 |
GDH-gentoo Veteran


Joined: 20 Jul 2019 Posts: 1890 Location: South America
|
Posted: Mon Jun 02, 2025 12:46 pm Post subject: Re: binrepos.conf "priority" vs listed order? |
|
|
midnite wrote: | https://wiki.gentoo.org/wiki/Binary_package_guide#Pulling_packages_from_a_binary_package_host
Quote: | When a package exists in multiple binary package repositories, the package is pulled from the binary package host with the highest priority. |
Quote: | The support for multiple binary package servers is somewhat incomplete. If several servers serve a binary package for the same package version, then only the first one will be considered. This can be problematic when these binary packages differ in their USE variable configuration and the USE variable configuration of a later binary package would match the systems configuration. |
These two statements seem contradictory. |
Why? If you interpret "the first one" in the second quote as meaning "the one with the highest priority", there's no contradiction. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer  |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though  |
|
|
Back to top |
|
 |
midnite Guru


Joined: 09 Apr 2006 Posts: 471 Location: Hong Kong
|
Posted: Mon Jun 02, 2025 4:44 pm Post subject: Re: binrepos.conf "priority" vs listed order? |
|
|
GDH-gentoo wrote: | Why? If you interpret "the first one" in the second quote as meaning "the one with the highest priority", there's no contradiction. |
Oops. I thought “the first one” meant the host listed on an earlier line in the configuration file. If it actually means “the one with the highest priority,” then there’s no contradiction.
Since the emerge option --binpkg-respect-use=y is normally enabled, binary packages built with mismatched USE flags will be ignored. I don’t see any issues with "blindly" picking up the first matching package. Does this behaviour only become significant when --binpkg-respect-use=n and a later binary package has a better match in the USE flags?
I’m not sure how to test this behaviour. Are there any two binary hosts where packages are built with different USE flags? _________________ - midnite. |
|
Back to top |
|
 |
GDH-gentoo Veteran


Joined: 20 Jul 2019 Posts: 1890 Location: South America
|
Posted: Mon Jun 02, 2025 5:44 pm Post subject: |
|
|
I suppose that the effect would be that Portage would build from source even if a binary package that matches the system's configuration is available in binary package hosts with lower priority, or would install a "worse" binary package from the preferred binary package host, depending on emerge options. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer  |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though  |
|
|
Back to top |
|
 |
|