* [PATCH v2 0/2] NSPR with tests and patch for RPATH
@ 2012-02-13 23:24 Andrei Gherzan
2012-02-13 23:24 ` [PATCH v2 1/2] nspr: Compile nspr with tests Andrei Gherzan
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andrei Gherzan @ 2012-02-13 23:24 UTC (permalink / raw)
To: openembedded-core
1. Create a separate commit for removing RPATH from binaries
2. Add QA warning in patch
3. Minor tweaks in bbfile
4. Install tests in ${libdir}/nspr/tests
The following changes since commit 7d0fc3b5ffc2806d921567dbdad3de056069896a:
nspr: Integrate version 4.8.9 (2012-02-13 22:49:19 +0200)
are available in the git repository at:
git@git.gherzan.ro:agherzan/yocto-dev devel
Andrei Gherzan (2):
nspr: Compile nspr with tests
nspr: Add patch in order to remove rpath from binaries
.../nspr/files/remove-rpath-from-tests.patch | 26 ++++
meta/recipes-support/nspr/nspr_4.8.9.bb | 136 +++++++++++++++++++-
2 files changed, 158 insertions(+), 4 deletions(-)
create mode 100644 meta/recipes-support/nspr/files/remove-rpath-from-tests.patch
--
1.7.5.4
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v2 1/2] nspr: Compile nspr with tests
2012-02-13 23:24 [PATCH v2 0/2] NSPR with tests and patch for RPATH Andrei Gherzan
@ 2012-02-13 23:24 ` Andrei Gherzan
2012-02-13 23:24 ` [PATCH v2 2/2] nspr: Add patch in order to remove rpath from binaries Andrei Gherzan
2012-02-24 18:17 ` [PATCH v2 0/2] NSPR with tests and patch for RPATH Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Andrei Gherzan @ 2012-02-13 23:24 UTC (permalink / raw)
To: openembedded-core
1. Compile package tests suite
2. Add tests to -dev rpm as it needs dev libraries
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
meta/recipes-support/nspr/nspr_4.8.9.bb | 135 ++++++++++++++++++++++++++++++-
1 files changed, 131 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-support/nspr/nspr_4.8.9.bb b/meta/recipes-support/nspr/nspr_4.8.9.bb
index da324fc..74bfe6b 100644
--- a/meta/recipes-support/nspr/nspr_4.8.9.bb
+++ b/meta/recipes-support/nspr/nspr_4.8.9.bb
@@ -5,17 +5,135 @@ LIC_FILES_CHKSUM = "file://configure.in;beginline=3;endline=40;md5=99d4d7d68bbc4
file://Makefile.in;beginline=4;endline=38;md5=c2b512182a334e1bfa1edc4d1c84a298 "
SECTION = "libs/network"
-PR = "r0"
+PR = "r1"
-SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz"
+SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \
+ "
-SRC_URI += "file://nspr.pc.in "
+SRC_URI += "file://nspr.pc.in"
SRC_URI[md5sum] = "60770d45dc08c0f181b22cdfce5be3e8"
SRC_URI[sha256sum] = "ff43c7c819e72f03bb908e7652c5d5f59a5d31ee86c333e692650207103d1cce"
S = "${WORKDIR}/nspr-${PV}/mozilla/nsprpub"
+TESTS = "runtests.pl \
+ runtests.sh \
+ accept \
+ acceptread \
+ acceptreademu \
+ affinity \
+ alarm \
+ anonfm \
+ atomic \
+ attach \
+ bigfile \
+ cleanup \
+ cltsrv \
+ concur \
+ cvar \
+ cvar2 \
+ dlltest \
+ dtoa \
+ errcodes \
+ exit \
+ fdcach \
+ fileio \
+ foreign \
+ formattm \
+ fsync \
+ gethost \
+ getproto \
+ i2l \
+ initclk \
+ inrval \
+ instrumt \
+ intrio \
+ intrupt \
+ io_timeout \
+ ioconthr \
+ join \
+ joinkk \
+ joinku \
+ joinuk \
+ joinuu \
+ layer \
+ lazyinit \
+ libfilename \
+ lltest \
+ lock \
+ lockfile \
+ logfile \
+ logger \
+ many_cv \
+ multiwait \
+ nameshm1 \
+ nblayer \
+ nonblock \
+ ntioto \
+ ntoh \
+ op_2long \
+ op_excl \
+ op_filnf \
+ op_filok \
+ op_nofil \
+ parent \
+ parsetm \
+ peek \
+ perf \
+ pipeping \
+ pipeping2 \
+ pipeself \
+ poll_nm \
+ poll_to \
+ pollable \
+ prftest \
+ primblok \
+ provider \
+ prpollml \
+ ranfile \
+ randseed \
+ reinit \
+ rwlocktest \
+ sel_spd \
+ selct_er \
+ selct_nm \
+ selct_to \
+ selintr \
+ sema \
+ semaerr \
+ semaping \
+ sendzlf \
+ server_test \
+ servr_kk \
+ servr_uk \
+ servr_ku \
+ servr_uu \
+ short_thread \
+ sigpipe \
+ socket \
+ sockopt \
+ sockping \
+ sprintf \
+ stack \
+ stdio \
+ str2addr \
+ strod \
+ switch \
+ system \
+ testbit \
+ testfile \
+ threads \
+ timemac \
+ timetest \
+ tpd \
+ udpsrv \
+ vercheck \
+ version \
+ writev \
+ xnotify \
+ zerolen"
+
inherit autotools
do_configure() {
@@ -26,12 +144,21 @@ do_compile_prepend() {
oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
}
+do_compile_append() {
+ oe_runmake -C pr/tests
+}
+
do_install_append() {
install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc
sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc
sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc
sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
+ cd ${S}/pr/tests
+ mkdir -p ${D}${libdir}/nspr/tests
+ install -m 0755 ${TESTS} ${D}${libdir}/nspr/tests
}
-
+FILES_${PN} = ${bindir}/*
+FILES_${PN}-dev += "${libdir}/nspr/tests/*"
+FILES_${PN}-dbg += "${libdir}/nspr/tests/.debug/*"
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH v2 2/2] nspr: Add patch in order to remove rpath from binaries
2012-02-13 23:24 [PATCH v2 0/2] NSPR with tests and patch for RPATH Andrei Gherzan
2012-02-13 23:24 ` [PATCH v2 1/2] nspr: Compile nspr with tests Andrei Gherzan
@ 2012-02-13 23:24 ` Andrei Gherzan
2012-02-24 18:17 ` [PATCH v2 0/2] NSPR with tests and patch for RPATH Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Andrei Gherzan @ 2012-02-13 23:24 UTC (permalink / raw)
To: openembedded-core
This patch was created in order to avoid QA warnings.
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
.../nspr/files/remove-rpath-from-tests.patch | 26 ++++++++++++++++++++
meta/recipes-support/nspr/nspr_4.8.9.bb | 3 +-
2 files changed, 28 insertions(+), 1 deletions(-)
create mode 100644 meta/recipes-support/nspr/files/remove-rpath-from-tests.patch
diff --git a/meta/recipes-support/nspr/files/remove-rpath-from-tests.patch b/meta/recipes-support/nspr/files/remove-rpath-from-tests.patch
new file mode 100644
index 0000000..a7e7853
--- /dev/null
+++ b/meta/recipes-support/nspr/files/remove-rpath-from-tests.patch
@@ -0,0 +1,26 @@
+Author: Andrei Gherzan <andrei@gherzan.ro>
+Date: Thu Feb 9 00:03:38 2012 +0200
+
+Avoid QA warnings by removing hardcoded rpath from binaries.
+
+[...]
+WARNING: QA Issue: package nspr contains bad RPATH {builddir}/tmp/work/armv5te-poky-linux-gnueabi/nspr-4.8.9-r1/nspr-4.8.9/mozilla/nsprpub/pr/tests/../../dist/lib
+in file {builddir}/tmp/work/armv5te-poky-linux-gnueabi/nspr-4.8.9-r1/packages-split/nspr/usr/lib/nspr/tests/multiwait
+[...]
+
+Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
+Upstream-Status: Pending
+
+Index: nspr-4.8.9/mozilla/nsprpub/pr/tests/Makefile.in
+===================================================================
+--- nsprpub.orig/pr/tests/Makefile.in 2012-02-11 00:01:10.476220505 +0200
++++ nsprpub/pr/tests/Makefile.in 2012-02-10 23:57:40.000000000 +0200
+@@ -379,7 +379,7 @@
+ endif
+
+ ifeq (,$(filter-out Linux GNU GNU_%,$(OS_ARCH)))
+- LDOPTS += -Xlinker -rpath $(ABSOLUTE_LIB_DIR)
++ LDOPTS += -Xlinker
+ ifeq ($(USE_PTHREADS),1)
+ EXTRA_LIBS = -lpthread
+ endif
diff --git a/meta/recipes-support/nspr/nspr_4.8.9.bb b/meta/recipes-support/nspr/nspr_4.8.9.bb
index 74bfe6b..0607c32 100644
--- a/meta/recipes-support/nspr/nspr_4.8.9.bb
+++ b/meta/recipes-support/nspr/nspr_4.8.9.bb
@@ -5,9 +5,10 @@ LIC_FILES_CHKSUM = "file://configure.in;beginline=3;endline=40;md5=99d4d7d68bbc4
file://Makefile.in;beginline=4;endline=38;md5=c2b512182a334e1bfa1edc4d1c84a298 "
SECTION = "libs/network"
-PR = "r1"
+PR = "r2"
SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \
+ file://remove-rpath-from-tests.patch \
"
SRC_URI += "file://nspr.pc.in"
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2 0/2] NSPR with tests and patch for RPATH
2012-02-13 23:24 [PATCH v2 0/2] NSPR with tests and patch for RPATH Andrei Gherzan
2012-02-13 23:24 ` [PATCH v2 1/2] nspr: Compile nspr with tests Andrei Gherzan
2012-02-13 23:24 ` [PATCH v2 2/2] nspr: Add patch in order to remove rpath from binaries Andrei Gherzan
@ 2012-02-24 18:17 ` Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Saul Wold @ 2012-02-24 18:17 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 02/13/2012 03:24 PM, Andrei Gherzan wrote:
> 1. Create a separate commit for removing RPATH from binaries
> 2. Add QA warning in patch
> 3. Minor tweaks in bbfile
> 4. Install tests in ${libdir}/nspr/tests
>
> The following changes since commit 7d0fc3b5ffc2806d921567dbdad3de056069896a:
>
> nspr: Integrate version 4.8.9 (2012-02-13 22:49:19 +0200)
>
> are available in the git repository at:
> git@git.gherzan.ro:agherzan/yocto-dev devel
>
> Andrei Gherzan (2):
> nspr: Compile nspr with tests
> nspr: Add patch in order to remove rpath from binaries
>
> .../nspr/files/remove-rpath-from-tests.patch | 26 ++++
> meta/recipes-support/nspr/nspr_4.8.9.bb | 136 +++++++++++++++++++-
> 2 files changed, 158 insertions(+), 4 deletions(-)
> create mode 100644 meta/recipes-support/nspr/files/remove-rpath-from-tests.patch
>
Merged into OE-core
Thanks
Sau!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-24 18:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13 23:24 [PATCH v2 0/2] NSPR with tests and patch for RPATH Andrei Gherzan
2012-02-13 23:24 ` [PATCH v2 1/2] nspr: Compile nspr with tests Andrei Gherzan
2012-02-13 23:24 ` [PATCH v2 2/2] nspr: Add patch in order to remove rpath from binaries Andrei Gherzan
2012-02-24 18:17 ` [PATCH v2 0/2] NSPR with tests and patch for RPATH Saul Wold
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.