Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46476 - net-mail/metamail and net-mail/pine both install /etc/mime.types
Summary: net-mail/metamail and net-mail/pine both install /etc/mime.types
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 59714 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-01 05:51 UTC by Stuart Herbert (RETIRED)
Modified: 2004-08-15 16:20 UTC (History)
1 user (show)

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


Attachments
mime-types -> metamail (metamail.diff,16.40 KB, patch)
2004-08-07 13:10 UTC, Andrej Kacian (RETIRED)
Details | Diff
mime-types -> run-mailcap (run-mailcap.diff,14.51 KB, patch)
2004-08-07 13:11 UTC, Andrej Kacian (RETIRED)
Details | Diff
mime-types -> pine (pine.diff,6.17 KB, patch)
2004-08-07 13:11 UTC, Andrej Kacian (RETIRED)
Details | Diff
Possibly complete mime.types file (mime.types,17.11 KB, text/plain)
2004-08-07 13:42 UTC, Andrej Kacian (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Herbert (RETIRED) gentoo-dev 2004-04-01 05:51:19 UTC
Both packages try to install the same file /etc/mime.types.  Is this in breech of policy?

If there are other packages that try to do this too, maybe we need to strip this out into a package all on its own ...

Best regards,
Stu
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-08-07 10:52:01 UTC
*** Bug 59714 has been marked as a duplicate of this bug. ***
Comment 2 Andrej Kacian (RETIRED) gentoo-dev 2004-08-07 10:58:39 UTC
Another package providing /etc/mime.types is app-misc/mime-types and according to its description ("Provides mime.types file") I guess this is the one devs will want to provide the file.
Comment 3 Tuan Van (RETIRED) gentoo-dev 2004-08-07 11:20:46 UTC
Andrej,
If /etc/mime.types provided by app-misc/mime-types _works_ for both metamail and pine, we could have app-misc/mime-types to PROVIDE="virtual/mime-types" and meta mail/pine DEPEND="virtual/mime-types" then nuke /etc/mime.types from those two packages.
Comment 4 Tom Martin (RETIRED) gentoo-dev 2004-08-07 12:19:29 UTC
app-misc/run-mailcap provides it too.

I'm a big fan of this virtual idea, however if we only allow 
app-misc/mime-types to provide this file then there is no need for it. 
We simply strip the mime.types from other packages and make them depend 
on app-misc/mime-types.

Two more thoughts:
1) What would be the best way to strip mime.types out of these ebuilds 
if they're included in the software distribution itself, and installed 
through make?

2) Are there any major differences between these mime.types files that 
would block a move to DEPENDing on app-misc/mime-types?
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2004-08-07 12:46:35 UTC
Best way to remove /etc/mime.types from package is probably deleting the file from the sandbox image directory just before the image gets copied to live system.
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2004-08-07 13:10:34 UTC
Created attachment 36970 [details, diff]
mime-types -> metamail

I've created diffs to compare /etc/mime.types provided by so far known
packages. (attachments follow)

Looks like mime.types from metamail and run-mailcap are most complete, whereas
pine's mime.types only supplies few MIME types.

I suggest using f.e. metamail's mime.types, add whatever additional types from
run-mailcap and put resulting file to mime-types package. There are not many
differences between metamail and run-mailcap, mostly added/removed extensions
or entries on different places in file.
Comment 7 Andrej Kacian (RETIRED) gentoo-dev 2004-08-07 13:11:03 UTC
Created attachment 36971 [details, diff]
mime-types -> run-mailcap
Comment 8 Andrej Kacian (RETIRED) gentoo-dev 2004-08-07 13:11:24 UTC
Created attachment 36972 [details, diff]
mime-types -> pine
Comment 9 Andrej Kacian (RETIRED) gentoo-dev 2004-08-07 13:42:43 UTC
Created attachment 36975 [details]
Possibly complete mime.types file

Ok, I've gone through entire metamail -> run-mailcap diff file and file
attached is a combination of both. It doesn't get more complete. :)

Now it's up to you to put this file in app-misc/mime-types, so we (probably I
:) can modify other ebuilds:
 - to DEPEND (or rather RDEPEND, perhaps) on app-misc/mime-types,
 - adding a "rm -f ${D}/etc/mime.types" line at the end of src_install() or
pkg_preinst().
Comment 10 Tom Martin (RETIRED) gentoo-dev 2004-08-15 16:20:06 UTC
All packages directly providing /etc/mime.types now RDEPEND on app-misc/mime-types. Thanks Andrej and Stuart.