another shot at mime-support recipe split
cover another shot at mime-support recipe split
The original mime-support recipe split was already merged, so this is trying to fix it up.
- Drop (the new) mailcap recipe. After I have sent the original I have noticed that there is a mailcap recipe already from Fedora. Though the new Debian recipe seemed to come with more bells and whistles (manuals, scripts), they shouldn't be duplicated. Still, this might be up for a discussion if this is really the step it should go. Feel free to comment.
- Move media-types recipe to its own folder
- Fix up the mime-support RPROVIDES in the media-types recipe, to be able to add mime-support to IMAGE_INSTALL and get a similar result as before (hopefully this time it will really work - at least it did on my machine)
Gyorgy Sarvari (3):
mailcap: drop recipe (debian version)
media-types: fix RPROVIDES
packagegroup-meta-oe: add media-types
.../packagegroups/packagegroup-meta-oe.bb | 2 +-
.../media-types_14.0.0.bb | 6 ++-
.../mime-support/mailcap_3.75.bb | 54 -------------------
3 files changed, 5 insertions(+), 57 deletions(-)
rename meta-oe/recipes-support/{mime-support => media-types}/media-types_14.0.0.bb (89%)
delete mode 100644 meta-oe/recipes-support/mime-support/mailcap_3.75.bbPATCH 1/3 mailcap: drop recipe (debian version)
The same recipe is already provided, sourced from Fedora.
--- .../mime-support/mailcap_3.75.bb | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 meta-oe/recipes-support/mime-support/mailcap_3.75.bb
meta-oe/recipes-support/mime-support/mailcap_3.75.bb deleted +0 -54
@@ -1,54 +0,0 @@ -SECTION = "base" -SUMMARY = "MIME files 'mailcap', and support programs" -LICENSE = "PD & Bellcore" -LICENSE:${PN} = "PD" -# mailcap.man's license is Bellcore -LICENSE:${PN}-doc = "PD & Bellcore" -LIC_FILES_CHKSUM = "file://debian/copyright;md5=881b8546ad4d18ee8d55d42c93cda0b6" - -DEPENDS = "file" -RDEPENDS:${PN} = "perl" -RRECOMMENDS:${PN} = "file" - -SRC_URI = "${DEBIAN_MIRROR}/main/m/${BPN}/${BPN}_${PV}.tar.xz" -SRC_URI[sha256sum] = "44876c7241693ab32de57e799052b19a575ae0e27e85380537225708f562738f" -S = "${UNPACKDIR}/work" - -FILES:${PN} += " ${libdir}/mime" - -docdir:append = "/${BPN}" - -do_install () { - install -d ${D}${sysconfdir} - install -d ${D}${libdir}/mime/packages - install -d ${D}${docdir} - install -d ${D}${sbindir} - install -d ${D}${bindir} - install -d ${D}${mandir}/man1 - install -d ${D}${mandir}/man5 - install -d ${D}${mandir}/man8 - install -m 644 mailcap ${D}${libdir}/mime - install -m 644 mailcap.order ${D}${sysconfdir}/ - install -m 644 mailcap.man ${D}${mandir}/man5/mailcap.5 - install -m 644 mailcap.order.man ${D}${mandir}/man5/mailcap.order.5 - install -m 755 update-mime ${D}${sbindir}/ - install -m 644 update-mime.man ${D}${mandir}/man8/update-mime.8 - install -m 755 run-mailcap ${D}${bindir}/ - install -m 644 run-mailcap.man ${D}${mandir}/man1/run-mailcap.1 - install -m 644 debian/changelog ${D}${docdir} - install -m 644 debian/copyright ${D}${docdir} - install -m 755 debian-view ${D}${libdir}/mime/ - install -m 644 mailcap.entries ${D}${libdir}/mime/packages/mailcap - cd ${D}${mandir}; gzip -9fv */* - cd ${D}${docdir}; gzip -9v changelog - cd ${D}${bindir}; ln -s run-mailcap see - cd ${D}${bindir}; ln -s run-mailcap edit - cd ${D}${bindir}; ln -s run-mailcap compose - cd ${D}${bindir}; ln -s run-mailcap print - cd ${D}${mandir}/man1; ln -s run-mailcap.1.gz see.1.gz - cd ${D}${mandir}/man1; ln -s run-mailcap.1.gz edit.1.gz - cd ${D}${mandir}/man1; ln -s run-mailcap.1.gz compose.1.gz - cd ${D}${mandir}/man1; ln -s run-mailcap.1.gz print.1.gz -} - -INHIBIT_DEFAULT_DEPS = "1"
PATCH 2/3 media-types: fix RPROVIDES
In reply to Gyorgy SarvariInstead of PROVIDING mime-support, it should RPROVIDE the same package. It allows adding "mime-support" to IMAGE_INSTALL to get a similar behavior than before mime-support recipe was split into two differently named recipes.
Also, rename the recipe's folder to match the recipe name.
---
.../{mime-support => media-types}/media-types_14.0.0.bb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
rename meta-oe/recipes-support/{mime-support => media-types}/media-types_14.0.0.bb (89%)meta-oe/recipes-support/media-types/media-types_14.0.0.bb renamed from meta-oe/recipes-support/mime-support/media-types_14.0.0.bb +4 -2
@@ -35,5 +35,7 @@ INHIBIT_DEFAULT_DEPS = "1" # Debian used to have mime-support package which was media-types and # mailcap recipes in one. -PROVIDES += "mime-support" -RDEPENDS:mime-support = "mailcap" +PACKAGES += "mime-support" +RPROVIDES:${PN} += "mime-support" +RDEPENDS:mime-support += "${PN} mailcap" +ALLOW_EMPTY:mime-support = "1"
PATCH 3/3 packagegroup-meta-oe: add media-types
In reply to Gyorgy SarvariAlso remove the old mime-types recipe, which is the old name of media-types.
--- meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +1 -1
@@ -821,8 +821,8 @@ RDEPENDS:packagegroup-meta-oe-support = "\ lvm2 \ mailcap \ mbuffer \ + media-types \ mg \ - mime-support \ minini \ monit \ mscgen \