Repository navigation
enhance(headers): mark C/C++ header-only packages as platform independent - #33503
Conversation
|
Some ci artifacts meant to be "platform independent" contain platform dependent content (shared and static libraries). You should fix it. |
Let me check |
d1b3614 to
36e060d
Compare
Thanks for pointing them out, i removed both of them. Now this PR should be good now👍🏻 |
|
It might be a good idea to add an automatic check for that. if [[ "$TERMUX_PKG_PLATFORM_INDEPENDENT" == "true" && "$elf_files" -gt 0 ]]; then
termux_error_exit "Found ELF files in architecture independent package"
fiI'll see if I can come up with something more concrete. |
That would make it easy to find arch indipendent packages using trial and error. |
Emmmm... Some platform-independent packages are host-building tools. They definitely should have elf files. |
7cf4b5b to
e3e8394
Compare
e3e8394 to
2f1cb51
Compare
Disable test, example, and doc builds (-Dimmer_BUILD_TESTS=OFF etc.) and drop test-only catch2 build dependency to prevent CMake from failing on missing Catch2 static archive during configuration.
Disable test, example, and doc builds (-Dzug_BUILD_TESTS=OFF etc.) and drop test-only catch2 build dependency to prevent CMake from failing on missing Catch2 static archive during configuration.
2f1cb51 to
3900905
Compare
|
@twaik Going to merge? Do i need to do anything? |
|
Thanks for the contribution. |
Summary of Changes
Marks 24 pure C/C++ header-only template libraries with
TERMUX_PKG_PLATFORM_INDEPENDENT=true. These libraries only install C/C++ header files (.h,.hpp) and CMake/pkg-config metadata files under$PREFIX/include/and$PREFIX/lib/pkgconfig/with zero compiled ELF binaries, shared libraries (.so), or static archives (.a).Note:
eigenandglmwere excluded becauseeigencompiles shared/static BLAS/LAPACK libraries (libeigen_blas.so,libeigen_lapack.so) andglmcompiles static librarylibglm.a.Part of architecture-independent package optimization split (<= 25 packages per PR, per TomJo2000 feedback):
golang-doc)Packages (24 Total)
cli11,ctre,doctest,eigen3,immer,lager,libmsgpack-cxx,libprotozero,librinutils,libtllist,lv2,ms-gsl,nlohmann-json,range-v3,robin-map,simde,sparsehash,stb,stduuid,toml11,tomlplusplus,urdfdom-headers,xsimd,zugVerification
All 24 package artifacts were extracted and audited: verified zero
.soshared libraries, zero.astatic libraries, and zero ELF binaries across all generated deb archives.