LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 04-23-2005, 03:06 AM   #1
FreeThinkerJim
Member
 
Registered: Apr 2005
Location: Las Vegas, Nevada, USA
Distribution: Ubntu Intrepid Ibex (8.10)
Posts: 129

Rep: Reputation: 15
Problems running emerge -u system Gentoo


As soon as I heard that Gentoo 2005.0 was out, I did an emerge -u system and walked away. When I came back, I found, much to my dismay, that it failed about 41 packages in, on a package named file-4.12 with this error

Code:
../src/file -C -m magic
WARNING: type lestring16 >0 Description: %15.15s invalid
lt-file: could not find any magic files!
make[2]: *** [magic.mgc] Error 255
make[2]: Leaving directory `/var/tmp/portage/file-4.12/work/file-4.12/magic'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/file-4.12/work/file-4.12'
make: *** [all] Error 2
As I sat there scratching my head, I wondered, What the hell is a magic file?

Thanks in advance
 
Old 04-24-2005, 02:28 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Try running:
Code:
$ export MAGIC=/usr/share/misc/file/magic
Then retry the emerge ('emerge --resume' if you haven't emerged anything since the failure)

You did update your /etc/make.profile symlink right?

Last edited by bulliver; 04-24-2005 at 02:32 PM.
 
Old 04-24-2005, 03:31 PM   #3
FreeThinkerJim
Member
 
Registered: Apr 2005
Location: Las Vegas, Nevada, USA
Distribution: Ubntu Intrepid Ibex (8.10)
Posts: 129

Original Poster
Rep: Reputation: 15
The strange thing is the path you gave me doesn't exist on my system, but I did find a file called magic in /usr/share/misc/file, so I set my MAGIC to /usr/share/misc/file/magic, but that didn't work. As far as I know, I updated the make.profile link right--I is linked to a directory named ../usr/portage/profiles/default-linux/x86/2005.0. If I cd into /etc/make.profile, it gives me 3 subdirectories: 2.4, packages, and parent. This is correct, isn't it? The merge failed both before and after I updated this link (I was told to update it when I upgraded to portage) So, what's going on here?

Thanks a lot for the help.
 
Old 04-24-2005, 08:06 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
The strange thing is the path you gave me doesn't exist on my system, but I did find a file called magic in /usr/share/misc/file
Well, that's exactly the path I gave you, right? The 'magic' file will be there from the previous version of 'file' you have installed.

Quote:
so I set my MAGIC to /usr/share/misc/file/magic, but that didn't work.
That advice was just a shot in the dark I gleamed from a quick google of your error message. It looks like you have found a known bug. There are a few ideas for getting around it if you read through the comments here:
http://bugs.gentoo.org/show_bug.cgi?id=73786

I would suggest an 'emerge sync' if you have not done so recently, as the bug is marked resolved.

Quote:
As far as I know, I updated the make.profile link right--I is linked to a directory named ../usr/portage/profiles/default-linux/x86/2005.0. If I cd into /etc/make.profile, it gives me 3 subdirectories: 2.4, packages, and parent. This is correct, isn't it?
Yeah, that's right....
 
Old 04-24-2005, 11:36 PM   #5
FreeThinkerJim
Member
 
Registered: Apr 2005
Location: Las Vegas, Nevada, USA
Distribution: Ubntu Intrepid Ibex (8.10)
Posts: 129

Original Poster
Rep: Reputation: 15
I've got good news--the bug report helped out, and I've successfully updated my system to 2005.0. Wow what a mess that was. Turns out there's a bad file in the file-4.12 source tarball. Thank you so much, bulliver for helping me out!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
emerge --emptytree system problems, gentoo problems!!! alamuru420123 Linux - Distributions 6 10-11-2005 10:48 PM
gentoo install hangs on emerge system Moebius Linux - Software 3 09-19-2005 02:23 PM
gentoo: emerge system: crap! lyonsd Linux - Distributions 4 02-14-2005 08:35 PM
Gentoo problem with mirrors when running "emerge system" Snerkel Linux - Distributions 2 10-18-2004 01:46 PM
Gentoo: emerge system fails AncAlAgoN Linux - Laptop and Netbook 2 05-23-2004 09:55 PM

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

All times are GMT -5. The time now is 02:16 PM.

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