You are not logged in.

#1 2011-01-14 11:19:39

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Some IF/OR packaging questions...

Hi all

I have been googling this and searched through the Wiki without finding any obvious instructions about these things.

I am planning to package two different AURs where I have two distinct issues.

* In the first one (AMD's Open64 compiler), I need to have different depends() depending on $ARCH (x86_64 needs multilib packages)

* In the other one (KenCC and other packages), either 9base or plan9port both satisfy the binary dependencies of the package (and they are installed in the same directories) - how do I add an 'OR' in depends() or makedepends()?

Sorry if this information is available somewhere and if it is - could you please point me in the right direction?


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#2 2011-01-14 11:23:09

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Some IF/OR packaging questions...

Check out the kernel26 PKGBUILD for info on your first issue.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2011-01-14 11:32:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Some IF/OR packaging questions...

IIRC the OR question was asked on the ML. IF I can find it, I'll post the link.

Offline

#4 2011-01-14 11:33:58

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Some IF/OR packaging questions...

Thanks guys!

You are awsome


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#5 2011-01-14 13:09:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Some IF/OR packaging questions...

Do you mean sth like http://mailman.archlinux.org/pipermail/ … 12065.html ? It's not possible at the moment.

At the very bottom of http://mailman.archlinux.org/pipermail/ … 12072.html

Xyne wrote:

I thought the plan was to open a dialogue to select "provides" in the future.
This could be used with alternative dependencies too.

He's talking about http://mailman.archlinux.org/pipermail/ … 11885.html


http://mailman.archlinux.org/pipermail/ … 11694.html can be of some relevance too.

Last edited by karol (2011-01-14 13:17:59)

Offline

#6 2011-01-14 13:52:36

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: Some IF/OR packaging questions...

karol wrote:

Do you mean sth like http://mailman.archlinux.org/pipermail/ … 12065.html ? It's not possible at the moment.

This was the most relevant one of the different cases that you provided. The difference is that '9base' and 'plan9port' are more like the Java examples in the text (in fact, they provide the same binaries just that 9base is a subset of plan9port).
The simplest would probably be to let plan9port provide 9base and then give 9base as dependency.

There are probably lots of other fringe cases similar to this one however, so a mechanism where two interchangeable packages could be used as a dependency (without having to bug the packagers of adding a "provides") would be neat.


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#7 2011-01-14 14:05:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Some IF/OR packaging questions...

You can follow the discussion on the ML.

If 9base is a subset of plan9port it should be fairly easy to do as you suggested. But the question remains: which package would get installed if you tell pacman to install foo (that needs 9base) and it's dependencies and not tell pacman which exact packages you prefer?

Offline

Board footer

Powered by FluxBB