Skip to contentSkip to conversation

Native causes installation of static linked libraries.

DISCUSSION Kjeld Flarup 2 participants 4 messages Jul 17, 2024

lore
Share & tools
lore
#0 lore raw

I may just be me who do not understand something, I got this recipe below which needs some native tools to build. It compiles but WHY does glibc suddenly start to install .a files in my rootfs?

Quoted 10 lines

rootfs/usr/lib/aarch64-oe-linux/12.3.0/libgcc.a rootfs/usr/lib/aarch64-oe-linux/12.3.0/libgcc_eh.a rootfs/usr/lib/aarch64-oe-linux/12.3.0/libgcov.a rootfs/usr/lib/libanl.a rootfs/usr/lib/libc_nonshared.a rootfs/usr/lib/libdl.a rootfs/usr/lib/libpthread.a rootfs/usr/lib/libutil.a

This is my recipe

Quoted 28 lines

SECTION = "devel"
DESCRIPTION = "*eprosima Fast DDS* (formerly Fast RTPS) is a C++ implementation of the DDS (Data Distribution Service) standard of the OMG (Object Management Group). eProsima Fast DDS implements the RTPS (Real Time Publish Subscribe) protocol, which provides publisher-subscriber communications over unreliable transports such as UDP, as defined and maintained by the Object Management Group (OMG) consortium. RTPS is also the wire interoperability protocol defined for the Data Distribution Service (DDS) standard. *eProsima Fast DDS* expose an API to access directly the RTPS protocol, giving the user full access to the protocol internals."
AUTHOR = "Miguel Company <[email protected]>" HOMEPAGE = "https://www.eprosima.com/"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" inherit pkgconfig cmake
DEPENDS = " \
asio \
fastcdr \
foonathan-memory-vendor \
libtinyxml2 \
openssl \
cmake-native \
foonathan-memory-vendor-native \
fastcdr-native \
"
BBCLASSEXTEND =+ "native nativesdk"

Quoted 9 lines

SRC_URI = "git://github.com/eProsima/Fast-DDS.git;protocol=http;branch=${PV}" SRCREV = "aa7f2bf7bed5e24878ed4d87c66422b909784243"
S = "${WORKDIR}/git"
INSANE_SKIP:${PN}="dev-deps"
FILES:${PN} += "${bindir} ${prefix}/tools" FILES:${PN}-dev += "${datadir} ${prefix}/tools" FILES:${PN}-dev += "${bindir}/fast-discovery-server-1.0.1"

Any hints of this behaviour is appreciated.

--
--
Regards
Kjeld Flarup
DEIF A/S

#1 lore raw
Quoted 1 line · Kjeld Flarup via lists.yoctoproject.org

INSANE_SKIP:${PN}="dev-deps"

Removing this and running the build again might give a hint.

A;ex

#2 lore raw
In reply to Kjeld Flarup
Quoted 3 lines · Kjeld Flarup via lists.yoctoproject.org

FILES:${PN} += "${bindir} ${prefix}/tools" FILES:${PN}-dev += "${datadir} ${prefix}/tools" FILES:${PN}-dev += "${bindir}/fast-discovery-server-1.0.1"

Also this is contradictory and incorrect (target tools should not be going to -dev). I'd suggest not tweaking -dev packaging at all.

Alex

#3 lore raw

FILES:${PN}-dev += "${bindir}/fast-discovery-server-1.0.1"

was the cause.
Thanks.
--
--
Regards
Kjeld Flarup
DEIF A/S