You are not logged in.

#1 2004-09-06 02:20:01

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Audacity 1.2.2

audacity needed to be recompiled with new wxgtk (the one with gtk 2.4 support), and I was getting an error.
This is the PKGBUILD I used to get it working. The solution I gave (making the missing directory) is not elegant, but it worked for me.

# $Id: PKGBUILD,v 1.8 2004/05/26 23:00:55 dorphell Exp $
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer: dorphell <dorphell@archlinux.org>

pkgname=audacity
pkgver=1.2.2
pkgrel=1
pkgdesc="Audacity is a program that lets you manipulate digital audio waveforms"
depends=('wxgtk' 'libvorbis' 'libmad' 'libid3tag')
makedepends=('zip')
source=(http://audacity.sourceforge.net/latest/audacity-src.php/audacity-src-$pkgver.tar.gz)
url="http://audacity.sourceforge.net/"
md5sums=('68d60659ad936792f6d7d746a40a7179')


build() {
   cd $startdir/src/$pkgname-src-$pkgver
   ./configure --prefix=$startdir/pkg/usr --with-portaudio=v18
   mkdir -p src/obj/effects/ladspa
   make || return 1
   make install
}

And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#2 2004-09-06 04:20:16

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Audacity 1.2.2

well instead of making the directory did you try using

make DESTDIR=$startdir/pkg install

in place of the standard prefix= line?


AKA uknowme

I am not your friend

Offline

#3 2004-09-06 19:57:19

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: Audacity 1.2.2

kakabaratruskia wrote:
   ./configure --prefix=$startdir/pkg/usr --with-portaudio=v18

Also your prefix should be just --prefix=/usr.  It may compile the prefix path into the binary and it probably won't exists on most users' systems.

Offline

#4 2004-09-06 20:19:27

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: Audacity 1.2.2

sarah31 wrote:

well instead of making the directory did you try using

make DESTDIR=$startdir/pkg install

in place of the standard prefix= line?

I did not try that (didn't know that it could be made), but I don't get why it should make it work. The problem I was having was that make complained about a directory missing in the sources, so I just made it. Don't know if it had something to do with the prefix.

kpiche wrote:

   

Also your prefix should be just --prefix=/usr. It may compile the prefix path into the binary and it probably won't exists on most users' systems.

Don't know about that, I just copied the PKGBUILD from the  version in abs, so I think it's fine.


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#5 2004-09-07 21:33:17

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: Audacity 1.2.2

Well when you configure a source tree the --prefix not only often determines the install point but also let's the program know where it will be installed in case it needs to setup some paths.  So should the source tree think it will be installed in  $startdir/pkg/usr or /usr?

So maybe audacity cannot find the directory because the build hardcoded $startdir/pkg/usr into the dir's path.  The easiest way to check is to do use the strings command on the binary.  The audacity-1.2.1-1 binary gives:

# strings audacity |grep usr
/home/dorphell/Arch.CVS/extra/multimedia/audacity/pkg/usr
/home/dorphell/Arch.CVS/extra/multimedia/audacity/pkg/usr/share/doc/audacity/audacity-1.2-help.htb
/usr/lib
/usr/local/lib/ladspa
/usr/lib/ladspa
/home/dorphell/Arch.CVS/extra/multimedia/audacity/pkg/usr/ladspa
#

So the app has /home/dorphell... built into it.  This path is hardcoded in src/configunix.h and used in several places.  Basically the abs PKGBUILD has a bug.

Offline

#6 2004-09-07 21:39:23

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: Audacity 1.2.2

Good point... I don't know if I should file a bug report, as audacity has always worked fine for me. don't know if this bug is important enough.


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#7 2004-09-07 21:49:04

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: Audacity 1.2.2

I've just rebuilt it with this build code:

build() {
   cd $startdir/src/$pkgname-src-$pkgver
   ./configure --prefix=/usr --with-portaudio=v18
   mkdir -p src/obj/effects/ladspa
   make || return 1
   make prefix=$startdir/pkg/usr install
}

and the strings test gives me the same result (/var/abs/extra/multimedia/audacity)


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#8 2004-09-07 22:13:35

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: Audacity 1.2.2

Strange...I used:

build() {
   cd $startdir/src/$pkgname-src-$pkgver
   ./configure --prefix=/usr --with-portaudio=v18
   make || return 1
   make DESTDIR=$startdir/pkg install
}

$ strings pkg/usr/bin/audacity |grep usr
/usr
/usr/share/doc/audacity/audacity-1.2-help.htb
/usr/lib
/usr/ladspa
/usr/local/lib/ladspa
/usr/lib/ladspa
$

The Makefile supports DESTDIR, use that instead.

Offline

#9 2004-09-08 00:01:31

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Audacity 1.2.2

A switch from prefix to DESTDIR would warrant a bug report.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

Board footer

Powered by FluxBB