Patch to get package to build in rawhide.

This commit is contained in:
Jussi Lehtola 2011-08-06 12:07:29 +03:00
parent e00ea4db3d
commit 2eb0eabb3a
2 changed files with 14 additions and 0 deletions

11
octave-3.4.2-curl.patch Normal file
View File

@ -0,0 +1,11 @@
diff -up octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc.curl octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc
--- octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc.curl 2011-06-09 20:22:32.000000000 +0300
+++ octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc 2011-08-06 11:54:58.331640323 +0300
@@ -52,7 +52,6 @@ along with Octave; see the file COPYING.
#include <curl/curl.h>
#include <curl/curlver.h>
-#include <curl/types.h>
#include <curl/easy.h>
static int

View File

@ -10,6 +10,8 @@ Group: Applications/Engineering
License: GPLv3+
Source0: ftp://ftp.gnu.org/gnu/octave/octave-%{version}.tar.bz2
Source1: macros.octave
# Don't include <curl/types.h> which isn't used and is missing on newer versions of libcurl
Patch0: octave-3.4.2-curl.patch
# https://savannah.gnu.org/bugs/index.php?32839
# Fix building packages from directories
Patch2: octave-3.4.0-pkgbuilddir.patch
@ -70,6 +72,7 @@ This package contains documentation for Octave.
%prep
%setup -q
%patch0 -p1 -b .curl
%patch2 -p1 -b .pkgbuilddir
# Check permissions