mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
community/nedit: fix build with gcc 15
This commit is contained in:
parent
55ca5ded4e
commit
3d2d468c48
2 changed files with 39 additions and 0 deletions
|
@ -18,6 +18,7 @@ makedepends="
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="https://downloads.sourceforge.net/project/nedit/nedit-source/nedit-$pkgver-src.tar.gz
|
source="https://downloads.sourceforge.net/project/nedit/nedit-source/nedit-$pkgver-src.tar.gz
|
||||||
fix-build.patch
|
fix-build.patch
|
||||||
|
nedit-5.7-missingargs.patch
|
||||||
"
|
"
|
||||||
options="!check" # No tests
|
options="!check" # No tests
|
||||||
|
|
||||||
|
@ -36,4 +37,5 @@ package() {
|
||||||
sha512sums="
|
sha512sums="
|
||||||
cf242d2f8eea4c78649dbeb741f545a3dc8ffaf5bb36239794a4b2635420e5445fa1c77472add79c05ec081d71a0b9df4431f48db365a71692e43869fd4e7932 nedit-5.7-src.tar.gz
|
cf242d2f8eea4c78649dbeb741f545a3dc8ffaf5bb36239794a4b2635420e5445fa1c77472add79c05ec081d71a0b9df4431f48db365a71692e43869fd4e7932 nedit-5.7-src.tar.gz
|
||||||
5f1e23e38814b978d13f8932c0998e18f12ff7ad90d31d3754ca9588e871777f18a258941c146bf31654d6ad72a8e668964d06877fe9d69cbb52c2db80ff1187 fix-build.patch
|
5f1e23e38814b978d13f8932c0998e18f12ff7ad90d31d3754ca9588e871777f18a258941c146bf31654d6ad72a8e668964d06877fe9d69cbb52c2db80ff1187 fix-build.patch
|
||||||
|
b67f46cc32473e4beba3e3ef8c0b7e5014a285e61dbaaf413e48fa68cb1b1b561b77bc2b551b9ceac7d082961cee2a53a088556f067024cef12de2fd9e0a63c1 nedit-5.7-missingargs.patch
|
||||||
"
|
"
|
||||||
|
|
37
community/nedit/nedit-5.7-missingargs.patch
Normal file
37
community/nedit/nedit-5.7-missingargs.patch
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
Reference: https://bugs.gentoo.org/945263
|
||||||
|
|
||||||
|
--- a/makefiles/Makefile.linux
|
||||||
|
+++ b/makefiles/Makefile.linux
|
||||||
|
@@ -17,7 +17,7 @@
|
||||||
|
# To test if the Motif library exports the runtime version
|
||||||
|
# add -DHAVE__XMVERSIONSTRING to CFLAGS
|
||||||
|
#
|
||||||
|
-CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
|
||||||
|
+CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -Wno-incompatible-pointer-types
|
||||||
|
|
||||||
|
ARFLAGS=-urs
|
||||||
|
|
||||||
|
--- a/source/textDisp.h
|
||||||
|
+++ b/source/textDisp.h
|
||||||
|
@@ -63,7 +63,7 @@
|
||||||
|
struct graphicExposeTranslationEntry *next;
|
||||||
|
} graphicExposeTranslationEntry;
|
||||||
|
|
||||||
|
-typedef void (*unfinishedStyleCBProc)();
|
||||||
|
+typedef void (*unfinishedStyleCBProc)(const void *, int, void *);
|
||||||
|
|
||||||
|
typedef struct _calltipStruct {
|
||||||
|
int ID; /* ID of displayed calltip. Equals
|
||||||
|
--- a/util/getfiles.c
|
||||||
|
+++ b/util/getfiles.c
|
||||||
|
@@ -244,8 +244,8 @@
|
||||||
|
static int YesNoResult; /* Result of overwrite dialog */
|
||||||
|
static Widget ErrorDialog; /* Dialog widget for error msgs */
|
||||||
|
static int ErrorDone; /* Flag to mark dialog completed */
|
||||||
|
-static void (*OrigDirSearchProc)(); /* Built in Motif directory search */
|
||||||
|
-static void (*OrigFileSearchProc)(); /* Built in Motif file search proc */
|
||||||
|
+static void (*OrigDirSearchProc)(Widget, XtPointer); /* Built in Motif directory search */
|
||||||
|
+static void (*OrigFileSearchProc)(Widget, XtPointer); /* Built in Motif file search proc */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Do the hard work of setting up a file selection dialog
|
Loading…
Add table
Add a link
Reference in a new issue