Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Problem with removed ebuild's.

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
vikwiz
n00b
n00b
User avatar
Posts: 50
Joined: Sat Mar 01, 2003 12:42 am
Location: Budapest
Contact:
Contact vikwiz
Website

Problem with removed ebuild's.

  • Quote

Post by vikwiz » Thu Dec 18, 2003 12:22 pm

Hi,
there is a problem with emerging ebuild's or even tbz2's, when they are removed from portage.
I red about similar problems on the forum, but without solution. Please tell me, if there are any help in this, and read my proposal, too.

So the problem is, when you want to re-emerge an already instelled, maybe removed package version. Particulary I did remove my 'net-snmp' package (to clean up the mess with 'ucd-snmp' installed, too. Why they don't mask each other is an other question.)

After I tried to reinstall net-snmp only, but the portage version doesn't works. So trying to emerge the already compiled 'tbz2' version, and emerge tells an 'aux_get' error, no ebuild found.

At this point I question what can you do with all of your tbz2's, if they are not valid after an 'emerge sync'? It's not logical, because all information is present in the 'tbz2', if it's handled correctly. Why portage doesn't use that, instead of missing /usr/portage version?

Now I'm without a working snmpd, which I need, so please, help with ideas!

Thanks,
viktor
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Thu Dec 18, 2003 1:49 pm

Please provide exact error messages, otherwise it's hard to see what is wrong.
Top
vikwiz
n00b
n00b
User avatar
Posts: 50
Joined: Sat Mar 01, 2003 12:42 am
Location: Budapest
Contact:
Contact vikwiz
Website

  • Quote

Post by vikwiz » Thu Dec 18, 2003 10:02 pm

OK, lets see it... And very strange thing happened: it only wrong when '-p' is present.

So when pretend emerging the tbz2:

Code: Select all

emerge net-snmp -pvK

These are the packages that I would merge, in order:

Calculating dependencies ...done!
!!! aux_get(): ebuild for 'net-analyzer/net-snmp-5.0.8' does not exist at:
!!!            /usr/portage/net-analyzer/net-snmp/net-snmp-5.0.8.ebuild
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2133, in ?
    mydepgraph.display(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1136, in display
    for ebuild_iuse in string.split(portage.portdb.aux_get(x[2],["IUSE"])[0], " "):
  File "/usr/lib/python2.2/site-packages/portage.py", line 3760, in aux_get
    raise KeyError
KeyError
And without '-p':

Code: Select all

emerge net-snmp -vK

Calculating dependencies ...done!
>>> emerge (1 of 1) net-analyzer/net-snmp-5.0.8 to /
>>> extracting info
>>> extracting net-snmp-5.0.8
>>> Merging net-analyzer/net-snmp-5.0.8 to /
/usr/sbin/ebuild.sh: line 1196: /var/db/pkg/net-analyzer/net-snmp-5.0.8/net-snmp-5.0.8.ebuild: No such file or directory

!!! ERROR: net-analyzer/net-snmp-5.0.8 failed.
!!! Function , Line 1196, Exitcode 1
!!! error sourcing ebuild

--- /etc/
--- /etc/init.d/
>>> /etc/init.d/net-snmpd
--- /var/
--- /var/lib/
>>> /var/lib/net-snmp/
...
So finaly it successed to emerge, but with error messages, and pretend is definitly wrong.

Compiling the new release is an other issue, related to that ebuild, should I fill a bug-report about?

My urgent problem is solved now, but it's still buggy a bit...
I always pretend before real work, as other also I suppose.

Portage version: 2.0.49-r15
I don't want to rsync now, as I saw many messages about broken portage codes, I don't want to mess my system up.
Top
dma
Guru
Guru
Posts: 437
Joined: Fri Jan 31, 2003 9:13 pm
Location: Charlotte, NC, USA
Contact:
Contact dma
Website

  • Quote

Post by dma » Sat Dec 20, 2003 3:36 am

Try this:

Code: Select all

cp /var/db/pkg/net-analyzer/net-snmp-5.0.8/net-snmp-5.0.8.ebuild /usr/portage/net-analyzer/net-snmp/
ebuild /usr/portage/net-analyzer/net-snmp/net-snmp-5.0.8.ebuild digest
Maybe that will help. It will restore the old ebuild from your var database, but it won't help if they removed or radically changed any eclasses it depended on at the time.
Top
vikwiz
n00b
n00b
User avatar
Posts: 50
Joined: Sat Mar 01, 2003 12:42 am
Location: Budapest
Contact:
Contact vikwiz
Website

  • Quote

Post by vikwiz » Tue Dec 23, 2003 12:18 pm

dma wrote:Try this:

Code: Select all

cp /var/db/pkg/net-analyzer/net-snmp-5.0.8/net-snmp-5.0.8.ebuild /usr/portage/net-analyzer/net-snmp/
ebuild /usr/portage/net-analyzer/net-snmp/net-snmp-5.0.8.ebuild digest
Maybe that will help. It will restore the old ebuild from your var database, but it won't help if they removed or radically changed any eclasses it depended on at the time.
And /usr/portage/net-analyzer/net-snmp/files can be missing, also.
It seems the best is for the stability for your production system *not* to rsync too often, and save actual portage snaphots.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

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

 

 

magic