Re: BackupPC-XS 0.63 RC1 test failure
"G.W. Haywood" <[email protected]> Fri, 19 Dec 2025 13:08:30 +0000 (GMT)
| Newsgroups | gmane.comp.sysutils.backup.backuppc.general |
|---|---|
| Message-ID | <[email protected]> |
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 /builddir/build/BUILD/BackupPC-XS-0.63rc1-build/backuppc-xs-0.63rc1/ What's beneath that directory? The canonical build creates a directory called '.../blib/' in the top-level directory of the source tree, and for tests puts the files beneath that directory. Sorry, I've no idea what a version modified by Red Hat will do. :/ An example from one of the systems here on which I've built 0.63rc1 using the source which is at present on Github: $ ls -l backuppc-xs/blib/lib/BackupPC/XS.pm -r--r--r-- 1 ged ged 7689 Nov 8 16:01 XS.pm $ ls -l backuppc-xs/blib/arch/auto/BackupPC/XS/XS.so -rwxr-xr-x 1 ged ged 548768 Nov 29 18:25 arch/auto/BackupPC/XS/XS.so $ 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. -- 73, Ged. _______________________________________________ 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/