libmtp: fix build issue
PATCH v2 1/2 libmtp: fix build issue
DEBUG: Executing shell function BUILDSPEC
| error: line 109: %package -n mtp-tools: package mtp-tools already exists
Yes, there are two entries in libmtp.spec. Under packages-split, mtp-tools is empty but libmtp-bin is not.
Removed PKG_${PN}-bin , this alignes how Debian split its packages
Signed-off-by Armin Kuster <[email protected]>
--- meta-oe/recipes-connectivity/libmtp/libmtp_1.1.5.bb | 3 --- 1 file changed, 3 deletions(-)
meta-oe/recipes-connectivity/libmtp/libmtp_1.1.5.bb +0 -3
@@ -50,9 +50,6 @@ PACKAGES =+ "libmtp-common libmtp-runtime mtp-tools" RDEPENDS_${PN} += "libmtp-common" RRECOMMENDS_${PN} += "libmtp-runtime mtp-tools" FILES_${PN}-dbg += "${nonarch_base_libdir}/udev/.debug/*" -PKG_${PN}-bin = "mtp-tools" -SUMMARY_${PN}-bin = "Tools for communicating with MTP devices" -DESCRIPTION_${PN}-bin = "${DESCRIPTION}\nThis package contains tools for communicating with MTP devices." FILES_libmtp-common = "${nonarch_base_libdir}/udev/rules.d/*" SUMMARY_libmtp-common = "The udev rules file for MTP devices" FILES_libmtp-runtime = "${nonarch_base_libdir}/udev/mtp-probe"
Signature · 1 line
2.7.4
PATCH v2 2/2 libexecinfo: fix complie issue
define _GNU_SOURCES to fix compile issue:
execinfo.c:76:5: error: unknown type name 'Dl_info'
| Dl_info info;
| ^~~~~~~
| execinfo.c:83:13: warning: implicit declaration of function 'dladdr' [-Wimplicit-function-declaration]
| if (dladdr(buffer[i], &info) != 0) {V2: Merged two CFLAGS lines into one.
Signed-off-by Armin Kuster <[email protected]>
--- meta-oe/recipes-extended/libexecinfo/libexecinfo_1.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/libexecinfo/libexecinfo_1.1.bb +1 -1
@@ -15,7 +15,7 @@ SRC_URI = "http://distcache.freebsd.org/local-distfiles/itetcu/${BP}.tar.bz2 \ SRC_URI[md5sum] = "8e9e81c554c1c5d735bc877448e92b91" SRC_URI[sha256sum] = "c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f" -CFLAGS += "-fno-omit-frame-pointer" +CFLAGS += "-fno-omit-frame-pointer -D_GNU_SOURCE" do_install() { install -D -m 0744 ${S}/execinfo.h ${D}${includedir}/execinfo.h
Signature · 1 line
2.7.4