All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/directfb: fixes detection of tslib version during configure
@ 2017-11-19 16:56 julien.boibessot at free.fr
  2017-11-22 20:50 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: julien.boibessot at free.fr @ 2017-11-19 16:56 UTC (permalink / raw)
  To: buildroot

From: Julien BOIBESSOT <julien.boibessot@armadeus.com>

Signed-off-by: Julien BOIBESSOT <julien.boibessot@armadeus.com>
---
 ...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

diff --git a/package/directfb/0007-fix-tslib-version-detection-during-configure.patch b/package/directfb/0007-fix-tslib-version-detection-during-configure.patch
new file mode 100644
index 0000000..e257558
--- /dev/null
+++ b/package/directfb/0007-fix-tslib-version-detection-during-configure.patch
@@ -0,0 +1,15 @@
+Fixes autodetection of required tslib version during configure.
+
+Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
+
+--- 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.])])
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/directfb: fixes detection of tslib version during configure
  2017-11-19 16:56 [Buildroot] [PATCH] package/directfb: fixes detection of tslib version during configure julien.boibessot at free.fr
@ 2017-11-22 20:50 ` Thomas Petazzoni
  2017-11-23  9:38   ` Julien Boibessot
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2017-11-22 20:50 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 19 Nov 2017 17:56:45 +0100, julien.boibessot at free.fr wrote:
> From: Julien BOIBESSOT <julien.boibessot@armadeus.com>
> 
> Signed-off-by: Julien BOIBESSOT <julien.boibessot@armadeus.com>

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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/directfb: fixes detection of tslib version during configure
  2017-11-22 20:50 ` Thomas Petazzoni
@ 2017-11-23  9:38   ` Julien Boibessot
  0 siblings, 0 replies; 3+ messages in thread
From: Julien Boibessot @ 2017-11-23  9:38 UTC (permalink / raw)
  To: buildroot

Hello,

Thomas,

On 22/11/2017 21:50, Thomas Petazzoni wrote:
> Hello,
>
> On Sun, 19 Nov 2017 17:56:45 +0100, julien.boibessot at free.fr wrote:
>> From: Julien BOIBESSOT <julien.boibessot@armadeus.com>
>>
>> Signed-off-by: Julien BOIBESSOT <julien.boibessot@armadeus.com>
> 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.

>
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-23  9:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-19 16:56 [Buildroot] [PATCH] package/directfb: fixes detection of tslib version during configure julien.boibessot at free.fr
2017-11-22 20:50 ` Thomas Petazzoni
2017-11-23  9:38   ` Julien Boibessot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.