commit d5c6d70c90d6f6c7adc12adb7366f03fe44b81b2 Author: EnumDev Date: Sun Dec 28 21:06:53 2025 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..12d3bcb --- /dev/null +++ b/pkg.info @@ -0,0 +1,17 @@ +name: autoconf-archive +description: A collection of freely re-usable Autoconf macros +version: 2024.10.16 +revision: 1 +url: https://www.gnu.org/software/autoconf-archive/ +license: GPL3-or-later WITH Autoconf-exception-3.0 +architecture: any +type: source +depends: + - autoconf +optional_depends: + - automake +downloads: + - url: https://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 7bcd5d001916f3a50ed7436f4f700e3d2b1bade3ed803219c592d62502a57363 diff --git a/source-files/fix_AX_CXX_COMPILE_STDCXX.patch b/source-files/fix_AX_CXX_COMPILE_STDCXX.patch new file mode 100644 index 0000000..e837d74 --- /dev/null +++ b/source-files/fix_AX_CXX_COMPILE_STDCXX.patch @@ -0,0 +1,65 @@ +From 241f7ae5f857b0c9bab7866b79b4e47587126b96 Mon Sep 17 00:00:00 2001 +From: Jörn Heusipp +Date: Wed, 16 Oct 2024 12:53:40 +0200 +Subject: Revert broken part of commit 5b0d43b767bf3f800f97892905b6d1ba50150f1a + +This commit breaks AX_CXX_COMPILE_STDCXX noext/ext option handling, which +caused +"AX_CXX_COMPILE_STDCXX(20, [noext], [optional])" +to result in +"checking whether g++ supports C++20 features with -std=gnu++20... yes" +which is not the desired outcome when using "noext". +It should check for "-std=c++20" instead for "-std=gnu++20", as it did before. + +See + +and + +. +--- + m4/ax_cxx_compile_stdcxx.m4 | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/m4/ax_cxx_compile_stdcxx.m4 b/m4/ax_cxx_compile_stdcxx.m4 +index 7ec3378..25645c3 100644 +--- a/m4/ax_cxx_compile_stdcxx.m4 ++++ b/m4/ax_cxx_compile_stdcxx.m4 +@@ -36,7 +36,7 @@ + # Copyright (c) 2016, 2018 Krzesimir Nowak + # Copyright (c) 2019 Enji Cooper + # Copyright (c) 2020 Jason Merrill +-# Copyright (c) 2021 Jörn Heusipp ++# Copyright (c) 2021, 2024 Jörn Heusipp + # Copyright (c) 2015, 2022, 2023, 2024 Olly Betts + # + # Copying and distribution of this file, with or without modification, are +@@ -44,7 +44,7 @@ + # and this notice are preserved. This file is offered as-is, without any + # warranty. + +-#serial 23 ++#serial 24 + + dnl This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro + dnl (serial version number 13). +@@ -77,7 +77,7 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl + ac_success=yes + fi]) + +- m4_if([$2], [noext], [dnl ++ m4_if([$2], [noext], [], [dnl + if test x$ac_success = xno; then + for alternative in ${ax_cxx_compile_alternatives}; do + switch="-std=gnu++${alternative}" +@@ -101,7 +101,7 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl + done + fi]) + +- m4_if([$2], [ext], [dnl ++ m4_if([$2], [ext], [], [dnl + if test x$ac_success = xno; then + dnl HP's aCC needs +std=c++11 according to: + dnl http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/PDF_Release_Notes/769149-001.pdf +-- +cgit v1.2.3 + diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..7b5c2cb --- /dev/null +++ b/source.sh @@ -0,0 +1,32 @@ +# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE +# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT + +# The prepare function is executed in the root of the temp directory +# This function is used for putting downloaded files to the correct location or applying patches +prepare() { + cd "$BPM_SOURCE" + patch -Np1 -i "$BPM_WORKDIR"/fix_AX_CXX_COMPILE_STDCXX.patch +} + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + ./configure --prefix=/usr + make +} + +# The check function is executed in the source directory +# This function is used to run tests to verify the package has been compiled correctly +check() { + make check +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + make DESTDIR="$BPM_OUTPUT" install + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING.EXCEPTION "$BPM_OUTPUT"/usr/share/licenses/autoconf-archive/COPYING +}