From bc442add731890fb119c65d3ad1708fc53755128 Mon Sep 17 00:00:00 2001 From: Quentin Spencer Date: Thu, 1 Dec 2005 14:45:02 +0000 Subject: [PATCH] Add x86_64 patch. --- octave-2.9.4-x86_64.patch | 14 ++++++++++++++ octave.spec | 13 +++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 octave-2.9.4-x86_64.patch diff --git a/octave-2.9.4-x86_64.patch b/octave-2.9.4-x86_64.patch new file mode 100644 index 0000000..6d61572 --- /dev/null +++ b/octave-2.9.4-x86_64.patch @@ -0,0 +1,14 @@ +--- octave-2.9.4/src/DLD-FUNCTIONS/spchol.cc.orig 2005-11-11 10:44:05.000000000 -0700 ++++ octave-2.9.4/src/DLD-FUNCTIONS/spchol.cc 2005-11-30 15:41:35.000000000 -0700 +@@ -609,7 +609,11 @@ + for (octave_idx_type k = 0 ; k < n ; k++) + { + // get the kth row of L and store in the columns of L ++#ifdef IDX_TYPE_LONG ++ cholmod_l_row_subtree (A1, A2, k, Parent, R, cm) ; ++#else + cholmod_row_subtree (A1, A2, k, Parent, R, cm) ; ++#endif + for (octave_idx_type p = 0 ; p < Rp [1] ; p++) + L.xridx (W [Ri [p]]++) = k ; + diff --git a/octave.spec b/octave.spec index 4a0cb29..7c9384c 100644 --- a/octave.spec +++ b/octave.spec @@ -1,6 +1,6 @@ Name: octave Version: 2.9.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A high-level language for numerical computations Epoch: 6 @@ -8,6 +8,7 @@ Group: Applications/Engineering License: GPL Source: ftp://ftp.octave.org/pub/octave/bleeding-edge/octave-%{version}.tar.bz2 Patch0: octave-2.9.4-header.patch +Patch1: octave-2.9.4-x86_64.patch URL: http://www.octave.org Requires: gnuplot less info texinfo Requires(post): /sbin/install-info @@ -51,6 +52,7 @@ applications which use GNU Octave. %prep %setup -q %patch0 -p0 +%patch1 -p0 ./autogen.sh @@ -63,7 +65,8 @@ applications which use GNU Octave. CPPFLAGS=-I%{_includedir}/glpk \ CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" ./configure %enable64 \ --enable-shared=yes --enable-lite-kernel --enable-static=no \ - --prefix=%{_prefix} --infodir=%{_infodir} --libdir=%{_libdir} + --prefix=%{_prefix} --infodir=%{_infodir} --libdir=%{_libdir} \ + --mandir=%{_mandir} make %{?_smp_mflags} @@ -72,7 +75,7 @@ rm -f interpreter/octave.{ky,pg,tp} %install rm -rf $RPM_BUILD_ROOT -%makeinstall +make install DESTDIR=$RPM_BUILD_ROOT rm -f doc/interpreter/munge-texi doc/interpreter/*.o strip $RPM_BUILD_ROOT/usr/libexec/octave/%{version}/oct/*/*.oct @@ -82,7 +85,6 @@ echo "%{_libdir}/octave-%{version}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/octave-%{ perl -pi -e "s,$RPM_BUILD_ROOT,," $RPM_BUILD_ROOT/%{_libexecdir}/%{name}/ls-R perl -pi -e "s,$RPM_BUILD_ROOT,," $RPM_BUILD_ROOT/%{_datadir}/%{name}/ls-R -perl -pi -e "s,$RPM_BUILD_ROOT,," $RPM_BUILD_ROOT/%{_libexecdir}/%{name}/%{version}/oct/*/PKG_ADD # XXX Nuke unpackaged files @@ -129,6 +131,9 @@ fi %changelog +* Thu Dec 1 2005 Quentin Spencer 2.9.4-2 +- Patch to enable compilation on x86_64. + * Fri Nov 11 2005 Quentin Spencer 2.9.4-1 - New upstream release. - Patch to make sure all headers are included in -devel.