mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
academic/chemtool: Fix build failure with gcc10.
This commit is contained in:
parent
3cbb33c5e3
commit
934ec4aeeb
2 changed files with 41 additions and 0 deletions
|
@ -79,6 +79,10 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Thanks, Debian
|
||||
# https://salsa.debian.org/debichem-team/chemtool/-/blob/7d0413fe4f5bce35fe9c16fd196758319df05442/debian/patches/957084_gcc10.patch
|
||||
patch -p1 < $CWD/gcc10.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
|
37
academic/chemtool/gcc10.patch
Normal file
37
academic/chemtool/gcc10.patch
Normal file
|
@ -0,0 +1,37 @@
|
|||
--- a/ct1.h
|
||||
+++ b/ct1.h
|
||||
@@ -273,12 +273,12 @@
|
||||
extern float importfactor;
|
||||
extern int importoffset;
|
||||
|
||||
-char **intype;
|
||||
-char **inmode;
|
||||
-int babelin;
|
||||
-char **outtype;
|
||||
-char **outmode;
|
||||
-int babelout;
|
||||
+extern char **intype;
|
||||
+extern char **inmode;
|
||||
+extern int babelin;
|
||||
+extern char **outtype;
|
||||
+extern char **outmode;
|
||||
+extern int babelout;
|
||||
extern char *babel;
|
||||
extern GdkGC *mygc[8],*background_gc,*hlgc;
|
||||
extern int curpen;
|
||||
--- a/inout.c
|
||||
+++ b/inout.c
|
||||
@@ -30,6 +30,13 @@
|
||||
extern GdkFont *font[7],*smallfont[7],*symbfont[7],*boldfont[7],*slfont[7];
|
||||
#endif
|
||||
|
||||
+char **intype;
|
||||
+char **inmode;
|
||||
+int babelin;
|
||||
+char **outtype;
|
||||
+char **outmode;
|
||||
+int babelout;
|
||||
+
|
||||
static char babeloutp[4];
|
||||
|
||||
int
|
Loading…
Reference in a new issue