libmusicbrainz: Upgrade to tip of trunk

* Brings fixes for cmake4 builds

* Define _IMPORT_PREFIX using CMAKE_CURRENT_LIST_DIR, this
  will point current recipe-sysroot-native/usr which is then
  prepended to find the native make-c-interface binary

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-07-12 13:50:21 -07:00
parent 7692f40f5b
commit 1a27a18708
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -7,7 +7,7 @@ DEPENDS = "expat libxml2 libxml2-native neon neon-native libmusicbrainz-native"
PV = "5.1.0+git" PV = "5.1.0+git"
SRCREV = "4655b571a70d73d41467091f59c518517c956198" SRCREV = "4efbed3afae11ef68281816088d7cf3d0f704dfe"
SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git;branch=master;protocol=https \ SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git;branch=master;protocol=https \
file://0001-http-fetch-Pass-a-non-null-buffer-to-ne_set_request_.patch \ file://0001-http-fetch-Pass-a-non-null-buffer-to-ne_set_request_.patch \
" "
@ -20,7 +20,9 @@ EXTRA_OECMAKE:append:class-target = " -DIMPORT_EXECUTABLES=${STAGING_LIBDIR_NATI
do_install:append:class-native() { do_install:append:class-native() {
install -Dm 0755 ${B}/src/make-c-interface ${D}${bindir}/make-c-interface install -Dm 0755 ${B}/src/make-c-interface ${D}${bindir}/make-c-interface
install -Dm 0644 ${B}/ImportExecutables.cmake ${D}${libdir}/cmake/${BPN}/ImportExecutables.cmake install -Dm 0644 ${B}/ImportExecutables.cmake ${D}${libdir}/cmake/${BPN}/ImportExecutables.cmake
sed -i -e s:'${B}'/src/::g ${D}${libdir}/cmake/${BPN}/ImportExecutables.cmake sed -i '/^# Create imported target make-c-interface$/a\
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)' ${D}${libdir}/cmake/${BPN}/ImportExecutables.cmake
sed -i -e 's:${B}/src/:${_IMPORT_PREFIX}/bin/:g' ${D}${libdir}/cmake/${BPN}/ImportExecutables.cmake
} }
BBCLASSEXTEND = "native" BBCLASSEXTEND = "native"