oetiker / znapzend

zfs backup with remote capabilities and mbuffer integration.
www.znapzend.org
GNU General Public License v3.0
608 stars 138 forks source link

Perl 5.28 build fails on Debian Buster #428

Closed morph027 closed 3 years ago

morph027 commented 5 years ago

Not sure if this is related to Perl 5.28 (which comes with buster):

** CONFIGURE DONE **********************************************

Settings:

  PERL5LIB = not set
  PERL = /usr/bin/perl
  SVCINSTALLDIR = no

The Makefiles use GNU make functionality.
Continue installation with

  /usr/bin/make install

   debian/rules override_dh_auto_build
make[1]: Entering directory '/root/znapzend-debian/znapzend'
/usr/bin/make
make[2]: Entering directory '/root/znapzend-debian/znapzend'
Making all in thirdparty
make[3]: Entering directory '/root/znapzend-debian/znapzend/thirdparty'
echo "POPULATING OUR LOCAL micro CPAN"
POPULATING OUR LOCAL micro CPAN
/usr/bin/wget -O - https://cpanmin.us | PERL_CPANM_HOME=/root/znapzend-debian/znapzend/thirdparty /usr/bin/perl - -q --notest --local-lib /root/znapzend-debian/znapzend/thirdparty --save-dists /root/znapzend-debian/znapzend/thirdparty/CPAN --force App::cpanminus
--2019-07-10 19:52:11--  https://cpanmin.us/
Resolving cpanmin.us (cpanmin.us)... 151.101.66.217, 151.101.130.217, 151.101.194.217, ...
Connecting to cpanmin.us (cpanmin.us)|151.101.66.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 302780 (296K) [text/plain]
Saving to: ‘STDOUT’

     0K .......... .......... .......... .......... .......... 16% 1.16M 0s
    50K .......... .......... .......... .......... .......... 33% 2.49M 0s
   100K .......... .......... .......... .......... .......... 50% 9.26M 0s
   150K .......... .......... .......... .......... .......... 67% 9.16M 0s
   200K .......... .......... .......... .......... .......... 84% 3.81M 0s
   250K .......... .......... .......... .......... .....     100% 10.1M=0.09s

2019-07-10 19:52:11 (3.23 MB/s) - written to stdout [302780/302780]

Successfully installed App-cpanminus-1.7044
1 distribution installed
PERL5LIB=/root/znapzend-debian/znapzend/thirdparty/Ore/lib/perl5 PERL_CPANM_HOME=/root/znapzend-debian/znapzend/thirdparty/Ore /root/znapzend-debian/znapzend/thirdparty/bin/cpanm -q --notest  --local-lib /root/znapzend-debian/znapzend/thirdparty/Ore File::Which OrePAN
File::Which is up to date. (1.23)
Successfully installed CPAN-DistnameInfo-0.12
Successfully installed YAML-Tiny-1.73
Successfully installed Module-Build-0.4229
Successfully installed ExtUtils-Config-0.008
Successfully installed ExtUtils-InstallPaths-0.012
Successfully installed ExtUtils-Helpers-0.026
Successfully installed Module-Build-Tiny-0.039
Successfully installed Devel-CheckCompiler-0.07
Successfully installed Module-Build-XSUtil-0.19
Successfully installed Devel-PPPort-3.52 (upgraded from 3.40)
Successfully installed Mouse-v2.5.6
Successfully installed Log-Minimal-0.19
Successfully installed Path-Class-0.37
Successfully installed OrePAN-0.08
14 distributions installed
cat ../PERL_MODULES | PERL_CPANM_HOME=/root/znapzend-debian/znapzend/thirdparty xargs /usr/bin/perl /root/znapzend-debian/znapzend/thirdparty/bin/cpanm -q --self-contained --notest --local-lib-contained /root/znapzend-debian/znapzend/thirdparty --save-dists /root/znapzend-debian/znapzend/thirdparty/CPAN
Successfully installed Mojolicious-6.46
Successfully installed Module-Build-0.4229
Successfully installed IO-Pipely-0.005
Successfully installed Mojo-IOLoop-ForkCall-0.17
Successfully installed Scalar-List-Utils-1.45 (downgraded from 1.50)
Test::Harness is up to date. (3.42)
5 distributions installed

---
<snip>
---

cat ../PERL_MODULES  | PERL_CPANM_HOME=/root/znapzend-debian/znapzend/thirdparty xargs /usr/bin/perl /root/znapzend-debian/znapzend/thirdparty/bin/cpanm -q --notest --local-lib-contained /root/znapzend-debian/znapzend/thirdparty  --mirror file:///root/znapzend-debian/znapzend/thirdparty/CPAN --mirror-only
! Couldn't find module or a distribution Test::Harness
! Couldn't find module or a distribution TAP::Parser
Mojolicious is up to date. (6.46)
Mojo::IOLoop::ForkCall is up to date. (0.17)
Scalar::Util is up to date. (1.45)
make[3]: *** [Makefile:408: touch] Error 123
make[3]: Leaving directory '/root/znapzend-debian/znapzend/thirdparty'
make[2]: *** [Makefile:495: all-recursive] Error 1
make[2]: Leaving directory '/root/znapzend-debian/znapzend'
make[1]: *** [debian/rules:6: override_dh_auto_build] Error 2
make[1]: Leaving directory '/root/znapzend-debian/znapzend'
make: *** [debian/rules:3: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui failed
flixman commented 5 years ago

I have just found the same issue. Seems znapzend was relying on some perl modules that were not part of the distribution before perl 5.28 (so they were added as thirdparty), and now they seem to conflict :-/

morph027 commented 5 years ago

Hm, okay. Removed the lines from PERL_MODULES and installed packages libtest-harness-perl libtap-harness-archive-perl. Compiles and starts again. Will try to debug some more.

morph027 commented 5 years ago

Even worked without the packages installed...

Phlogi commented 5 years ago

Correct, so the fix for buster seems to just remove those two Perl packages, see https://github.com/oetiker/znapzend/pull/429

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.