On Fri, Dec 19, 2025 at 7:11 AM G.W. Haywood <[email protected]>
wrote:

> Hi Richard,
>
> On Fri, 19 Dec 2025, Richard Shaw wrote:
>
> > I've been doing some testing for Fedora/EPEL and ran into this issue when
> > running "make test":
> > ...
> > #   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 ...
> > ...
> > (@INC entries checked:
> > /builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1
> > /usr/local/... ... /usr/share/perl5 .) at t/BackupPC_XS.t line 12.
> > ...
>
> Looks like the test setup doesn't have the right @INC directory/ies.
>
> The only thing the test does is attempt to 'use' the BackupPC::XS
> module.  Exactly two files are required for the test to be able to do
> that.  As you know, those files need to be somewhere in the list of
> directories in the Perl @INC environment variable, which is helpfully
> listed by the report.  If you haven't yet run the install step to put
> the modules somewhere in the /usr/ tree then the only place they will
> be found in your test system is under (what seems to me to be) the
> rather expansively named
>

For Fedora/EPEL all packages are built in a mock chroot under a root build
directory aptly names "buildroot" by rpmbuild and installed using the
DESTDIR argument:

+ make install
DESTDIR=/builddir/build/BUILD/BackupPC-XS-0.63rc1-build/BUILDROOT
Making install in md5
make[1]: Entering directory
'/builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1/md5'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory
'/builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1/md5'
make[1]: Entering directory
'/builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1'
make[2]: Entering directory
'/builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory
'/builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1'
make[1]: Leaving directory
'/builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w
/builddir/build/BUILD/BackupPC-XS-0.63rc1-build/BUILDROOT


I have verified that 0.62 still tests fine:

"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- XS.bs
blib/arch/auto/BackupPC/XS/XS.bs 644
make[1]: Entering directory
'/builddir/build/BUILD/BackupPC-XS-0.62-build/BackupPC-XS-0.62/md5'
No tests defined for BackupPC::XS::md5 extension.
make[1]: Leaving directory
'/builddir/build/BUILD/BackupPC-XS-0.62-build/BackupPC-XS-0.62/md5'
make[1]: Entering directory
'/builddir/build/BUILD/BackupPC-XS-0.62-build/BackupPC-XS-0.62/zlib'
No tests defined for BackupPC::XS::zlib extension.
make[1]: Leaving directory
'/builddir/build/BUILD/BackupPC-XS-0.62-build/BackupPC-XS-0.62/zlib'
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM"
"-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/BackupPC_XS.t .. ok
All tests successful.
Files=1, Tests=1,  0 wallclock secs ( 0.01 usr  0.00 sys +  0.02 cusr  0.01
csys =  0.04 CPU)
Result: PASS
+ RPM_EC=0
++ jobs -p
+ exit 0

So I wonder what changed between the two versions?


Assuming that you have the two files, to test the test you could put
> them temporarily in appropriate places in your system directories so
> that Perl will be able to find and load them.  Then you'll know if the
> problem is just finding the modules in @INC, or something more curious.
>

You can see the spec file for building here (note I haven't committed 0.63):
https://src.fedoraproject.org/rpms/BackupPC-XS/blob/rawhide/f/BackupPC-XS.spec

And the full build log with the failure here:
https://hobbes1069.fedorapeople.org/build.log

You can navigate to the various parts by searching for things like %build,
%install, %check.
_______________________________________________
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/

Reply via email to