You are not logged in.

#1 2008-12-07 15:22:14

luuuciano
Member
Registered: 2007-01-27
Posts: 310

help, error in liquidsoap pkgbuild

Hi!

Im trying to build the liquidsoap pkgbuild
http://savonet.sourceforge.net/
I have built all the missing dependencies pkgbuild too

this is the error: http://pastebin.ca/1278790

and here the pkgbuild...

# Maintainer:
# Contributor: Luciano A. Ferrer
pkgname=liquidsoap
pkgver=0.3.8.1
pkgrel=1
arch=('i686' 'x86_64')
license=('GPL')
pkgdesc="Liquidsoap is the audio stream generator of the Savonet project, notably used for generating the stream of netradios"
url="http://savonet.sourceforge.net/"
depends=('ocaml-findlib' 'ocaml-dtools' 'ocaml-duppy>=0.1.2' 'pcre-ocaml' 'ocaml-camomile' 'ocaml-magic' 'soundtouch' 'perl-xml-dom' 'libxml-perl')

source=("http://downloads.sourceforge.net/savonet/$pkgname-$pkgver.tar.bz2")
md5sums=('aca676798683b37097f05b54a6898f73')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$pkgdir/" install
}


an op of #savonet told me the following:

<toots> luuuciano: you need to install in a subdir not into the system I guess
<toots> luuuciano: in debian, we use
<toots> DEB_MAKE_INSTALL_TARGET := doc install DESTDIR=$(CURDIR)/debian/tmp/ DEBIAN=yes prefix=$(CURDIR)/debian/tmp/usr sysconfdir=$(CURDIR)/debian/tmp/etc
<toots> I think you can adapt
<toots> I'm looking to what the DEBIAN=yes means

any idea?



regards,
luciano


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#2 2008-12-07 19:24:53

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: help, error in liquidsoap pkgbuild

/bin/install: no se puede crear el directorio «/usr/share/doc/liquidsoap-0.3.8.1»: Permiso denegado

You notice it's actually trying to install under the system, instead of under $pkgdir?

Read the INSTALL file that came with the source tarball for instructions on how to install to a given directory...

Perhaps you could try this:

  ./configure --prefix=/usr
  make all || return 1
  make install DESTDIR="$pkgdir/"

BTW, if you want to get uotput in english, please execute makepkg like this:

$ LANG=C makepkg <your-parameters>

Last edited by LTSmash (2008-12-07 19:25:59)


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#3 2008-12-07 21:15:50

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

Re: help, error in liquidsoap pkgbuild

I think the Makefile needs to be patched. If you pastebin the Makefile (after the configure script has been run), I might be able to see what to do.

Offline

#4 2008-12-09 16:53:23

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: help, error in liquidsoap pkgbuild

Snowman wrote:

I think the Makefile needs to be patched. If you pastebin the Makefile (after the configure script has been run), I might be able to see what to do.

this is the Makefile
http://pastebin.ca/1280793
(but it looks the same than before the ./configure.....)

and this is a Makefile.defs
http://pastebin.ca/1280795

and here the log (in english, thanks LTSmash)
http://pastebin.ca/1280799


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#5 2008-12-10 05:55:06

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

Re: help, error in liquidsoap pkgbuild

Try changing
make DESTDIR="$pkgdir/" install
by
make DESTDIR="$pkgdir/" datadir="$pkgdir/usr/share/" install

Offline

#6 2008-12-10 20:46:16

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: help, error in liquidsoap pkgbuild

mmmmm, nopes...
this is the error: http://pastebin.ca/1281964


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#7 2008-12-10 21:22:27

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

Re: help, error in liquidsoap pkgbuild

We're making progress.
Use:
make DESTDIR="$pkgdir/" datadir="$pkgdir/usr/share/" mandir="$pkgdir/usr/share/man/" install

Let us know how it goes.

Offline

#8 2008-12-10 22:37:16

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: help, error in liquidsoap pkgbuild

Snowman wrote:

We're making progress.

thats great smile

here the current error: http://pastebin.ca/1282055


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#9 2008-12-11 06:31:40

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

Re: help, error in liquidsoap pkgbuild

add:
install=liquidsoap.install
to your PKGUILD.

try this build function:

build() {
  cd "$srcdir/$pkgname-$pkgver"

  # the liquidsoap user and group are required to build
  if [ ! `egrep '^liquidsoap' /etc/passwd` ]; then
    msg "Adding user/group liquidsoap (temporarily)"
    groupadd -g 140 liquidsoap || return 1
    sleep 2
    useradd -u 140 -g liquidsoap -d /home/liquidsoap -s /bin/false liquidsoap \
        || return 1
    cleanup=1
  else
    cleanup=0
  fi

  ./configure --prefix=/usr  --localstatedir=/var --sysconfdir=/etc
  make || return 1
  make DESTDIR="$pkgdir/" datadir="$pkgdir/usr/share/" mandir="$pkgdir/usr/share/man/"  localstatedir="$pkgdir/var"  bindir="$pkgdir/usr/bin/"  libdir="$pkgdir/usr/lib/" sysconfdir="$pkgdir/etc/"  install

  if [ $cleanup -eq 1 ]; then
    msg "Removing user/group liquidsoap"
    userdel liquidsoap
    groupdel liquidsoap
    fi
}

liquidsoap.install

post_install() {
  groupadd -g 140 liquidsoap &>/dev/null
  useradd -u 140 -g liquidsoap -d /home/liquidsoap -s /bin/false liquidsoap &>/dev/null
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  userdel liquidsoap &>/dev/null
  groupdel liquidsoap &>/dev/null
}

