siteinfo: Move apr configure cache to common-linux
PATCH v2 1/4 siteinfo: Move apr configure cache to common-linux
There are variables which are used in all target specific sitefiles. Move it to common-linux, so it can be effective
for all targets. Usually they will vary based upon libc
e.g. musl does not have process shared mutexes so apr_cv_process_shared_works should be no for it. For glibc though it should be yes but existing behaviour is to use 'no' so its left as it is.
--- meta/site/arm-common | 5 ----- meta/site/common-linux | 3 +++ meta/site/ix86-common | 4 ---- meta/site/mips-common | 3 --- meta/site/nios2-linux | 3 --- meta/site/powerpc32-linux | 2 -- meta/site/sh-common | 3 --- 7 files changed, 3 insertions(+), 20 deletions(-)
meta/site/arm-common +0 -5
@@ -8,11 +8,6 @@ ac_cv_header_netinet_sctp_h=${ac_cv_header_netinet_sctp_h=no} ac_cv_header_netinet_sctp_uio_h=${ac_cv_header_netinet_sctp_uio_h=no} ac_cv_sctp=${ac_cv_sctp=no} -# apache -ac_cv_func_pthread_key_delete=${ac_cv_func_pthread_key_delete=yes} -apr_cv_process_shared_works=${apr_cv_process_shared_works=no} -apr_cv_tcp_nodelay_with_cork=${apr_cv_tcp_nodelay_with_cork=yes} - # bash ac_cv_c_long_double=${ac_cv_c_long_double=yes} bash_cv_func_sigsetjmp=${bash_cv_func_sigsetjmp=missing}
meta/site/common-linux +3 -0
@@ -5,6 +5,9 @@ gl_cv_header_working_fcntl_h=${gl_cv_header_working_fcntl_h=yes} # apr ac_cv_file__dev_zero=${ac_cv_file__dev_zero=yes} ac_cv_sizeof_pid_t=${ac_cv_sizeof_pid_t=4} +ac_cv_func_pthread_key_delete=${ac_cv_func_pthread_key_delete=yes} +apr_cv_tcp_nodelay_with_cork=${apr_cv_tcp_nodelay_with_cork=yes} +apr_cv_process_shared_works=${apr_cv_process_shared_works=no} # samba samba_cv_HAVE_IFACE_AIX=${samba_cv_HAVE_IFACE_AIX=no}
meta/site/ix86-common +0 -4
@@ -24,7 +24,6 @@ ac_cv_sizeof_ino_t=${ac_cv_sizeof_ino_t=4} ac_cv_sizeof_dev_t=${ac_cv_sizeof_dev_t=8} ac_cv_func_lstat_dereferences_slashed_symlink=${ac_cv_func_lstat_dereferences_slashed_symlink=yes} ac_cv_func_lstat_empty_string_bug=${ac_cv_func_lstat_empty_string_bug=no} -ac_cv_func_pthread_key_delete=${ac_cv_func_pthread_key_delete=yes} ac_cv_func_setvbuf_reversed=${ac_cv_func_setvbuf_reversed=no} ac_cv_func_stat_empty_string_bug=${ac_cv_func_stat_empty_string_bug=no} ac_cv_func_stat_ignores_trailing_slash=${ac_cv_func_stat_ignores_trailing_slash=no}
@@ -35,9 +34,6 @@ ac_cv_header_netinet_sctp_uio_h=${ac_cv_header_netinet_sctp_uio_h=no} ac_cv_linux_vers=${ac_cv_linux_vers=2} ac_cv_sctp=${ac_cv_sctp=no} -apr_cv_process_shared_works=${apr_cv_process_shared_works=no} -apr_cv_tcp_nodelay_with_cork=${apr_cv_tcp_nodelay_with_cork=yes} - ac_cv_path_ESD_CONFIG=no lf_cv_sane_realloc=yes jm_cv_func_gettimeofday_clobber=no
meta/site/mips-common +0 -3
@@ -30,10 +30,7 @@ ac_cv_alignof_CORBA_pointer=4 ac_cv_alignof_CORBA_struct=1 # apache -ac_cv_func_pthread_key_delete=${ac_cv_func_pthread_key_delete=yes} -apr_cv_process_shared_works=${apr_cv_process_shared_works=no} ac_cv_sizeof_ssize_t=${ac_cv_sizeof_ssize_t=4} -apr_cv_tcp_nodelay_with_cork=${apr_cv_tcp_nodelay_with_cork=yes} # glib glib_cv_va_val_copy=${glib_cv_va_val_copy=yes}
meta/site/nios2-linux +0 -3
@@ -7,10 +7,7 @@ ac_cv_header_netinet_sctp_uio_h=${ac_cv_header_netinet_sctp_uio_h=no} ac_cv_sctp=${ac_cv_sctp=no} # apache -ac_cv_func_pthread_key_delete=${ac_cv_func_pthread_key_delete=yes} -apr_cv_process_shared_works=${apr_cv_process_shared_works=no} ac_cv_sizeof_ssize_t=${ac_cv_sizeof_ssize_t=4} -apr_cv_tcp_nodelay_with_cork=${apr_cv_tcp_nodelay_with_cork=yes} # bash ac_cv_c_long_double=${ac_cv_c_long_double=yes}
meta/site/powerpc32-linux +0 -2
@@ -38,8 +38,6 @@ cookie_io_functions_use_off64_t=${cookie_io_functions_use_off64_t=yes} # apache -ac_cv_func_pthread_key_delete=${ac_cv_func_pthread_key_delete=yes} -apr_cv_process_shared_works=${apr_cv_process_shared_works=no} ac_cv_sizeof_ssize_t=${ac_cv_sizeof_ssize_t=4} ac_cv_header_netinet_sctp_h=${ac_cv_header_netinet_sctp_h=no}
meta/site/sh-common +0 -3
@@ -29,9 +29,6 @@ ac_cv_ushort=${ac_cv_ushort=yes} ac_cv_time_r_type=${ac_cv_time_r_type=POSIX} # apache -ac_cv_func_pthread_key_delete=${ac_cv_func_pthread_key_delete=yes} -apr_cv_process_shared_works=${apr_cv_process_shared_works=no} -apr_cv_tcp_nodelay_with_cork=${apr_cv_tcp_nodelay_with_cork=yes} ac_cv_sizeof_ssize_t=${ac_cv_sizeof_ssize_t=4} ac_cv_header_netinet_sctp_h=${ac_cv_header_netinet_sctp_h=no}
Signature · 1 line
1.8.3.1
PATCH v2 2/4 world-broken: Add packages broken on musl
These 14 packages are failing aross all architectures on musl targets.
--- meta/conf/distro/include/world-broken.inc | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)
meta/conf/distro/include/world-broken.inc +44 -0
@@ -2,4 +2,48 @@ # Exclude known broken packages # +# rt-tests needs PI mutex support in libc +EXCLUDE_FROM_WORLD_pn-rt-tests_libc-musl = "1" +# error: no member named 'sin_port' in 'struct sockaddr_in6' +# this is due to libtirpc using ipv6 but portmap rpc expecting ipv4 +EXCLUDE_FROM_WORLD_pn-portmap_libc-musl = "1" +EXCLUDE_FROM_WORLD_pn-unfs3_libc-musl = "1" + +# error: use of undeclared identifier '_STAT_VER' +EXCLUDE_FROM_WORLD_pn-pseudo_libc-musl = "1" + +# error: Need to implement custom I/O +EXCLUDE_FROM_WORLD_pn-libsolv_libc-musl = "1" + +# undefined reference to `pthread_tryjoin_np' +EXCLUDE_FROM_WORLD_pn-btrfs-tools_libc-musl = "1" + +# error: error.h: No such file or directory +EXCLUDE_FROM_WORLD_pn-prelink_libc-musl = "1" + +# error: use of undeclared identifier 'O_CREAT' +EXCLUDE_FROM_WORLD_pn-libbsd_libc-musl = "1" + +# error: expected declaration specifiers before '__nonnull' +EXCLUDE_FROM_WORLD_pn-lttng-ust_libc-musl = "1" +EXCLUDE_FROM_WORLD_pn-lttng-tools_libc-musl = "1" + +# error: obstack.h: No such file or directory +EXCLUDE_FROM_WORLD_pn-systemtap_libc-musl = "1" +EXCLUDE_FROM_WORLD_pn-systemtap-uprobes_libc-musl = "1" + +# error: a parameter list without types is only allowed in a function definition +# void (*_function)(sigval_t); +EXCLUDE_FROM_WORLD_pn-qemu_libc-musl = "1" + +# glibc specific funcrions +# error: storage size of 'mi' isn't known struct mallinfo mi +EXCLUDE_FROM_WORLD_pn-valgrind_libc-musl = "1" + +# error: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Werror=format=] +# snprintf(buf, size, "%s", strerror_r(err, sbuf, sizeof(sbuf))); +EXCLUDE_FROM_WORLD_pn-perf_libc-musl = "1" + +# error: 'RTLD_NEXT' was not declared in this scope +EXCLUDE_FROM_WORLD_pn-gcc-sanitizers_libc-musl = "1"
Signature · 1 line
1.8.3.1
PATCH v2 3/4 packagegroup: Disable packages not available on musl
In reply to Khem RajThey otherwise get pulled into world builds via dependencies even when they are excluded from world globally
--- .../recipes-core/packagegroups/packagegroup-core-tools-profile.bb | 8 +++++++- meta/recipes-core/packagegroups/packagegroup-self-hosted.bb | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-)
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +7 -1
@@ -17,7 +17,7 @@ PROFILE_TOOLS_X_aarch64 = "" PROFILE_TOOLS_SYSTEMD = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-analyze', '', d)}" RRECOMMENDS_${PN} = "\ - perf \ + ${PERF} \ trace-cmd \ blktrace \ ${PROFILE_TOOLS_X} \
@@ -28,11 +28,14 @@ PROFILETOOLS = "\ powertop \ latencytop \ " +PERF = "perf" +PERF_libc-musl = "" # systemtap needs elfutils which is not fully buildable on uclibc # hence we exclude it from uclibc based builds SYSTEMTAP = "systemtap" SYSTEMTAP_libc-uclibc = "" +SYSTEMTAP_libc-musl = "" SYSTEMTAP_mips = "" SYSTEMTAP_mips64 = "" SYSTEMTAP_mips64n32 = ""
@@ -46,8 +49,10 @@ SYSTEMTAP_aarch64 = "" LTTNGUST = "lttng-ust" LTTNGUST_libc-uclibc = "" +LTTNGUST_libc-musl = "" LTTNGTOOLS = "lttng-tools" +LTTNGTOOLS_libc-musl = "" LTTNGMODULES = "lttng-modules"
@@ -57,6 +62,7 @@ BABELTRACE = "babeltrace" VALGRIND = "valgrind" VALGRIND_libc-uclibc = "" +VALGRIND_libc-musl = "" VALGRIND_mips = "" VALGRIND_mips64 = "" VALGRIND_mips64n32 = ""
meta/recipes-core/packagegroups/packagegroup-self-hosted.bb +3 -1
@@ -45,9 +45,11 @@ RDEPENDS_packagegroup-self-hosted-host-tools = "\ mc-helpers-perl \ mc-helpers-python \ parted \ - pseudo \ + ${PSEUDO} \ screen \ " +PSEUDO = "pseudo" +PSEUDO_libc-musl = "" RRECOMMENDS_packagegroup-self-hosted-host-tools = "\ kernel-module-tun \
Signature · 1 line
1.8.3.1
PATCH v2 4/4 lttng-tools: Remove lttng-ust from PACKAGECONFIG for musl
In reply to Khem RajRemove lttng-ust from DEPENDS its added by PACKAGECONFIG anyway
--- meta/recipes-kernel/lttng/lttng-tools_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-kernel/lttng/lttng-tools_git.bb +2 -1
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=01d7fc4496aacf37d90df90b90b0cac1 \ file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ file://lgpl-2.1.txt;md5=0f0d71500e6a57fd24d825f33242b9ca" -DEPENDS = "liburcu popt lttng-ust libxml2" +DEPENDS = "liburcu popt libxml2" RDEPENDS_${PN} = "libgcc" RDEPENDS_${PN}-ptest += "make perl bash"
@@ -24,6 +24,7 @@ PACKAGECONFIG ??= "lttng-ust" PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python swig-native" PACKAGECONFIG[lttng-ust] = "--enable-lttng-ust, --disable-lttng-ust, lttng-ust" PACKAGECONFIG[kmod] = "--enable-kmod, --disable-kmod, kmod" +PACKAGECONFIG_remove_libc-musl = "lttng-ust" SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.7 \ file://Revert-Build-look-for-python-3.0-when-building-pytho.patch \
Signature · 1 line
1.8.3.1