Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/bin/mktemp corrupted, what package to fix?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
MisterX
n00b
n00b


Joined: 27 May 2003
Posts: 7
Location: Madison, AL

PostPosted: Sun Jun 01, 2003 4:25 pm    Post subject: /bin/mktemp corrupted, what package to fix? Reply with quote

Pardon the newbie question, but it appears my /bin/mktemp is corrupted. I get errors similar to this emerging several packages. Quake3 is just the latest victim...

# emerge quake3
Calculating dependencies ...done!
>>> emerge (1 of 1) app-games/quake3-1.32b to /
>>> md5 src_uri ;-) linuxq3apoint-1.32b.x86.run
* Adding group 'games' to your system ...
/bin/mktemp: line 1: Utilities for CVS administration.: command not found
/bin/mktemp: line 3: import: command not found
/bin/mktemp: line 4: import: command not found
/bin/mktemp: line 5: import: command not found
/bin/mktemp: line 6: import: command not found
/bin/mktemp: line 7: import: command not found
/bin/mktemp: line 9: syntax error near unexpected token `('
/bin/mktemp: line 9: `if not hasattr(time, 'timezone'):'
touch: file arguments missing
Try `touch --help' for more information.
* - Groupid: 35
groupadd: group games exists

!!! ERROR: app-games/quake3-1.32b failed.
!!! Function enewgroup, Line 628, Exitcode 9
!!! enewgroup failed


A quick glance over my /bin/mktemp file tells me it has been hammered by something. What package should I re-emerge to get it fixed? Is there some kind of emerge --verify or emerge --force that I should do to make sure mktemp gets fixed?
Back to top
View user's profile Send private message
shadow255
Guru
Guru


Joined: 04 Apr 2003
Posts: 406

PostPosted: Sun Jun 01, 2003 5:06 pm    Post subject: Reply with quote

Code:
$ qpkg -i -f /bin/mktemp
sys-apps/debianutils-1.16.7-r1 *
        A selection of tools from Debian [ http://packages.debian.org/unstable/base/debianutils.html ]

If you don't have qpkg on your system, you can get it by emerging app-admin/gentoolkit. I keep on finding great uses for it. Just last week I wanted to see which games I had emerged from portage:
Code:
$ qpkg -I app-games
app-games/abuse_sdl *
app-games/chromium *
app-games/crack-attack *
app-games/eboard *
app-games/enigma *
app-games/fortune-mod *
app-games/fortune-mod-bofh-excuses *
app-games/fortune-mod-hitchhiker *
app-games/frozen-bubble *
app-games/gnuchess *
app-games/kobodeluxe *
app-games/nethack *
app-games/racer-bin *
app-games/tuxracer *
app-games/xgalaga *

Okay, I thought it was awesome, but your mileage may vary. :P

For those who are used to rpm-style queries, there's also sys-apps/epm. I found that epm -qf /bin/mktemp works to identify the owning package, but epm -qif /bin/mktemp is more verbose than I like in order to just find out which version of the package is installed.

Good luck with your problem!
_________________
Vogon poetry is of course the third worst in the Universe. -- Douglas Adams, The Hitchhiker's Guide to the Galaxy
Back to top
View user's profile Send private message
MisterX
n00b
n00b


Joined: 27 May 2003
Posts: 7
Location: Madison, AL

PostPosted: Sun Jun 01, 2003 6:39 pm    Post subject: Nailed it Reply with quote

Thanks much, shadow255. emerged debianutils and all is well again. Also emerged qpkg, just what I needed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum