LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 02-18-2014, 02:19 AM   #16
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405

Well, let's stop and think for a moment.

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.

Last edited by i92guboj; 02-18-2014 at 02:26 AM.
 
Old 02-18-2014, 08:51 AM   #17
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
Quote:
emerge -pv portage
shows the requested version is 2.2.7 and that corresponds to the one I'm trying to install.

Quote:
emerge -pv portage

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-apps/portage-2.2.7 USE="(ipc) -build -doc -epydoc (-pypy2_0) -python2 -python3 (-selinux) -xattr" LINGUAS="-ru" PYTHON_TARGETS="python2_7 python3_3 (-pypy2_0) -python2_6 -python3_2 (-python3_4)" 886 kB

Total: 1 package (1 reinstall), Size of downloads: 886 kB

Anyway. I copied the tbz archive to /usr/portage/packages/sys-apps and now it is there

Quote:
ls sys-apps/po
policycoreutils/ portage/ portage-2.2.7.tbz2 powerpc-utils/
I've also adjusted the /etc/make/conf PKGBUILD so portage finds the packages

Quote:
chroot) Gentoo-20121221 portage # grep -i PKG /etc/make.conf
PKGDIR="${PORTDIR}/packages/"
FEATURES="buildsyspkg"
But. If I emerge -K, it fails again:

Quote:
emerge -K "=portage-2.2.7"

* 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
 
Old 02-18-2014, 10:23 AM   #18
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.

For this concrete package, this should be fine.
 
Old 02-18-2014, 12:29 PM   #19
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
I don't know if it's important, but I've jus realized my portage tree lays directly under /usr/portage, so I adjusted the make.conf accordingly.

Quote:
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}"
Is that correct?

Quote:
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?
 
Old 02-18-2014, 01:14 PM   #20
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
No!

I want you to remove the contents of /usr/portage/packages/
 
Old 02-18-2014, 01:16 PM   #21
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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
 
Old 02-18-2014, 01:48 PM   #22
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
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.

Last edited by fuorviato; 02-18-2014 at 01:52 PM.
 
Old 02-18-2014, 02:32 PM   #23
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
No, just create it if it doesn't exist. I have no idea if it comes by default in the standard portage tree.

Maybe it's created the first time you use quickpkg, or when you emerge a package with FEATURES="buildpkg" (or "buildsyspkg").

But you can just create it manually. Just to be sure you can do this and see where it's pointing by default.

Code:
emerge --info|grep PKGDIR
 
Old 02-18-2014, 02:45 PM   #24
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
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.
 
Old 02-18-2014, 02:51 PM   #25
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
Old 02-18-2014, 03:14 PM   #26
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
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
 
Old 02-18-2014, 03:20 PM   #27
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Some packages might pose a probles, for example glibc and gcc. If you need to reinstall those let me know. don't install those from tinderbox.
 
Old 02-18-2014, 03:29 PM   #28
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
in the previous post, you told me to recover:
Quote:
portage, glibc, gcc, binutils, coreutils, sandbox, libtool, python and probably some others.
Portage and python are already ahead. I can start with binutils, coreutils,sanbox,libtool and repair glibc and gcc at the end. What do you think?
 
Old 02-18-2014, 04:02 PM   #29
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Yes, but that was before knowing that the packages in tinderbox differ from your chost.

You should use bin packages only to restore your system to a point where portage can do its job.

So, if you can already emerge packages there's no need to continue that path. Just to test, can portage re-emerge itself now?
 
Old 02-18-2014, 04:12 PM   #30
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
Yes, it can . So, is the system in working-stage now?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ImageMagick-6.8.6-10 does have a broken headers, or I'm wrong? yars Slackware 3 02-05-2014 06:38 PM
LXer: The broken dreams of a Linux system administrator LXer Syndicated Linux News 0 08-14-2011 06:00 PM
LXer: Linux Defenders: Obeying — Not Challenging — a Broken System LXer Syndicated Linux News 0 12-11-2008 09:20 PM
broken X headers in security patch from 2007-03-07? cab15625 Slackware 6 04-12-2007 09:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 04:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration