From 0836ab4d31362fa8c34c988fbf06743b9303abfc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 13:59:15 +0000 Subject: [PATCH 1/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- clover2.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clover2.spec b/clover2.spec index 0570db3..19913d0 100644 --- a/clover2.spec +++ b/clover2.spec @@ -15,7 +15,7 @@ Name: clover2 # For Version, see README.md and so on Version: %{mainver} -Release: 9%{?dist} +Release: 10%{?dist} Summary: Yet another compiler language # app-sample/ unused @@ -149,6 +149,9 @@ LANG=C.utf8 make -C clover2 test %{_includedir}/clover2/ %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 11.0.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Fri Aug 16 2024 Mamoru TASAKA - 11.0.0-9 - Port to pcre2 (bug 2128279) From 9e28c9aadfa27853f5ed8030d75fb3c308f3d441 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 8 May 2025 16:39:03 +0900 Subject: [PATCH 2/5] block TCGETA usage on ppc64le for now on 2.42 --- ...0-0002-block-TCGETA-usage-on-ppc64le.patch | 32 +++++++++++++++++++ clover2.spec | 8 ++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 clover2-11.0.0-0002-block-TCGETA-usage-on-ppc64le.patch diff --git a/clover2-11.0.0-0002-block-TCGETA-usage-on-ppc64le.patch b/clover2-11.0.0-0002-block-TCGETA-usage-on-ppc64le.patch new file mode 100644 index 0000000..1548e43 --- /dev/null +++ b/clover2-11.0.0-0002-block-TCGETA-usage-on-ppc64le.patch @@ -0,0 +1,32 @@ +From 420d0a508202a31cef8ae052f6b144ebea0d7804 Mon Sep 17 00:00:00 2001 +From: clover2 Fedora maintainer +Date: Thu, 8 May 2025 16:29:54 +0900 +Subject: [PATCH] block TCGETA usage on ppc64le + +--- + src/class_system.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/class_system.c b/src/class_system.c +index 3fd5c33..9eb6bea 100644 +--- a/src/class_system.c ++++ b/src/class_system.c +@@ -5203,6 +5203,7 @@ BOOL System_initialize_system_calls_system(CLVALUE** stack_ptr, CLVALUE* lvar, s + #ifdef TCSETSF + system->mClassFields[LAST_INITIALIZE_FIELD_NUM_ON_COMMAND_SYSTEM+125].mValue.mIntValue = TCSETSF; + #endif ++#ifndef __powerpc64__ + #ifdef TCGETA + system->mClassFields[LAST_INITIALIZE_FIELD_NUM_ON_COMMAND_SYSTEM+126].mValue.mIntValue = TCGETA; + #endif +@@ -5215,6 +5216,7 @@ BOOL System_initialize_system_calls_system(CLVALUE** stack_ptr, CLVALUE* lvar, s + #ifdef TCSETAF + system->mClassFields[LAST_INITIALIZE_FIELD_NUM_ON_COMMAND_SYSTEM+129].mValue.mIntValue = TCSETAF; + #endif ++#endif + #ifdef TCSBRK + system->mClassFields[LAST_INITIALIZE_FIELD_NUM_ON_COMMAND_SYSTEM+130].mValue.mIntValue = TCSBRK; + #endif +-- +2.49.0 + diff --git a/clover2.spec b/clover2.spec index 19913d0..4831d9a 100644 --- a/clover2.spec +++ b/clover2.spec @@ -15,7 +15,7 @@ Name: clover2 # For Version, see README.md and so on Version: %{mainver} -Release: 10%{?dist} +Release: 11%{?dist} Summary: Yet another compiler language # app-sample/ unused @@ -27,6 +27,8 @@ Source0: %{name}-%{tarballdate}T%{tarballtime}.tar.gz Source1: create-clover-git-bare-tarball.sh # Port to pcre2 (bug 2128279) Patch1: clover2-11.0.0-0001-port-to-pcre2.patch +# block TCGETA usage on ppc64le for now on 2.42 +Patch2: clover2-11.0.0-0002-block-TCGETA-usage-on-ppc64le.patch # Upstream suggests to use clang BuildRequires: clang @@ -95,6 +97,7 @@ sed -i.lib Makefile.in -e 's|/lib$|/%{_lib}|' git commit -m "Apply Fedora specific configuration" -a cat %PATCH1 | git am +cat %PATCH2 | git am %build cd clover2 @@ -149,6 +152,9 @@ LANG=C.utf8 make -C clover2 test %{_includedir}/clover2/ %changelog +* Thu May 08 2025 Mamoru TASAKA - 11.0.0-11 +- block TCGETA usage on ppc64le for now on 2.42 + * Thu Jan 16 2025 Fedora Release Engineering - 11.0.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From bbbd864519b9d49329ce17a2b248b561112d186d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 18:25:34 +0000 Subject: [PATCH 3/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- clover2.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clover2.spec b/clover2.spec index 4831d9a..44d3f47 100644 --- a/clover2.spec +++ b/clover2.spec @@ -15,7 +15,7 @@ Name: clover2 # For Version, see README.md and so on Version: %{mainver} -Release: 11%{?dist} +Release: 12%{?dist} Summary: Yet another compiler language # app-sample/ unused @@ -152,6 +152,9 @@ LANG=C.utf8 make -C clover2 test %{_includedir}/clover2/ %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 11.0.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu May 08 2025 Mamoru TASAKA - 11.0.0-11 - block TCGETA usage on ppc64le for now on 2.42 From 395ebbf9e8e0b72189783ec93407859d4f16474a Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 8 Nov 2025 15:51:56 +0000 Subject: [PATCH 4/5] Fix build with clang >=22 --- ...-Wincompatible-pointer-types-warning.patch | 27 +++++++++++++++++++ clover2.spec | 8 +++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 0001-Fix-Wincompatible-pointer-types-warning.patch diff --git a/0001-Fix-Wincompatible-pointer-types-warning.patch b/0001-Fix-Wincompatible-pointer-types-warning.patch new file mode 100644 index 0000000..5de3849 --- /dev/null +++ b/0001-Fix-Wincompatible-pointer-types-warning.patch @@ -0,0 +1,27 @@ +From 73f9fe3d40d3881223f3a9776732e31bdc8a459f Mon Sep 17 00:00:00 2001 +From: Tom Stellard +Date: Sat, 8 Nov 2025 15:45:20 +0000 +Subject: [PATCH] Fix [-Wincompatible-pointer-types] warning + +This fixes the build with clang >= 22 which has this warning as an +error by default. +--- + src/interpreter.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/interpreter.c b/src/interpreter.c +index 44dfaa6..4708e7c 100644 +--- a/src/interpreter.c ++++ b/src/interpreter.c +@@ -945,7 +945,7 @@ void command_completion() + struct stat stat_; + if(stat(path2, &stat_) == 0) { + if(stat_.st_mode & S_IXUSR) { +- char* entry_d_name[PATH_MAX]; ++ char entry_d_name[PATH_MAX]; + + char* p = entry->d_name; + char* p2 = entry_d_name; +-- +2.50.1 + diff --git a/clover2.spec b/clover2.spec index 44d3f47..7c35855 100644 --- a/clover2.spec +++ b/clover2.spec @@ -15,7 +15,7 @@ Name: clover2 # For Version, see README.md and so on Version: %{mainver} -Release: 12%{?dist} +Release: 13%{?dist} Summary: Yet another compiler language # app-sample/ unused @@ -29,6 +29,8 @@ Source1: create-clover-git-bare-tarball.sh Patch1: clover2-11.0.0-0001-port-to-pcre2.patch # block TCGETA usage on ppc64le for now on 2.42 Patch2: clover2-11.0.0-0002-block-TCGETA-usage-on-ppc64le.patch +# Fix build with clang >= 22. +Patch3: 0001-Fix-Wincompatible-pointer-types-warning.patch # Upstream suggests to use clang BuildRequires: clang @@ -98,6 +100,7 @@ sed -i.lib Makefile.in -e 's|/lib$|/%{_lib}|' git commit -m "Apply Fedora specific configuration" -a cat %PATCH1 | git am cat %PATCH2 | git am +cat %PATCH3 | git am %build cd clover2 @@ -152,6 +155,9 @@ LANG=C.utf8 make -C clover2 test %{_includedir}/clover2/ %changelog +* Sat Nov 08 2025 Tom Stellard - 11.0.0-13 +- Fix build with clang >=22 + * Wed Jul 23 2025 Fedora Release Engineering - 11.0.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From ff5ec82f73f240a0bc7b6610aed9396250fd2110 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 11 Nov 2025 23:16:04 +0900 Subject: [PATCH 5/5] rename patch --- ...r2-11.0.0-0003-Fix-Wincompatible-pointer-types-warning.patch | 0 clover2.spec | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename 0001-Fix-Wincompatible-pointer-types-warning.patch => clover2-11.0.0-0003-Fix-Wincompatible-pointer-types-warning.patch (100%) diff --git a/0001-Fix-Wincompatible-pointer-types-warning.patch b/clover2-11.0.0-0003-Fix-Wincompatible-pointer-types-warning.patch similarity index 100% rename from 0001-Fix-Wincompatible-pointer-types-warning.patch rename to clover2-11.0.0-0003-Fix-Wincompatible-pointer-types-warning.patch diff --git a/clover2.spec b/clover2.spec index 7c35855..1cc01d6 100644 --- a/clover2.spec +++ b/clover2.spec @@ -30,7 +30,7 @@ Patch1: clover2-11.0.0-0001-port-to-pcre2.patch # block TCGETA usage on ppc64le for now on 2.42 Patch2: clover2-11.0.0-0002-block-TCGETA-usage-on-ppc64le.patch # Fix build with clang >= 22. -Patch3: 0001-Fix-Wincompatible-pointer-types-warning.patch +Patch3: clover2-11.0.0-0003-Fix-Wincompatible-pointer-types-warning.patch # Upstream suggests to use clang BuildRequires: clang