[Dbconfig-common-devel] Re: perl config script and dbconfig-common
sean finney
seanius at debian.org
Mon Aug 14 11:23:06 UTC 2006
hey matt,
On Mon, Aug 14, 2006 at 07:00:08PM +1200, Matt Brown wrote:
> If a package uses perl for it's config script and wants to use
> dbconfig-common what should it do?
whoa, i've never seen that. i'm not sure if it would work, but i'd be
interested in finding out. try invoking /bin/sh as a subshell command and
make sure that the variables are properly set therein and the arguments
to dbc_go are passed as they should be. something like
- - -
my $dbcargs = join ' ', @ARGV;
open FOO, "|/bin/sh"
print FOO "dbc_foo=bar\n";
print FOO "dbc_go $dbcargs\n";
close FOO
- - -
*ought* to work, of course with some extra error checking etc. my
concern is that debconf will freak out because the subshell doesn't have
control of the terminal, but there's only one way to find out :)
sean
ps - cc'ing this to the dbconfig list for posterity.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/dbconfig-common-devel/attachments/20060814/ddb32ec0/attachment.pgp
More information about the Dbconfig-common-devel
mailing list