pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47203: x11/qt4-libs build fails on RHEL 5

>Number:         47203
>Category:       pkg
>Synopsis:       x11/qt4-libs build fails on RHEL 5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 16 22:50:00 +0000 2012
>Originator:     Jason Bacon
>Release:        6.0
Acadix Consulting, LLC
Linux compute-4-07.hpc.local.uwm 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 
2008 x86_64 x86_64 x86_64 GNU/Linux
In the process of developing a FEniCS package, I ran into problems building 
qt4-lib on RHEL 5.3.

The attached patch file contains a workaround with comments.  I'm not 100% sure 
it's safe to assume that the constants pulled from futex.h will remain 
unchanged, so it might be a good idea to wrap the patch with a kernel version 
check.  This might be easier in the package Makefile using ${OS_VERSION} than 
it is in the source file.

Try to build qt4-libs on RHEL 5.3.
--- src/corelib/thread/qmutex_unix.cpp.orig     2012-09-10 20:36:50.000000000 
+++ src/corelib/thread/qmutex_unix.cpp  2012-11-15 07:41:51.000000000 -0600
@@ -57,7 +57,12 @@
 # include <mach/mach.h>
 # include <mach/task.h>
 #elif defined(Q_OS_LINUX)
-# include <linux/futex.h>
+// linux/futex.h does not work on older kernels, such as in RHEL 5
+// Replace with #defines below
+// #include <linux/futex.h>
+# define FUTEX_WAIT 0
+# define FUTEX_WAKE 1
 # include <sys/syscall.h>
 # include <unistd.h>
 # include <QtCore/qelapsedtimer.h>

Home | Main Index | Thread Index | Old Index