#33 make fails w/ perl 5.8.2

open
nobody
None
8
2003-11-19
2003-11-19
No

while trying to build from cvs, i hit a build error
w/ SC.

i could reproduce with the 2.0.8 SC release in debian,
so the change
that broke things was likely caused by a Debian perl
upgrade, because
it obviously built before.

It appears that the newer perl is adding a --section=1
to the end of the
POD2MAN variable, while the old one doesn't. The way
SC defines POD2MAN,
any appending arguments will be passed to the perl
binary instead of the
pod2man binary, causing perl to error out.

what is the extra code doing, and can it be done a
different way?

here's the details:
dannf@jale:/tmp/systemconfigurator-2.0.8$ make
manifypods NOECHO=
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/usr/bin/perl -we '%m=@ARGV;for (keys %m){' -e 'next if
-e $m{$_} && -M $m{$_} < -M $_ && -M $m{$_} < -M
"Makefile";' -e 'print "Manifying $m{$_}\n";' -e
'system(qq[$^X ].q["-I/usr/lib/perl/5.8.2"
"-I/usr/share/perl/5.8.2" /usr/bin/pod2man
"--center=System Configurator" "--release=System
Configurator v2.0.8" ].qq[$_>$m{$_}])==0 or warn
"Couldn\047t install $m{$_}\n";' -e 'chmod(oct(644)),
$m{$_} or warn "chmod 644 $m{$_}: $!\n";}' --section=1
--perm_rw=644\ bin/systemconfigurator blib/man1/systemconfigurator.1
Unrecognized switch: --section=1 (-h will show valid
options).
make: *** [manifypods] Error 29

-----

if i go back to a woody system, it works fine.
/usr/bin/perl -I/usr/lib/perl/5.6.1
-I/usr/share/perl/5.6.1 -MExtUtils::MakeMaker -e
"MY->fixin(shift)" blib/script/systemconfigurator
/usr/bin/perl -we '%m=@ARGV;for (keys %m){' -e 'next if
-e $m{$_} && -M $m{$_} < -M $_ && -M $m{$_} < -M
"Makefile";' -e 'print "Manifying $m{$_}\n";' -e
'system(qq[$^X ].q["-I/usr/lib/perl/5.6.1"
"-I/usr/share/perl/5.6.1" /usr/bin/pod2man
"--center=System Configurator" "--release=System
Configurator v2.0.8" ].qq[$_>$m{$_}])==0 or warn
"Couldn\047t install $m{$_}\n";' -e 'chmod(oct(644)),
$m{$_} or warn "chmod 644 $m{$_}: $!\n";}' \ bin/systemconfigurator \ blib/man1/systemconfigurator.1

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks