Skip to contentSkip to conversation

libmusicbrainz: fix subsequent invocations of do_configure

PATCH Applied Andreas Oberritter 2 participants 2 messages Mar 19, 2013 – Mar 22, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libmusicbrainz: fix subsequent invocations of do_configure

Every second invocation of do_configure failed with this error:

| CMake Error at src/CMakeLists.txt:19 (INCLUDE):
|   include could not find load file:
|
|     [...]/git/build-native/ImportExecutables.cmake
---
 .../recipes-multimedia/musicbrainz/libmusicbrainz_git.bb        |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb +4 -3
index 051db7b..f6a8f53 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24"
 DEPENDS = "expat neon"
 
 PV = "5.0.1+git${SRCPV}"
-PR = "r0"
+PR = "r1"
 
 SRCREV = "0749dd0a35b4a54316da064475863a4ac6e28e7e"
 SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git \
@@ -21,8 +21,9 @@ inherit cmake pkgconfig
 
 do_configure_prepend() {
     # The native build really doesn't like being rebuilt, so delete
-    # it if it's already present.
-    rm -rf build-native
+    # it if it's already present. Also delete all other files not
+    # known to Git to fix subsequent invocations of do_configure.
+    git clean -dfx -e /.pc/ -e /patches/ .
     mkdir build-native
     cd build-native
     cmake -DCMAKE_C_FLAGS=${BUILD_CFLAGS} \
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 1 line · Andreas Oberritter

Every second invocation of do_configure failed with this error:

Applied, thanks!

Quoted 44 lines
| CMake Error at src/CMakeLists.txt:19 (INCLUDE):
|   include could not find load file:
|
|     [...]/git/build-native/ImportExecutables.cmake
---
 .../recipes-multimedia/musicbrainz/libmusicbrainz_git.bb        |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb +4 -3
index 051db7b..f6a8f53 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24"
 DEPENDS = "expat neon"
 
 PV = "5.0.1+git${SRCPV}"
-PR = "r0"
+PR = "r1"
 
 SRCREV = "0749dd0a35b4a54316da064475863a4ac6e28e7e"
 SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git \
@@ -21,8 +21,9 @@ inherit cmake pkgconfig
 
 do_configure_prepend() {
     # The native build really doesn't like being rebuilt, so delete
-    # it if it's already present.
-    rm -rf build-native
+    # it if it's already present. Also delete all other files not
+    # known to Git to fix subsequent invocations of do_configure.
+    git clean -dfx -e /.pc/ -e /patches/ .
     mkdir build-native
     cd build-native
     cmake -DCMAKE_C_FLAGS=${BUILD_CFLAGS} \
Signature · 7 lines
1.7.10.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]