This package FTBFS when debhelper is changed to not export
PERL_USE_UNSAFE_INC to the build environment. This export was added in
2016 at the same time that '.' was removed from INC by default, to
avoid breakage, but was a temporary change.
As well as allowing us to (eventually) remove this export from debhelper,
fixing this bug in your package will also help upstream, since this
change has been made in perl 5.26 upstream.
Additionally, it's possible that the problem may also exist at runtime
for your package (though from experience this is less likely).
Note that the rebuild testing was against a locally-modified version
of debhelper, but you can get the same effect by setting debhelper
compat level 11 in your package, which also removes the same
For information about how to fix this class of issues, please refer
to the upstream release notes (in particular, 'Script authors' and
The relevant build failure logs are below:
"/usr/bin/perl" "-Iinc" -M_GenerateMyXS -E '_GenerateMyXS::generate()'
Can't locate _GenerateMyXS.pm in @INC (you may need to install the
_GenerateMyXS module) (@INC contains: inc /etc/perl
BEGIN failed--compilation aborted.
Makefile:1063: recipe for target 'XCB_xs.inc' failed
make: *** [XCB_xs.inc] Error 2
make: Leaving directory '/<<PKGBUILDDIR>>'
Please feel feel free to get in touch with the Debian Perl team at
debian-p...@lists.debian.org if you need any more information or
assistance to fix this issue.