SHA256
1
0
forked from pool/xemacs

4 Commits

3 changed files with 34 additions and 2 deletions

20
xemacs-gcc15.patch Normal file
View File

@@ -0,0 +1,20 @@
Index: xemacs-21.5.34/lib-src/ootags.c
===================================================================
--- xemacs-21.5.34.orig/lib-src/ootags.c
+++ xemacs-21.5.34/lib-src/ootags.c
@@ -76,6 +76,7 @@ char pot_etags_version[] = "@(#) pot rev
#if !defined (WIN32_NATIVE) && defined (STDC_HEADERS)
#include <stdlib.h>
+#include <stdbool.h>
#include <string.h>
#endif
@@ -181,7 +182,6 @@ void oo_browser_check_and_clear_structty
# define xrnew(op,n,Type) ((Type *) xrealloc ((op), (n) * sizeof (Type)))
#endif
-typedef int bool;
typedef void Lang_function (FILE *);

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jun 25 09:32:46 UTC 2025 - Marguerite Su <i@marguerite.su>
- add xemacs-gcc15.patch, fix TW build
-------------------------------------------------------------------
Thu Sep 19 06:10:19 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Use -fpermissive as compiler option
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 3 07:21:18 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org> Wed Jul 3 07:21:18 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package xemacs # spec file for package xemacs
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -115,6 +115,7 @@ Patch63: xemacs-21.5.34-strsignal.patch
Patch64: xemacs-21.5.34-fix2038.patch Patch64: xemacs-21.5.34-fix2038.patch
# PATCH-FIX-SUSE drop hostname+timestamp from .elc # PATCH-FIX-SUSE drop hostname+timestamp from .elc
Patch65: reproducible.patch Patch65: reproducible.patch
Patch66: xemacs-gcc15.patch
Requires(pre): permissions Requires(pre): permissions
Requires: ctags Requires: ctags
Requires: efont-unicode Requires: efont-unicode
@@ -231,6 +232,7 @@ exit 1
%endif %endif
%patch -P 64 -p1 %patch -P 64 -p1
%patch -P 65 -p1 %patch -P 65 -p1
%patch -P 66 -p1
%build %build
cflags () cflags ()
@@ -282,7 +284,7 @@ LIBEXEC=${LIB}/xemacs/${VERSION}
MOD=${ARCH}/modules MOD=${ARCH}/modules
STATE=/var/lib/xemacs STATE=/var/lib/xemacs
MAN=/usr/share/man/man1 MAN=/usr/share/man/man1
CFLAGS="-Wall ${RPM_OPT_FLAGS} -pipe ${LOOP} -DLDAP_DEPRECATED " CFLAGS="-Wall ${RPM_OPT_FLAGS} -pipe ${LOOP} -DLDAP_DEPRECATED -fpermissive"
%ifarch s390x %ifarch s390x
CFLAGS="$CFLAGS -O1" CFLAGS="$CFLAGS -O1"
%endif %endif