Re: BackupPC-XS 0.63 RC1 test failure

jbk <[email protected]> Fri, 19 Dec 2025 17:33:20 -0500
Newsgroups gmane.comp.sysutils.backup.backuppc.general
Message-ID <[email protected]>
On 12/18/25 9:36 PM, Richard Shaw wrote:
> I've been doing some testing for Fedora/EPEL and ran into 
> this issue when running "make test":
>
> + make test
> cd md5 && make test_dynamic
> make[1]: Entering directory 
> '/builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1/md5'
> No tests defined for BackupPC::XS::md5 extension.
> make[1]: Leaving directory 
> '/builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1/md5'
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" 
> "-MTest::Harness" "-e" "undef *Test::Harness::Switches; 
> test_harness(0, '', '')" t/*.t
>
> #   Failed test 'use BackupPC::XS;'
> #   at t/BackupPC_XS.t line 12.
> #     Tried to use 'BackupPC::XS'.
> #     Error:  Can't locate BackupPC/XS.pm in @INC (you may 
> need to install the BackupPC::XS module) (@INC entries 
> checked: 
> /builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1 
> /usr/local/lib64/perl5/5.42 /usr/local/share/perl5/5.42 
> /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl 
> /usr/lib64/perl5 /usr/share/perl5 .) at t/BackupPC_XS.t 
> line 12.
> # BEGIN failed--compilation aborted at t/BackupPC_XS.t 
> line 12.
> # Looks like you failed 1 test of 1.
> t/BackupPC_XS.t ..
> Dubious, test returned 1 (wstat 256, 0x100)
> Failed 1/1 subtests
>
> Test Summary Report
> -------------------
> t/BackupPC_XS.t (Wstat: 256 (exited 1) Tests: 1 Failed: 1)
>   Failed test:  1
>   Non-zero exit status: 1
> Files=1, Tests=1,  0 wallclock secs ( 0.01 usr  0.00 sys + 
>  0.02 cusr  0.00 csys =  0.03 CPU)
> Result: FAIL
> Failed 1/1 test programs. 1/1 subtests failed.
> make: *** [Makefile:845: test_dynamic] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.kGL3QM (%check)
>
> Thanks,
> Richard

OK I got it to build. I had to pass --nocheck to mock and I 
had to modify the spec file as highlighted below:
 >.................................................................................

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
*cp Makefile Makefile.real*
make


%install
make *-f Makefile.real* pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}
 >...................................................................................

Now to install this and see if I can build the other half.


-- 
Jim KR

_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/