Bug 74592 - app-sci/magic interferes with sys-apps/file
Bug#: 74592 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: keri@gentoo.org
Component: Applications
URL: 
Summary: app-sci/magic interferes with sys-apps/file
Keywords:  
Status Whiteboard: 
Opened: 2004-12-15 23:44 0000
Description:   Opened: 2004-12-15 23:44 0000
app-sci/magic creates ~/.magic which interferes with sys-apps/file.
Even without magic installed, you can still see this problem:

# cd ~
# touch .magic
# file
file: could not find any magic files!
# rm .magic
# file
Usage: file [-bcikLnNsvz] [-f namefile] [-F separator] [-m magicfiles] file...
       file -C -m magicfiles
Try `file --help' for more information.

------- Comment #1 From Daniel Black 2004-12-16 02:46:13 0000 -------
I'm thinking this is going to  be an upstream problem for app-sci/magic
(http://vlsi.cornell.edu/magic/)

------- Comment #2 From Patrick Kursawe 2004-12-20 00:51:38 0000 -------
Just wrote a mail to the maintainers. We'll see.

------- Comment #3 From Olivier Fisette 2005-06-26 19:26:41 0000 -------
No response from upstream so I made "sys-apps/file" a blocker for 
"sci-electronics/magic". Could base-system do the same and add 
"sci-electronics/magic" as a blocker for "sys-apps/file"? 

------- Comment #4 From SpanKY 2005-06-26 21:57:26 0000 -------
considering the pkg is built from source wouldnt it be trivial to sed .magic to
.magic-cad or something ?

------- Comment #5 From John G Malecki 2005-07-08 09:54:06 0000 -------
I'm a newbie and I'd really like to download magic even though it will "break"
the file command.  Can anyone suggest a workaround?  (I've tried hacking the
.ebuild file but this portage tool is reasonably robust.)

------- Comment #6 From John G Malecki 2005-07-08 11:47:46 0000 -------
Sorry for the question.  I performed

  emerge -aO magic

and that seems to solve my problem with how to force a download.  It didn't build
properly but I'm looking into that.  I'm sure I'll solve all of my problems but
if anyone wants to send me some time-saving hints I'm all ears.

------- Comment #7 From Olivier Fisette 2005-07-08 19:20:57 0000 -------
vapier: 
 
Now that you mention it, it seems like the obvious thing to do... It's in CVS 
now. (The user's startup file is now "~/.magic-cad" rather than "~/.magic".) 
 
John: 
 
Thanks for the notices. I'll get back to you via private mail.