package/directfb: fixes detection of tslib version during configure
PATCH 1/1 package/directfb: fixes detection of tslib version during configure
From: Julien BOIBESSOT <[email protected]>
--- ...007-fix-tslib-version-detection-during-configure.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/directfb/0007-fix-tslib-version-detection-during-configure.patch
package/directfb/0007-fix-tslib-version-detection-during-configure.patch new file +15 -0
@@ -0,0 +1,15 @@ +Fixes autodetection of required tslib version during configure. + +Signed-off-by: Julien Boibessot <[email protected]> + +--- directfb-1.7.7/configure.in 2017-11-19 17:36:59.222299771 +0100 ++++ directfb-1.7.7.mod/configure.in 2017-11-19 09:51:31.428595000 +0100 +@@ -2459,7 +2459,7 @@ + + enable_tslib=no + if test "$checkfor_tslib" = "yes"; then +- PKG_CHECK_MODULES([TSLIB], [tslib-1.0 >= 1.0.0], [enable_tslib=yes], [enable_tslib=no]) ++ PKG_CHECK_MODULES([TSLIB], [tslib >= 1.0.0], [enable_tslib=yes], [enable_tslib=no]) + if test "$enable_tslib" = "no"; then + PKG_CHECK_MODULES([TSLIB], [tslib-0.0], [enable_tslib=yes], [enable_tslib=no + AC_MSG_WARN([*** no tslib -- tslib driver will not be built.])])
Signature · 1 line
2.1.4
PATCH 1/1 package/directfb: fixes detection of tslib version during configure
Hello,
Quoted 3 lines · julien.boibessot at free.fr
From: Julien BOIBESSOT <[email protected]>
Signed-off-by Julien BOIBESSOT <[email protected]>
What problem is this fixing? Is there an autobuilder failure related to this? If not, could you include a failing defconfig in the commit log, as well as the relevant part of the build log showing the failure?
A small explanation would also be nice. Why is DirectFB checking for tslib-1.0 if it's named tslib? Mistake? Different version of tslib?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 package/directfb: fixes detection of tslib version during configure
Hello,
Thomas,
Quoted 9 lines · Thomas Petazzoni
Hello,
Quoted 3 lines · julien.boibessot at free.fr
From: Julien BOIBESSOT <[email protected]>
Signed-off-by Julien BOIBESSOT <[email protected]>What problem is this fixing? Is there an autobuilder failure related to this? If not, could you include a failing defconfig in the commit log, as well as the relevant part of the build log showing the failure?
As said in the commit log, directfb fails to detect tslib at configure stage. There is no autobuilder failure as it doesn't cause a build failure, only a runtime problem when trying to use directfb with tslib:
it just doesn't work.
Quoted 3 lines
A small explanation would also be nice. Why is DirectFB checking for tslib-1.0 if it's named tslib? Mistake? Different version of tslib?
I don't know why directfb is checking for package name "tslib-1.0" but in Buildroot's pkg-config, package is named "tslib". So at configure time directfb doesn't find tslib in pkg-config list, and choose to not compile tslib support.
Please find attached a sample defconfig showing the problem. My patch was runtime tested on ARM9.
Best regards,
Julien
-------------- next part --------------
BR2_arm=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y BR2_TOOLCHAIN_BUILDROOT_WCHAR=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_TARGET_GENERIC_HOSTNAME="apf28" BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !" BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.62" BR2_LINUX_KERNEL_DEFCONFIG="mxs"
BR2_LINUX_KERNEL_UIMAGE=y BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x40008000" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx28-apf28dev" BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_STRACE=y
BR2_PACKAGE_DIRECTFB=y
# BR2_PACKAGE_DIRECTFB_LINUXINPUT is not set
# BR2_PACKAGE_DIRECTFB_SERIALMOUSE is not set BR2_PACKAGE_DIRECTFB_EXAMPLES=y
BR2_PACKAGE_SDL2=y
BR2_PACKAGE_SDL2_DIRECTFB=y
BR2_PACKAGE_SDL2_GFX=y
BR2_PACKAGE_SDL2_IMAGE=y
BR2_PACKAGE_SDL2_MIXER=y
BR2_PACKAGE_SDL2_NET=y
BR2_PACKAGE_SDL2_TTF=y
BR2_PACKAGE_LUAJIT=y
BR2_PACKAGE_LIBMODPLUG=y
BR2_PACKAGE_LIBVORBIS=y
BR2_PACKAGE_OPENAL=y
BR2_PACKAGE_PHYSFS=y
BR2_PACKAGE_DROPBEAR=y
BR2_PACKAGE_LRZSZ=y
BR2_TARGET_ROOTFS_UBIFS=y BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000 BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=4227 BR2_TARGET_ROOTFS_UBI=y
BR2_TARGET_ROOTFS_UBI_SUBSIZE=0