libmusicbrainz: upgrade to git SRCREV 0749dd0a35b4a543
include/musicbrainz3/includes.h: removed from LIC_FILES_CHKSUM - the file is not present in the new version fix_build_issue_for_gcc_4.5.0.patch: removed - the patched files are removed [Other changes] - moved to git (the last tag version doesn't support cross-compilation) - we need to build the native make-c-interface executable before configuring cmake for the target (From OE-Core rev: a9d25a8e6720ceff5cfefa3191026357dd6e0f49) Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
aa90e6090d
commit
216bceccf7
|
@ -1,39 +0,0 @@
|
||||||
GCC 4.4 cleaned up some more C++ headers. You always have to #include
|
|
||||||
headers directly and cannot rely for things to be included indirectly.
|
|
||||||
|
|
||||||
Otherwise you get errors like this:
|
|
||||||
|
|
||||||
| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp: In function 'std::string MusicBrainz::intToString(int)':
|
|
||||||
| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp:38:23: error: 'sprintf' was not declared in this scope
|
|
||||||
| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp: In function 'void MusicBrainz::debug(const char*, ...)':
|
|
||||||
| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp:80:10: error: 'stderr' was not declared in this scope
|
|
||||||
| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp:80:33: error: 'fprintf' was not declared in this scope
|
|
||||||
| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp:81:26: error: 'vfprintf' was not declared in this scope
|
|
||||||
| make[2]: *** [src/CMakeFiles/musicbrainz3.dir/utils_private.o] Error 1
|
|
||||||
| make[2]: *** Waiting for unfinished jobs....
|
|
||||||
| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/xmlParser/xmlParser.cpp:116:1: warning: 'typedef' was ignored in this declaration
|
|
||||||
| make[1]: *** [src/CMakeFiles/musicbrainz3.dir/all] Error 2
|
|
||||||
| make: *** [all] Error 2
|
|
||||||
| FATAL: oe_runmake failed
|
|
||||||
NOTE: package libmusicbrainz-3.0.2-r0: task do_compile: Failed
|
|
||||||
|
|
||||||
Found the solution here:
|
|
||||||
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504895
|
|
||||||
|
|
||||||
Date: 2010/07/28
|
|
||||||
Nitin A Kamble <nitin.a.kamble@intel.com>
|
|
||||||
|
|
||||||
Upstream-Status: Inappropriate [debian patch]
|
|
||||||
|
|
||||||
Index: libmusicbrainz-3.0.2/src/utils_private.cpp
|
|
||||||
===================================================================
|
|
||||||
--- libmusicbrainz-3.0.2.orig/src/utils_private.cpp
|
|
||||||
+++ libmusicbrainz-3.0.2/src/utils_private.cpp
|
|
||||||
@@ -20,6 +20,7 @@
|
|
||||||
* $Id: utils_private.cpp 9934 2008-07-02 06:57:10Z luks $
|
|
||||||
*/
|
|
||||||
|
|
||||||
+#include <cstdio>
|
|
||||||
#include <cstdlib>
|
|
||||||
#include <cstring>
|
|
||||||
#include <cstdarg>
|
|
|
@ -1,22 +0,0 @@
|
||||||
SUMMARY = "MusicBrainz Client"
|
|
||||||
DESCRIPTION = "The MusicBrainz client is a library which can be built into other programs. The library allows you to access the data held on the MusicBrainz server."
|
|
||||||
HOMEPAGE = "http://musicbrainz.org"
|
|
||||||
LICENSE = "LGPLv2.1+"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24 \
|
|
||||||
file://include/musicbrainz3/includes.h;beginline=1;endline=21;md5=9ab2846573f560cea7561da472803a72"
|
|
||||||
DEPENDS = "expat neon"
|
|
||||||
|
|
||||||
PR = "r4"
|
|
||||||
|
|
||||||
SRC_URI = "http://ftp.musicbrainz.org/pub/musicbrainz/${BPN}-${PV}.tar.gz \
|
|
||||||
file://fix_build_issue_for_gcc_4.5.0.patch \
|
|
||||||
file://allow-libdir-override.patch "
|
|
||||||
|
|
||||||
LDFLAGS_prepend_libc-uclibc = " -lpthread "
|
|
||||||
|
|
||||||
SRC_URI[md5sum] = "f4824d0a75bdeeef1e45cc88de7bb58a"
|
|
||||||
SRC_URI[sha256sum] = "7fd459a9fd05be9faec60a9a21caa9a1e9fda03147d58d8c7c95f33582a738c5"
|
|
||||||
|
|
||||||
inherit cmake pkgconfig
|
|
||||||
|
|
||||||
EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:PATH=${libdir}"
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
SUMMARY = "MusicBrainz Client"
|
||||||
|
DESCRIPTION = "The MusicBrainz client is a library which can be built into other programs. The library allows you to access the data held on the MusicBrainz server."
|
||||||
|
HOMEPAGE = "http://musicbrainz.org"
|
||||||
|
LICENSE = "LGPLv2.1+"
|
||||||
|
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24"
|
||||||
|
DEPENDS = "expat neon"
|
||||||
|
|
||||||
|
PV = "5.0.1+git${SRCPV}"
|
||||||
|
PR = "r0"
|
||||||
|
|
||||||
|
SRCREV = "0749dd0a35b4a54316da064475863a4ac6e28e7e"
|
||||||
|
SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git \
|
||||||
|
file://allow-libdir-override.patch "
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
LDFLAGS_prepend_libc-uclibc = " -lpthread "
|
||||||
|
|
||||||
|
|
||||||
|
inherit cmake pkgconfig
|
||||||
|
|
||||||
|
do_configure_prepend() {
|
||||||
|
mkdir build-native
|
||||||
|
cd build-native
|
||||||
|
cmake -DCMAKE_C_FLAGS=${BUILD_CFLAGS} \
|
||||||
|
-DCMAKE_C_COMPILER=${BUILD_CC} \
|
||||||
|
-DCMAKE_CXX_FLAGS=${BUILD_CXXFLAGS} \
|
||||||
|
-DCMAKE_CXX_COMPILER=${BUILD_CXX} \
|
||||||
|
-DCMAKE_LINK_FLAGS=${BUILD_LDFLAGS} \
|
||||||
|
..
|
||||||
|
make
|
||||||
|
cd ..
|
||||||
|
}
|
||||||
|
|
||||||
|
EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:PATH=${libdir} \
|
||||||
|
-DIMPORT_EXECUTABLES=build-native/ImportExecutables.cmake"
|
Loading…
Reference in New Issue