Closed mightyspiky closed 2 years ago
I do not maintain the EPEL packages, but I'll try to debug the issue.
There are no problems with building the RPM from the source tarball with the default spec file.
The problem should be notified to the maintainer of the EPEL package.
$ rpmbuild -ta ./check-updates-2.0.0.tar.gz
setting SOURCE_DATE_EPOCH=1652313600
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.r94LDo
+ umask 022
+ cd /home/parallels/rpmbuild/BUILD
+ cd /home/parallels/rpmbuild/BUILD
+ rm -rf check_updates-2.0.0
+ /usr/bin/gzip -dc /home/parallels/src/check_updates/check_updates-2.0.0.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd check_updates-2.0.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.uWeUTJ
+ umask 022
+ cd /home/parallels/rpmbuild/BUILD
+ cd check_updates-2.0.0
+ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor INSTALLSCRIPT=/usr/lib64/nagios/plugins INSTALLVENDORSCRIPT=/usr/lib64/nagios/plugins
Cannot determine perl version info from check_updates
Cannot determine perl version info from check_updates.pod
Checking if your kit is complete...
Warning: the following files are missing in your kit:
check_updates.completio
Please inform the author.
Generating a Unix-style Makefile
Writing Makefile for check_updates
Writing MYMETA.yml and MYMETA.json
+ make -j2
cp check_updates.pod blib/lib/check_updates.pod
cp check_updates blib/script/check_updates
"/usr/bin/perl" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/check_updates
Manifying 1 pod document
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.F85Nji
+ umask 022
+ cd /home/parallels/rpmbuild/BUILD
+ '[' /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64 '!=' / ']'
+ rm -rf /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64
++ dirname /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64
+ mkdir -p /home/parallels/rpmbuild/BUILDROOT
+ mkdir /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64
+ cd check_updates-2.0.0
+ rm -rf /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64
+ make pure_install PERL_INSTALL_ROOT=/home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64
Manifying 1 pod document
Installing /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/perl5/vendor_perl/check_updates.pod
Installing /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/man/man1/check_updates.1
Installing /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/lib64/nagios/plugins/check_updates
+ mkdir -p /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/bash-completion/completions/
+ cp check_updates.completion /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/bash-completion/completions/check_updates
+ find /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64 -type f -name .packlist -exec rm -f '{}' ';'
+ find /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64 -type f -name '*.pod' -exec rm -f '{}' ';'
+ find /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64 -depth -type d -exec rmdir '{}' ';'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.nXgN7Q
+ umask 022
+ cd /home/parallels/rpmbuild/BUILD
+ cd check_updates-2.0.0
+ make test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00_modules.t .... ok
t/01_functions.t .. ok
t/02_yum.t ........ ok
All tests successful.
Files=3, Tests=53, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.13 cusr 0.02 csys = 0.16 CPU)
Result: PASS
+ RPM_EC=0
++ jobs -p
+ exit 0
Processing files: nagios-plugins-check-updates-2.0.0-0.el9.aarch64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.8Aunv1
+ umask 022
+ cd /home/parallels/rpmbuild/BUILD
+ cd check_updates-2.0.0
+ DOCDIR=/home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/doc/nagios-plugins-check-updates
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/doc/nagios-plugins-check-updates
+ cp -pr AUTHORS.md /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/doc/nagios-plugins-check-updates
+ cp -pr Changes /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/doc/nagios-plugins-check-updates
+ cp -pr NEWS /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/doc/nagios-plugins-check-updates
+ cp -pr README.md /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/doc/nagios-plugins-check-updates
+ cp -pr COPYING /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/doc/nagios-plugins-check-updates
+ cp -pr COPYRIGHT /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64/usr/share/doc/nagios-plugins-check-updates
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: nagios-plugins-check-updates = 2.0.0-0.el9 nagios-plugins-check-updates(aarch-64) = 2.0.0-0.el9
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /usr/bin/perl
Obsoletes: check_updates <= 100
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64
Wrote: /home/parallels/rpmbuild/SRPMS/nagios-plugins-check-updates-2.0.0-0.el9.src.rpm
Wrote: /home/parallels/rpmbuild/RPMS/aarch64/nagios-plugins-check-updates-2.0.0-0.el9.aarch64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.bWSgG5
+ umask 022
+ cd /home/parallels/rpmbuild/BUILD
+ cd check_updates-2.0.0
+ rm -rf /home/parallels/rpmbuild/BUILDROOT/nagios-plugins-check-updates-2.0.0-0.el9.aarch64
+ RPM_EC=0
++ jobs -p
+ exit 0
Ok thanks. I was trying to build the package with "perl Makefile.PL; make; make install"... With rpmbuild, it works, but under RHEL 9, I had to install perl-Monitoring-Plugin and its dependency perl-Math-Calc-Units from Fedora 34 packages since they were not available in any base repo (baseos, codereadybuilder, appstream or EPEL) of RHEL. Since RHEL 9 is based on Fedora 34, I thought it would work and it indeed did. Thanks for the help.
I had to do the same (I actually installed Monitoring::Plugin with cpanm but the result is the same).
Will the plugin be soon available in EPEL 9? I've tried to compile from sources and failed with basic problems which seem to be related to the fact that "perl-interpreter" rpm in RHEL 9 is much more slim than in RHEL 8 (contains 11 files instead of 930).