You are not logged in.

#1 2010-02-23 11:16:49

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Make depends on custom packages

Trying to make a AUR package for MPEG4IP so it depends on 'faac' at build time, though 'faac' in arch repo is built with --with=mp4v2=yes so the PKGBUILD needs to build a custom faac first and i use:

  cd $srcdir/faac-1.28
  ./bootstrap --with=mp4v2=no
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$pkgdir" install || return 1

But after that i don't know how to continue on, never had todo it b4 ^^...

If i put this after the above:

  cd $srcdir/mpeg4ip-1.5.0.1
  ./bootstrap --prefix=$pkgdir/usr/bin --enable-ffmpeg
  make || return 1
  make DESTDIR="$pkgdir" install || return 1

It won't compile because the custom faac isn't installed yet.

ofc if i use 'make install || return 1' at faac code i get permission errors when doin makepkg -s.
and if i su -c "make install || return 1" it'll ask for su password during build, feels alil wrong, think i'm on the wrong track here.

Last edited by Corex (2010-02-23 11:29:40)

Offline

#2 2010-02-23 12:46:03

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Make depends on custom packages

You need to make a separate custom faac package - call it something like faac-nomp4v2 - which conflicts with and provides faac. Install that, then build your mpeg4ip package.

I'm sure you're already aware that mpeg4ip is no longer maintained, but I'll mention it anyway just in case.

Offline

#3 2010-02-23 12:54:33

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: Make depends on custom packages

Yeah, just wanted to make a long story short, it's Air Video Server wich requires a custom ffmpeg and mpeg4ip wich in turn requires a custom faac.

So it's not possible to build 1 aur package with other build dependencies that's not in the arch repostory?

Because right now i'm adding:
  msg "Enter your root password if it asks for a password"
  su -c "make install || return 1"

But that still feels a bit wrong, it installs packages before the actual package is installed with pacman (installs in makepkg stage) and i don't know if that's ok or not... When removing files still will be there but that can be solved through the .install script.

Last edited by Corex (2010-02-23 13:03:12)

Offline

#4 2010-02-23 12:58:48

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: Make depends on custom packages

Corex wrote:

Because right now i'm adding:
  msg "Enter your root password if it asks for a password"
  su -c "make install || return 1"

But that still feels abit wrong

Not a bit wrong....   a lot wrong.

Offline

#5 2010-02-23 13:02:27

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: Make depends on custom packages

So what's the correct solution?

Offline

#6 2010-02-23 13:02:39

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Make depends on custom packages

We don't bundle packages. Just do it the way I suggested

Offline

#7 2010-02-23 13:08:14

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: Make depends on custom packages

Sorry i'm very unsure of this i just wan't to learn correctly from the beginning, i'm trying to see it as it we're finished, first have to download and install faac from AUR then ffmpeg and then mpeg4ip lastly AirVideoServer? I don't quite understand what you mean tomk smile

Offline

#8 2010-02-23 13:09:21

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: Make depends on custom packages

Awww wait i'm sorry lol, aur packages can be made dependencies in PKGBUILD? i get it now rofl sry bout that.. I only knew dependencies worked from the main arch repo.

______________
<- i'm with stupid

Last edited by Corex (2010-02-23 13:16:23)

Offline

#9 2010-02-23 15:02:30

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: Make depends on custom packages

So the packages are now created correctly seperatly and put up on AUR, now i'm trying to install mpeg4ip 1.5.0.1 and i've put makedepends containing the new package faac-nomp4v2 but i'm getting the error:

faac-nomp4v2 package not found, searching for group...
error: 'faac-nomp4v2': not found in sync db
==> ERROR: Pacman failed to install missing dependencies.

command used was 'makepkg -s'

So is it not possible to have a unsupported aur pakage as a dependency for another aur package?

Last edited by Corex (2010-02-23 15:04:15)

Offline

#10 2010-02-23 15:24:00

Infin1ty
Member
From: Israel
Registered: 2009-10-09
Posts: 42

Re: Make depends on custom packages

Corex wrote:

So the packages are now created correctly seperatly and put up on AUR, now i'm trying to install mpeg4ip 1.5.0.1 and i've put makedepends containing the new package faac-nomp4v2 but i'm getting the error:

faac-nomp4v2 package not found, searching for group...
error: 'faac-nomp4v2': not found in sync db
==> ERROR: Pacman failed to install missing dependencies.

command used was 'makepkg -s'

So is it not possible to have a unsupported aur pakage as a dependency for another aur package?

You can, you just need to install the manually...
if you upload to the AUR you won't be able to retrieve it via pacman.. perhaps via some other package management.

Offline

#11 2010-02-23 15:30:44

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: Make depends on custom packages

Humm so there no way to implement an easy install via AUR cuz the app has custom build dep? Cuz it's hard to get the information needed for a user to complete the install in the correct order

Offline

#12 2010-02-23 15:36:21

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Make depends on custom packages

the AUR is by design a manual process.  if an AUR packages has an AUR dep, pacman will never find/install it.  however, there are many aur helpers (packer, bauerbill, aurget) that will do auto-dependency resolution for you.  please look into these.

Offline

#13 2010-02-23 15:40:47

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: Make depends on custom packages

I will, just wanted to know if it was possible through PKGBUILD first.. I'll look into it, thx everyone for sharing the information, trying to learn smile

Offline

Board footer

Powered by FluxBB