Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-multimedia][PATCH] libmusicbrainz: fix subsequent invocations of do_configure
@ 2013-03-19 12:44 Andreas Oberritter
  2013-03-22  9:18 ` Martin Jansa
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Oberritter @ 2013-03-19 12:44 UTC (permalink / raw)
  To: openembedded-devel

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

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 .../recipes-multimedia/musicbrainz/libmusicbrainz_git.bb        |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
index 051db7b..f6a8f53 100644
--- a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
+++ b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
@@ -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} \
-- 
1.7.10.4




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-multimedia][PATCH] libmusicbrainz: fix subsequent invocations of do_configure
  2013-03-19 12:44 [meta-multimedia][PATCH] libmusicbrainz: fix subsequent invocations of do_configure Andreas Oberritter
@ 2013-03-22  9:18 ` Martin Jansa
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2013-03-22  9:18 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1980 bytes --]

On Tue, Mar 19, 2013 at 01:44:20PM +0100, Andreas Oberritter wrote:
> Every second invocation of do_configure failed with this error:

Applied, thanks!

> 
> | CMake Error at src/CMakeLists.txt:19 (INCLUDE):
> |   include could not find load file:
> |
> |     [...]/git/build-native/ImportExecutables.cmake
> 
> Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
> ---
>  .../recipes-multimedia/musicbrainz/libmusicbrainz_git.bb        |    7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
> index 051db7b..f6a8f53 100644
> --- a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
> +++ b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
> @@ -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} \
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-22  9:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19 12:44 [meta-multimedia][PATCH] libmusicbrainz: fix subsequent invocations of do_configure Andreas Oberritter
2013-03-22  9:18 ` Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox