Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jun 2017 23:34:32 +0800
From:      Martin Wilke <miwi@FreeBSD.org>
To:        Kubilay Kocak <koobs@FreeBSD.org>
Cc:        "Tobias C. Berner" <tcberner@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org, FreeBSD Ports Security Team <ports-secteam@freebsd.org>
Subject:   Re: svn commit: r442460 - in head: . Mk devel/qt5-core devel/qt5-qmake
Message-ID:  <20170603153432.t5a75a3jznkp4xah@sg.miwi.cc>
In-Reply-To: <fb754744-294e-01e1-3da4-f1b2014af45f@FreeBSD.org>
References:  <201706022003.v52K3CkH012011@repo.freebsd.org> <fb754744-294e-01e1-3da4-f1b2014af45f@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

- - Approved.


On Sat, Jun 03, 2017 at 12:45:13PM +1000, Kubilay Kocak wrote:
> On 6/3/17 6:03 AM, Tobias C. Berner wrote:
> > Author: tcberner
> > Date: Fri Jun  2 20:03:12 2017
> > New Revision: 442460
> > URL: https://svnweb.freebsd.org/changeset/ports/442460
> > 
> > Log:
> >   Do not use gold linker for Qt5 ports.
> >   
> >     gold linker from binutils 2.28 may produce duplicate library
> >     symbols, which makes shared libraries created with it not usable
> >     with conventional ld linker.
> >   
> >   PR:		218187
> >   Submitted by:	amdmi3
> 
> 
> Is quarterly affected by this? Can/should this be MFH'd?
> 
> > Modified:
> >   head/Mk/bsd.qt.mk
> >   head/UPDATING
> >   head/devel/qt5-core/Makefile
> >   head/devel/qt5-qmake/Makefile
> > 
> > Modified: head/Mk/bsd.qt.mk
> > ==============================================================================
> > --- head/Mk/bsd.qt.mk	Fri Jun  2 19:56:07 2017	(r442459)
> > +++ head/Mk/bsd.qt.mk	Fri Jun  2 20:03:12 2017	(r442460)
> > @@ -147,7 +147,9 @@ CONFIGURE_ARGS+=-nomake examples -nomake tests \
> >  .  if ${ARCH} == i386 && empty(MACHINE_CPU:Msse2)
> >  CONFIGURE_ARGS+=-no-sse2
> >  .  endif
> > -
> > +# Work around a bug in current binutils, where the gold linker creates
> > +# duplicate symbols. See pr 218187. Disable the gold-linker for Qt5 ports.
> > +CONFIGURE_ARGS+=	-no-use-gold-linker
> >  . endif
> >  
> >  . if defined(WANT_QT_DEBUG) || defined(WITH_DEBUG)
> > 
> > Modified: head/UPDATING
> > ==============================================================================
> > --- head/UPDATING	Fri Jun  2 19:56:07 2017	(r442459)
> > +++ head/UPDATING	Fri Jun  2 20:03:12 2017	(r442460)
> > @@ -5,6 +5,27 @@ they are unavoidable.
> >  You should get into the habit of checking this file for changes each time
> >  you update your ports collection, before attempting any port upgrades.
> >  
> > +20170602:
> > +  AFFECTS: users of Qt 5 in presence of binutils
> > +  AUTHOR: amdmi3@FreeBSD.org
> > +
> > +  gold linker from binutils 2.28 may produce duplicate library
> > +  symbols, which makes shared libraries created with it not usable
> > +  with conventional ld linker.
> > +
> > +  This affects Qt, as qt5-qmake will detect gold and use it to build
> > +  Qt libraries. Broken libQt5Core will be produced and ports which
> > +  depend on it will then fail to link with the following errors:
> > +
> > +    ...lib/libQt5Core.so:(.dynamic+0x27ac8): multiple definition of `__bss_start at Qt_5'
> > +    ...lib/libQt5Core.so:(.dynamic+0x27ac8): first defined here
> > +    ...lib/libQt5Core.so:(.dynamic+0x27ac8): multiple definition of `_edata at Qt_5'
> > +    ...lib/libQt5Core.so:(.dynamic+0x27ac8): first defined here
> > +    ...lib/libQt5Core.so:(.dynamic+0x2b2d0): multiple definition of `_end at Qt_5'
> > +
> > +  Qt5 was fixed to ignore gold. If you see these errors, you
> > +  need to rebuild qt5-qmake, then all qt5-* ports.
> > +
> >  20170529:
> >    AFFECTS: users of sysutils/dsbmd
> >    AUTHOR: mk@freeshell.de
> > 
> > Modified: head/devel/qt5-core/Makefile
> > ==============================================================================
> > --- head/devel/qt5-core/Makefile	Fri Jun  2 19:56:07 2017	(r442459)
> > +++ head/devel/qt5-core/Makefile	Fri Jun  2 20:03:12 2017	(r442460)
> > @@ -2,6 +2,7 @@
> >  
> >  PORTNAME=	core
> >  DISTVERSION=	${QT5_VERSION}
> > +PORTREVISION=	1
> >  CATEGORIES=	devel
> >  PKGNAMEPREFIX=	qt5-
> >  
> > 
> > Modified: head/devel/qt5-qmake/Makefile
> > ==============================================================================
> > --- head/devel/qt5-qmake/Makefile	Fri Jun  2 19:56:07 2017	(r442459)
> > +++ head/devel/qt5-qmake/Makefile	Fri Jun  2 20:03:12 2017	(r442460)
> > @@ -2,7 +2,7 @@
> >  
> >  PORTNAME=	qmake
> >  DISTVERSION=	${QT5_VERSION}
> > -PORTREVISION=	2
> > +PORTREVISION=	3
> >  CATEGORIES=	devel
> >  PKGNAMEPREFIX=	qt5-
> >  
> > 
> 
> 
> _______________________________________________________
> Please think twice when forwarding, cc:ing, or bcc:ing
> ports-security-team messages.  Ask if you are unsure.

- -- 
+-----------------oOO--(_)--OOo-------------------------+
With best Regards,
		Martin Wilke (miwi_(at)_FreeBSD.org)


          Mess with the Best, Die like the Rest


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJZMtcIAAoJEB8/xmUxOhJnWJkH/3SDlgXYNq6og0w6QhF/Oqu8
j+fRYqX38gq5MkXMxbjphCs6WrjL514kMrxqzvBZ2/yqgPKK+MfxppUvfAi8g6qY
UIhzUBp2eMeBKjOfGz6+W6pe1bBXaYy7+sEIY5y4XXrY6muBLtEzZOAWOlvFPKR8
tvKUHGJngmeo+aNDojnpVWY/vIzeasg0Nxtb8TseSn7UBPWFbj0FiSbMpRtp4FCX
x+MK/x7qEH/PZEEnA7BRJxdfYD96r8jVLrdT4xUzPAPVjMh0YWRMTWyt3fcoYGCQ
vLdhfglPclpsUZQljZ1gMzWWGqAw1XPG1w2XqAhM9ZTYFMRdd+P2lhaUroFnHTo=
=FUMj
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170603153432.t5a75a3jznkp4xah>