Skip to contentSkip to conversation

1/2] libmtp: fix build issue

meta-oe Armin Kuster 3 participants 4 messages Aug 13, 2017 – Aug 15, 2017

lore
Share & tools
lore
#0 lore raw

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

---
 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
index b5df8e0..c05ff4e 100644
@@ -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
#1 lore raw

[meta-oe][master][pyro] 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) {
---
 meta-oe/recipes-extended/libexecinfo/libexecinfo_1.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-extended/libexecinfo/libexecinfo_1.1.bb +1 -0
index f79b1ab..13a38ab 100644
@@ -16,6 +16,7 @@ SRC_URI[md5sum] = "8e9e81c554c1c5d735bc877448e92b91"
 SRC_URI[sha256sum] = "c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f"
 
 CFLAGS += "-fno-omit-frame-pointer"
+CFLAGS += " -D_GNU_SOURCE"
 
 do_install() {
     install -D -m 0744 ${S}/execinfo.h ${D}${includedir}/execinfo.h
Signature · 1 line
2.7.4
#2 lore raw

Re: [meta-oe][master][pyro] 2/2] libexecinfo: fix complie issue

Quoted 17 lines · Armin Kuster

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) {
---
 meta-oe/recipes-extended/libexecinfo/libexecinfo_1.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-extended/libexecinfo/libexecinfo_1.1.bb +0 -0
index f79b1ab..13a38ab 100644

meta-oe/recipes-extended/libexecinfo/libexecinfo_1.1.bb SRC_URI[md5sum] = "8e9e81c554c1c5d735bc877448e92b91" · line 19

Quoted 4 lines
meta-oe/recipes-extended/libexecinfo/libexecinfo_1.1.bb +1 -0
@@ -16,6 +16,7 @@ SRC_URI[md5sum] = "8e9e81c554c1c5d735bc877448e92b91"
 SRC_URI[sha256sum] = "c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f"
 
 CFLAGS += "-fno-omit-frame-pointer"
+CFLAGS += " -D_GNU_SOURCE"

Please merge it into existing assignment above. Unrelated to this patch, this recipe should
move to oe-core.

Quoted 11 lines
meta-oe/recipes-extended/libexecinfo/libexecinfo_1.1.bb +0 -1
 do_install() {
     install -D -m 0744 ${S}/execinfo.h ${D}${includedir}/execinfo.h
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
In reply to Armin Kuster

The subject doesn't contain PATCH, that's probably the reason why both these patches, didn't make it to patchwork, please resend.

Quoted 39 lines · Armin Kuster

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

---
 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
index b5df8e0..c05ff4e 100644
@@ -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"
--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel