Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff5ec82f73 | ||
|
|
395ebbf9e8 | ||
|
|
bbbd864519 | ||
|
|
9e28c9aadf | ||
|
|
0836ab4d31 |
3 changed files with 78 additions and 1 deletions
32
clover2-11.0.0-0002-block-TCGETA-usage-on-ppc64le.patch
Normal file
32
clover2-11.0.0-0002-block-TCGETA-usage-on-ppc64le.patch
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
From 420d0a508202a31cef8ae052f6b144ebea0d7804 Mon Sep 17 00:00:00 2001
|
||||
From: clover2 Fedora maintainer <clover2-owner@fedoraproject.org>
|
||||
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
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
From 73f9fe3d40d3881223f3a9776732e31bdc8a459f Mon Sep 17 00:00:00 2001
|
||||
From: Tom Stellard <tstellar@redhat.com>
|
||||
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
|
||||
|
||||
20
clover2.spec
20
clover2.spec
|
|
@ -15,7 +15,7 @@ Name: clover2
|
|||
|
||||
# For Version, see README.md and so on
|
||||
Version: %{mainver}
|
||||
Release: 9%{?dist}
|
||||
Release: 13%{?dist}
|
||||
Summary: Yet another compiler language
|
||||
|
||||
# app-sample/ unused
|
||||
|
|
@ -27,6 +27,10 @@ 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
|
||||
# Fix build with clang >= 22.
|
||||
Patch3: clover2-11.0.0-0003-Fix-Wincompatible-pointer-types-warning.patch
|
||||
|
||||
# Upstream suggests to use clang
|
||||
BuildRequires: clang
|
||||
|
|
@ -95,6 +99,8 @@ 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
|
||||
|
|
@ -149,6 +155,18 @@ LANG=C.utf8 make -C clover2 test
|
|||
%{_includedir}/clover2/
|
||||
|
||||
%changelog
|
||||
* Sat Nov 08 2025 Tom Stellard <tstellar@redhat.com> - 11.0.0-13
|
||||
- Fix build with clang >=22
|
||||
|
||||
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 11.0.0-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Thu May 08 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 11.0.0-11
|
||||
- block TCGETA usage on ppc64le for now on 2.42
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 11.0.0-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Aug 16 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 11.0.0-9
|
||||
- Port to pcre2 (bug 2128279)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue