Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74592 - app-sci/magic interferes with sys-apps/file
Summary: app-sci/magic interferes with sys-apps/file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-15 23:44 UTC by Keri Harris
Modified: 2005-07-08 19:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keri Harris gentoo-dev 2004-12-15 23:44:41 UTC
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 Daniel Black (RETIRED) gentoo-dev 2004-12-16 02:46:13 UTC
I'm thinking this is going to  be an upstream problem for app-sci/magic (http://vlsi.cornell.edu/magic/)
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2004-12-20 00:51:38 UTC
Just wrote a mail to the maintainers. We'll see.
Comment 3 Olivier Fisette (RETIRED) gentoo-dev 2005-06-26 19:26:41 UTC
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 SpanKY gentoo-dev 2005-06-26 21:57:26 UTC
considering the pkg is built from source wouldnt it be trivial to sed .magic to
.magic-cad or something ?
Comment 5 John G Malecki 2005-07-08 09:54:06 UTC
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 John G Malecki 2005-07-08 11:47:46 UTC
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 Olivier Fisette (RETIRED) gentoo-dev 2005-07-08 19:20:57 UTC
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.