Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5cd0e4131a | |||
| 5003782c72 |
29
qemacs-gcc15.patch
Normal file
29
qemacs-gcc15.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
Index: qemacs-0.3.3/qe.c
|
||||
===================================================================
|
||||
--- qemacs-0.3.3.orig/qe.c
|
||||
+++ qemacs-0.3.3/qe.c
|
||||
@@ -2944,19 +2944,19 @@ void call_func(void *func, int nb_args,
|
||||
((void (*)())func)();
|
||||
break;
|
||||
case 1:
|
||||
- ((void (*)())func)(args[0]);
|
||||
+ ((void (*)(void *))func)(args[0]);
|
||||
break;
|
||||
case 2:
|
||||
- ((void (*)())func)(args[0], args[1]);
|
||||
+ ((void (*)(void *, void *))func)(args[0], args[1]);
|
||||
break;
|
||||
case 3:
|
||||
- ((void (*)())func)(args[0], args[1], args[2]);
|
||||
+ ((void (*)(void *, void *, void *))func)(args[0], args[1], args[2]);
|
||||
break;
|
||||
case 4:
|
||||
- ((void (*)())func)(args[0], args[1], args[2], args[3]);
|
||||
+ ((void (*)(void *, void *, void *, void *))func)(args[0], args[1], args[2], args[3]);
|
||||
break;
|
||||
case 5:
|
||||
- ((void (*)())func)(args[0], args[1], args[2], args[3], args[4]);
|
||||
+ ((void (*)(void *, void *, void *, void *, void *))func)(args[0], args[1], args[2], args[3], args[4]);
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 25 13:09:25 UTC 2025 - Marguerite Su <i@marguerite.su>
|
||||
|
||||
- add qemacs-gcc15.patch, fix TW build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 20 13:46:56 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package qemacs
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -31,6 +31,7 @@ Patch3: qemacs-libpng.patch
|
||||
# PATCH-FIX-UPSTREAM pngtoico-libpng15.patch -- pgajdos@suse.com; build with libpng15; sent today to fabrice.bellard@free.fr
|
||||
# build against libpng14 should not be affected, otherwise please let me know
|
||||
Patch4: qemacs-libpng15.patch
|
||||
Patch5: qemacs-gcc15.patch
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
@@ -73,6 +74,7 @@ completion and history. Additional features:
|
||||
%patch -P 2
|
||||
%patch -P 3
|
||||
%patch -P 4 -p1
|
||||
%patch -P 5 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
|
||||
Reference in New Issue
Block a user