pkgsrc-Bugs archive

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

pkg/53197: Qt5 5.10.1 compile failure (patch) for Illumos



>Number:         53197
>Category:       pkg
>Synopsis:       Qt5 5.10.1 compile failure (patch) for Illumos
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 18 21:05:00 +0000 2018
>Originator:     MIke Owens
>Release:        pkgsrc-2018Q1
>Organization:
>Environment:
SunOS dev 5.11 omnios-r151024-70c39e6e15 i86pc i386 i86pc Solaris
>Description:
The compile fails due to a simple setting in the src/corelib/global/qglobal.h file. This has been reported, fixed and merged into the Qt 5.11 branch. 

The fix is a one-line change and could be easily added as a patch to the current qt5 package in pkgsrc which would enable the build to work on Illumos.

The fix is here:

https://codereview.qt-project.org/#/c/221071/3/src/corelib/global/qglobal.h,unified

The Qt PR is here:

https://codereview.qt-project.org/#/c/221071/


>How-To-Repeat:
On Illumos (SmartOS or OmniOS with pkgsrc installed on /opt/pkgsrc):

cd /opt/pkgsrc/x11/qt5
bmake
>Fix:
Change src/corelib/global/qglobal.h as follows:

iff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index aa94462..cd4b4a2 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -542,21 +542,21 @@
542	542	 #  define Q_NEVER_INLINE __declspec(noinline)
543	543	 #  define Q_ALWAYS_INLINE __forceinline
544	544	 #elif defined(Q_CC_GNU)
545	545	 #  define Q_NEVER_INLINE __attribute__((noinline))
546	546	 #  define Q_ALWAYS_INLINE inline __attribute__((always_inline))
547	547	 #else
548	548	 #  define Q_NEVER_INLINE
549	549	 #  define Q_ALWAYS_INLINE inline
550	550	 #endif
551	551	 
	552     -#ifdef Q_CC_GNU
552	        +#if defined(Q_CC_GNU) && defined(Q_OS_WIN)
553	553	 #  define QT_INIT_METAOBJECT __attribute__((init_priority(101)))
554	554	 #else
555	555	 #  define QT_INIT_METAOBJECT
556	556	 #endif
557	557	 
558	558	 //defines the type for the WNDPROC on windows
559	559	 //the alignment needs to be forced for sse2 to not crash with mingw
560	560	 #if defined(Q_OS_WIN)
561	561	 #  if defined(Q_CC_MINGW) && !defined(Q_OS_WIN64)
562	562	 #    define QT_ENSURE_STACK_ALIGNED_FOR_SSE __attribute__ ((force_align_arg_pointer))


Home | Main Index | Thread Index | Old Index