[arch-general] Question about split packages
I've been playing around with split packages and it's a nice feature, it'll make some packaging tasks a lot easier. Anyway, there's one thing I can't find out, is it possible to have one package depend on another one that's built from the same sources? Basically something like this: pkgname=('foo' 'bar') ... build () { ... } package_foo () { ... } package_bar () { depends=('foo') ... } /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
Am Freitag 07 August 2009 19:03:31 schrieb Magnus Therning:
is it possible to have one package depend on another one that's built from the same sources?
Yes. That's also the reason why you need to define all deps as makedepends globally. -- Pierre Schmitz, http://users.archlinux.de/~pierre
On Fri, 2009-08-07 at 18:03 +0100, Magnus Therning wrote:
I've been playing around with split packages and it's a nice feature, it'll make some packaging tasks a lot easier. Anyway, there's one thing I can't find out, is it possible to have one package depend on another one that's built from the same sources?
Basically something like this:
pkgname=('foo' 'bar') ...
build () { ... }
package_foo () { ... }
package_bar () { depends=('foo') ... }
/M
That works yes, see libgsf and svn trunk for poppler for examples. Note that you will need pkgbase=foobar also. You will also have to replace any $pkgname with $pkgbase in the build function and the source urls when you start splitting packages.
participants (3)
-
Jan de Groot
-
Magnus Therning
-
Pierre Schmitz