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
*** Bug 59714 has been marked as a duplicate of this bug. ***
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.
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.
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?
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.
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.
Created attachment 36971 [details, diff] mime-types -> run-mailcap
Created attachment 36972 [details, diff] mime-types -> pine
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().
All packages directly providing /etc/mime.types now RDEPEND on app-misc/mime-types. Thanks Andrej and Stuart.