Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

SOLVED ! moved ebuild from overlay to local overlay.

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

SOLVED ! moved ebuild from overlay to local overlay.

  • Quote

Post by CooSee » Wed Nov 26, 2025 10:22 pm

using ungoogled-chromium from pf4public - version 142.0.7444.162_p1 was removed and *.175_p1 became stable.

don't need the new one atm - takes a long time to compile, more than 8 hours 8O

i copied the old one one to my local overlay - now portage is complaining that the old version is not in the database.

is there a way to tell portage to just add it to the database without re-emerge ?

8)

EDIT: sorry guys - found a solution - changed the Repo entry in /var/cache/binpkgs/Packages

EDIT1: also changed Repo to my local overlay in /var/db/pkg/www-client/ungoogled-chromium-142.0.7444.162_p1/repository <<< if you also use buildpkg FEATURES.
Last edited by CooSee on Thu Nov 27, 2025 1:30 am, edited 2 times in total.
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
rab0171610
l33t
l33t
Posts: 719
Joined: Sat Dec 24, 2022 1:41 am

  • Quote

Post by rab0171610 » Wed Nov 26, 2025 10:32 pm

Someone with more experience or expertise in this area will probably correct me but
In /var/db/package/www-client there should be a parent directory for the ebuild.
You might be able to back that directory up somewhere and experiment by carefully editing the file 'repository'.
Change the repo name in the file from gentoo to localrepo or whatever the name of the current repo is.
There might also be a file name REPO_REVISIONS. The word gentoo may need to be changed there too (unlikely).
If that doesn't work then you can restore the original directory.
This is assuming the ebuild is for the exact same version you currently have installed, that it is installable -- is in the correct directory i.e. /var/db/repos/localrepo/www-client/ungoogled-chromium/ and has a regenerated ebuild manifest.
Top
rab0171610
l33t
l33t
Posts: 719
Joined: Sat Dec 24, 2022 1:41 am

  • Quote

Post by rab0171610 » Wed Nov 26, 2025 10:47 pm

Don't be sorry. I have encountered this situation myself and always just reinstalled it. It is irritating when it is the exact same package that is already installed but only the ebuild repo has changed. I would still like to hear from someone on what is considered the best practice in this situation.
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Wed Nov 26, 2025 10:55 pm

exact same package
this must be or it won't work, i assume.
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
sam_
Developer
Developer
User avatar
Posts: 2814
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Fri Nov 28, 2025 1:07 am

rab0171610 wrote:Don't be sorry. I have encountered this situation myself and always just reinstalled it. It is irritating when it is the exact same package that is already installed but only the ebuild repo has changed. I would still like to hear from someone on what is considered the best practice in this situation.
OP was talking about avoiding an upgrade between *162_p1 -> *175_p1, no? You're talking about something else (either something like changed-deps, or where two repos provide a package and you're using --newrepo which is not on by default).
Top
rab0171610
l33t
l33t
Posts: 719
Joined: Sat Dec 24, 2022 1:41 am

  • Quote

Post by rab0171610 » Fri Nov 28, 2025 6:23 am

No, unless I misunderstood, I believe I am discussing the same thing.
Package is installed from ::gentoo repo but later that same ebuild/version number is copied over to a local repo, for example:

Package version that is installed gets dropped from gentoo repo, higher version is stabilized.
User does not wish to upgrade, wishes to temporarily keep the lower version.
Higher versions are then masked.
User copies ebuild for lower version which was dropped but is currently installed to a local repo.
User does not want to reinstall the package.

Does portage recognize a currently installed package when the repo where the ebuild is located is no longer the same as when the package was installed?
i.e. www-client/chromium-142.0.7444.162_p1::pf4public -> www-client/chromium-142.0.7444.162_p1::localrepo

Or does it complain and user would need to reinstall the package so that the portage database for the installed package reflects the new repo name/location. www-client/chromium-142.0.7444.162_p1::localrepo does not match the installed version, www-client/chromium-142.0.7444.162_p1::pf4public because even though they are the same package version, the repo where the ebuild is found has changed.

Other than editing the file /var/db/pkg/www-client/ungoogled-chromium-142.0.7444.162_p1/repository to change the word pf4public to localrepo, is there a better way to have portage understand the currently installed version (*::pf4public) should now be associated with the same version from a new repo * ::localrepo without reinstalling the package?

If I am mistaken or misunderstood, I apologize.

[edited for clarity]
Top
sam_
Developer
Developer
User avatar
Posts: 2814
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Fri Nov 28, 2025 9:43 am

Oh, I see what you mean! Thanks for explaining.
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Fri Nov 28, 2025 3:22 pm

yes, exactly.

because the database entry is still the old one - if it's possible, to tell portage via --emerge option, e.g. --CLO (changed_to_local_overlay) --include www-client/ungoogled-chromium-142.0.7444.162_p1 that only the overlay has changed and everything else is still the same,

without recompiling, only to update the database.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
rab0171610
l33t
l33t
Posts: 719
Joined: Sat Dec 24, 2022 1:41 am

  • Quote

Post by rab0171610 » Fri Nov 28, 2025 4:35 pm

CooSee wrote:yes, exactly.

because the database entry is still the old one - if it's possible, to tell portage via --emerge option, e.g. --CLO (changed_to_local_overlay) --include www-client/ungoogled-chromium-142.0.7444.162_p1 that only the overlay has changed and everything else is still the same,

without recompiling, only to update the database.

8)
Thanks for confirming that we are on the same page CooSee. I have found myself in this situation often over the years and have always just reinstalled the packages to satisfy portage but I would rather just edit the database and change the repository name. Normally this would not be a concern, but as you pointed out for long build times or when building on slower machines it would be easier to avoid unnecessary rebuilds.

So the question remains . . . Is carefully editing portage package database files manually the only way to prevent an unnecessary re-installation (and thus subsequent resulting rebuild) of a currently installed package when the only change is that the exact ebuild used to install that package has been moved to a local repository?

I am glad it worked for you but I hesitate to recommend that to someone else. I don't want to suggest that users bypass portage by manually editing files but in this case I see the benefit if it avoids unnecessary re-installations.
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Fri Nov 28, 2025 5:00 pm

- i do NOT recommend this -

Backup before, of course :!:
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
rab0171610
l33t
l33t
Posts: 719
Joined: Sat Dec 24, 2022 1:41 am

  • Quote

Post by rab0171610 » Fri Nov 28, 2025 5:01 pm

CooSee wrote:- i do NOT recommend this -

Backup before, of course :!:
:lol:
Top
Post Reply

11 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy