[csw-maintainers] [csw-devel] SF.net SVN: gar:[8215] csw/mgar/gar/v2

Roger Håkansson hson at opencsw.org
Fri Jan 29 17:21:01 CET 2010


wahwah at users.sourceforge.net wrote:
> Revision: 8215
>           http://gar.svn.sourceforge.net/gar/?rev=8215&view=rev
> Author:   wahwah
...
> +readonly NAME_MAX_LENGTH=${NAME_MAX_LENGTH:-20}
...
> -if [[ ${#software} -gt 20 ]] ; then errmsg $f: software name greater than 20 chars ; fi
> -if [[ ${#pkgname} -gt 20 ]] ; then errmsg $f: pkg name greater than 20 chars; fi
> +if [[ ${#software} -gt ${NAME_MAX_LENGTH} ]] ; then errmsg $f: software name greater than 20 chars ; fi
> +if [[ ${#pkgname} -gt ${NAME_MAX_LENGTH} ]] ; then errmsg $f: pkg name greater than 20 chars; fi


First, ${NAME_MAX_LENGTH} should probably be in the output as well...

When I noticed this I started wondering about the length of the package 
name.
pkginfo(4) on Solaris 8 states that the maxlength is 9 chars and on 
Solaris 9 it is 32.
Since we have packages with longer names than 9 chars and they install 
just fine on Solaris 8 I suspect that Sun raised the limit in some patch 
but never fixed the man page.
But the question is have they raised it to 32 or something else. Does 
anyone know?


More information about the maintainers mailing list