From fe489f403817ce30eb5c1dabc034175806e5adb5 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 23 Jul 2020 13:19:54 -0600 Subject: [PATCH] - Fix broken configure test compromised by LTO --- gnuplot-config.patch | 13 +++++++++++++ gnuplot.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 gnuplot-config.patch diff --git a/gnuplot-config.patch b/gnuplot-config.patch new file mode 100644 index 0000000..790ba46 --- /dev/null +++ b/gnuplot-config.patch @@ -0,0 +1,13 @@ +diff --git a/configure b/configure +index f1046e4..e0c4f76 100755 +--- a/configure ++++ b/configure +@@ -2092,7 +2092,7 @@ else + #ifdef __cplusplus + extern "C" + #endif +-char $2 (); ++__attribute__ ((used)) char $2 (); + /* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ diff --git a/gnuplot.spec b/gnuplot.spec index 73913a0..552c68b 100644 --- a/gnuplot.spec +++ b/gnuplot.spec @@ -19,7 +19,7 @@ Summary: A program for plotting mathematical expressions and data Name: gnuplot Version: %{major}.%{minor}.%{patchlevel} -Release: 2%{?dist} +Release: 3%{?dist} # MIT .. term/PostScript/aglfn.txt License: gnuplot and MIT URL: http://www.gnuplot.info/ @@ -39,6 +39,7 @@ Patch5: gnuplot-5.0.0-lua_checkint.patch Patch6: gnuplot-5.2.4-no-lena.patch Patch7: gnuplot-5.2.2-doc.patch Patch8: gnuplot-5.2.8-cmd-opts.patch +Patch9: gnuplot-config.patch Requires: %{name}-common = %{version}-%{release} Requires: dejavu-sans-fonts @@ -174,6 +175,7 @@ plotting tool. %patch6 -p1 -b .nolena %patch7 -p1 -b .doc %patch8 -p1 -b .cmd-opts +%patch9 -p1 -b .config sed -i -e 's:"/usr/lib/X11/app-defaults":"%{x11_app_defaults_dir}":' src/gplt_x11.c iconv -f windows-1252 -t utf-8 ChangeLog > ChangeLog.aux mv ChangeLog.aux ChangeLog @@ -366,6 +368,9 @@ fi %{_datadir}/texlive/texmf-dist/tex/latex/gnuplot/ %changelog +* Thu Jul 23 2020 Jeff Law - 5.2.8-3 +- Fix broken configure test compromised by LTO + * Tue Feb 25 2020 Pavel Cahyna - 5.2.8-2 - Enable libcerf (bz#1476616)