Skip to contentSkip to conversation

qwt: V2, fix linking with ld-gold and tabs to spaces

PATCH In review Marc Reilly 2 participants 5 messages Aug 21, 2012 – Aug 26, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

This is V2 of patch to fix linking error when the linker is ld-gold. Patch 1 fixes the linker error, V2 addresses whitespace issue in SRC_URI and adds upstream status to patch file.

Patch 2 is new to the series and converts tabs to spaces.

Cheers,
Marc

#1 lore raw

PATCH v2 1/2 qwt: fix link error when linking with ld-gold.

ld-gold doesn't implicitly link with librt, this fixes an unresolved symbol error when compiling qwt examples.

---
 .../qwt/files/qwt6-fix-linking-with-ld-gold.patch  |   34 ++++++++++++++++++++
 meta-oe/recipes-qt/qwt/qwt.inc                     |    4 +-
 2 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch
meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch new file +34 -0
new file mode 100644
index 0000000..1fdd9cf
@@ -0,0 +1,34 @@
+Upstream-Status: Pending
+
+diff -urpN qwt-6.0.1_orig/qwtbuild.pri qwt-6.0.1/qwtbuild.pri
+--- qwt-6.0.1_orig/qwtbuild.pri	2011-08-02 00:33:53.000000000 +1000
++++ qwt-6.0.1/qwtbuild.pri	2012-08-21 10:27:30.721990849 +1000
+@@ -67,3 +67,13 @@ unix {
+         error( "local build will conflict with $${QMAKE_LIBDIR_QT}/libqwt.*" )
+     }
+ }
++
++######################################################################
++# libs for building qwt
++######################################################################
++
++unix {
++    # Some linkers require explicit linking with librt (eg ld.gold)
++    LIBS += -lrt
++}
++
+diff -urpN qwt-6.0.1_orig/qwt.prf qwt-6.0.1/qwt.prf
+--- qwt-6.0.1_orig/qwt.prf	2011-08-02 00:33:51.000000000 +1000
++++ qwt-6.0.1/qwt.prf	2012-08-21 11:19:49.435240439 +1000
+@@ -9,6 +9,11 @@
+ 
+ include ( ./qwtconfig.pri )
+ 
++unix {
++
++	LIBS += -lrt
++}
++
+ contains(QWT_CONFIG, QwtDll) {
+ 
+     DEFINES *= QWT_DLL
meta-oe/recipes-qt/qwt/qwt.inc +2 -2
index a299ac8..a9289f7 100644
@@ -6,8 +6,8 @@ LICENSE = "QWTv1.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \
-	file://qwt6.patch \
-	"
+           file://qwt6.patch \
+           file://qwt6-fix-linking-with-ld-gold.patch"
 
 S = "${WORKDIR}/qwt-${PV}"
 
Signature · 1 line
1.7.7
#2 lore raw

Re: [Patch V2 1/2] qwt: fix link error when linking with ld-gold.

Hi,

Just pinging this to check if it has been overlooked or is wrong.

I tried to see if its listed on patchwork site, but its either not there or I'm looking in the wrong spot.

Cheers,
Marc

Quoted 8 lines

-----Original Message-----
From: Marc Reilly [mailto:[email protected]] On Behalf Of Marc Reilly
Sent: Tuesday, 21 August 2012 11:54 AM
To: [email protected]
Cc: Marc Reilly
Subject: [Patch V2 1/2] qwt: fix link error when linking with ld-gold.

ld-gold doesn't implicitly link with librt, this fixes an unresolved

symbol error

Quoted 8 lines

when compiling qwt examples.

---
 .../qwt/files/qwt6-fix-linking-with-ld-gold.patch  |   34
++++++++++++++++++++
 meta-oe/recipes-qt/qwt/qwt.inc                     |    4 +-
 2 files changed, 36 insertions(+), 2 deletions(-)  create mode 100644

meta-

Quoted 3 lines

oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch

diff --git

a/meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch

meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch line 7

Quoted 13 lines

b/meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch new file mode 100644
index 0000000..1fdd9cf

meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch new file +7 -0
@@ -0,0 +1,34 @@
+Upstream-Status: Pending
+
+diff -urpN qwt-6.0.1_orig/qwtbuild.pri qwt-6.0.1/qwtbuild.pri
+--- qwt-6.0.1_orig/qwtbuild.pri	2011-08-02 00:33:53.000000000 +1000
++++ qwt-6.0.1/qwtbuild.pri	2012-08-21 10:27:30.721990849 +1000
+@@ -67,3 +67,13 @@ unix {
+         error( "local build will conflict with

$${QMAKE_LIBDIR_QT}/libqwt.*" )

Quoted 47 lines
meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch new file +4 -0
+     }
+ }
++
++########################################################

##############
++# libs for building qwt
++########################################################
##############
++
++unix {
++ # Some linkers require explicit linking with librt (eg ld.gold)
++ LIBS += -lrt
++}
++

meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch new file +15 -0
+diff -urpN qwt-6.0.1_orig/qwt.prf qwt-6.0.1/qwt.prf
+--- qwt-6.0.1_orig/qwt.prf	2011-08-02 00:33:51.000000000 +1000
++++ qwt-6.0.1/qwt.prf	2012-08-21 11:19:49.435240439 +1000
+@@ -9,6 +9,11 @@
+
+ include ( ./qwtconfig.pri )
+
++unix {
++
++	LIBS += -lrt
++}
++
+ contains(QWT_CONFIG, QwtDll) {
+
+     DEFINES *= QWT_DLL
meta-oe/recipes- renamed from meta-oe/recipes-qt/qwt/qwt.inc +0 -0

qt/qwt/qwt.inc index a299ac8..a9289f7 100644

meta-oe/recipes-qt/qwt/qwt.inc +0 -0
@@ -6,8 +6,8 @@ LICENSE = "QWTv1.0"
 LIC_FILES_CHKSUM =

"file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"

SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \

meta-oe/recipes-qt/qwt/qwt.inc +2 -3
-	file://qwt6.patch \
-	"
+           file://qwt6.patch \
+           file://qwt6-fix-linking-with-ld-gold.patch"
 
 S = "${WORKDIR}/qwt-${PV}"
 
--

1.7.7

#3 lore raw

Re: [Patch V2 1/2] qwt: fix link error when linking with ld-gold.

Quoted 6 lines · Marc Reilly

Hi,

Just pinging this to check if it has been overlooked or is wrong.

I tried to see if its listed on patchwork site, but its either not there or I'm looking in the wrong spot.

Patch looks fine however you need to bump the PR in recipe.

Quoted 93 lines

Cheers,
Marc

Quoted 8 lines

-----Original Message-----
From: Marc Reilly [mailto:[email protected]] On Behalf Of Marc Reilly
Sent: Tuesday, 21 August 2012 11:54 AM
To: [email protected]
Cc: Marc Reilly
Subject: [Patch V2 1/2] qwt: fix link error when linking with ld-gold.

ld-gold doesn't implicitly link with librt, this fixes an unresolved

symbol error

Quoted 8 lines

when compiling qwt examples.

---
 .../qwt/files/qwt6-fix-linking-with-ld-gold.patch  |   34
++++++++++++++++++++
 meta-oe/recipes-qt/qwt/qwt.inc                     |    4 +-
 2 files changed, 36 insertions(+), 2 deletions(-)  create mode 100644

meta-

Quoted 3 lines

oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch

diff --git

a/meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch

meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch line 7

Quoted 13 lines

b/meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch new file mode 100644
index 0000000..1fdd9cf

meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch new file +7 -0
@@ -0,0 +1,34 @@
+Upstream-Status: Pending
+
+diff -urpN qwt-6.0.1_orig/qwtbuild.pri qwt-6.0.1/qwtbuild.pri
+--- qwt-6.0.1_orig/qwtbuild.pri      2011-08-02 00:33:53.000000000 +1000
++++ qwt-6.0.1/qwtbuild.pri   2012-08-21 10:27:30.721990849 +1000
+@@ -67,3 +67,13 @@ unix {
+         error( "local build will conflict with

$${QMAKE_LIBDIR_QT}/libqwt.*" )

Quoted 46 lines
meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch new file +4 -0
+     }
+ }
++
++########################################################

##############
++# libs for building qwt
++########################################################
##############
++
++unix {
++ # Some linkers require explicit linking with librt (eg ld.gold)
++ LIBS += -lrt
++}
++

meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch new file +15 -0
+diff -urpN qwt-6.0.1_orig/qwt.prf qwt-6.0.1/qwt.prf
+--- qwt-6.0.1_orig/qwt.prf   2011-08-02 00:33:51.000000000 +1000
++++ qwt-6.0.1/qwt.prf        2012-08-21 11:19:49.435240439 +1000
+@@ -9,6 +9,11 @@
+
+ include ( ./qwtconfig.pri )
+
++unix {
++
++    LIBS += -lrt
++}
++
+ contains(QWT_CONFIG, QwtDll) {
+
+     DEFINES *= QWT_DLL
meta-oe/recipes- renamed from meta-oe/recipes-qt/qwt/qwt.inc +0 -0

qt/qwt/qwt.inc index a299ac8..a9289f7 100644

meta-oe/recipes-qt/qwt/qwt.inc +0 -0
@@ -6,8 +6,8 @@ LICENSE = "QWTv1.0"
 LIC_FILES_CHKSUM =

"file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"

SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \

meta-oe/recipes-qt/qwt/qwt.inc +2 -3
-     file://qwt6.patch \
-     "
+           file://qwt6.patch \
+           file://qwt6-fix-linking-with-ld-gold.patch"
 
 S = "${WORKDIR}/qwt-${PV}"
 
--
Quoted 1 line

1.7.7

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw

PATCH v2 2/2 qwt: convert tabs to spaces.

In reply to Marc Reilly
---
 meta-oe/recipes-qt/qwt/qwt.inc |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)
meta-oe/recipes-qt/qwt/qwt.inc +13 -13
index a9289f7..50f4e2a 100644
@@ -12,22 +12,22 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \
 S = "${WORKDIR}/qwt-${PV}"
 
 do_configure_prepend() {
-	sed -i -e 's:RELEASE_SUFFIX      = :RELEASE_SUFFIX      = ${QT_LIBINFIX}:' *.pri
-	sed -i -e 's:qtAddLibrary(qwt:qtAddLibrary(qwt)${QT_LIBINFIX}:g' *.prf
-	sed -e 's/# QWT_CONFIG     += QwtExamples/QWT_CONFIG     += QwtExamples/g' -i qwtconfig.pri
-	sed -i -e 's:/usr/local/qwt-$$QWT_VERSION:${D}${prefix}:g' ${S}/*.pri
+    sed -i -e 's:RELEASE_SUFFIX      = :RELEASE_SUFFIX      = ${QT_LIBINFIX}:' *.pri
+    sed -i -e 's:qtAddLibrary(qwt:qtAddLibrary(qwt)${QT_LIBINFIX}:g' *.prf
+    sed -e 's/# QWT_CONFIG     += QwtExamples/QWT_CONFIG     += QwtExamples/g' -i qwtconfig.pri
+    sed -i -e 's:/usr/local/qwt-$$QWT_VERSION:${D}${prefix}:g' ${S}/*.pri
 }
 
 do_install() {
-	oe_runmake -e install
-	install -d ${D}${datadir}/doc/${PN}
-	mv ${D}${prefix}/doc/* ${D}${datadir}/doc/${PN}/
-	cd ${S}/examples
-	install -d ${D}/${bindir}
-	cd bin${QT_LIBINFIX}/
-	for i in * ; do
-		cp -pPR ${i} ${D}/${bindir}/${i}${QT_LIBINFIX}
-	done
+    oe_runmake -e install
+    install -d ${D}${datadir}/doc/${PN}
+    mv ${D}${prefix}/doc/* ${D}${datadir}/doc/${PN}/
+    cd ${S}/examples
+    install -d ${D}/${bindir}
+    cd bin${QT_LIBINFIX}/
+    for i in * ; do
+        cp -pPR ${i} ${D}/${bindir}/${i}${QT_LIBINFIX}
+    done
 }
 
 PACKAGES_prepend = "${PN}-examples "
Signature · 1 line
1.7.7