[Pkgutil-users] Tiny tweak for bldcat
Status: Beta
Brought to you by:
bonivart
|
From: Dagobert M. <da...@op...> - 2010-10-11 08:35:58
|
Hi Peter,
I just noticed these lines in bldcat:
> eval { require Digest::MD5; };
> die "\nDigest::MD5 not available! Install CSWperl and use that\nfor
> bldcat. Do that by having /opt/csw/bin before\n/usr/bin in your path.
> \n" if ($@);
>
> eval { require File::Temp; };
> die "\nFile::Temp not available! Install CSWperl and use that\nfor
> bldcat. Do that by having /opt/csw/bin before\n/usr/bin in your path.
> \n" if ($@);
The PATH-thing can actually be automated by always preferring /opt/csw/
bin:
> --- bldcat.orig 2010-10-02 18:45:36.304272754 +0200
> +++ bldcat 2010-10-11 00:52:49.509740511 +0200
> @@ -1,4 +1,7 @@
> -#!/usr/bin/env perl -w
> +#!/bin/sh
> +#! -*- perl -*-
> +eval 'PATH=/opt/csw/bin:$PATH exec perl -x -w $0 ${1+"$@"}'
> + if 0;
>
> # bldcat - build a CSW catalog from packages in a directory
> # Copyright (C) 2008-2010 Peter Bonivart
Most of the snippet is from perlrun(1) where the details
are explained with the exception of the PATH extension.
I use this also to patch PCA to prefer OpenCSW Perl.
Best regards
-- Dago
|