From 9a4b7e8ac36170674edf84dc3633dc3b884aa017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giancarlo=20Dess=C3=AC?= Date: Wed, 16 Dec 2020 18:48:15 +0100 Subject: system/cdrkit: Patch for gcc >= 10.x. Signed-off-by: Matteo Bernardini --- system/cdrkit/cdrkit-1.1.11-gcc10.patch | 12 ++++++++++++ system/cdrkit/cdrkit.SlackBuild | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 system/cdrkit/cdrkit-1.1.11-gcc10.patch diff --git a/system/cdrkit/cdrkit-1.1.11-gcc10.patch b/system/cdrkit/cdrkit-1.1.11-gcc10.patch new file mode 100644 index 0000000000..99f0c106d5 --- /dev/null +++ b/system/cdrkit/cdrkit-1.1.11-gcc10.patch @@ -0,0 +1,12 @@ +diff -up cdrkit-1.1.11/genisoimage/genisoimage.h.me cdrkit-1.1.11/genisoimage/genisoimage.h +--- cdrkit-1.1.11/genisoimage/genisoimage.h.me 2020-02-24 15:10:35.542998992 +0100 ++++ cdrkit-1.1.11/genisoimage/genisoimage.h 2020-02-24 15:10:50.011130450 +0100 +@@ -377,7 +377,7 @@ extern int use_fileversion; + extern int split_SL_component; + extern int split_SL_field; + extern char *trans_tbl; +-char *outfile; ++extern char *outfile; + + #define JMAX 64 /* maximum Joliet file name length (spec) */ + #define JLONGMAX 103 /* out of spec Joliet file name length */ diff --git a/system/cdrkit/cdrkit.SlackBuild b/system/cdrkit/cdrkit.SlackBuild index f778f25ff2..a5c211b649 100644 --- a/system/cdrkit/cdrkit.SlackBuild +++ b/system/cdrkit/cdrkit.SlackBuild @@ -67,6 +67,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +patch -p1 < $CWD/cdrkit-1.1.11-gcc10.patch + # Make Makefile prefix cmake -DCMAKE_INSTALL_PREFIX=/usr -- cgit v1.2.3