diff --git a/uudeview-matherr.patch b/uudeview-matherr.patch new file mode 100644 index 0000000..55e0b4c --- /dev/null +++ b/uudeview-matherr.patch @@ -0,0 +1,17 @@ +--- a/uudeview-0.5.20/tcl/uutcl.c 2018-03-15 20:53:21.698000000 +0000 ++++ b/uudeview-0.5.20/tcl/uutcl.c 2018-03-15 20:53:32.646000000 +0000 +@@ -48,14 +48,6 @@ + #include + #endif + +-/* +- * The following variable is a special hack that is needed in order for +- * Sun shared libraries to be used for Tcl. +- */ +- +-extern int matherr(); +-int *tclDummyMathPtr = (int *) matherr; +- + #include + #include + #include diff --git a/uudeview.changes b/uudeview.changes index 83e12c5..999ca61 100644 --- a/uudeview.changes +++ b/uudeview.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun May 13 13:03:11 UTC 2018 - bjorn.lie@gmail.com + +- Add uudeview-matherr.patch: Patch taken from fedora, fixes build. + ------------------------------------------------------------------- Mon Jan 8 17:58:34 UTC 2018 - crrodriguez@opensuse.org diff --git a/uudeview.spec b/uudeview.spec index 2236113..c9f476c 100644 --- a/uudeview.spec +++ b/uudeview.spec @@ -31,6 +31,7 @@ License: GPL-2.0+ Group: Productivity/Networking/News/Utilities Source: %{name}-%{version}.tar.bz2 Patch0: %{name}.patch +Patch1: %{name}-matherr.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -42,6 +43,7 @@ uuencode utilities. %prep %setup -q %patch0 +%patch1 -p2 %build autoconf