Skip to contentSkip to conversation

webkitgtk: Add a recommends on shared-mime-info.

PATCH In review Carlos Alberto Lopez Perez 2 participants 3 messages Aug 17, 2017 – Aug 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 webkitgtk: Add a recommends on shared-mime-info.

* without this package installed any WebKitGTK+ based browser will fail to correctly open html files (and other files) from disk (file:// URIs). It will open them as plain txt files.

---
 meta/recipes-sato/webkit/webkitgtk_2.16.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-sato/webkit/webkitgtk_2.16.6.bb +1 -1
index 387965970e..df355d29ba 100644
@@ -98,7 +98,7 @@ SECURITY_CFLAGS_append_aarch64 = " -fPIE"
 
 FILES_${PN} += "${libdir}/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so"
 
-RRECOMMENDS_${PN} += "ca-certificates"
+RRECOMMENDS_${PN} += "ca-certificates shared-mime-info"
 
 # http://errors.yoctoproject.org/Errors/Details/20370/
 ARM_INSTRUCTION_SET_armv4 = "arm"
Signature · 1 line
2.11.0
#1 lore raw
Quoted 19 lines · Carlos Alberto Lopez Perez

* without this package installed any WebKitGTK+ based browser will fail to correctly open html files (and other files) from disk (file:// URIs). It will open them as plain txt files.

---
 meta/recipes-sato/webkit/webkitgtk_2.16.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-sato/webkit/webkitgtk_2.16.6.bb +0 -0
index 387965970e..df355d29ba 100644
@@ -98,7 +98,7 @@ SECURITY_CFLAGS_append_aarch64 = " -fPIE"
 
 FILES_${PN} += "${libdir}/webkit2gtk-4.0/injected-bundle/

libwebkit2gtkinjectedbundle.so"

meta/recipes-sato/webkit/webkitgtk_2.16.6.bb SECURITY_CFLAGS_append_aarch64 = " -fPIE" · line 101

Quoted 2 lines
meta/recipes-sato/webkit/webkitgtk_2.16.6.bb +1 -1
-RRECOMMENDS_${PN} += "ca-certificates"
+RRECOMMENDS_${PN} += "ca-certificates shared-mime-info"

This isn't wrong , I'll just add some context.

If/when my gdk-pixbuf patch from three days ago lands gdk-pixbuf will always rdepend on shared-mime-info (and webkitgtk probably can't be installed without gdk-pixbuf) so the problem would disappear anyway. This just a happy accident so this patch still seems valid.

There's also https://bugzilla.yoctoproject.org/show_bug.cgi?id=11792 about whether glib should bring in shared-mime-info so GIO file sniffing wouldn't be broken (the database is 3.6MB which is not a big number in a webkit context but can be for others).

Jussi