Skip to contentSkip to conversation

package/opkg: disable tests and manpages

PATCH New Yann E. MORIN 2 participants 2 messages Dec 13, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/opkg: disable tests and manpages

Changeset f1d3e09 (Build shared libraries only as the default) broke the opkg package.

opkg wants to link its testsuite statically with the internal libopkg. But in a shared-only build, there is no static library.

Since for Buildroot we do not care about tests, just disable them.

Fixes numerous build failures;
    http://autobuild.buildroot.net/results/ddf/ddf4b38c1df73b00b76be71db3f1eb8b1d932c55/
    http://autobuild.buildroot.net/results/c1c/c1c9a21b6583c9ef3ddd32681bb13cf91a218e8c/
    http://autobuild.buildroot.net/results/284/284bf7d6f9cebf8633143ca1ce15154de941805f/
    ...

Disable manpages at the same time.

---
Note: we could also easily patch the Makefiles to not require a static link, and that works quite well, too. But upstream has changed quite a lot in this respect, so that change would not be upstreamable. Better just disable tests as we do not use them anyway.

---
Changes v1 -> v2:
- add patch description

---
 package/opkg/0001-no-tests-no-man.patch | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 package/opkg/0001-no-tests-no-man.patch
package/opkg/0001-no-tests-no-man.patch new file +24 -0
new file mode 100644
index 0000000..87d3bf9
@@ -0,0 +1,24 @@
+Disable tests and mapages
+
+Tests are forcibly statically linked to libopkg, which does not work in
+a shared-only build.
+
+Since Buildroot does not care about testsuites, just disable building the
+tests. Disable manpages at the same time for the same reason.
+
+Note: dynamically linking with libopkg is also possible, but that would
+not be upstreamable (too much changes already in upstream).
+
+Signed-off-by: "Yann E. MORIN" <[email protected]>
+
+diff -durN opkg-v0.2.2.orig/Makefile.am opkg-v0.2.2/Makefile.am
+--- opkg-v0.2.2.orig/Makefile.am	2014-04-01 22:31:59.000000000 +0200
++++ opkg-v0.2.2/Makefile.am	2014-12-13 14:13:49.684618796 +0100
+@@ -1,6 +1,6 @@
+ ACLOCAL_AMFLAGS = -I shave
+ 
+-SUBDIRS = libbb libopkg src tests utils man
++SUBDIRS = libbb libopkg src utils
+ 
+ 
+ HOST_CPU=@host_cpu@
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/1 package/opkg: disable tests and manpages

Quoted 27 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Changeset f1d3e09 (Build shared libraries only as the default) broke the opkg package.

opkg wants to link its testsuite statically with the internal libopkg. But in a shared-only build, there is no static library.

Since for Buildroot we do not care about tests, just disable them.

Fixes numerous build failures;
    http://autobuild.buildroot.net/results/ddf/ddf4b38c1df73b00b76be71db3f1eb8b1d932c55/
    http://autobuild.buildroot.net/results/c1c/c1c9a21b6583c9ef3ddd32681bb13cf91a218e8c/
    http://autobuild.buildroot.net/results/284/284bf7d6f9cebf8633143ca1ce15154de941805f/
    ...

Disable manpages at the same time.

---
Note: we could also easily patch the Makefiles to not require a static link, and that works quite well, too. But upstream has changed quite a lot in this respect, so that change would not be upstreamable. Better just disable tests as we do not use them anyway.

Quoted 3 lines

---
Changes v1 -> v2:
- add patch description

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard