You are not logged in.

#1 2007-04-22 05:47:32

wornaki
Member
Registered: 2006-08-19
Posts: 9

Trying to build a qt4 dependant package (QtOctave)

Hello guys,

I'm trying to build a package for qtoctave, which you can find in http://qtoctave.wordpress.com. The frontend depends on qt4 and octave, but with the following PKGBUILD I can't build it. Suggestions are more than welcomed!

# Contributer: David Lemma <wornaki@gmail.com>
pkgname=qtoctave
pkgver=0.4.1
pkgrel=1
pkgdesc="QtOctave is a front-end for Octave"
url="http://qtoctave.wordpress.com/about/"
depends=('octave' 'qt4')
source=(https://forja.rediris.es/frs/download.php/236/${pkgname}_$pkgver.tar.gz)
md5sums=('29910c14c2037c09e681fe535d0400fc')

build() {

source /etc/profile.d/qt4.sh

cd $startdir/src/project/
./configure
make PREFIX=/usr CONF_PREFIX= || return 1
make install

# Back to the qt3 profile
source /etc/profile.d/qt.sh
}

This is the last part of the compilation log...

cd qtoctave; /usr/bin/make install
make[1]: Entering directory `/home/wornaki/paquetes/qtoctave/src/project/qtoctave'
mkdir: cannot create directory `/usr/local/share/qtoctave': Permission denied
make[1]: *** [install_qtoctave_help] Error 1
make[1]: Leaving directory `/home/wornaki/paquetes/qtoctave/src/project/qtoctave'
make: *** [install] Error 2
==> Removing info/doc files...
==> 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
==> Cleaning up...
==> Finished making: qtoctave  (Sun Apr 22 02:40:55 ART 2007)

Offline

#2 2007-04-22 06:06:49

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

Re: Trying to build a qt4 dependant package (QtOctave)

First change the configure line:
./configure --prefix=/usr
so the package gets installed in /usr not /usr/local

Change the make install line:
make DESTDIR=$startdir/pkg install
so it doesn't try to install the files directly on the system.

Offline

#3 2007-04-22 19:45:35

wornaki
Member
Registered: 2006-08-19
Posts: 9

Re: Trying to build a qt4 dependant package (QtOctave)

Snowman wrote:

First change the configure line:
./configure --prefix=/usr
so the package gets installed in /usr not /usr/local

Change the make install line:
make DESTDIR=$startdir/pkg install
so it doesn't try to install the files directly on the system.

Well, I did that, but still I got nothing but the same error...

Offline

#4 2007-04-22 19:57:53

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

Re: Trying to build a qt4 dependant package (QtOctave)

Try replacing
make DESTDIR=$startdir/pkg install
by:
make prefix=$startdir/pkg/usr install
or:
make PREFIX=$startdir/pkg/usr install

Offline

Board footer

Powered by FluxBB