GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
That message is misleading and probably means that portage can't find the binary package. "-K" forces the usage of binary packages, so, if no binary package can be found, it fails. Admittedly the error message is a bit weird.
So, please, do this:
Code:
$ emerge -pv portage
Note down the exact version of the package that portage is trying to emerge, then go to tinderbox and download the same exact version. After that, put it in /usr/portage/packages/sys-apps/ (sys-apps is the portage category where the package "portage" lives). If you have adjusted PKGDIR in your make.conf, then adjust this path accordingly.
After this, the emerge -K command should work.
You could untar them, but I only advice that if portage is broken beyong repair. If emerge is working we should use it instead of randomly throwing files into the fs.
Also, if you need clarification in some step, please, just ask and I'll try to explain more clearly.
* IMPORTANT: 5 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... done!
emerge: there are no ebuilds to satisfy "=portage-2.2.7".
Just a side note: I notice, there's a subdir under /usr/portage/packages, named "portage" with some ebuilds in it. Just a shoot: Maybe putting the tbz file there will help emerge find it?
Last edited by fuorviato; 02-18-2014 at 08:55 AM.
Reason: additional information
Setting PKGDIR is not needed if you are using the default /usr/portage/packages.
Make sure you don't have a duplicated make.conf, both /etc/portage/make.conf and /etc/make.conf are valid. So, double check that.
Besides that, I'd start afresh, and do this:
Code:
$ cd /usr/portage/packages
$ rm -rf *
$ mkdir sys-apps
$ cd sys-apps
$ wget http://tinderbox.dev.gentoo.org/default-linux/x86/sys-apps/portage-2.2.7.tbz2
$ emerge -vaK portage
If that doesn't tell you that it wants to install from binary repo (or fails at all) then something is screwed.
If your package tells you that it's masked because of CHOST, edit /usr/portage/packages/Packages (it's just a plain text file), look for the package "portage", and then for the CHOST line, then change from i486 to i686, and repeat the emerge command.
Make sure you don't have a duplicated make.conf, both /etc/portage/make.conf and /etc/make.conf are valid. So, double check that.
I got rid of /etc/portage/make.conf just at start, so It's not duplicated.
I also noted if it's the case, emerge will notify the user when issuing any command.
Summing up: You want me to remove the whole portage tree under /usr/portage, make a new category-dir and emerge the binary file. Right?
I posted that as fast as I could to avoid a little disaster (nothing compared to the rest though). There's no need to wipe portage. And there's no need for you to put that in make.conf either. As I said, if you are using the defaults, you don't need to put them explicitly in make.conf.
/usr/portage is the default for $PORTDIR, so no need to add it.
Same goes for /usr/portage/packages for $PKGDIR and /usr/portage/distfiles for $DISTDIR.
Please, remove the contents of /usr/portage/packages, then proceed as I told you in the post above, and see if that helps at all
Sorry. I was close to the disaster once again.
Now, I've just adjusted PKGDIR to the default value but it seems there is no directory named packages under /usr/portage.
Quote:
chroot) Gentoo-20121221 ~ # cd /usr/portage/packages
bash: cd: /usr/portage/packages: No such file or directory
Under /usr/portage lays my whole "tree".
I hope I'm not missing anything obvious.
OK. Just followed your instructions.
At first emerge would complain about the CHOST, but after changing it in Packages file it went fine (what is that file about BTW?).
Now portage shouts about python.
Quote:
emerge -vaK portage
* IMPORTANT: 5 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
emerge: there are no ebuilds to satisfy "dev-lang/python:3.2".
(dependency required by "sys-apps/portage-2.2.7" [binary])
(dependency required by "portage" [argument])
So I guess, I'll have to download it as binary and emerge in the same way prior to repairing portage.
You can try that. If something fails I can provide native i686 binaries. As long as they don't conflict with my installation.
As for your question, well, I admittedly no speciallist in how Gentoo handles bins, I rarelly needed that, but it seems to register some aspects on how the binaries residing there were compiled. Note that, unlike ebuilds, binary build do have an specific arch, chost, cflags, uses, etc.
Following your strategy I've made it to emerge portage
At first python needed sqlite so I created the right directory under /usr/portage/packages, download sqlite it and emerged. After emerging sqlite, I did the same with python and eventually, portage. All of this required manual changing chost entry in the updating Packages file.
So far so good. Seems to be good strategy to follow with the rest, right?
Hopefully. There won't be many deps to download and install.
Last edited by fuorviato; 02-18-2014 at 03:15 PM.
Reason: typo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.