You are not logged in.

#1 2008-06-09 14:41:59

osc~
Member
From: brazil
Registered: 2007-07-06
Posts: 117
Website

[solved] oggfwd help

hi
i am trying to build a program called theorur, for that i need oggfwd.
http://v2v.cc/~j/oggfwd/
i cant manage to install it. here is my pkgbuild.
what could be the error

thanks

# Contributor: farid abdelnour < farid at atelier-labs.org>

pkgname=oggfwd    
pkgver=1
pkgrel=1
pkgdesc="pipes an ogg stream to an icecast server"
arch=('i686')
url="http://v2v.cc/~j/oggfwd/"
depends=('')
license=('GPL')
source=(http://www.v2v.cc/~j/ffmpeg2theora/oggfwd/oggfwd.tar.gz)
md5sums=('8402d26a5a8ff318ef6ea01ec146c8cc')

build() {
cd ${startdir}/src/${pkgname}-${pkgver}
make oggfwd
}

Last edited by osc~ (2008-06-10 16:24:28)

Offline

#2 2008-06-09 15:14:42

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [solved] oggfwd help

The build () function doesn't do what you want it to do.
1) 'cd $startdir/src/${pkgname}' (should be without -${pkgver}) - reason: if you look into the src/ dir, you'll see that the directory is named only oggfwd, not oggfwd-1.
2) you need to 'install' somewhere, ie copy the compiled binary into the appropriate directory in $startdir/pkg/. One way to do it is 'install -D -m755 oggfwd $startdir/pkg/usr/bin/oggfwd || return 1'
3) the '|| return 1' is a good thing (makepkg bails out on error), so it would be good if you 'make oggfwd || return 1'

EDIT: Altogether

build () {
  cd $startdir/src/${pkgname}
  make oggfwd || return 1
  install -D -m755 oggfwd $startdir/pkg/usr/bin/oggfwd || return 1
}

And generally here's how do the PKGBUILDs work. The build () function is just a script which gets called when you run 'makepkg'. It needs to 1) compile the program 2) move the files that you want to be a part of the package into $startdir/pkg. When the function exits, the only other thing that makepkg does is that it makes a tarball from everything under $startdir/pkg.

Last edited by bender02 (2008-06-09 15:22:34)

Offline

#3 2008-06-09 16:30:23

osc~
Member
From: brazil
Registered: 2007-07-06
Posts: 117
Website

Re: [solved] oggfwd help

Offline

#4 2008-06-09 22:57:16

osc~
Member
From: brazil
Registered: 2007-07-06
Posts: 117
Website

Re: [solved] oggfwd help

bender02 wrote:

The build () function doesn't do what you want it to do.
1) 'cd $startdir/src/${pkgname}' (should be without -${pkgver}) - reason: if you look into the src/ dir, you'll see that the directory is named only oggfwd, not oggfwd-1.
2) you need to 'install' somewhere, ie copy the compiled binary into the appropriate directory in $startdir/pkg/. One way to do it is 'install -D -m755 oggfwd $startdir/pkg/usr/bin/oggfwd || return 1'
3) the '|| return 1' is a good thing (makepkg bails out on error), so it would be good if you 'make oggfwd || return 1'

EDIT: Altogether

build () {
  cd $startdir/src/${pkgname}
  make oggfwd || return 1
  install -D -m755 oggfwd $startdir/pkg/usr/bin/oggfwd || return 1
}

And generally here's how do the PKGBUILDs work. The build () function is just a script which gets called when you run 'makepkg'. It needs to 1) compile the program 2) move the files that you want to be a part of the package into $startdir/pkg. When the function exits, the only other thing that makepkg does is that it makes a tarball from everything under $startdir/pkg.

i did that but still no result.
check out if you could the link of the previous post.

cheers

Offline

#5 2008-06-09 23:57:08

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [solved] oggfwd help

Try only with 'make || return 1' instead 'make oggfwd || return 1'
For some reason, the one with oggfwd does not compile properly here.

EDIT: and you should fix the version number (i believe it should be 0.2).

Last edited by bender02 (2008-06-10 00:00:02)

Offline

#6 2008-06-10 03:12:23

osc~
Member
From: brazil
Registered: 2007-07-06
Posts: 117
Website

Re: [solved] oggfwd help

i got an error having to do with dependencies. so it didnt install.

Offline

#7 2008-06-10 03:21:57

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [solved] oggfwd help

osc~ wrote:

i got an error having to do with dependencies. so it didnt install.

That doesn't say much.

Offline

#8 2008-06-10 03:45:55

osc~
Member
From: brazil
Registered: 2007-07-06
Posts: 117
Website

Re: [solved] oggfwd help

bender02 wrote:
osc~ wrote:

i got an error having to do with dependencies. so it didnt install.

That doesn't say much.

i manage to compile it as a package with makepkg.
but when i do sudo pacman -U oggfwd-0.2-1-i686.pkg.tar.gz it says that there is a dependencir error. yet it doesnt state which dependency. so i dont know how to really elaborate.

Offline

#9 2008-06-10 04:43:33

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [solved] oggfwd help

Well, -v flag to pacman makes it spit out pretty much all it can. So try that. It could be that a package that depends on it blocks it somehow - then uninstall that one, reinstall oggfwd and install back the other one.

Offline

#10 2008-06-10 12:56:21

osc~
Member
From: brazil
Registered: 2007-07-06
Posts: 117
Website

Re: [solved] oggfwd help

here is the result (it is in portuguese but it says that it couldnt comply to all dependencies)

Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/  
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
Targets   : oggfwd-0.2-1-i686.pkg.tar.gz  
carregando informações do pacote...
verificando dependências...
erro: falha ao preparar transação (não foi possível satisfazer as dependências)
:: oggfwd: requer

Offline

#11 2008-06-10 16:03:53

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [solved] oggfwd help

Ah! I think the problem is your depends=('') line. There's no package with empty name wink Just try to leave off that line.

Offline

#12 2008-06-10 16:24:08

osc~
Member
From: brazil
Registered: 2007-07-06
Posts: 117
Website

Re: [solved] oggfwd help

yes
finally
thanks!!!

Offline

Board footer

Powered by FluxBB