You are not logged in.

#1 2005-06-01 18:55:17

rafal
Member
From: Poland
Registered: 2005-05-18
Posts: 49

[REQUEST] octave-forge

I've tried such a PKGBUILD written according to octave-forge documentation but after compilation it doesn't copy files to $startdir/pkg/*

Any idea?

pkgname=octave-forge
pkgver=2004.11.16
pkgrel=1
pkgdesc="Extra Octave functions"
url="http://octave.sourceforge.net"
depends=('octave' 'gcc-g77' 'readline' )
source=(http://dl.sourceforge.net/sourceforge/octave/$pkgname-$pkgver.tar.gz)

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make -k
  make check
  make icheck
  make || return 1
  make prefix=$startdir/pkg/usr install
}

...
error: /var/abs/local/octave-forge/src/octave-forge-2004.11.16/extra/graceplot/_
_grsetgraph__.oct is not a valid shared library
error: `__grsetgraph__' undefined near line 37 column 3
error: called from `oneplot' in file `/var/abs/local/octave-forge/src/octave-for
ge-2004.11.16/extra/graceplot/alternatives/oneplot.m'
make: *** [icheck] Error 1
Processing extra/
make[1]: Entering directory `/var/abs/local/octave-forge/src/octave-forge-2004.1
1.16/extra'
Processing extra/graceplot/
Processing extra/linear-algebra/
Processing extra/mex/
make[2]: Entering directory `/var/abs/local/octave-forge/src/octave-forge-2004.1
1.16/extra/mex'
if ! test -e /usr/libexec/octave/2.1.70/site/oct/i686-pc-linux-gnu/octave-forge 
; then 
  echo creating /usr/libexec/octave/2.1.70/site/oct/i686-pc-linux-gnu/octave-for
ge ; 
  /bin/install -c -d /usr/libexec/octave/2.1.70/site/oct/i686-pc-linux-gnu/octav
e-forge ; 
fi
creating /usr/libexec/octave/2.1.70/site/oct/i686-pc-linux-gnu/octave-forge
/bin/install: cannot create directory `/usr/libexec/octave/2.1.70/site/oct/i686-
pc-linux-gnu/octave-forge': Permission denied
make[2]: *** [install] Error 1
make[2]: Leaving directory `/var/abs/local/octave-forge/src/octave-forge-2004.11
.16/extra/mex'
make[1]: *** [mex/] Error 2
Processing extra/symband/
Processing extra/testfun/
Processing extra/tsa/
make[2]: Entering directory `/var/abs/local/octave-forge/src/octave-forge-2004.1
1.16/extra/tsa'
/bin/install -c -d /usr/share/octave/2.1.70/site/m/octave-forge/NaN
/bin/install: cannot create directory `/usr/share/octave/2.1.70/site/m/octave-fo
rge': Permission denied
make[2]: *** [install] Error 1
make[2]: Leaving directory `/var/abs/local/octave-forge/src/octave-forge-2004.11
.16/extra/tsa'
make[1]: *** [tsa/] Error 2
make[1]: Target `install' not remade because of errors.
make[1]: Leaving directory `/var/abs/local/octave-forge/src/octave-forge-2004.11
.16/extra'
Processing FIXES/
make[1]: Entering directory `/var/abs/local/octave-forge/src/octave-forge-2004.1
1.16/FIXES'
installing FIXES to /usr/share/octave/2.1.70/site/m/octave-forge/FIXES
/bin/install: cannot create directory `/usr/share/octave/2.1.70/site/m/octave-fo
rge': Permission denied
/bin/install: installing multiple files, but last argument, `/usr/share/octave/2
.1.70/site/m/octave-forge/FIXES' is not a directory
Try `/bin/install --help' for more information.
/bin/install: cannot create directory `/usr/libexec/octave/2.1.70/site/oct/i686-
pc-linux-gnu/octave-forge': Permission denied
cp: `/usr/libexec/octave/2.1.70/site/oct/i686-pc-linux-gnu/octave-forge': specif
ied destination directory does not exist
Try `cp --help' for more information.
make[1]: Leaving directory `/var/abs/local/octave-forge/src/octave-forge-2004.11
.16/FIXES'
Processing main/
make[1]: Entering directory `/var/abs/local/octave-forge/src/octave-forge-2004.1
1.16/main'
Processing main/audio/...
Processing main/comm/...
make[2]: Entering directory `/var/abs/local/octave-forge/src/octave-forge-2004.1
1.16/main/comm'
make[3]: Entering directory `/var/abs/local/octave-forge/src/octave-forge-2004.1
1.16/main/comm/doc'
/bin/install: cannot create directory `/usr/share/octave/2.1.70/site/m/octave-fo
rge': Permission denied
/bin/install: cannot create regular file `/usr/share/octave/2.1.70/site/m/octave
-forge/comm': No such file or directory
make[3]: *** [install] Error 1
make[3]: Leaving directory `/var/abs/local/octave-forge/src/octave-forge-2004.11
.16/main/comm/doc'
make[2]: *** [doc] Error 2
make[2]: Target `install' not remade because of errors.
make[2]: Leaving directory `/var/abs/local/octave-forge/src/octave-forge-2004.11
.16/main/comm'
make[1]: *** [comm/] Error 2
Processing main/fixed/...
make[2]: Entering directory `/var/abs/local/octave-forge/src/octave-forge-2004.1
1.16/main/fixed'
make[3]: Entering directory `/var/abs/local/octave-forge/src/octave-forge-2004.1
1.16/main/fixed/doc'
/bin/install: cannot create directory `/usr/share/octave/2.1.70/site/m/octave-fo
rge': Permission denied
/bin/install: cannot create regular file `/usr/share/octave/2.1.70/site/m/octave
-forge/fixed': No such file or directory
make[3]: *** [install] Error 1
make[3]: Leaving directory `/var/abs/local/octave-forge/src/octave-forge-2004.11
.16/main/fixed/doc'
make[2]: *** [doc] Error 2
make[2]: Target `install' not remade because of errors.
make[2]: Leaving directory `/var/abs/local/octave-forge/src/octave-forge-2004.11
.16/main/fixed'
make[1]: *** [fixed/] Error 2
Processing main/general/...
Processing main/geometry/...
Processing main/gsl/...
Processing main/image/...
Processing main/io/...
Processing main/linear-algebra/...
Processing main/miscellaneous/...
Processing main/optim/...
Processing main/plot/...
Processing main/signal/...
Processing main/sparse/...
Processing main/specfun/...
Processing main/splines/...
Processing main/strings/...
Processing main/struct/...
Processing main/symbolic/...
make[1]: Target `install' not remade because of errors.
make[1]: Leaving directory `/var/abs/local/octave-forge/src/octave-forge-2004.11
.16/main'
Processing nonfree/
make[1]: Entering directory `/var/abs/local/octave-forge/src/octave-forge-2004.1
1.16/nonfree'
skipping gpc/ splines/
intalling no packages
make[1]: Leaving directory `/var/abs/local/octave-forge/src/octave-forge-2004.11
.16/nonfree'
 
Installation complete.
 
To use, add the following to .octaverc:
   LOADPATH = [ '/usr/libexec/octave/2.1.70/site/oct/i686-pc-linux-gnu/octave-fo
rge:/usr/share/octave/2.1.70/site/m/octave-forge//:', LOADPATH ];
   EXEC_PATH = [ '/usr/libexec/octave/2.1.70/site/exec/i686-pc-linux-gnu:', EXEC
_PATH ];
 
To uninstall, remove the following:
   MPATH    = /usr/share/octave/2.1.70/site/m/octave-forge
   OPATH    = /usr/libexec/octave/2.1.70/site/oct/i686-pc-linux-gnu/octave-forge
   XPATH    = /usr/libexec/octave/2.1.70/site/exec/i686-pc-linux-gnu
   ALTMPATH = /usr/share/octave/2.1.70/site/octave-forge-alternatives/m
   ALTOPATH = /usr/libexec/octave/2.1.70/site/octave-forge-alternatives/oct/i686
-pc-linux-gnu
 
Some FIXES may be out of date.  Check the scripts in:
   /usr/share/octave/2.1.70/site/m/octave-forge/FIXES
   /usr/libexec/octave/2.1.70/site/oct/i686-pc-linux-gnu/octave-forge
against those in your version of Octave.
==> Compressing man pages...
==> Stripping debugging symbols from libraries...
==> Stripping symbols from binaries...
==> Generating .PKGINFO file...
==> Generating .FILELIST file...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Compressing package...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Finished making: octave-forge  (śro cze  1 20:49:56 CEST 2005)

Offline

#2 2005-06-01 19:59:00

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [REQUEST] octave-forge

Try changing  make prefix=$startdir/pkg/usr install
to  make DESTDIR=$startdir/pkg install
If it doesn't work, try using make PREFIX=$startdir/pkg/usr install
It it still doesn't work check the Makfile, it might need a patch.

Offline

#3 2005-06-02 00:31:03

rafal
Member
From: Poland
Registered: 2005-05-18
Posts: 49

Re: [REQUEST] octave-forge

After modifications and building dependencies (GiNaC, qhull), the package of octave-forge is created but there are 2 problems:
1) size of the package is too large (144MB),
2) during the run of octave, errors occurs.
Another 2 dependencies are required: gsl and cln (to install from Arch repositories)

pkgname=octave-forge
pkgver=2004.11.16
pkgrel=1
pkgdesc="Octave m-files and toolboxes"
url="http://octave.sourceforge.net"
depends=('octave' 'gcc-g77' 'readline' 'gsl' 'GiNaC' 'qhull' 'gmp' 'imagemagick')
source=(http://dl.sourceforge.net/sourceforge/octave/$pkgname-$pkgver.tar.gz)

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure 
            --prefix=/usr 
   --with-mpath=$startdir/pkg/usr/share/octave/2.1.70/site/m/octave-forge 
   --with-opath=$startdir/pkg/usr/libexec/octave/2.1.70/site/oct/i686-pc-linux-gnu/octave-forge 
   --with-xpath=$startdir/pkg/usr/libexec/octave/2.1.70/site/exec/i686-pc-linux-gnu 
   --with-altmpath=$startdir/pkg/usr/share/octave/2.1.70/site/octave-forge-alternatives/m 
   --with-altopath=$startdir/pkg/usr/libexec/octave/2.1.70/site/octave-forge-alternatives/oct/i686
  make -k || return 1
  make check
  make icheck 
  make prefix=$startdir/pkg/usr install

PKBUILDS for octave-forge dependencies not included in Arch:

pkgname=qhull
pkgver=2003.1
pkgrel=1
pkgdesc="Qhull computes the convex hull, Delaunay triangulation etc."
url="http://www.qhull.org"
license="GPL"
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://www.qhull.org/download/$pkgname-$pkgver.tar.gz)
md5sums=()

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}
pkgname=GiNaC
pkgver=1.3.1
pkgrel=1
pkgdesc="GiNaC is Not a CAS - Computer Algebra System"
url="http://www.ginac.de"
license="GPL"
depends=()
makedepends=('cln>=1.1.9' 'transfig')
conflicts=()
replaces=()
backup=()
install=
source=(ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/$pkgname-$pkgver.tar.bz2)
md5sums=()

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make html || return 1
  make dvi || return 1
  make ps || return 1
  make pdf || return 1
  make check || return 1
  make DESTDIR=$startdir/pkg install
}

Offline

#4 2005-06-03 12:08:03

jw
Member
Registered: 2005-01-08
Posts: 88

Re: [REQUEST] octave-forge

iirc you have to strip libraries/object files. i built an octave-forge package a while back. i am away from home for a few days, but will post the pkgbuild when i return.

Offline

#5 2005-06-03 12:49:03

sweiss
Member
Registered: 2004-02-16
Posts: 635

Re: [REQUEST] octave-forge

Packages should also have lower-case names. What I do in similar cases is creating a _pkgname variable with the real name and using it in the PKGBUILD, so you get

pkgname=ginac
_pkgname=GiNaC

Offline

#6 2005-06-03 14:58:15

jw
Member
Registered: 2005-01-08
Posts: 88

Re: [REQUEST] octave-forge

ok, i'll just post it now (only takes a minute). iirc i got the strip command from the mame pkgbuild. hope this works for you

pkgname=octave-forge
pkgver=2004.11.16
srcver=2004.11.16
pkgrel=0
pkgdesc="A third party function library for octave"
depends=('octave' 'libjpeg' 'libpng' 'imagemagick' 'fftw3')
makedepends=('gsl' 'tetex' 'texinfo')
source=(http://dl.sourceforge.net/sourceforge/octave/$pkgname-$srcver.tar.gz)
url="http://octave.sourceforge.net/"
#md5sums=('')

build() {
  cd $startdir/src/$pkgname-$srcver
  ./configure 
    --prefix=$startdir/pkg/usr 
    --with-mpath=$startdir/pkg/usr/share/octave/site/m/octave-forge 
    --with-opath=$startdir/pkg/usr/libexec/octave/site/oct/i686-pc-linux-gnu/octave-forge 
    --with-xpath=$startdir/pkg/usr/libexec/octave/site/exec/i686-pc-linux-gnu
  make
  make install
  find $startdir/pkg -type f -name '*.oct' -print0 | xargs -0 -r strip --strip-all
}

Offline

#7 2005-06-05 17:51:05

rafal
Member
From: Poland
Registered: 2005-05-18
Posts: 49

Re: [REQUEST] octave-forge

jw, I've tried your PKGBUILD including stripping the *.oct files, but the package I got is too big as before (132MB). What size has your octave-forge package?

Offline

#8 2005-06-06 08:11:29

jw
Member
Registered: 2005-01-08
Posts: 88

Re: [REQUEST] octave-forge

hmmnn. mine is 7.9 mb. are you sure you didn't make a typo somewhere?  is you got binutils installed?

btw: i think 2004.11.16 is broken with octave 2.1.70. i get the following on startup:

error: /usr/libexec/octave/site/oct/i686-pc-linux-gnu/octave-forge/dispatch.oct is not a valid shared library
error: `dispatch' undefined near line 2 column 1
error: near line 2 of file `/usr/share/octave/site/m/octave-forge/comm//PKG_ADD'
error: source: error sourcing file `/usr/share/octave/site/m/octave-forge/comm//PKG_ADD'

could be that i have to recompile. will look into it.

Offline

#9 2005-06-06 22:17:34

jw
Member
Registered: 2005-01-08
Posts: 88

Re: [REQUEST] octave-forge

i recompiled and am having the same problem as you now. for some reason the strip command does not seem to have much effect. i will have a look around to see if i can figure out what the problem is (need this package as well).

Offline

#10 2005-06-29 21:17:31

rafal
Member
From: Poland
Registered: 2005-05-18
Posts: 49

Re: [REQUEST] octave-forge

jw: A new octave-forge 2005.06.13 has released. Perhaps this version will work...

Offline

#11 2005-08-13 13:18:17

jw
Member
Registered: 2005-01-08
Posts: 88

Re: [REQUEST] octave-forge

sorry for the _late_ reply. compiling  2005.06.13 did the trick for me. the package is 2.4Mb on my system. here's the PKGBUILD:

pkgname=octave-forge
pkgver=2005.06.13
srcver=2005.06.13
pkgrel=0
pkgdesc="A collection third-party functions for octave"
depends=('octave' 'libjpeg' 'libpng' 'imagemagick' 'fftw3')
makedepends=('gsl' 'tetex' 'texinfo')
source=(http://dl.sourceforge.net/sourceforge/octave/$pkgname-$srcver.tar.gz)
url="http://octave.sourceforge.net/"
#md5sums=('')

build() {
  cd $startdir/src/$pkgname-$srcver
  ./configure 
    --prefix=$startdir/pkg/usr 
    --with-mpath=$startdir/pkg/usr/share/octave/site/m/octave-forge 
    --with-opath=$startdir/pkg/usr/libexec/octave/site/oct/i686-pc-linux-gnu/octave-forge 
    --with-xpath=$startdir/pkg/usr/libexec/octave/site/exec/i686-pc-linux-gnu
  make
  find $startdir/src -type f -name '*.oct' -print0 | xargs -0 -r strip --strip-all
  make install
}

if you're still having problems i can scp you the package.

hth
jw

Offline

#12 2005-08-13 13:42:06

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [REQUEST] octave-forge

--with-opath=$startdir/pkg/usr/libexec/octave/site/oct/i686-pc-linux-gnu/octave-forge
    --with-xpath=$startdir/pkg/usr/libexec/octave/site/exec/i686-pc-linux-gnu

That's bad pkgbuilding practice -> http://wiki.archlinux.org/index.php/Arc … _Standards

"Avoid using /usr/libexec/ for anything. Use /usr/lib/{pkg} instead."

Offline

#13 2005-08-15 21:58:13

jw
Member
Registered: 2005-01-08
Posts: 88

Re: [REQUEST] octave-forge

oh sh*t run! it's the package police  yikes

just kiddin dibble. anyway, this is not an distribution-grade PKGBUILD, just something i hacked up. however, in this case i am right about the libexec though. just do a

pacman -Ql octave |grep libexec

you'll see that the main octave package stores its files in libexec as well.

Offline

Board footer

Powered by FluxBB