@@ -4,7 +4,7 @@ on: | |||||
push: | push: | ||||
env: | env: | ||||
CACHE_VERSION: 11 | |||||
CACHE_VERSION: 13 | |||||
DEBIAN_FRONTEND: noninteractive | DEBIAN_FRONTEND: noninteractive | ||||
PAWPAW_SKIP_TESTS: 1 | PAWPAW_SKIP_TESTS: 1 | ||||
@@ -13,15 +13,6 @@ jobs: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
include: | include: | ||||
# macos 12 | |||||
- target: macos | |||||
os: macos-12 | |||||
- target: macos-10.15 | |||||
os: macos-12 | |||||
- target: macos-universal | |||||
os: macos-12 | |||||
- target: macos-universal-10.15 | |||||
os: macos-12 | |||||
# macos 13 | # macos 13 | ||||
- target: macos | - target: macos | ||||
os: macos-13 | os: macos-13 | ||||
@@ -31,6 +22,24 @@ jobs: | |||||
os: macos-13 | os: macos-13 | ||||
- target: macos-universal-10.15 | - target: macos-universal-10.15 | ||||
os: macos-13 | os: macos-13 | ||||
# macos 14 | |||||
- target: macos | |||||
os: macos-14 | |||||
- target: macos-10.15 | |||||
os: macos-14 | |||||
- target: macos-universal | |||||
os: macos-14 | |||||
- target: macos-universal-10.15 | |||||
os: macos-14 | |||||
# macos 15 | |||||
- target: macos | |||||
os: macos-15 | |||||
- target: macos-10.15 | |||||
os: macos-15 | |||||
- target: macos-universal | |||||
os: macos-15 | |||||
- target: macos-universal-10.15 | |||||
os: macos-15 | |||||
# debian:11 | # debian:11 | ||||
- target: linux-aarch64 | - target: linux-aarch64 | ||||
container: debian:11 | container: debian:11 | ||||
@@ -169,15 +178,33 @@ jobs: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
include: | include: | ||||
# macos 12 | |||||
# macos 13 | |||||
- target: macos | |||||
os: macos-13 | |||||
- target: macos-10.15 | |||||
os: macos-13 | |||||
- target: macos-universal | |||||
os: macos-13 | |||||
- target: macos-universal-10.15 | |||||
os: macos-13 | |||||
# macos 14 | |||||
- target: macos | - target: macos | ||||
os: macos-12 | |||||
os: macos-14 | |||||
- target: macos-10.15 | - target: macos-10.15 | ||||
os: macos-12 | |||||
os: macos-14 | |||||
- target: macos-universal | - target: macos-universal | ||||
os: macos-12 | |||||
os: macos-14 | |||||
- target: macos-universal-10.15 | - target: macos-universal-10.15 | ||||
os: macos-12 | |||||
os: macos-14 | |||||
# macos 15 | |||||
- target: macos | |||||
os: macos-15 | |||||
- target: macos-10.15 | |||||
os: macos-15 | |||||
- target: macos-universal | |||||
os: macos-15 | |||||
- target: macos-universal-10.15 | |||||
os: macos-15 | |||||
# debian:11 | # debian:11 | ||||
- target: linux-aarch64 | - target: linux-aarch64 | ||||
container: debian:11 | container: debian:11 | ||||
@@ -328,15 +355,6 @@ jobs: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
include: | include: | ||||
# macos 12 | |||||
- target: macos | |||||
os: macos-12 | |||||
- target: macos-10.15 | |||||
os: macos-12 | |||||
- target: macos-universal | |||||
os: macos-12 | |||||
- target: macos-universal-10.15 | |||||
os: macos-12 | |||||
# macos 13 | # macos 13 | ||||
- target: macos | - target: macos | ||||
os: macos-13 | os: macos-13 | ||||
@@ -346,6 +364,24 @@ jobs: | |||||
os: macos-13 | os: macos-13 | ||||
- target: macos-universal-10.15 | - target: macos-universal-10.15 | ||||
os: macos-13 | os: macos-13 | ||||
# macos 14 | |||||
- target: macos | |||||
os: macos-14 | |||||
- target: macos-10.15 | |||||
os: macos-14 | |||||
- target: macos-universal | |||||
os: macos-14 | |||||
- target: macos-universal-10.15 | |||||
os: macos-14 | |||||
# macos 15 | |||||
- target: macos | |||||
os: macos-15 | |||||
- target: macos-10.15 | |||||
os: macos-15 | |||||
- target: macos-universal | |||||
os: macos-15 | |||||
- target: macos-universal-10.15 | |||||
os: macos-15 | |||||
# debian:11 | # debian:11 | ||||
- target: linux-aarch64 | - target: linux-aarch64 | ||||
container: debian:11 | container: debian:11 | ||||
@@ -475,15 +511,27 @@ jobs: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
include: | include: | ||||
# macos 12 | |||||
- target: macos | |||||
os: macos-12 | |||||
# macos 13 | |||||
- target: macos-10.15 | - target: macos-10.15 | ||||
os: macos-12 | |||||
os: macos-13 | |||||
- target: macos-universal | - target: macos-universal | ||||
os: macos-12 | |||||
os: macos-13 | |||||
- target: macos-universal-10.15 | - target: macos-universal-10.15 | ||||
os: macos-12 | |||||
os: macos-13 | |||||
# macos 14 | |||||
- target: macos-10.15 | |||||
os: macos-14 | |||||
- target: macos-universal | |||||
os: macos-14 | |||||
- target: macos-universal-10.15 | |||||
os: macos-14 | |||||
# macos 15 | |||||
- target: macos-10.15 | |||||
os: macos-15 | |||||
- target: macos-universal | |||||
os: macos-15 | |||||
- target: macos-universal-10.15 | |||||
os: macos-15 | |||||
# debian:11 | # debian:11 | ||||
- target: linux-aarch64 | - target: linux-aarch64 | ||||
container: debian:11 | container: debian:11 | ||||
@@ -681,7 +729,7 @@ jobs: | |||||
matrix: | matrix: | ||||
include: | include: | ||||
- target: macos-universal | - target: macos-universal | ||||
os: macos-12 | |||||
os: macos-13 | |||||
- target: win32 | - target: win32 | ||||
container: debian:12 | container: debian:12 | ||||
os: ubuntu-latest | os: ubuntu-latest | ||||
@@ -737,16 +785,21 @@ jobs: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
include: | include: | ||||
# macos 12 | |||||
- target: macos-10.15 | |||||
os: macos-12 | |||||
- target: macos-universal-10.15 | |||||
os: macos-12 | |||||
# macos 13 | # macos 13 | ||||
- target: macos-10.15 | - target: macos-10.15 | ||||
os: macos-13 | os: macos-13 | ||||
- target: macos-universal-10.15 | - target: macos-universal-10.15 | ||||
os: macos-13 | os: macos-13 | ||||
# macos 14 | |||||
- target: macos-10.15 | |||||
os: macos-14 | |||||
- target: macos-universal-10.15 | |||||
os: macos-14 | |||||
# macos 15 | |||||
- target: macos-10.15 | |||||
os: macos-15 | |||||
- target: macos-universal-10.15 | |||||
os: macos-15 | |||||
# debian 11 | # debian 11 | ||||
- target: linux-x86_64 | - target: linux-x86_64 | ||||
container: debian:11 | container: debian:11 | ||||
@@ -294,6 +294,8 @@ fi | |||||
# --------------------------------------------------------------------------------------------------------------------- | # --------------------------------------------------------------------------------------------------------------------- | ||||
# pkgconfig | # pkgconfig | ||||
export EXTRA_CFLAGS="-Wno-int-conversion" | |||||
download pkg-config "${PKG_CONFIG_VERSION}" "${PKG_CONFIG_URL}" | download pkg-config "${PKG_CONFIG_VERSION}" "${PKG_CONFIG_URL}" | ||||
build_host_autoconf pkg-config "${PKG_CONFIG_VERSION}" "--enable-indirect-deps --with-internal-glib --with-pc-path=${TARGET_PKG_CONFIG_PATH}" | build_host_autoconf pkg-config "${PKG_CONFIG_VERSION}" "--enable-indirect-deps --with-internal-glib --with-pc-path=${TARGET_PKG_CONFIG_PATH}" | ||||
@@ -274,6 +274,10 @@ elif [ "${WIN32}" -eq 1 ]; then | |||||
fi | fi | ||||
download cairo "${CAIRO_VERSION}" "${CAIRO_URL}" "tar.xz" | download cairo "${CAIRO_VERSION}" "${CAIRO_URL}" "tar.xz" | ||||
# fix build when compiler or linker uses stderr, see https://gitlab.freedesktop.org/cairo/cairo/-/issues/121 | |||||
patch_file cairo "${CAIRO_VERSION}" "configure" 's/test "x$cairo_cc_stderr" != "x"/false/g' | |||||
build_autoconf cairo "${CAIRO_VERSION}" "${CAIRO_EXTRAFLAGS}" | build_autoconf cairo "${CAIRO_VERSION}" "${CAIRO_EXTRAFLAGS}" | ||||
# FIXME tests are failing :( | # FIXME tests are failing :( | ||||
@@ -310,13 +314,16 @@ elif [ "${MACOS_UNIVERSAL}" -eq 0 ]; then | |||||
FFTW_EXTRAFLAGS+=" --enable-sse2" | FFTW_EXTRAFLAGS+=" --enable-sse2" | ||||
fi | fi | ||||
# debug builds are broken, as they override CFLAGS | |||||
if [ -n "${PAWPAW_DEBUG}" ] && [ "${PAWPAW_DEBUG}" -eq 1 ]; then | |||||
FFTW_EXTRAFLAGS+=" --disable-debug" | |||||
fi | |||||
download fftw "${FFTW_VERSION}" "${FFTW_URL}" | download fftw "${FFTW_VERSION}" "${FFTW_URL}" | ||||
build_autoconf fftw "${FFTW_VERSION}" "${FFTW_EXTRAFLAGS}" | build_autoconf fftw "${FFTW_VERSION}" "${FFTW_EXTRAFLAGS}" | ||||
if [ -z "${PAWPAW_DEBUG}" ] || [ "${PAWPAW_DEBUG}" -eq 0 ]; then | |||||
if [ -z "${PAWPAW_SKIP_TESTS}" ] || [ "${PAWPAW_SKIP_TESTS}" -eq 0 ]; then | |||||
run_make fftw "${FFTW_VERSION}" check | |||||
fi | |||||
if [ -z "${PAWPAW_SKIP_TESTS}" ] || [ "${PAWPAW_SKIP_TESTS}" -eq 0 ]; then | |||||
run_make fftw "${FFTW_VERSION}" check | |||||
fi | fi | ||||
fi # PAWPAW_SKIP_FFTW | fi # PAWPAW_SKIP_FFTW | ||||
@@ -340,13 +347,16 @@ if [ -z "${PAWPAW_NOSIMD}" ] || [ "${PAWPAW_NOSIMD}" -eq 0 ]; then | |||||
fi | fi | ||||
fi | fi | ||||
# debug builds are broken, as they override CFLAGS | |||||
if [ -n "${PAWPAW_DEBUG}" ] && [ "${PAWPAW_DEBUG}" -eq 1 ]; then | |||||
FFTWF_EXTRAFLAGS+=" --disable-debug" | |||||
fi | |||||
copy_download fftw fftwf "${FFTW_VERSION}" | copy_download fftw fftwf "${FFTW_VERSION}" | ||||
build_autoconf fftwf "${FFTW_VERSION}" "${FFTWF_EXTRAFLAGS}" | build_autoconf fftwf "${FFTW_VERSION}" "${FFTWF_EXTRAFLAGS}" | ||||
if [ -z "${PAWPAW_DEBUG}" ] || [ "${PAWPAW_DEBUG}" -eq 0 ]; then | |||||
if [ -z "${PAWPAW_SKIP_TESTS}" ] || [ "${PAWPAW_SKIP_TESTS}" -eq 0 ]; then | |||||
run_make fftwf "${FFTW_VERSION}" check | |||||
fi | |||||
if [ -z "${PAWPAW_SKIP_TESTS}" ] || [ "${PAWPAW_SKIP_TESTS}" -eq 0 ]; then | |||||
run_make fftwf "${FFTW_VERSION}" check | |||||
fi | fi | ||||
fi # PAWPAW_SKIP_FFTW | fi # PAWPAW_SKIP_FFTW | ||||
@@ -388,10 +398,12 @@ if [ "${MACOS}" -eq 1 ] || [ "${WASM}" -eq 1 ] || [ "${WIN32}" -eq 1 ]; then | |||||
GLIB_EXTRAFLAGS+=" ac_cv_lib_socket_socket=no ac_cv_func_posix_getgrgid_r=no ac_cv_func_posix_getpwuid_r=no glib_cv_stack_grows=no glib_cv_uscore=no" | GLIB_EXTRAFLAGS+=" ac_cv_lib_socket_socket=no ac_cv_func_posix_getgrgid_r=no ac_cv_func_posix_getpwuid_r=no glib_cv_stack_grows=no glib_cv_uscore=no" | ||||
fi | fi | ||||
export EXTRA_CFLAGS="-Wno-incompatible-function-pointer-types" | |||||
if [ "${MACOS}" -eq 1 ]; then | if [ "${MACOS}" -eq 1 ]; then | ||||
export EXTRA_LDFLAGS="-lresolv" | export EXTRA_LDFLAGS="-lresolv" | ||||
elif [ "${WIN32}" -eq 1 ]; then | elif [ "${WIN32}" -eq 1 ]; then | ||||
export EXTRA_CFLAGS="-Wno-format -Wno-format-overflow" | |||||
export EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-format -Wno-format-overflow" | |||||
fi | fi | ||||
download glib ${GLIB_VERSION} "${GLIB_URL}" "${GLIB_TAR_EXT}" | download glib ${GLIB_VERSION} "${GLIB_URL}" "${GLIB_TAR_EXT}" | ||||
@@ -223,7 +223,9 @@ function build_autoconf() { | |||||
extraconfrules+=" --host=${TOOLCHAIN_PREFIX} ac_cv_build=$(uname -m)-linux-gnu ac_cv_host=${TOOLCHAIN_PREFIX}" | extraconfrules+=" --host=${TOOLCHAIN_PREFIX} ac_cv_build=$(uname -m)-linux-gnu ac_cv_host=${TOOLCHAIN_PREFIX}" | ||||
fi | fi | ||||
if [ -n "${PAWPAW_DEBUG}" ] && [ "${PAWPAW_DEBUG}" -eq 1 ]; then | |||||
if echo "${extraconfrules}" | grep -q -e '--enable-debug' -e '--disable-debug'; then | |||||
true | |||||
elif [ -n "${PAWPAW_DEBUG}" ] && [ "${PAWPAW_DEBUG}" -eq 1 ]; then | |||||
extraconfrules+=" --enable-debug" | extraconfrules+=" --enable-debug" | ||||
else | else | ||||
extraconfrules+=" --disable-debug" | extraconfrules+=" --disable-debug" | ||||
@@ -655,10 +657,11 @@ function build_host_autoconf() { | |||||
unset CXX | unset CXX | ||||
unset LD | unset LD | ||||
unset STRIP | unset STRIP | ||||
unset CFLAGS | |||||
unset CPPFLAGS | unset CPPFLAGS | ||||
unset CXXFLAGS | |||||
unset LDFLAGS | |||||
export CFLAGS="${EXTRA_CFLAGS}" | |||||
export CXXFLAGS="${EXTRA_CXXFLAGS}" | |||||
export LDFLAGS="${EXTRA_LDFLAGS}" | |||||
if [ -e "${PAWPAW_ROOT}/patches/${pkgname}" ] && [ ! -f "${pkgdir}/.stamp_cleanup" ] && [ ! -f "${pkgdir}/.stamp_configured" ]; then | if [ -e "${PAWPAW_ROOT}/patches/${pkgname}" ] && [ ! -f "${pkgdir}/.stamp_cleanup" ] && [ ! -f "${pkgdir}/.stamp_configured" ]; then | ||||
local patchtargets="${PAWPAW_TARGET}" | local patchtargets="${PAWPAW_TARGET}" | ||||
@@ -709,6 +712,10 @@ function build_host_autoconf() { | |||||
touch .stamp_installed | touch .stamp_installed | ||||
popd | popd | ||||
fi | fi | ||||
unset CFLAGS | |||||
unset CXXFLAGS | |||||
unset LDFLAGS | |||||
} | } | ||||
function build_host_cmake() { | function build_host_cmake() { | ||||