Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
-bash: /usr/bin/qpkg: cannot execute binary file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
dogshu
Apprentice
Apprentice


Joined: 22 Jun 2003
Posts: 163
Location: New Haven, CT, USA

PostPosted: Tue Jan 06, 2004 1:19 am    Post subject: -bash: /usr/bin/qpkg: cannot execute binary file Reply with quote

I'm running a sparc32 system and everything is up to date with the stable tree. I tried to "emerge unmerge gentoolkit" then "emerge gentoolkit" but I still have the same problem:

leech edb # qpkg
-bash: /usr/bin/qpkg: cannot execute binary file

vi verifies that this file is indeed binary, and here's what "file" has to say:
leech edb # file /usr/bin/qpkg
/usr/bin/qpkg: data

how do I get qpkg working? These are my CFLAGS, if that matters:
CFLAGS="-msupersparc -O2 -pipe"

thanks,
Jim
Back to top
View user's profile Send private message
esammer
Retired Dev
Retired Dev


Joined: 05 Apr 2003
Posts: 155
Location: NY, US

PostPosted: Tue Jan 06, 2004 8:07 am    Post subject: Reply with quote

That's really strange because qpkg is just a shell script...

Code:

esammer@ripley esammer $ file /usr/bin/qpkg
/usr/bin/qpkg: Bourne-Again shell script text executable
Back to top
View user's profile Send private message
dogshu
Apprentice
Apprentice


Joined: 22 Jun 2003
Posts: 163
Location: New Haven, CT, USA

PostPosted: Wed Jan 07, 2004 12:11 am    Post subject: Reply with quote

very strange indeed.

/usr/portage/app-portage/gentoolkit/files/scripts/qpkg was corrupt on this system.

I run my own portage mirror for my machines, and I verified that app-portage/gentoolkit/files/scripts/qpkg was intact on that system... it was definately not corrupt.

However, /usr/portage/app-portage/gentoolkit/files/scripts/qpkg was still corrupted on my sparc even after I did an "emerge sync". I guess files that already exist are not synced?

Anyway, I manually copied the qpkg file from my mirror, and qpkg works now.
Back to top
View user's profile Send private message
esammer
Retired Dev
Retired Dev


Joined: 05 Apr 2003
Posts: 155
Location: NY, US

PostPosted: Wed Jan 07, 2004 12:19 am    Post subject: Reply with quote

Keep in mind that sync only syncs the ebuilds themselves. You should delete the saved package in /usr/portage/distfiles/gentoolkit* and emerge again and see if that helps.
Back to top
View user's profile Send private message
dogshu
Apprentice
Apprentice


Joined: 22 Jun 2003
Posts: 163
Location: New Haven, CT, USA

PostPosted: Wed Jan 07, 2004 3:02 pm    Post subject: Reply with quote

actually there is no distfile for gentoolkit, everything is kept under /usr/portage/app-portage/gentoolkit/files/.

Manually copying the file from another gentoo machine worked for me, though I suppose I could have also deleted /usr/portage/app-portage/gentoolkit/files/scripts/qpkg and "emerge sync"ed again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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