summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/subsurface
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2014-10-05 09:08:37 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2014-10-10 12:47:34 +0200
commit3f0c898617248f18facd949b8ffdb39e5abbd21f (patch)
tree6ba24b2853f3c9896c41ad0eb3ef2c87d24c322c /meta-oe/recipes-extended/subsurface
parent784af04f2b2fc7600eb1d07bcf9adabdb2ae4561 (diff)
downloadmeta-openembedded-3f0c898617248f18facd949b8ffdb39e5abbd21f.tar.gz
subsurface: blacklist until it's upgraded for libdivecomputer compatibility
* I've started with upgrade, but requires lot more changes which I'm not comfortable to finish on something I cannot test in runtime Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/subsurface')
-rw-r--r--meta-oe/recipes-extended/subsurface/subsurface/libm.patch17
-rw-r--r--meta-oe/recipes-extended/subsurface/subsurface/pkgconfig.patch22
-rw-r--r--meta-oe/recipes-extended/subsurface/subsurface_git.bb25
3 files changed, 7 insertions, 57 deletions
diff --git a/meta-oe/recipes-extended/subsurface/subsurface/libm.patch b/meta-oe/recipes-extended/subsurface/subsurface/libm.patch
deleted file mode 100644
index 79956089d..000000000
--- a/meta-oe/recipes-extended/subsurface/subsurface/libm.patch
+++ /dev/null
@@ -1,17 +0,0 @@
1| /media/build1/poky/build1/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.9.0/ld: divelist.o: undefined reference to symbol 'pow@@GLIBC_2.0'
2| /media/build1/poky/build1/tmp/sysroots/qemux86/lib/libm.so.6: error adding symbols: DSO missing from command line
3| collect2: error: ld returned 1 exit status
4
5Index: git/Makefile
6===================================================================
7--- git.orig/Makefile 2014-07-17 20:59:03.152489041 +0000
8+++ git/Makefile 2014-07-17 20:59:19.020489473 +0000
9@@ -50,7 +50,7 @@
10 LIBDIVECOMPUTERCFLAGS = -I$(LIBDIVECOMPUTERINCLUDES)
11 LIBDIVECOMPUTER = $(LIBDIVECOMPUTERARCHIVE) $(LIBUSB)
12
13-LIBS = $(LIBXML2) $(LIBGTK) $(LIBDIVECOMPUTER) -lpthread
14+LIBS = $(LIBXML2) $(LIBGTK) $(LIBDIVECOMPUTER) -lpthread -lm
15
16 OBJS = main.o dive.o profile.o info.o equipment.o divelist.o \
17 parse-xml.o save-xml.o libdivecomputer.o print.o uemis.o \
diff --git a/meta-oe/recipes-extended/subsurface/subsurface/pkgconfig.patch b/meta-oe/recipes-extended/subsurface/subsurface/pkgconfig.patch
deleted file mode 100644
index 1f294fc88..000000000
--- a/meta-oe/recipes-extended/subsurface/subsurface/pkgconfig.patch
+++ /dev/null
@@ -1,22 +0,0 @@
1Index: git/Makefile
2===================================================================
3--- git.orig/Makefile 2014-07-17 20:53:23.620479788 +0000
4+++ git/Makefile 2014-07-17 20:56:07.992484267 +0000
5@@ -45,7 +45,7 @@
6 # about it if it doesn't.
7 LIBUSB = $(shell pkg-config --libs libusb-1.0 2> /dev/null)
8
9-LIBXML2 = $(shell xml2-config --libs)
10+LIBXML2 = $(shell pkg-config --libs libxml-2.0)
11 LIBGTK = $(shell pkg-config --libs gtk+-2.0 glib-2.0 gconf-2.0)
12 LIBDIVECOMPUTERCFLAGS = -I$(LIBDIVECOMPUTERINCLUDES)
13 LIBDIVECOMPUTER = $(LIBDIVECOMPUTERARCHIVE) $(LIBUSB)
14@@ -71,7 +71,7 @@
15 $(INSTALL) $(MANFILES) $(MANDIR)
16
17 parse-xml.o: parse-xml.c dive.h
18- $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c `xml2-config --cflags` parse-xml.c
19+ $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c `pkg-config --cflags libxml-2.0` parse-xml.c
20
21 save-xml.o: save-xml.c dive.h
22 $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c save-xml.c
diff --git a/meta-oe/recipes-extended/subsurface/subsurface_git.bb b/meta-oe/recipes-extended/subsurface/subsurface_git.bb
index fc50eb680..1edb19e35 100644
--- a/meta-oe/recipes-extended/subsurface/subsurface_git.bb
+++ b/meta-oe/recipes-extended/subsurface/subsurface_git.bb
@@ -4,29 +4,18 @@ LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
4 4
5DEPENDS = "libdivecomputer gtk+ libxml2 glib-2.0 gconf" 5DEPENDS = "libdivecomputer gtk+ libxml2 glib-2.0 gconf"
6 6
7inherit gtk-icon-cache 7PNBLACKLIST[subsurface] = "Needs to be upgraded for compatibility with new libdivecomputer"
8
9inherit gtk-icon-cache cmake
8 10
9inherit gitpkgv 11inherit gitpkgv
10PKGV = "${GITPKGVTAG}" 12PKGV = "${GITPKGVTAG}"
11PV = "1.1" 13PV = "4.2"
12 14
13SRCREV = "bd275d73ac06823619230915a3aa29deddc996fb" 15SRCREV = "f61ee20ba356ecfc4c5b247f548f52d588179c94"
14SRC_URI = "git://subsurface.hohndel.org/subsurface.git \ 16SRC_URI = "git://subsurface.hohndel.org/subsurface.git"
15 file://pkgconfig.patch \
16 file://libm.patch"
17S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
18 18
19EXTRA_OEMAKE = "CC='${CC}' \ 19#FILES_${PN} += "${datadir}/icons/hicolor/scalable/apps/subsurface.svg"
20 libdc-usr=${STAGING_INCDIR}/libdivecomputer/* \
21 LIBDIVECOMPUTERINCLUDES=${STAGING_INCDIR}/libdivecomputer \
22 LIBDIVECOMPUTERARCHIVE=${STAGING_LIBDIR}/libdivecomputer.a \
23"
24
25do_install() {
26 oe_runmake install DESTDIR=${D}
27 rm ${D}${datadir}/icons/hicolor/icon-theme.cache
28}
29
30FILES_${PN} += "${datadir}/icons/hicolor/scalable/apps/subsurface.svg"
31RRECOMMENDS_${PN}_append_libc-glibc = " glibc-gconv-iso8859-15" 20RRECOMMENDS_${PN}_append_libc-glibc = " glibc-gconv-iso8859-15"
32 21