I haven't created the /home/liquidsoap directory. I'm not sure if it's needed.   You'll also need a daemon script. I'll post it later.

Offline

#10 2008-12-11 06:40:02

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

Re: help, error in liquidsoap pkgbuild

If it builds, post the package content: tar -tzvf *.pkg.tar.gz

That will give me the daemon name and I'll check if everything was installed in the right location.

Offline

#11 2008-12-11 14:36:22

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: help, error in liquidsoap pkgbuild

snowman, look:

==> Entering fakeroot environment...
==> Starting build()...
==> Adding user/group liquidsoap (temporarily)
groupadd: PAM authentication failed
==> ERROR: Build Failed.
    Aborting...


btw, I have uploaded all the missing and optional dependencies to aur... you may try to build it, if you want

the only problem is pcre-ocaml that the pkgbuild is outdated, and you will need to change to:

pkgver=5.15.1
pkgrel=1
pkgdesc="Perl compatible regular expressions for Objective Caml (OCaml)"
arch=('i686' 'x86_64')
url="http://www.ocaml.info/home/ocaml_sources.html#toc14"
license=('LGPL')
depends=('ocaml' 'pcre>=4.5' 'ocaml-findlib')
source=(http://hg.ocaml.info/release/pcre-ocaml/archive/release-$pkgver.tar.gz)
md5sums=('546a8ca34cc14af61c65b3134222d5fe')

build() {
  cd $startdir/src/$pkgname-release-$pkgver

  make || return 1
  mkdir -p $startdir/pkg/usr/lib/ocaml/$pkgname
  mkdir -p $startdir/pkg/usr/lib/ocaml/site-lib/pcre
  cd lib
  echo -e "directory=\"+pcre-ocaml\"\n" >> META
  install -m 0644 META $startdir/pkg/usr/lib/ocaml/site-lib/pcre
  install -m 0644 pcre.{a,cmxa,cma,cmi,mli} libpcre_stubs.a $startdir/pkg/usr/lib/ocaml/$pkgname
  install -m 0755 dllpcre_stubs.so $startdir/pkg/usr/lib/ocaml/$pkgname
}

Last edited by luuuciano (2008-12-11 14:39:38)


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#12 2008-12-11 23:02:04

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: help, error in liquidsoap pkgbuild

Why do you set the UID and the GID explicitely? It may be unrelated to the problem, but at the moment I do not see the reason for doing so.

Offline

#13 2008-12-12 04:05:07

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

Re: help, error in liquidsoap pkgbuild

Stefan Husmann wrote:

Why do you set the UID and the GID explicitely? It may be unrelated to the problem, but at the moment I do not see the reason for doing so.

I was following the mailman PKGBUILD. I think that it doesn't work when building in chroot. luuuciano: by chance, are you using a chroot? It's possible that the UID and the GID are not required.

Offline

#14 2008-12-12 05:02:55

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: help, error in liquidsoap pkgbuild

well... I have commented out all the group and etc... and its not working
it ends with:

make[2]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/src'               
make[1]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/src'               
make[1]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/examples'         
make[1]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/examples'         
make[1]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc'             
make[2]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/content'     
make[2]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/content'       
make[2]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/liqi'         
make[3]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/liqi'         
make[3]: `liqi' is up to date.                                                                           
make[3]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/liqi'         
make[2]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/liqi'         
make[1]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc'               
make[1]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/gui'             
make[1]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/gui'               
make[1]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/scripts'         
make[1]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/scripts'           
make -C doc doc-install                                                                                 
make[1]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc'             
make[2]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/content'     
make[2]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/content'       
make[2]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/liqi'
make[3]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/liqi'
make[3]: `liqi' is up to date.
make[3]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/liqi'
make[2]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc/liqi'
../src/liquidsoap ../scripts/utils.liq --list-plugins-xml | \
          ./reference_to_liqi.pl > content/reference.txt
Converting content/reference.txt to html/reference.html...
/bin/install -c  -d /home/luciano/yAURlocal/liquidsoap/pkg/usr/share//doc/liquidsoap-0.3.8.1/html
cp -rf html/* /home/luciano/yAURlocal/liquidsoap/pkg/usr/share//doc/liquidsoap-0.3.8.1/html
/bin/install -c -d /home/luciano/yAURlocal/liquidsoap/pkg/usr/share/man//man1
/bin/install -c -m 644 liquidsoap.1 /home/luciano/yAURlocal/liquidsoap/pkg/usr/share/man//man1
make[1]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/doc'
make -C examples doc-install
make[1]: Entering directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/examples'
/bin/install -c -d /home/luciano/yAURlocal/liquidsoap/pkg/usr/share//doc/liquidsoap-0.3.8.1/examples
/bin/install -c -m 644 fallible.liq geek.liq radio.liq transitions.liq README /home/luciano/yAURlocal/liquidsoap/pkg/usr/share//doc/liquidsoap-0.3.8.1/examples
make[1]: Leaving directory `/home/luciano/yAURlocal/liquidsoap/src/liquidsoap-0.3.8.1/examples'
/bin/install -c -d -o liquidsoap -g liquidsoap -m 2775 \
          /home/luciano/yAURlocal/liquidsoap/pkg/var/log/liquidsoap
/bin/install: invalid user `liquidsoap'
make: *** [install-local] Error 1
==> ERROR: Build Failed.
    Aborting...


sad

Im not using chroot... just the usual stuf... my system, pkgbuild...


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

Board footer

Powered by FluxBB