msgpack: new option install libs
PATCH 1/1 msgpack: new option install libs
From: bradford barr <[email protected]>
New option to install libs. MessagePack is implemented both as a C++ header and a C runtime library. If all applications linking to msgpack use the C++ header library there's no need to install the C library. This option allows a user to prevent installing unused libraries.
--- package/msgpack/Config.in | 14 ++++++++++++++ package/msgpack/msgpack.mk | 4 ++++ 2 files changed, 18 insertions(+)
package/msgpack/Config.in +14 -0
@@ -13,3 +13,17 @@ config BR2_PACKAGE_MSGPACK comment "msgpack needs a toolchain w/ C++" depends on !BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_SYNC_4 + +if BR2_PACKAGE_MSGPACK + +config BR2_PACKAGE_MSGPACK_INSTALL_LIB + bool "install lib" + default y + help + MessagePack ships both a C library and a C++ header library. + Selecting this option will install the C library in the target + directory. + + https://github.com/msgpack/msgpack-c#c-header-only-library + +endif
package/msgpack/msgpack.mk +4 -0
@@ -10,6 +10,10 @@ MSGPACK_LICENSE = BSL-1.0 MSGPACK_LICENSE_FILES = COPYING MSGPACK_INSTALL_STAGING = YES +ifneq ($(BR2_PACKAGE_MSGPACK_INSTALL_LIB),y) +MSGPACK_INSTALL_TARGET = NO +endif + define MSGPACK_INSTALL_TARGET_CMDS cp -a $(@D)/libmsgpackc.so* $(TARGET_DIR)/usr/lib endef
Signature · 1 line
2.9.3
PATCH 1/1 msgpack: new option install libs
This depends on the version bump to msgpack. Probably should have waited to submit it. Sorry.
B
Quoted 53 lines · Bradford Barr
From: bradford barr <[email protected]>
New option to install libs. MessagePack is implemented both as a C++ header and a C runtime library. If all applications linking to msgpack use the C++ header library there's no need to install the C library. This option allows a user to prevent installing unused libraries.
Signed-off-by bradford barr <[email protected]>--- package/msgpack/Config.in | 14 ++++++++++++++ package/msgpack/msgpack.mk | 4 ++++ 2 files changed, 18 insertions(+)package/msgpack/Config.in +14
-0@@ -13,3 +13,17 @@ config BR2_PACKAGE_MSGPACK comment "msgpack needs a toolchain w/ C++" depends on !BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_SYNC_4 + +if BR2_PACKAGE_MSGPACK + +config BR2_PACKAGE_MSGPACK_INSTALL_LIB + bool "install lib" + default y + help + MessagePack ships both a C library and a C++ header library. + Selecting this option will install the C library in the target + directory. + + https://github.com/msgpack/msgpack-c#c-header-only-library + +endifpackage/msgpack/msgpack.mk +4
-1@@ -10,6 +10,10 @@ MSGPACK_LICENSE = BSL-1.0 MSGPACK_LICENSE_FILES = COPYING MSGPACK_INSTALL_STAGING = YES +ifneq ($(BR2_PACKAGE_MSGPACK_INSTALL_LIB),y) +MSGPACK_INSTALL_TARGET = NO +endif + define MSGPACK_INSTALL_TARGET_CMDS cp -a $(@D)/libmsgpackc.so* $(TARGET_DIR)/usr/lib endef --2.9.3
PATCH 1/1 msgpack: new option install libs
Quoted 2 lines · Bradford Barr
This depends on the version bump to msgpack. Probably should have waited to submit it. Sorry.
Better yet, submit both as a series. For now it's OK though.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 msgpack: new option install libs
Will do next time. Sorry about that.
B
Quoted 11 lines · Arnout Vandecappelle
Quoted 2 lines · Bradford Barr
This depends on the version bump to msgpack. Probably should have waited to submit it. Sorry.
Better yet, submit both as a series. For now it's OK though.
Regards,
Arnout
Quoted 9 lines
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
<+32%2016%2028%2065%2000>
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR LeuvenLinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170920/56148a3b/attachment.html>
PATCH 1/1 msgpack: new option install libs
In reply to Bradford BarrHi Bradford,
Quoted 6 lines · Bradford Barr
From: bradford barr <[email protected]>
New option to install libs. MessagePack is implemented both as a C++ header and a C runtime library. If all applications linking to msgpack use the C++ header library there's no need to install the C library. This option allows a user to prevent installing unused libraries.
The version bump was applied long ago so this patch can be applied now.
However, in the meantime the build system has been changed into CMake. This will now always install the shared library to staging, if I understand correctly. So the solution of simply saying MSGPACK_INSTALL_TARGET = NO is no longer
sufficient: with the shared library and the C headers in staging, another package may pick up these headers/library and try to link with it, which will lead to a runtime failure.
Could you find a fix for that and resubmit?
Thanks,
Regards,
Arnout
Quoted 45 lines
Signed-off-by bradford barr <[email protected]>--- package/msgpack/Config.in | 14 ++++++++++++++ package/msgpack/msgpack.mk | 4 ++++ 2 files changed, 18 insertions(+)package/msgpack/Config.in +14
-0@@ -13,3 +13,17 @@ config BR2_PACKAGE_MSGPACK comment "msgpack needs a toolchain w/ C++" depends on !BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_SYNC_4 + +if BR2_PACKAGE_MSGPACK + +config BR2_PACKAGE_MSGPACK_INSTALL_LIB + bool "install lib" + default y + help + MessagePack ships both a C library and a C++ header library. + Selecting this option will install the C library in the target + directory. + + https://github.com/msgpack/msgpack-c#c-header-only-library + +endifpackage/msgpack/msgpack.mk +4
-0@@ -10,6 +10,10 @@ MSGPACK_LICENSE = BSL-1.0 MSGPACK_LICENSE_FILES = COPYING MSGPACK_INSTALL_STAGING = YES +ifneq ($(BR2_PACKAGE_MSGPACK_INSTALL_LIB),y) +MSGPACK_INSTALL_TARGET = NO +endif + define MSGPACK_INSTALL_TARGET_CMDS cp -a $(@D)/libmsgpackc.so* $(TARGET_DIR)/usr/lib endef
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF