You are not logged in.

#1 2004-06-26 14:46:08

mattux
Member
Registered: 2004-04-22
Posts: 81

allow all chars in pkgver

i tried to make the lbreakout 2.5beta package ..
but the makepkg doesn't allow to set pkgver=2.5beta-8
pkgver=2.5beta8 works...
howto enable the first one (i have to change the download and compile location) i thinks lbreakout isnt the only one where this would be nice...

mattux

Offline

#2 2004-06-26 14:55:09

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: allow all chars in pkgver

you can create a new variable for the $origversion

$origver=2.5beta-8
$pkgver=2.5beta8

and then use origver in the source() and build()


The impossible missions are the only ones which succeed.

Offline

#3 2004-06-26 16:45:05

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: allow all chars in pkgver

There are other reasons for not allowing all characters in pkgver.

The package docs say that you should try not to use any variables that aren't explicitly specified, because we may add them at one point and then they'll get overwritten.

It just means you have to suck it up.  Check a package like user-mode-linux for how I did it.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#4 2004-06-26 17:57:01

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: allow all chars in pkgver

while not allowing some characters is annoying and usually adds a few tweaks of the build syntax it is a good thing because as Xentac said allowing all chars can cause problems down the road (sometimes not even down the road).


AKA uknowme

I am not your friend

Offline

#5 2004-06-27 18:25:22

mattux
Member
Registered: 2004-04-22
Posts: 81

Re: allow all chars in pkgver

ok thx for the many answers wink


mattux

Offline

Board footer

Powered by FluxBB