pkgsrc-Bugs archive

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

pkg/53089: qt5-qtbase workaround for ld assertion failure on NetBSD

>Number:         53089
>Category:       pkg
>Synopsis:       qt5-qtbase workaround for ld assertion failure on NetBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 11 14:50:00 +0000 2018
>Originator:     Izumi Tsutsui
>Release:        NetBSD 7.1.1
System: NetBSD optiplex 7.1.1 NetBSD 7.1.1 (GENERIC.201712222334Z) i386
Architecture: i386 (but affects all)
Machine: i386
On qt5 5.10.0 update, there was a "linker problem blocking qt5 update":
which caused assertion failure of ld(1).

There is a suggested workaround to add -lexecinfo before -lQt5Widget for
each package that links Qt5Widget (without *.pro Qt settings with qmake):

However it is a bit pain to check and add for all affected
 (pkgsrc/inputmethod/mozc-tool also gets the same assertion)

If the packages use pkg-config to pull Qt5 libraries it is easier
to put -lexecinfo into /usr/pkg/lib/pkgconfig/Qt5Widget.pc file,
even though it's still a bit ugly.

cd pkgsrc/inputmethod/mozc-tool && make package

Adding pkgsrc/x11/qt5-qtbase/ to add -lexecinfo to
Qt5Widget.pc pkgconfig file in post-build seems to work around:

--- cut here ---
# $NetBSD$

.if !defined(QT5_QTBASE_HACKS_MK)

### On NetBSD ld(1) gets assertion fails on linking Qt5Widget library
### after Qt 5.10.0 updates.
### Explicitly linking -lexecinfo before -lQt5Widgets (in the pkgconfig file)
### works around.
.if ${OPSYS} == "NetBSD" && exists(/usr/lib/
	${SED}  -e 's/^Libs:/& -lexecinfo/g'\
		 ${WRKSRC}/lib/pkgconfig/Qt5Widgets.pc > \
	${MV} ${WRKSRC}/lib/pkgconfig/Qt5Widgets.pc.hack \

--- cut here ---

Home | Main Index | Thread Index | Old Index