Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
97
sources/poky/meta/recipes-support/apr/apr-util_1.6.3.bb
Normal file
97
sources/poky/meta/recipes-support/apr/apr-util_1.6.3.bb
Normal file
@@ -0,0 +1,97 @@
|
||||
SUMMARY = "Apache Portable Runtime (APR) companion library"
|
||||
HOMEPAGE = "http://apr.apache.org/"
|
||||
SECTION = "libs"
|
||||
DEPENDS = "apr expat"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=158aa0b1efe0c12f23d4b007ddb9a5db \
|
||||
file://include/apu_version.h;endline=15;md5=823b3d1a7225df8f7b68a69c3c2b4c71"
|
||||
|
||||
SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \
|
||||
file://configfix.patch \
|
||||
file://configure_fixes.patch \
|
||||
file://0001-test_transformation-Check-if-transform-is-supported-.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "2b74d8932703826862ca305b094eef2983c27b39d5c9414442e9976a9acf1983"
|
||||
|
||||
EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \
|
||||
--without-odbc \
|
||||
--without-pgsql \
|
||||
--without-sqlite2 \
|
||||
--with-expat=${STAGING_DIR_HOST}${prefix}"
|
||||
|
||||
|
||||
inherit autotools lib_package binconfig multilib_script
|
||||
|
||||
MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/apu-1-config"
|
||||
|
||||
OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
|
||||
|
||||
do_configure:append() {
|
||||
if [ "${CLASSOVERRIDE}" = "class-target" ]; then
|
||||
cp ${STAGING_DATADIR}/apr/apr_rules.mk ${B}/build/rules.mk
|
||||
sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${B}/build/rules.mk
|
||||
fi
|
||||
}
|
||||
do_configure:prepend:class-native() {
|
||||
mkdir ${B}/build
|
||||
cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${B}/build/rules.mk
|
||||
}
|
||||
do_configure:append:class-native() {
|
||||
sed -i "s#LIBTOOL=\$(SHELL) \$(apr_builddir)#LIBTOOL=\$(SHELL) ${STAGING_BINDIR_NATIVE}#" ${B}/build/rules.mk
|
||||
# sometimes there isn't SHELL
|
||||
sed -i "s#LIBTOOL=\$(apr_builddir)#LIBTOOL=${STAGING_BINDIR_NATIVE}#" ${B}/build/rules.mk
|
||||
}
|
||||
|
||||
do_configure:prepend:class-nativesdk() {
|
||||
cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
|
||||
sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${S}/build/rules.mk
|
||||
}
|
||||
|
||||
do_configure:append:class-nativesdk() {
|
||||
sed -i "s#\(apr_builddir\)=.*#\1=${STAGING_DATADIR}/build-1#" ${B}/build/rules.mk
|
||||
sed -i "s#\(apr_builders\)=.*#\1=${STAGING_DATADIR}/build-1#" ${B}/build/rules.mk
|
||||
sed -i "s#\(top_builddir\)=.*#\1=${STAGING_DATADIR}/build-1#" ${B}/build/rules.mk
|
||||
sed -i "s#\(LIBTOOL=\$(apr_builddir)\).*#\1/libtool#" ${B}/build/rules.mk
|
||||
}
|
||||
|
||||
do_install:append:class-target() {
|
||||
sed -i -e 's,${STAGING_DIR_HOST},,g' \
|
||||
-e 's,APU_SOURCE_DIR=.*,APR_SOURCE_DIR=,g' \
|
||||
-e 's,APU_BUILD_DIR=.*,APR_BUILD_DIR=,g' ${D}${bindir}/apu-1-config
|
||||
}
|
||||
|
||||
PACKAGECONFIG ??= "crypto gdbm"
|
||||
PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
|
||||
PACKAGECONFIG[crypto] = "--with-openssl=${STAGING_DIR_HOST}${prefix} --with-crypto,--without-crypto,openssl"
|
||||
PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_DIR_HOST}${prefix},--without-sqlite3,sqlite3"
|
||||
PACKAGECONFIG[gdbm] = "--with-dbm=gdbm --with-gdbm=${STAGING_DIR_HOST}${prefix},--without-gdbm,gdbm"
|
||||
|
||||
#files ${libdir}/apr-util-1/*.so are not symlinks but loadable modules thus they are packaged in ${PN}
|
||||
FILES:${PN} += "${libdir}/apr-util-1/apr*${SOLIBS} ${libdir}/apr-util-1/apr*${SOLIBSDEV}"
|
||||
FILES:${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/*.la"
|
||||
FILES:${PN}-staticdev += "${libdir}/apr-util-1/*.a"
|
||||
|
||||
INSANE_SKIP:${PN} += "dev-so"
|
||||
|
||||
inherit ptest
|
||||
|
||||
RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-gconv-iso8859-1 glibc-gconv-iso8859-2 glibc-gconv-utf-7"
|
||||
RDEPENDS:${PN}-ptest += "libgcc"
|
||||
|
||||
do_compile_ptest() {
|
||||
cd ${B}/test
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
t=${D}${PTEST_PATH}/test
|
||||
mkdir $t
|
||||
for i in testall data; do \
|
||||
cp -r ${B}/test/$i $t; \
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user