Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New portage require updating "Packages" text file #14

Open
asainkujovic opened this issue Sep 12, 2024 · 1 comment
Open

New portage require updating "Packages" text file #14

asainkujovic opened this issue Sep 12, 2024 · 1 comment

Comments

@asainkujovic
Copy link

asainkujovic commented Sep 12, 2024

Your script is still listed in gentoo documentation for quickpkg.
For older portage (those with default PKGDIR is /var/portage/package) it is working well.
But in newer portage (where default PKGDIR is /var/cache/binpkgs) it seems that file /var/cache/binpkgs/Packages need to be created (or our temporary PKGDIR/Packages), so I had to add two lines in the end before last line:

rm *.xpak *.tbz2
PKGDIR=${WORKDIR} emaint --fix binhost
PKGDIR=${WORKDIR} emerge -K "=${CATEGORY}/${PF}"         # last line as it was before, stays the same
  • rm line avoid errors shown in emerge command like '...xpak is not valid package'.
  • emaint --fix binhost' generates needed Packages text file.

Both lines are correct and harmless for older portage too. So can you update your script with this or better solution?

@thesamesam
Copy link

Alternatively, you can do FEATURES="-pkgdir-index-trusted" but it'll be slower.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants