diff --git a/pkg.info b/pkg.info index 692c082..ccd4714 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: rsync description: Open source utility that provides fast incremental file transfer -version: 3.4.2 -revision: 1 +version: 3.4.1 +revision: 2 url: https://rsync.samba.org/ license: GPL3-or-later maintainers: @@ -26,4 +26,4 @@ downloads: - url: https://github.com/RsyncProject/rsync/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: 74955151aada09e6c54d35507b7101a381e2f30962a90e9e8e7c160279e4a802 + checksum: 7dbda2c6b863cd309ffda85c19f0e8754e5cec049b6f860783f8a0ad20c1a503 diff --git a/source-files/0001-bool-is-a-keyword-in-c23.patch b/source-files/0001-bool-is-a-keyword-in-c23.patch new file mode 100644 index 0000000..5637ab9 --- /dev/null +++ b/source-files/0001-bool-is-a-keyword-in-c23.patch @@ -0,0 +1,23 @@ +From a4b926dcdce96b0f2cc0dc7744e95747b233500a Mon Sep 17 00:00:00 2001 +From: Michal Ruprich +Date: Fri, 17 Jan 2025 12:37:57 +0100 +Subject: [PATCH] bool is a keyword in C23 + +--- + wildtest.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/wildtest.c b/wildtest.c +index bea4cebbe..482cdf170 100644 +--- a/wildtest.c ++++ b/wildtest.c +@@ -32,7 +32,9 @@ int fnmatch_errors = 0; + + int wildmatch_errors = 0; + ++#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L + typedef char bool; ++#endif + + int output_iterations = 0; + int explode_mod = 0; diff --git a/source.sh b/source.sh index cd49503..9d908e5 100644 --- a/source.sh +++ b/source.sh @@ -2,6 +2,13 @@ # 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"/0001-bool-is-a-keyword-in-c23.patch +} + # The build function is executed in the source directory # This function is used to compile the source code build() {