pcmanfm: link against libX11 to avoid build failure
PATCH 1/3 pcmanfm: link against libX11 to avoid build failure
Fixes:
/home/test/outputs/allpkg/host/opt/ext-toolchain/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: fm-desktop.o: undefined reference to symbol 'XSendEvent' /home/test/outputs/allpkg/host/opt/ext-toolchain/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: note: 'XSendEvent' is defined in DSO /home/test/outputs/allpkg/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libX11.so.6 so try adding it to the linker command line /home/test/outputs/allpkg/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[4]: *** [pcmanfm] Error 1
--- package/pcmanfm/pcmanfm-link-against-libx11.patch | 20 ++++++++++++++++++++ package/pcmanfm/pcmanfm.mk | 1 + 2 files changed, 21 insertions(+) create mode 100644 package/pcmanfm/pcmanfm-link-against-libx11.patch
package/pcmanfm/pcmanfm-link-against-libx11.patch new file +20 -0
@@ -0,0 +1,20 @@ +Link against libX11 + +fm-desktop.c uses XSendEvent, so we should link against libX11. + +Signed-off-by: Thomas Petazzoni <[email protected]> + +Index: b/configure.in +=================================================================== +--- a/configure.in ++++ b/configure.in +@@ -12,7 +12,8 @@ + + pkg_modules="gtk+-2.0 >= 2.6.0 \ + gthread-2.0 \ +- libstartup-notification-1.0" ++ libstartup-notification-1.0 \ ++ x11" + + AC_FUNC_MMAP +
package/pcmanfm/pcmanfm.mk +1 -0
@@ -8,6 +8,7 @@ PCMANFM_SOURCE = pcmanfm-$(PCMANFM_VERSION).tar.gz PCMANFM_SITE = http://internap.dl.sourceforge.net/sourceforge/pcmanfm PCMANFM_CONF_OPT = --disable-hal PCMANFM_DEPENDENCIES = host-pkgconf libgtk2 gamin startup-notification xserver_xorg-server +PCMANFM_AUTORECONF = YES $(eval $(autotools-package))
Signature · 1 line
1.7.9.5
PATCH 2/3 pcmanfm: use a download URL from downloads.sourceforge.net
--- package/pcmanfm/pcmanfm.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/pcmanfm/pcmanfm.mk +1 -1
@@ -5,7 +5,7 @@ ############################################################# PCMANFM_VERSION = 0.3.5.9 PCMANFM_SOURCE = pcmanfm-$(PCMANFM_VERSION).tar.gz -PCMANFM_SITE = http://internap.dl.sourceforge.net/sourceforge/pcmanfm +PCMANFM_SITE = http://downloads.sourceforge.net/project/pcmanfm/pcmanfm-legacy%20%28Old%200.5%20series%29/PCManFM%200.3.5.9/ PCMANFM_CONF_OPT = --disable-hal PCMANFM_DEPENDENCIES = host-pkgconf libgtk2 gamin startup-notification xserver_xorg-server PCMANFM_AUTORECONF = YES
Signature · 1 line
1.7.9.5
PATCH 2/3 pcmanfm: use a download URL from downloads.sourceforge.net
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Signed-off-by: Thomas Petazzoni <[email protected]> Thomas> ---
Thomas> package/pcmanfm/pcmanfm.mk | 2 +-
Thomas> 1 file changed, 1 insertion(+), 1 deletion(-)
Thomas> diff --git a/package/pcmanfm/pcmanfm.mk b/package/pcmanfm/pcmanfm.mk Thomas> index e4c23ec..8eaa485 100644
Thomas> --- a/package/pcmanfm/pcmanfm.mk
Thomas> +++ b/package/pcmanfm/pcmanfm.mk
Thomas> @@ -5,7 +5,7 @@
Thomas> ############################################################# Thomas> PCMANFM_VERSION = 0.3.5.9 Thomas> PCMANFM_SOURCE = pcmanfm-$(PCMANFM_VERSION).tar.gz
Thomas> -PCMANFM_SITE = http://internap.dl.sourceforge.net/sourceforge/pcmanfm
Thomas> +PCMANFM_SITE = http://downloads.sourceforge.net/project/pcmanfm/pcmanfm-legacy%20%28Old%200.5%20series%29/PCManFM%200.3.5.9/
I changed this to use PCMANFM_VERSION instead of hardcoding 0.3.5.9 here and committed all 3, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/3 pcmanfm: use a download URL from downloads.sourceforge.net
Dear Peter Korsgaard,
Quoted 2 lines · Peter Korsgaard
I changed this to use
PCMANFM_VERSIONinstead of hardcoding 0.3.5.9 here and committed all 3, thanks.
Indeed, thanks.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 3/3 pcmanfm: replace dependency on X.org server by dependency on libX11
In reply to Thomas PetazzoniThere is no reason for a client program like pcmanfm to depend on the X.org server. Instead, it should depend on the appropriate X client libraries, in this case libX11.
--- package/pcmanfm/Config.in | 1 + package/pcmanfm/pcmanfm.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
package/pcmanfm/Config.in +1 -0
@@ -4,6 +4,7 @@ config BR2_PACKAGE_PCMANFM depends on BR2_USE_WCHAR # glib2 select BR2_PACKAGE_GAMIN select BR2_PACKAGE_STARTUP_NOTIFICATION + select BR2_PACKAGE_XLIB_LIBX11 depends on BR2_PACKAGE_LIBGTK2 help An extremly fast and lightweight file manager which features
package/pcmanfm/pcmanfm.mk +1 -1
@@ -7,7 +7,7 @@ PCMANFM_VERSION = 0.3.5.9 PCMANFM_SOURCE = pcmanfm-$(PCMANFM_VERSION).tar.gz PCMANFM_SITE = http://downloads.sourceforge.net/project/pcmanfm/pcmanfm-legacy%20%28Old%200.5%20series%29/PCManFM%200.3.5.9/ PCMANFM_CONF_OPT = --disable-hal -PCMANFM_DEPENDENCIES = host-pkgconf libgtk2 gamin startup-notification xserver_xorg-server +PCMANFM_DEPENDENCIES = host-pkgconf libgtk2 gamin startup-notification xlib_libX11 PCMANFM_AUTORECONF = YES $(eval $(autotools-package))
Signature · 1 line
1.7.9.5