You are not logged in.

#1 2009-07-27 02:06:11

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

makepkg package splitting and PKGBUILD vars

simple question:
in the new makepkg version (makepkg-git) is "pkgname" always an array (should be, i guess)?
and what type is "pkgbase", array or string?

thanks,
vlad

ps: from here http://projects.archlinux.org/?p=pacman … plit.proto

pkgname=('pkg1' 'pkg2')
pkgbase=('pkg')

Last edited by DonVla (2009-07-27 02:18:21)

Offline

#2 2009-07-27 03:07:46

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

Re: makepkg package splitting and PKGBUILD vars

It is a string.  I will fix.

Edit: if you are using my makepkg-git package, make sure you download todays version.  Last weeks had issues...

Online

#3 2009-07-27 18:42:06

wantilles
Member
From: Athens - Greece
Registered: 2007-03-29
Posts: 327

Re: makepkg package splitting and PKGBUILD vars

Is there any documentation available about these new -makepkg-pacman-PKGBUILD capabilities?

Or at least a full example of a PKGBUILD with these new capabilities?

So that we can start familiarizing ourselves with this new stuff.

Offline

#4 2009-07-27 22:44:46

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

Re: makepkg package splitting and PKGBUILD vars

I wrote something here, but there is more details in the PKGBUILD-git man page and an example provided with makepkg-git

Online

#5 2009-07-28 00:41:34

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: makepkg package splitting and PKGBUILD vars

hi allan,
i took a look at this PKGBUILD as an example:
http://repos.archlinux.org/viewvc.cgi/k … iew=markup
as you see "package_kdemultimedia-kioslave() {}" has "'kdemultimedia-libkcompactdisc' 'kdemultimedia-libkcddb'" as deps which are build in the same PKGBUILD.
hm, should makepkg now be used with the "--nodeps" option?
is there another explanation or reason?

Last edited by DonVla (2009-07-28 00:42:31)

Offline

#6 2009-07-28 01:48:38

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

Re: makepkg package splitting and PKGBUILD vars

That works fine.  The depends in individual split packages are not tested at any stage.  Only the global depends and makedepends are used.  As a general rule, everything within a split packages depends array should be in the global makedepends array, but there are obvious exceptions such as this one.

Online

#7 2009-07-28 08:10:37

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: makepkg package splitting and PKGBUILD vars

ok, thanks allan!

Offline

#8 2009-08-18 08:16:22

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: makepkg package splitting and PKGBUILD vars

@Allan: Is makepkg the same as makepkg-git now...

I've been using your makepkg-git for a few months, and I just noticed that the /etc/makepkg.conf.pacnew is the exact same as /etc/makepkg-git.conf

Offline

#9 2009-08-18 09:37:45

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: makepkg package splitting and PKGBUILD vars

methuselah wrote:

@Allan: Is makepkg the same as makepkg-git now...

I've been using your makepkg-git for a few months, and I just noticed that the /etc/makepkg.conf.pacnew is the exact same as /etc/makepkg-git.conf

you should use makepkg 3.3 now. several fixes were made in the last few months


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#10 2009-08-18 10:07:27

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

Re: makepkg package splitting and PKGBUILD vars

Yes, the last makepkg-git package should be exactly the same as makepkg from pacman-3.3.

Online

#11 2009-08-18 19:08:03

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: makepkg package splitting and PKGBUILD vars

Thank you both.

Offline

Board footer

Powered by FluxBB