pcmanfm: update to 1.2.3
cover pcmanfm: update to 1.2.3
This updates pcmanfm and its supporting libraries libfm and menu-cache to the latest version.
Tested with core-image-sato on a qemux86-64 machine and a custom image on armv7 hardware.
Due to a circular dependency between menu-cache and libfm the menu-cache patch requires the libfm patch.
This obsoletes the following two patches which have not (yet) been applied:
http://patchwork.openembedded.org/patch/79087/
http://patchwork.openembedded.org/patch/79089/
Max Krummenacher (3):
libfm: update to 1.2.3
menu-cache: update to 1.0.0
pcmanfm: update to 1.2.3
.../menu-cache/files/Fix-segfault.patch | 31 ------------------- .../menu-cache/menu-cache_0.4.1.bb | 21 ------------- .../menu-cache/menu-cache_1.0.0.bb | 16 ++++++++++ meta/recipes-sato/pcmanfm/pcmanfm_1.1.2.bb | 33 -------------------- meta/recipes-sato/pcmanfm/pcmanfm_1.2.3.bb | 35 +++++++++++++++++++++ .../libfm-1.1.2.2/fix-make-parallelism-issue.patch | 31 ------------------- .../libfm-1.1.2.2/ignore_automake_warnings.patch | 14 --------- meta/recipes-support/libfm/libfm-extra_1.2.3.bb | 21 +++++++++++++ meta/recipes-support/libfm/libfm_1.1.2.2.bb | 25 --------------- meta/recipes-support/libfm/libfm_1.2.3.bb | 36 ++++++++++++++++++++++ 10 files changed, 108 insertions(+), 155 deletions(-) delete mode 100644 meta/recipes-graphics/menu-cache/files/Fix-segfault.patch delete mode 100644 meta/recipes-graphics/menu-cache/menu-cache_0.4.1.bb create mode 100644 meta/recipes-graphics/menu-cache/menu-cache_1.0.0.bb delete mode 100644 meta/recipes-sato/pcmanfm/pcmanfm_1.1.2.bb create mode 100644 meta/recipes-sato/pcmanfm/pcmanfm_1.2.3.bb delete mode 100644 meta/recipes-support/libfm/libfm-1.1.2.2/fix-make-parallelism-issue.patch delete mode 100644 meta/recipes-support/libfm/libfm-1.1.2.2/ignore_automake_warnings.patch create mode 100644 meta/recipes-support/libfm/libfm-extra_1.2.3.bb delete mode 100644 meta/recipes-support/libfm/libfm_1.1.2.2.bb create mode 100644 meta/recipes-support/libfm/libfm_1.2.3.bb
Signature · 1 line
1.8.4.5
PATCH 1/3 libfm: update to 1.2.3
split out libfm-extra as a seperate recipe to break a circular dependency with newer menu-cache recipe.
This obsoletes ignore_automake_warnings.patch.
This obsoletes fix-make-parallelism-issue.patch.
https://github.com/lxde/libfm/commit/24c8eab43cb5b79ca917d67a2c5924aca34c80c9
The library part of libfm has its license changed by the authors to LGPL:
http://git.lxde.org/gitweb/?p=lxde/libfm.git;a=commit;h=e0d250aeb40f26ceead82d4b4c7af3b58ab34930
--- .../libfm-1.1.2.2/fix-make-parallelism-issue.patch | 31 ------------------- .../libfm-1.1.2.2/ignore_automake_warnings.patch | 14 --------- meta/recipes-support/libfm/libfm-extra_1.2.3.bb | 21 +++++++++++++ meta/recipes-support/libfm/libfm_1.1.2.2.bb | 25 --------------- meta/recipes-support/libfm/libfm_1.2.3.bb | 36 ++++++++++++++++++++++ 5 files changed, 57 insertions(+), 70 deletions(-) delete mode 100644 meta/recipes-support/libfm/libfm-1.1.2.2/fix-make-parallelism-issue.patch delete mode 100644 meta/recipes-support/libfm/libfm-1.1.2.2/ignore_automake_warnings.patch create mode 100644 meta/recipes-support/libfm/libfm-extra_1.2.3.bb delete mode 100644 meta/recipes-support/libfm/libfm_1.1.2.2.bb create mode 100644 meta/recipes-support/libfm/libfm_1.2.3.bb
meta/recipes-support/libfm/libfm-1.1.2.2/fix-make-parallelism-issue.patch deleted +0 -31
@@ -1,31 +0,0 @@ -Fix make parallelism issue - -- remove pkginclude_HEADERS ( LIBFM_INCLUDES and LIBFM_GTK_INCLUDES -variables are empty) -- if we don't remove it then we will have a race condition between the code -that tries to symlink ${includedir}/libfm-1.0 to ${includedir}/libfm and the -am autogenerated code from the pkginclude_HEADERS definition which -tries to create pkgincludedir (${includedir}/libfm); -- if pkgincludedir is created before the symlink the symlink will be created -in the ${includedir}/libfm dir and it will have libfm-1.0 as name which is -wrong (we need the ${includedir}/libfm symlink for pcmanfm) - -Upstream-Status: Pending -Signed-off-by: Constantin Musca <[email protected]> - -Index: libfm-1.1.0/src/Makefile.am -=================================================================== ---- libfm-1.1.0.orig/src/Makefile.am -+++ libfm-1.1.0/src/Makefile.am -@@ -211,11 +211,6 @@ libfmgtkinclude_HEADERS = \ - gtk/fm-gtk-marshal.h \ - $(NULL) - --pkginclude_HEADERS = \ -- $(LIBFM_INCLUDES) \ -- $(LIBFM_GTK_INCLUDES) \ -- $(NULL) -- - EXTRA_LTLIBRARIES = libfm-gtk.la libfm-gtk3.la - - lib_LTLIBRARIES = libfm.la @LIBFM_GTK_LTLIBRARIES@
meta/recipes-support/libfm/libfm-1.1.2.2/ignore_automake_warnings.patch deleted +0 -14
@@ -1,14 +0,0 @@ -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Marko Lindqvist <[email protected]> -diff -Nurd libfm-1.1.2.2/configure.ac libfm-1.1.2.2/configure.ac ---- libfm-1.1.2.2/configure.ac 2013-08-22 23:16:09.000000000 +0300 -+++ libfm-1.1.2.2/configure.ac 2013-10-25 01:35:18.110323079 +0300 -@@ -3,7 +3,7 @@ - - AC_PREREQ([2.63]) - AC_INIT([libfm], [1.1.2.2], [http://pcmanfm.sourceforge.net/]) --AM_INIT_AUTOMAKE([-Wall -Werror foreign]) -+AM_INIT_AUTOMAKE([-Wall foreign]) - AC_CONFIG_MACRO_DIR(m4) - AC_CONFIG_HEADERS([config.h])
meta/recipes-support/libfm/libfm-extra_1.2.3.bb new file +21 -0
@@ -0,0 +1,21 @@ +SUMMARY = "Library for file management" +HOMEPAGE = "http://pcmanfm.sourceforge.net/" + +LICENSE = "LGPLv2+" +LIC_FILES_CHKSUM = "file://src/fm-extra.h;beginline=8;endline=21;md5=ef1f84da64b3c01cca447212f7ef6007" + +SECTION = "x11/libs" +DEPENDS = "glib-2.0 intltool-native" + +SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/libfm-${PV}.tar.xz" + +SRC_URI[md5sum] = "3ff38200701658f7e80e25ed395d92dd" +SRC_URI[sha256sum] = "c692f1624a4cbc8d1dd55f3b3f3369fbf5d26f63a916e2c295230b2344e1fbf9" + +S = "${WORKDIR}/libfm-${PV}" + +EXTRA_OECONF = "--with-extra-only --with-gtk=no" + +inherit autotools-brokensep pkgconfig gtk-doc + +do_configure[dirs] =+ "${S}/m4"
meta/recipes-support/libfm/libfm_1.1.2.2.bb deleted +0 -25
@@ -1,25 +0,0 @@ -SUMMARY = "Library for file management" -HOMEPAGE = "http://pcmanfm.sourceforge.net/" - -LICENSE = "GPLv2 & GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ - file://src/fm.h;endline=22;md5=e64555171770a551e3b51cc06fc62f1a \ - file://src/base/fm-config.h;endline=23;md5=ad0fc418c3cf041eea35ddb3daf37f17" - -SECTION = "x11/libs" -DEPENDS = "glib-2.0 pango gtk+ menu-cache intltool-native libexif" - -SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/libfm-${PV}.tar.gz \ - file://fix-make-parallelism-issue.patch \ - file://ignore_automake_warnings.patch \ - " - -SRC_URI[md5sum] = "ea3d09b23ef4c37cb84ae57ea16b8f08" -SRC_URI[sha256sum] = "158e2b6974350d2dab15932b496bb4d448553e60bbf7cdfe4d6e9bd99d19d682" - -inherit autotools-brokensep pkgconfig gtk-doc - -do_configure[dirs] =+ "${S}/m4" - -PACKAGES += "${PN}-mime" -FILES_${PN}-mime = "${datadir}/mime/"
meta/recipes-support/libfm/libfm_1.2.3.bb new file +36 -0
@@ -0,0 +1,36 @@ +SUMMARY = "Library for file management" +HOMEPAGE = "http://pcmanfm.sourceforge.net/" + +LICENSE = "GPLv2+ & LGPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ + file://src/fm.h;beginline=8;endline=21;md5=ef1f84da64b3c01cca447212f7ef6007 \ + file://src/base/fm-config.h;beginline=10;endline=23;md5=ef1f84da64b3c01cca447212f7ef6007 \ + file://src/fm-gtk.h;beginline=6;endline=19;md5=646baa4955c04fe768f2ca27b92ac8dd" + + +SECTION = "x11/libs" +DEPENDS = "glib-2.0 pango gtk+ menu-cache intltool-native libexif libfm-extra" + +SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/libfm-${PV}.tar.xz" + +SRC_URI[md5sum] = "3ff38200701658f7e80e25ed395d92dd" +SRC_URI[sha256sum] = "c692f1624a4cbc8d1dd55f3b3f3369fbf5d26f63a916e2c295230b2344e1fbf9" + +inherit autotools-brokensep pkgconfig gtk-doc + +do_configure[dirs] =+ "${S}/m4" + +PACKAGES += "${PN}-mime" +FILES_${PN}-mime = "${datadir}/mime/" +FILES_${PN}-dbg += "${libdir}/libfm/modules/.debug" + +do_install_append () { + # remove files which are part of libfm-extra + rm -f ${D}/usr/include/libfm-1.0/fm-xml-file.h + rm -f ${D}/usr/include/libfm-1.0/fm-version.h + rm -f ${D}/usr/include/libfm-1.0/fm-extra.h + rm -f ${D}/usr/lib/pkgconfig/libfm-extra.pc + rm -f ${D}/usr/lib/libfm-extra.so* + rm -f ${D}/usr/lib/libfm-extra.a + rm -f ${D}/usr/lib/libfm-extra.la +}
Signature · 1 line
1.8.4.5
Re: [oe][PATCH 1/3] libfm: update to 1.2.3
Hi Max,
meta/recipes-support/libfm/libfm_1.2.3.bb line 36
Quoted 11 lines · Max Krummenacher
meta/recipes-support/libfm/libfm_1.2.3.bb new file +10
-0+do_install_append () { + # remove files which are part of libfm-extra + rm -f ${D}/usr/include/libfm-1.0/fm-xml-file.h + rm -f ${D}/usr/include/libfm-1.0/fm-version.h + rm -f ${D}/usr/include/libfm-1.0/fm-extra.h + rm -f ${D}/usr/lib/pkgconfig/libfm-extra.pc + rm -f ${D}/usr/lib/libfm-extra.so* + rm -f ${D}/usr/lib/libfm-extra.a + rm -f ${D}/usr/lib/libfm-extra.la +}
Don't use absolute paths such as /usr/lib/ as those paths are not constant
- multilib environments or x32 for example use different values for ${libdir}.
https://autobuilder.yoctoproject.org/main/builders/nightly-x32/builds/150/steps/BuildImages/logs/stdio
is an example of how this can break the build.
Ross
Re: [oe][PATCH 1/3] libfm: update to 1.2.3
Hi Ross
Thank you for looking into this.
2015-01-07 16:17 GMT+01:00 Burton, Ross <[email protected]>:
Quoted 3 lines
Don't use absolute paths such as
/usr/lib/as those paths are not constant - multilib environments or x32 for example use different values for ${libdir}.
I will rework the patch along with the menu-cache one and resend a v2 of the patch set.
Regards
Max
PATCH 2/3 menu-cache: update to 1.0.0
In reply to Max Krummenachermenu-cache depends on fmlib-extra and thus requires the split of the libfm recipe in version 1.2.3.
This obsoletes Fix-segfault.patch.
menu-cache license has been changed by the authors from GPL to LGPL:
http://git.lxde.org/gitweb/?p=lxde/menu-cache.git;a=commit;h=7972913d8e47e4970b9aa70267cb87fe7eb3a8b4
http://git.lxde.org/gitweb/?p=lxde/menu-cache.git;a=commit;h=08fe520c52a79d425504ba631afbea5fd62cc735
--- .../menu-cache/files/Fix-segfault.patch | 31 ---------------------- .../menu-cache/menu-cache_0.4.1.bb | 21 --------------- .../menu-cache/menu-cache_1.0.0.bb | 16 +++++++++++ 3 files changed, 16 insertions(+), 52 deletions(-) delete mode 100644 meta/recipes-graphics/menu-cache/files/Fix-segfault.patch delete mode 100644 meta/recipes-graphics/menu-cache/menu-cache_0.4.1.bb create mode 100644 meta/recipes-graphics/menu-cache/menu-cache_1.0.0.bb
meta/recipes-graphics/menu-cache/files/Fix-segfault.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From a497ea6aae3994b7f6527ef7599dd95baf2ad841 Mon Sep 17 00:00:00 2001 -From: Laurentiu Palcu <[email protected]> -Date: Mon, 29 Apr 2013 12:04:20 +0300 -Subject: [PATCH] Fix segfault - -Apparently, g_io_channel_unref() was called twice: once in the -menu-cache's on_client_closed() callback and once from the finalize -function, g_io_unix_finalize()/g_io_win32_finalize(), which is called -anyway when the source is removed. - -Upstream-Status: Pending -Signed-off-by: Laurentiu Palcu <[email protected]> ---- - menu-cache-daemon/menu-cached.c | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/menu-cache-daemon/menu-cached.c b/menu-cache-daemon/menu-cached.c -index e246bb4..a10b6db 100644 ---- a/menu-cache-daemon/menu-cached.c -+++ b/menu-cache-daemon/menu-cached.c -@@ -579,7 +579,6 @@ static void on_client_closed(gpointer user_data) - } - } - /* DEBUG("client closed"); */ -- g_io_channel_unref(ch); - } - - static gboolean on_client_data_in(GIOChannel* ch, GIOCondition cond, gpointer user_data) --- -1.7.9.5 -
meta/recipes-graphics/menu-cache/menu-cache_0.4.1.bb deleted +0 -21
@@ -1,21 +0,0 @@ -SUMMARY = "Library for caching application menus" -DESCRIPTION = "A library creating and utilizing caches to speed up freedesktop.org application menus" -HOMEPAGE = "http://lxde.sourceforge.net/" - -LICENSE = "GPLv2 & GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ - file://libmenu-cache/menu-cache.h;endline=29;md5=26571532593adb17a37eac396260532c \ - file://menu-cache-daemon/menu-cached.c;endline=22;md5=fcecb7d315c57ef804103fa9cdab7111" - -SECTION = "x11/libs" -DEPENDS = "glib-2.0 zlib" - -SRC_URI = "${SOURCEFORGE_MIRROR}/lxde/menu-cache-${PV}.tar.gz \ - file://Fix-segfault.patch \ - " - -SRC_URI[md5sum] = "20fed982f5d8e6ec8a56a5b48894ecf0" -SRC_URI[sha256sum] = "4fa9408e353fedba5b7314cbf6b6cd06d873a1424e281aa050d88bb9c0a0191e" - - -inherit autotools pkgconfig gtk-doc
meta/recipes-graphics/menu-cache/menu-cache_1.0.0.bb new file +16 -0
@@ -0,0 +1,16 @@ +SUMMARY = "Library for caching application menus" +DESCRIPTION = "A library creating and utilizing caches to speed up freedesktop.org application menus" +HOMEPAGE = "http://lxde.sourceforge.net/" + +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=0964c689fcf4c21c6797ea87408416b6" + +SECTION = "x11/libs" +DEPENDS = "glib-2.0 intltool-native libfm-extra" + +SRC_URI = "${SOURCEFORGE_MIRROR}/lxde/${PN}-${PV}.tar.xz" + +SRC_URI[md5sum] = "4a8e6c1a86d5e64ec725d850a4abfbad" +SRC_URI[sha256sum] = "ff7df437bbfd3119c5f662c6d209b98f15de03a7203308c6b56a4c1e1d419aaf" + +inherit autotools gettext pkgconfig gtk-doc
Signature · 1 line
1.8.4.5
Re: [oe][PATCH 2/3] menu-cache: update to 1.0.0
Quoted 2 lines · Max Krummenacher
+SRC_URI = "${SOURCEFORGE_MIRROR}/lxde/${PN}-${PV}.tar.xz"
Don't use ${PN} as in multilib environments that isn't what you expect:
DEBUG: Fetcher failure: Fetch command failed with exit code 8, output:http://sources.openembedded.org/lib64-menu-cache-1.0.0.tar.xz:
BPN is PN without any magic prefixes, so use that in variables like SRC_URI. For convenience, ${BP} is ${BPN}-${PV} so you can use that in SRC_URI.
Ross
PATCH 3/3 pcmanfm: update to 1.2.3
In reply to Max Krummenacher--- meta/recipes-sato/pcmanfm/pcmanfm_1.1.2.bb | 33 ---------------------------- meta/recipes-sato/pcmanfm/pcmanfm_1.2.3.bb | 35 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 33 deletions(-) delete mode 100644 meta/recipes-sato/pcmanfm/pcmanfm_1.1.2.bb create mode 100644 meta/recipes-sato/pcmanfm/pcmanfm_1.2.3.bb
meta/recipes-sato/pcmanfm/pcmanfm_1.1.2.bb deleted +0 -33
@@ -1,33 +0,0 @@ -SUMMARY = "Fast lightweight tabbed filemanager" -HOMEPAGE = "http://pcmanfm.sourceforge.net/" - -LICENSE = "GPLv2 & GPLv2+ & LGPLv2.1+" -LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ - file://src/pcmanfm.h;endline=22;md5=417b3855771a3a87f8ad753d994491f0 \ - file://src/gseal-gtk-compat.h;endline=21;md5=46922c8691f58d124f9420fe16149ce2" - -SECTION = "x11" -DEPENDS = "gtk+ startup-notification libfm intltool-native" -DEPENDS_append_poky = " libowl" - - -COMPATIBLE_HOST = '(x86_64.*|i.86.*|aarch64.*|arm.*|mips.*|powerpc.*|sh.*)-(linux|freebsd.*)' - -SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/pcmanfm-${PV}.tar.gz \ - file://gnome-fs-directory.png \ - file://gnome-fs-regular.png \ - file://gnome-mime-text-plain.png \ - file://emblem-symbolic-link.png \ - file://no-desktop.patch" - -SRC_URI[md5sum] = "41104699e653ff2b0a9a9e80a257d6a2" -SRC_URI[sha256sum] = "23ee33b34066ac83ce9a98bc9930049e69839438fb60489bd453bec8c2068950" - -inherit autotools pkgconfig - -do_install_append () { - install -d ${D}/${datadir} - install -d ${D}/${datadir}/pixmaps/ - - install -m 0644 ${WORKDIR}/*.png ${D}/${datadir}/pixmaps -}
meta/recipes-sato/pcmanfm/pcmanfm_1.2.3.bb new file +35 -0
@@ -0,0 +1,35 @@ +SUMMARY = "Fast lightweight tabbed filemanager" +HOMEPAGE = "http://pcmanfm.sourceforge.net/" + +LICENSE = "GPLv2 & GPLv2+ & LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ + file://src/pcmanfm.h;endline=22;md5=417b3855771a3a87f8ad753d994491f0 \ + file://src/gseal-gtk-compat.h;endline=21;md5=46922c8691f58d124f9420fe16149ce2" + +SECTION = "x11" +DEPENDS = "gtk+ startup-notification libfm intltool-native" +DEPENDS_append_poky = " libowl" + + +COMPATIBLE_HOST = '(x86_64.*|i.86.*|aarch64.*|arm.*|mips.*|powerpc.*|sh.*)-(linux|freebsd.*)' + +SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/pcmanfm-${PV}.tar.xz \ + file://gnome-fs-directory.png \ + file://gnome-fs-regular.png \ + file://gnome-mime-text-plain.png \ + file://emblem-symbolic-link.png \ + file://no-desktop.patch" + +SRC_URI[md5sum] = "c993402d407b0a3fc076f842ac1bc5c9" +SRC_URI[sha256sum] = "cfa8d82fc63be147045174bef074807e1e32ce8c6bf4dbd8fad49e260bcf6380" + +inherit autotools pkgconfig + +do_install_append () { + install -d ${D}/${datadir} + install -d ${D}/${datadir}/pixmaps/ + + install -m 0644 ${WORKDIR}/*.png ${D}/${datadir}/pixmaps +} + +FILES_${PN} += "${libdir}/pcmanfm"
Signature · 1 line
1.8.4.5