Subject: Re: hyphen in package version
To: SUNAGAWA Keiki <Keiki_SUNAGAWA@yokogawa.co.jp>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-pkg
Date: 10/22/1999 00:39:58
On Thu, 21 Oct 1999, SUNAGAWA Keiki wrote:
> I updated php3 pkg to php-3.0.12jp-beta4, which is
> i18n-version of php-3.0.12, to use Japanese with it.
> 
> The problem is that it contains a hyphen in it's version
> number (3.0.12jp-beta4).
> 
> I heard pkg's version number should not contain a hyphen, so
> I changed php3/Makefile as below, but found other pkgs e.g.
> php3-pgsql defines its PKGNAME as php-pgsql-${PHP_VERSION}.
> 
> Where is the right way?  Should I replace PKGNAMEs around of
> related pkg or not (I think I shouldn't)?
> 
> Comments, suggestions, etc. are appriciated.

Hi,

the php3-pgsql package is ok, as it doesn't contain the '-` in the
package's _version_, only in the name. We use strrchr('-',...) to get the
pkg version in a lot of places, and therefore must be consistent there. 
The php-3.0.12jb_beta4 would be ok, as would php-3.0.12jp_b4.

What I'm really wondering, tough, is the fact if we need a seperate
package with japanese locale support at all. Can't we just merge these
changes into the "main" php3 package? I'd definitely prefer this to all
packges appearing a second (third...) time in a localized version.


 - Hubert

-- 
NetBSD - Better for your uptime than Viagra