Bug#352150: [Pkg-octave-devel] Bug#352150: octave-forge: depends on octave2.1, could it also depend on 2.9?

2006-02-13 Thread Colin Ingram
On 2/9/06, Bill Denney [EMAIL PROTECTED] wrote:
 Package: octave-forge
 Version: 2005.06.13-8
 Severity: important


 I tried to install octave-forge when I started using 2.9 tonight, but it
 seems to require 2.1.  Could it be made to install on either or could it
 be packaged for both separately if not?

 Thanks,

 Bill


As Rafael noted this is currently being worked on.  The following
patch to the debian files of octave-forge version 2006.01.28-1 should
allow you to build a local octave-forge version against octave-2.9.4

Index: patches/50_admin-octlink.dpatch
===
--- patches/50_admin-octlink.dpatch 
(.../tags/packages/octave-forge/2006.01.28-1/debian)(revision
0)
+++ patches/50_admin-octlink.dpatch 
(.../branches/2.9transition/packages/octave-forge/debian)   (revision
493)
@@ -0,0 +1,16 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 50_admin-octlink.dpatch by Colin Ingram [EMAIL PROTECTED]
+##
+## DP: Adds missing admin/octlink.sh
+
[EMAIL PROTECTED]@
+diff -urNad octave-forge-2006.01.28~/admin/octlink.sh
octave-forge-2006.01.28/admin/octlink.sh
+--- octave-forge-2006.01.28~/admin/octlink.sh  1969-12-31
18:00:00.0 -0600
 octave-forge-2006.01.28/admin/octlink.sh   2006-02-01
04:07:10.0 -0600
+@@ -0,0 +1,6 @@
++#! /bin/sh
++
++FN2=`echo $2 | sed -e's/.octlink//'`
++FN1=`echo $1 | sed -e's/.oct//'`
++if test -e $2 ; then /bin/rm $2; fi
++echo autoload (\$FN2\, which (\$FN1\));  $2

Property changes on: patches/50_admin-octlink.dpatch
___
Name: svn:executable
   + *

Index: patches/00list
===
--- patches/00list  (.../tags/packages/octave-forge/2006.01.28-1/debian)
(revision
493)
+++ patches/00list  
(.../branches/2.9transition/packages/octave-forge/debian)   (revision
493)
@@ -2,3 +2,4 @@
 50_make-pattern-rules
 50_main-set-makefile
 50_makefile-syntax-fix
+50_admin-octlink
Index: rules
===
--- rules   (.../tags/packages/octave-forge/2006.01.28-1/debian)
(revision 493)
+++ rules   (.../branches/2.9transition/packages/octave-forge/debian)   
(revision
493)
@@ -4,47 +4,80 @@
 # Copyright 2000 - 2004 by Dirk Eddelbuettel [EMAIL PROTECTED]

 PACKAGE= octave-forge
+common_pkg  = $(PACKAGE)-common
+2.1_pkg = $(PACKAGE)2.1
+2.9_pkg = $(PACKAGE)2.9

 include /usr/share/dpatch/dpatch.make
 include /usr/share/octave/debian/defs.make

+2.1 = 2.1.72
+2.9 = 2.9.4
 altname = octave-forge-alternatives
 debtmp := $(CURDIR)/debian/$(PACKAGE)
 debdoc  := $(debtmp)/usr/share/doc/$(PACKAGE)
+2.9octdir  := $(shell octave-config-$(2.9) -p LOCALAPIOCTFILEDIR)
+2.1octdir  := $(shell octave-config-$(2.1) -p LOCALAPIOCTFILEDIR)
 octdir := $(OCTDIR)
+2.9mdir:= $(shell octave-config-$(2.9) -p LOCALAPIFCNFILEDIR)
+2.1mdir:= $(shell octave-config-$(2.1) -p LOCALAPIFCNFILEDIR)
 mdir   := $(MDIR)
 altoctdir   := /usr/lib/$(altname)
 altmdir := /usr/share/$(altname)
-octbin := $(shell octave-config-2.1.72 -p LOCALARCHLIBDIR)
+octbin := $(shell octave-config-2.9.4 -p LOCALARCHLIBDIR)

 mycheck:
-   @echo debtmp $(debtmp)
-   @echo debdic $(debdoc)
-   @echo otdir  $(octdir)
-   @echo mdir   $(mdir)
-   @echo octbin $(octbin)
+   @echo debtmp   $(debtmp)
+   @echo debdic   $(debdoc)
+   @echo otdir$(octdir)
+   @echo 2.1otdir $(2.1octdir)
+   @echo 2.9otdir $(2.9octdir)
+   @echo mdir $(mdir)
+   @echo 2.1mdir  $(2.1mdir)
+   @echo 2.9mdir  $(2.9mdir)
+   @echo octbin   $(octbin)

 arch   := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-
-## edd 22 Feb 2003 now use 3.2 versions everywhere
-## edd 27 Jun 2003  now that gcc 3.3 is in unstable and testing, relax this
-#compilerpath  = /usr/bin/gcc-3.2
-#cpppath   = /usr/bin/g++-3.2
-#fcpath= /usr/bin/g77-3.2
 compilerpath   = /usr/bin/gcc
 cpppath= /usr/bin/g++
 fcpath = /usr/bin/gfortran
 compilerflags  = -O2
 linkerflags= -s

-## hppa needs g++-3.3
-## edd 27 Jun 2003  now that gcc 3.3 is in unstable and testing, relax this
-#ifeq ($(arch),hppa-linux)
-#compilerpath  = /usr/bin/gcc-3.3
-#cpppath   = /usr/bin/g++-3.3
-#fcpath= /usr/bin/g77-3.3
-#endif
+define l_configure
+   patch-stamp
+   chmod 0755 admin/octlink.sh
+   dh_testdir
+   touch extra/MacOSX/NOINSTALL
+   [ -f autogen.sh ]  ./autogen.sh  chmod 0755 configure
+   CC=$(compilerpath)  \
+   CXX=$(cpppath)  \
+   

Bug#352150: octave-forge: depends on octave2.1, could it also depend on 2.9?

2006-02-12 Thread Rafael Laboissiere
* Bill Denney [EMAIL PROTECTED] [2006-02-09 20:52]:

 Package: octave-forge
 Version: 2005.06.13-8
 Severity: important
 
 
 I tried to install octave-forge when I started using 2.9 tonight, but it
 seems to require 2.1.  Could it be made to install on either or could it
 be packaged for both separately if not?

We, the DOG (Debian Octave Group), are working on this now.  See the threads
in the pkg-octave-devel mailing list starting at the following messages:

http://lists.alioth.debian.org/pipermail/pkg-octave-devel/2006-January/001021.html
http://lists.alioth.debian.org/pipermail/pkg-octave-devel/2006-January/001090.html
http://lists.alioth.debian.org/pipermail/pkg-octave-devel/2006-February/001130.html
http://lists.alioth.debian.org/pipermail/pkg-octave-devel/2006-February/001145.html


-- 
Rafael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#352150: octave-forge: depends on octave2.1, could it also depend on 2.9?

2006-02-09 Thread Bill Denney
Package: octave-forge
Version: 2005.06.13-8
Severity: important


I tried to install octave-forge when I started using 2.9 tonight, but it
seems to require 2.1.  Could it be made to install on either or could it
be packaged for both separately if not?

Thanks,

Bill

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]