Re: [Pkgutil-users] bldcat and CSW prefix
Status: Beta
Brought to you by:
bonivart
|
From: Peter B. <bon...@op...> - 2009-10-06 12:07:52
|
On Tue, Oct 6, 2009 at 1:40 PM, robert <rob...@gm...> wrote:
> Hey there,
>
> I'm currently revamping our Solaris 10 package build & deployment
> infrastructure.
>
> I'd like to use bldcat to build the catalog for our inhouse repository
> of packages and later install them with pkgutil.
>
> While pkgutil can be configured to work with non CSW prefixed packages,
> bldcat needs changes in the perl code to get the dependencies on
> packages with another prefix than CSW right:
>
> --- CSWpkgutil/root/opt/csw/bin/bldcat 2009-06-15 15:49:42.000000000 +0200
> +++ /opt/csw/bin/bldcat 2009-10-05 17:36:28.378334996 +0200
> @@ -137,12 +137,12 @@
> open (FILE,"<$tmpdir/$pkgname/install/depend");
> while (<FILE>) {
> chomp;
> - if (/^P\s+CSW/) {
> +# if (/^P\s+CSW/) {
> ($deptmp) = (/P\s+(\S+)/);
> if ($deptmp ne $pkgname) { # skip if circular
> $deps = ($deps) ? "$deps|$deptmp" : $deptmp;
> }
> - }
> +# }
> }
> close FILE;
> }
>
> Is this limitation on purpose or something which might get implemented
> some day?
>
> Maybe it would make sense to consult the pkgutil config file and check
> the noncsw=(true|false) parameter.
>
> Thanks for your Feedback. Cheers
>
> Robert
Hi Robert,
pkgutil was never meant to be used for anything else than CSW packages
and depending on how other packages are named and versioned it may
behave in unexpected ways. I got some requests to enable non-CSW
packages in pkgutil and it was implemented some time ago but I never
did it for bldcat.
However, I recently had another request like yours so I have just
changed it in SVN and it will be in the next release of pkgutil but
you can get it already here:
http://pkgutil.svn.sourceforge.net/viewvc/pkgutil/trunk/bldcat?revision=117
The fix is similar to yours above, it takes all packages except SUNW.
By the way, please take a look here,
http://www.opencsw.org/standards/build#versioning, if you name/version
your packages according to that standard it should be OK.
Tell me if there's something else you need from pkgutil.
--
/peter
|