Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162757751
D8121.id20928.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D8121.id20928.diff
View Options
Index: devel/qt5-qdoc/Makefile
===================================================================
--- devel/qt5-qdoc/Makefile
+++ devel/qt5-qdoc/Makefile
@@ -2,6 +2,7 @@
PORTNAME= qdoc
DISTVERSION= ${QT5_VERSION}
+PORTREVISION= 1
CATEGORIES= devel textproc
PKGNAMEPREFIX= qt5-
@@ -17,4 +18,10 @@
PLIST_FILES= ${QT_BINDIR}/qdoc
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
+EXTRA_PATCHES= ${FILESDIR}/extrapatch-src_qdoc_qdocindexfiles.cpp
+.endif
+
+.include <bsd.port.post.mk>
Index: devel/qt5-qdoc/files/extrapatch-src_qdoc_qdocindexfiles.cpp
===================================================================
--- /dev/null
+++ devel/qt5-qdoc/files/extrapatch-src_qdoc_qdocindexfiles.cpp
@@ -0,0 +1,21 @@
+There is a bug [1] in the old gcc used on FreeBSD 9.3, which makes
+qdoc segfault on sorting while generating its index sections.
+
+As mentioned in [2] by Michael Hansen, we can circument this by using
+qSort instead of std::sort on FreeBSD 9.x.
+
+
+[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59391
+[2] https://bugreports.qt.io/browse/QTBUG-43057
+
+--- src/qdoc/qdocindexfiles.cpp.orig 2016-10-02 07:52:39 UTC
++++ src/qdoc/qdocindexfiles.cpp
+@@ -1476,7 +1476,7 @@ void QDocIndexFiles::generateIndexSectio
+ const Aggregate* inner = static_cast<const Aggregate*>(node);
+
+ NodeList cnodes = inner->childNodes();
+- std::sort(cnodes.begin(), cnodes.end(), compareNodes);
++ qSort(cnodes.begin(), cnodes.end(), compareNodes);
+
+ foreach (Node* child, cnodes) {
+ generateIndexSections(writer, child, generateInternalNodes);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 17, 1:49 PM (14 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35168176
Default Alt Text
D8121.id20928.diff (1 KB)
Attached To
Mode
D8121: Work around a gcc bug in devel/qt5-qdoc to fix devel/qtcreator on 9.3
Attached
Detach File
Event Timeline
Log In to Comment