Skip to contentSkip to conversation

fftw: add virtual/fftw to PROVIDES and EXCLUDE_FROM_WORLD

PATCH New Martin Jansa 1 participant 3 messages Oct 5, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 fftw: add virtual/fftw to PROVIDES and EXCLUDE_FROM_WORLD

* now when sysroot conflicts are fatal we really don't want to build multiple fftw providers in the same sysroot

ERROR: The recipe fftwl is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/usr/include/fftw3.f Matched in
manifest-qemuarm-fftw.populate_sysroot manifest-qemuarm-fftwf.populate_sysroot

---
 meta-oe/recipes-support/fftw/fftw.inc                    | 2 ++
 meta-oe/recipes-support/fftw/fftwf_3.3.4.bb              | 3 +++
 meta-oe/recipes-support/fftw/fftwl_3.3.4.bb              | 3 +++
 meta-oe/recipes-support/imagemagick/imagemagick_6.8.9.bb | 2 +-
 meta-oe/recipes-support/nonworking/fftw/benchfft_3.1.bb  | 2 +-
 5 files changed, 10 insertions(+), 2 deletions(-)
meta-oe/recipes-support/fftw/fftw.inc +2 -0
index 6bd622d..9007e1d 100644
@@ -3,6 +3,8 @@ SECTION = "libs"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
 
+PROVIDES = "virtual/fftw"
+
 RPROVIDES_${PN} += "libfftw3"
 
 SRC_URI = "http://www.fftw.org/fftw-${PV}.tar.gz"
meta-oe/recipes-support/fftw/fftwf_3.3.4.bb +3 -0
index 59f4a11..7a4fbac 100644
@@ -1,5 +1,8 @@
 require fftw.inc
 
+# conflicts with fftw and fftwl
+EXCLUDE_FROM_WORLD = "1"
+
 EXTRA_OECONF += "--enable-single \
     ${@base_contains('TUNE_FEATURES', 'neon', '--enable-neon', '', d)} \
 "
meta-oe/recipes-support/fftw/fftwl_3.3.4.bb +3 -0
index 8f37346..432ff12 100644
@@ -1,5 +1,8 @@
 require fftw.inc
 
+# conflicts with fftw and fftwf
+EXCLUDE_FROM_WORLD = "1"
+
 EXTRA_OECONF += "--enable-long-double"
 
 SRC_URI[md5sum] = "2edab8c06b24feeb3b82bbb3ebf3e7b3"
meta-oe/recipes-support/imagemagick/imagemagick_6.8.9.bb +1 -1
index 9b15f62..454db64 100644
@@ -3,7 +3,7 @@ SECTION = "console/utils"
 LICENSE = "ImageMagick"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=5d84c6ddd4028aa53d028b4c50f9361e"
 # FIXME: There are many more checked libraries. All should be added or explicitly disabled to get consistent results.
-DEPENDS = "lcms bzip2 jpeg libpng librsvg tiff zlib fftw freetype"
+DEPENDS = "lcms bzip2 jpeg libpng librsvg tiff zlib virtual/fftw freetype"
 
 PATCHSET = "8"
 SRC_URI = "http://www.imagemagick.org/download/ImageMagick-${PV}-${PATCHSET}.tar.bz2 \
meta-oe/recipes-support/nonworking/fftw/benchfft_3.1.bb +1 -1
index 5da4561..feb3c3c 100644
@@ -3,7 +3,7 @@ SECTION = "libs"
 LICENSE = "GPLv2"
 
 # single precision fftw is called fftwf 
-DEPENDS = "fftwf"
+DEPENDS = "virtual/fftw"
 
 SRC_URI = "http://www.fftw.org/benchfft/benchfft-${PV}.tar.gz"
 
Signature · 1 line
2.1.1
#1 lore raw

PATCH 2/3 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

