Subject: | bug: --skiptest not honoured |
Date: | Thu, 19 Mar 2009 16:11:11 +0100 |
To: | bug-CPANPLUS-Dist-RPM [...] rt.cpan.org |
From: | Sven Hergenhahn <hergenhahn [...] denic.de> |
Hi,
thanks for providing this module.
I have however seen a few things that make cpan2dist not work for me under
certain conditions:
1) a bug
345c345
< . $self->specpath,
---
Show quoted text
> . $self->status->specpath,
2) My main problem: the --skiptest from cpan2dist seems to be
ignored by your module. Apart from that, a failed build then spits out the
following errors:
[...]
+ cd /usr/src/redhat
+ cd Net-Ping-2.35
+ make test
[...]
Result: FAIL
Failed 3/15 test programs. 19/106 subtests failed.
make: *** [test_dynamic] Error 255
error: Bad exit status from /var/tmp/rpm-tmp.45443 (%check)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.45443 (%check)
[MSG] extra files installed, fixing spec file
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.8.8/CPANPLUS/Dist/RPM.pm line 364.
Use of uninitialized value in split at /usr/lib/perl5/site_perl/5.8.8/CPANPLUS/Dist/RPM.pm line 365.
I'm behind a firewall and some net-test will always fail. Therefore I need the
--skiptest. The two warnings seem to come from $1 not being set beforehand.
3) a minor nuisance: why do you not use the "standard" directories SPECS, SRPMS
and RPMS/*?
321c321
< $status->specpath($status->rpmdir . '/' . $status->rpmname . '.spec');
---
Show quoted text> $status->specpath($status->rpmdir . '/SPECS/' . $status->rpmname .
> '.spec');
some other lines need fixing there as well...
4) eyecandy:
140c140
< msg( "writing specfile for '$self->distname'..." );
---
Show quoted text> msg( "writing specfile for '" . $status->distname . "'");
otherwise it will not correctly display the module name.
Again - thanks for this and if I can be of any help here, I'm glad to do it,
but you are probably much deeper in your own code here...
Cheers,
Sven
--
Sven Hergenhahn
IT-Services
DENIC eG
GERMANY
Message body not shown because it is not plain text.