Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43274 - magic.mime path is wrong
Summary: magic.mime path is wrong
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-29 05:08 UTC by Heinrich Wendel (RETIRED)
Modified: 2004-05-04 09:49 UTC (History)
0 users

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 Heinrich Wendel (RETIRED) gentoo-dev 2004-02-29 05:08:56 UTC
configure searchs for magic.mime in

/usr/local/apache/conf/magic
/usr/local/etc/apache/conf/magic
/etc/apache/magic
/etc/httpd/conf/magic
/usr/share/magic.mime
/usr/share/misc/magic.mime
/etc/magic.mime

but it's located in /usr/share/misc/file/magic.mime in gentoo.
So the configure flag "--with-mime-magic" should be changed to "--with-mime-magic=/usr/share/misc/file/magic.mime".
Comment 1 Tal Peer (RETIRED) gentoo-dev 2004-02-29 08:19:36 UTC
Might also be because buildonf reorders things in the configure script (and then we'll just need to edit the configure script manually to get a smaller patch).
Comment 2 Tal Peer (RETIRED) gentoo-dev 2004-02-29 08:59:45 UTC
Ignore that, wrong bug....
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-03-07 20:50:41 UTC
fixed in cvs.
Comment 4 Ryan 2004-05-04 07:10:37 UTC
magic.mime comes from sys-apps/file and in earlier versions (at least version 3.39, which I had installed) it's located in /usr/share/misc. I got the compile error (actually a configure error) because php was now looking for it in /usr/share/misc/file. By upgrading to sys-apps/file-4.06, the problem is fixed. I think the RDEPEND entry in the php-sapi eclass should be changed to >=sys-apps/file-4.06 so that people with old versions of file won't get a compile error.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-04 09:49:14 UTC
ryan: ok, i've done that (>=sys-apps/file-4.02)