---
 .../subsurface/subsurface/libm.patch               | 17 ---------------
 .../subsurface/subsurface/pkgconfig.patch          | 22 -------------------
 .../recipes-extended/subsurface/subsurface_git.bb  | 25 ++++++----------------
 3 files changed, 7 insertions(+), 57 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/subsurface/subsurface/libm.patch
 delete mode 100644 meta-oe/recipes-extended/subsurface/subsurface/pkgconfig.patch
meta-oe/recipes-extended/subsurface/subsurface/libm.patch deleted +0 -17
deleted file mode 100644
index 7995608..0000000
@@ -1,17 +0,0 @@
-| /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'
-| /media/build1/poky/build1/tmp/sysroots/qemux86/lib/libm.so.6: error adding symbols: DSO missing from command line
-| collect2: error: ld returned 1 exit status
-
-Index: git/Makefile
-===================================================================
---- git.orig/Makefile	2014-07-17 20:59:03.152489041 +0000
-+++ git/Makefile	2014-07-17 20:59:19.020489473 +0000
-@@ -50,7 +50,7 @@
- LIBDIVECOMPUTERCFLAGS = -I$(LIBDIVECOMPUTERINCLUDES)
- LIBDIVECOMPUTER = $(LIBDIVECOMPUTERARCHIVE) $(LIBUSB)
- 
--LIBS = $(LIBXML2) $(LIBGTK) $(LIBDIVECOMPUTER) -lpthread
-+LIBS = $(LIBXML2) $(LIBGTK) $(LIBDIVECOMPUTER) -lpthread -lm
- 
- OBJS =	main.o dive.o profile.o info.o equipment.o divelist.o \
- 	parse-xml.o save-xml.o libdivecomputer.o print.o uemis.o \
meta-oe/recipes-extended/subsurface/subsurface/pkgconfig.patch deleted +0 -22
deleted file mode 100644
index 1f294fc..0000000
@@ -1,22 +0,0 @@
-Index: git/Makefile
-===================================================================
---- git.orig/Makefile	2014-07-17 20:53:23.620479788 +0000
-+++ git/Makefile	2014-07-17 20:56:07.992484267 +0000
-@@ -45,7 +45,7 @@
- # about it if it doesn't.
- LIBUSB = $(shell pkg-config --libs libusb-1.0 2> /dev/null)
- 
--LIBXML2 = $(shell xml2-config --libs)
-+LIBXML2 = $(shell pkg-config --libs libxml-2.0)
- LIBGTK = $(shell pkg-config --libs gtk+-2.0 glib-2.0 gconf-2.0)
- LIBDIVECOMPUTERCFLAGS = -I$(LIBDIVECOMPUTERINCLUDES)
- LIBDIVECOMPUTER = $(LIBDIVECOMPUTERARCHIVE) $(LIBUSB)
-@@ -71,7 +71,7 @@
- 	$(INSTALL) $(MANFILES) $(MANDIR)
- 
- parse-xml.o: parse-xml.c dive.h
--	$(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c `xml2-config --cflags`  parse-xml.c
-+	$(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c `pkg-config --cflags libxml-2.0`  parse-xml.c
- 
- save-xml.o: save-xml.c dive.h
- 	$(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c save-xml.c
meta-oe/recipes-extended/subsurface/subsurface_git.bb +7 -18
index fc50eb6..1edb19e 100644
@@ -4,29 +4,18 @@ LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
 DEPENDS = "libdivecomputer gtk+ libxml2 glib-2.0 gconf"
 
-inherit gtk-icon-cache
+PNBLACKLIST[subsurface] = "Needs to be upgraded for compatibility with new libdivecomputer"
+
+inherit gtk-icon-cache cmake
 
 inherit gitpkgv
 PKGV = "${GITPKGVTAG}"
-PV = "1.1"
+PV = "4.2"
 
-SRCREV = "bd275d73ac06823619230915a3aa29deddc996fb"
-SRC_URI = "git://subsurface.hohndel.org/subsurface.git \
-           file://pkgconfig.patch \
-           file://libm.patch"
+SRCREV = "f61ee20ba356ecfc4c5b247f548f52d588179c94"
+SRC_URI = "git://subsurface.hohndel.org/subsurface.git"
 S = "${WORKDIR}/git"
 
-EXTRA_OEMAKE = "CC='${CC}' \
-                libdc-usr=${STAGING_INCDIR}/libdivecomputer/* \
-                LIBDIVECOMPUTERINCLUDES=${STAGING_INCDIR}/libdivecomputer \
-                LIBDIVECOMPUTERARCHIVE=${STAGING_LIBDIR}/libdivecomputer.a \
-"
-
-do_install() {
-    oe_runmake install DESTDIR=${D}
-    rm ${D}${datadir}/icons/hicolor/icon-theme.cache
-}
-
-FILES_${PN} += "${datadir}/icons/hicolor/scalable/apps/subsurface.svg"
+#FILES_${PN} += "${datadir}/icons/hicolor/scalable/apps/subsurface.svg"
 RRECOMMENDS_${PN}_append_libc-glibc = " glibc-gconv-iso8859-15"
 
Signature · 1 line
2.1.1
#2 lore raw

PATCH 3/3 xf86-video-geode: fix build with new glibc-2.20

In reply to Martin Jansa
---
 ...1-Add-config.h-include-to-src-lx_memory.c.patch | 41 ++++++++++++++++++++++
 .../xorg-driver/xf86-video-geode_2.11.16.bb        |  1 +
 2 files changed, 42 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-geode/0001-Add-config.h-include-to-src-lx_memory.c.patch
meta-oe/recipes-graphics/xorg-driver/xf86-video-geode/0001-Add-config.h-include-to-src-lx_memory.c.patch new file +41 -0
new file mode 100644
index 0000000..fcd2f68
@@ -0,0 +1,41 @@
+From 621d946e56efac2c779b83b1a5c6b645169c4ebd Mon Sep 17 00:00:00 2001
+From: "Brian A. Lloyd" <[email protected]>
+Date: Wed, 1 Oct 2014 12:35:18 +0300
+Subject: [PATCH] Add config.h include to src/lx_memory.c
+
+The src/lx_memory.c file uses the xf86.h header file.  This file must have
+HAVE_STRNDUP defined before calling it when the building platform has a strndup
+function.  When using config.h, this file doesn't have that define and so fails
+to compile.
+
+The attached patch adds the conditional config.h to this file so it may compile
+on the affected platforms.
+
+The patch is trivial and may be included and used under whatever licensing
+desired.
+
+Closes: Free Desktop Bug #84541
+
+Signed-off-by: Brian A. Lloyd <[email protected]>
+Upstream-Status: Backport
+---
+ src/lx_memory.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/lx_memory.c b/src/lx_memory.c
+index f26d280..992446f 100644
+--- a/src/lx_memory.c
++++ b/src/lx_memory.c
+@@ -22,6 +22,9 @@
+  * contributors may be used to endorse or promote products derived from this
+  * software without specific prior written permission.
+  */
++#if HAVE_CONFIG_H
++#include "config.h"
++#endif
+ 
+ #include "xf86.h"
+ #include "geode.h"
+-- 
+2.1.1
+
meta-oe/recipes-graphics/xorg-driver/xf86-video-geode_2.11.16.bb +1 -0
index 4e8df46..478d088 100644
@@ -4,6 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e7f3e39474aeea5af381a8e103dafc36"
 SUMMARY = "X.org server -- Geode GX2/LX display driver"
 PR = "${INC_PR}.0"
 
+SRC_URI += "file://0001-Add-config.h-include-to-src-lx_memory.c.patch"
 SRC_URI[md5sum] = "35fa387f6a33f6b22a56ce4bda424392"
 SRC_URI[sha256sum] = "38fc1f55e29fb7985b90c9021a4b7e5295d42888bd669174f42f3b7f681fc1a7"
 
Signature · 1 line
2.1.1