On Monday 11 March 2019 14:28:38 Pete Biggs wrote:> > However, as I went for bigger modules, anything that had dependences
> > were then failing as the dependencie were installed OK but then did
not
> > appear to be available.
> A number of things you can do. The sort of recommended way is to
> package the perl modules into an RPM and install them that way (so that
> the package managers know about them and can resolve conflicts). There
> are progs to do it for - look for cpanspec.
I have found the following page to install using cpanspec, and all went well
until I actually want to build the RPM's. Doesn't matter what I try to
build
I get the same problems with the man pages being missing, and nothing gets
built.
[root at lou cpanspec]# rpmbuild -ba perl-strictures.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.H8RqZz
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf strictures-2.000006
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/strictures-2.000006.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd strictures-2.000006
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.WPzjcW
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd strictures-2.000006
+ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Warning: prerequisite bareword::filehandles 0 not found.
Warning: prerequisite indirect 0 not found.
Warning: prerequisite multidimensional 0 not found.
Writing Makefile for strictures
Writing MYMETA.yml and MYMETA.json
+ make -j2
cp lib/strictures/extra.pm blib/lib/strictures/extra.pm
cp lib/strictures.pm blib/lib/strictures.pm
Manifying blib/man3/strictures::extra.3pm
Manifying blib/man3/strictures.3pm
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.pxcIGj
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64
'!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64
++ dirname /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64
+ mkdir -p /root/rpmbuild/BUILDROOT
+ mkdir /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64
+ cd strictures-2.000006
+ rm -rf /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64
+ make pure_install
PERL_INSTALL_ROOT=/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64
Manifying blib/man3/strictures::extra.3pm
Manifying blib/man3/strictures.3pm
Installing
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/root/perl5/lib/perl5/strictures.pm
Installing
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/root/perl5/lib/perl5/strictures/extra.pm
Installing
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/root/perl5/man/man3/strictures::extra.3pm
Installing
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/root/perl5/man/man3/strictures.3pm
+ find /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64 -type
f -name .packlist -exec rm -f '{}' ';'
+
find /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64 -depth -type
d -exec rmdir '{}' ';'
+ /usr/bin/chmod -Rf
a+rX,u+w,g-w,o-w
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/root
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz
--dwz-low-mem-die-limit
10000000 --dwz-max-die-limit
110000000 /root/rpmbuild/BUILD/strictures-2.000006
/usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match.
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.RIav4H
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd strictures-2.000006
+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM"
"-e" "test_harness(0, 'blib/lib',
'blib/arch')"
t/*.t
t/crash.t ....... ok
t/extras.t ...... ok
t/strictures.t .. ok
All tests successful.
Files=3, Tests=42, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.06 cusr 0.01
csys = 0.10 CPU)
Result: PASS
+ exit 0
Processing files: perl-strictures-2.000006-1.el7.noarch
error: File not found by
glob:
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/perl5/vendor_perl/*
error: File not found by
glob:
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/man/man3/*
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.QDACU6
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd strictures-2.000006
+
DOCDIR=/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/doc/perl-strictures-2.000006
+ export DOCDIR
+ /usr/bin/mkdir -p
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/doc/perl-strictures-2.000006
+ cp -pr
Changes
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/doc/perl-strictures-2.000006
+ cp -pr
LICENSE
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/doc/perl-strictures-2.000006
+ cp -pr
META.json
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/doc/perl-strictures-2.000006
+ cp -pr
README
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/doc/perl-strictures-2.000006
+ exit 0
RPM build errors:
File not found by
glob:
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/perl5/vendor_perl/*
File not found by
glob:
/root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/man/man3/*
[root at lou cpanspec]#