Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35284 - python mime-type support not working with app-misc/mime-types
Summary: python mime-type support not working with app-misc/mime-types
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-07 12:37 UTC by Jodok Batlogg (RETIRED)
Modified: 2004-02-14 03:01 UTC (History)
1 user (show)

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


Attachments
corrected /usr/lib/python2.2/mimetypes.py file (mimetypes.py,14.21 KB, patch)
2003-12-07 12:42 UTC, Jodok Batlogg (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jodok Batlogg (RETIRED) gentoo-dev 2003-12-07 12:37:39 UTC
python (at least 2.2) doesn't expect (/usr/lib/python2.2/mimetypes.py) the mime.types file in /etc/mime.types, but the ebuild app-misc/mime-types copy the mime.types file to /etc
Comment 1 Jodok Batlogg (RETIRED) gentoo-dev 2003-12-07 12:42:24 UTC
Created attachment 21830 [details, diff]
corrected /usr/lib/python2.2/mimetypes.py file
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2003-12-13 17:02:49 UTC
this is something we definitely need to fix, but only for 2.2, because the changes you suggest are in python-2.3

the other bits like the apache mime.types file needs to be changed for gentoo specific paths too.

web-apps, what are the specific mime.type files that apache1 and apache2 use?
Comment 3 David Stanek 2003-12-30 06:02:07 UTC
I believe apache uses /etc/apache/conf/mime.types and apache 2 uses /etc/apache2/conf/mime.types.
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2004-02-14 03:01:24 UTC
this patch has made it into python-2.3.3.ebuild now. closing. thanks for your report.