<div dir="ltr"><div>Hi there,</div><div><br></div><div><br></div><div>I am trying to recompile <a href="http://vault.centos.org/7.0.1406/os/Source/SPackages/rrdtool-1.4.8-8.el7.src.rpm">http://vault.centos.org/7.0.1406/os/Source/SPackages/rrdtool-1.4.8-8.el7.src.rpm</a> to also get the rrdtool-perl sub package for which there are no binaries provided. But when it tries to build the perl sub module it fails with:</div>
<div><br></div><div><br></div><div><div>writing /root/rpmbuild/BUILDROOT/rrdtool-1.4.8-8.el7.centos.x86_64/usr/lib64/python2.7/site-packages/py_rrdtool-0.2.2-py2.7.egg-info</div><div>make[3]: Leaving directory `/root/rpmbuild/BUILD/rrdtool-1.4.8/bindings'</div>
<div>make[2]: Leaving directory `/root/rpmbuild/BUILD/rrdtool-1.4.8/bindings'</div><div>make[1]: Leaving directory `/root/rpmbuild/BUILD/rrdtool-1.4.8/bindings'</div><div>make[1]: Entering directory `/root/rpmbuild/BUILD/rrdtool-1.4.8'</div>
<div>make[2]: Entering directory `/root/rpmbuild/BUILD/rrdtool-1.4.8'</div><div>make[2]: Nothing to be done for `install-exec-am'.</div><div>make[2]: Nothing to be done for `install-data-am'.</div><div>make[2]: Leaving directory `/root/rpmbuild/BUILD/rrdtool-1.4.8'</div>
<div>make[1]: Leaving directory `/root/rpmbuild/BUILD/rrdtool-1.4.8'</div><div>+ /usr/bin/install -D -m0755 php4/modules/rrdtool.so /root/rpmbuild/BUILDROOT/rrdtool-1.4.8-8.el7.centos.x86_64/usr/lib64/php/modules/rrdtool.so</div>
<div>+ /usr/bin/rm -rf php4/examples/.svn</div><div>+ /usr/bin/mkdir -p /root/rpmbuild/BUILDROOT/rrdtool-1.4.8-8.el7.centos.x86_64/etc/php.d</div><div>+ /usr/bin/cat</div><div>+ /usr/bin/mv /root/rpmbuild/BUILDROOT/rrdtool-1.4.8-8.el7.centos.x86_64/usr/share/perl5/vendor_perl/RRDp.pm /root/rpmbuild/BUILDROOT/rrdtool-1.4.8-8.el7.centos.x86_64/usr/lib64/perl5/vendor_perl/</div>
<div>/usr/bin/mv: cannot stat ‘/root/rpmbuild/BUILDROOT/rrdtool-1.4.8-8.el7.centos.x86_64/usr/share/perl5/vendor_perl/RRDp.pm’: No such file or directory</div><div>error: Bad exit status from /var/tmp/rpm-tmp.t4Flhd (%install)</div>
<div><br></div><div><br></div><div>RPM build errors:</div><div> Bad exit status from /var/tmp/rpm-tmp.t4Flhd (%install)</div><div>[root@larsbuild7 ~]# </div></div><div><br></div><div><br></div><div>I get the similar errors (files getting copied in the wrong directories during build time) with other perl srpms.</div>
<div><br></div><div>e.g. <a href="http://vault.centos.org/7.0.1406/os/Source/SPackages/perl-Data-Dumper-2.145-3.el7.src.rpm">http://vault.centos.org/7.0.1406/os/Source/SPackages/perl-Data-Dumper-2.145-3.el7.src.rpm</a></div>
<div><br></div><div><br></div><div>rpmbuild -ba rpm/SPECS/perl-Data-Dumper.spec </div><div>Executing(%prep): /bin/sh -e /home/lars/rpm/tmp/rpm-tmp.pLTYSe</div><div>+ umask 022</div><div>+ cd /home/lars/rpm/BUILD</div><div>
+ cd /home/lars/rpm/BUILD</div><div>+ rm -rf Data-Dumper-2.145</div><div>+ /usr/bin/gzip -dc /home/lars/rpm/SOURCES/Data-Dumper-2.145.tar.gz</div><div>+ /usr/bin/tar -xf -</div><div>+ STATUS=0</div><div>+ '[' 0 -ne 0 ']'</div>
<div>+ cd Data-Dumper-2.145</div><div>+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .</div><div>+ sed -i /MAN3PODS/d Makefile.PL</div><div>+ exit 0</div><div>Executing(%build): /bin/sh -e /home/lars/rpm/tmp/rpm-tmp.66tgMG</div><div>
+ umask 022</div><div>+ cd /home/lars/rpm/BUILD</div><div>+ cd Data-Dumper-2.145</div><div>+ perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'</div>
<div>Checking if your kit is complete...</div><div>Looks good</div><div>Writing Makefile for Data::Dumper</div><div>Writing MYMETA.yml and MYMETA.json</div><div>+ make -j12</div><div>/usr/bin/perl /usr/share/perl5/vendor_perl/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap Dumper.xs > Dumper.xsc && mv Dumper.xsc Dumper.c</div>
<div>Running Mkbootstrap for Data::Dumper ()</div><div>chmod 644 Dumper.bs</div><div>cp Dumper.bs blib/arch/auto/Data/Dumper/Dumper.bs</div><div>chmod 644 blib/arch/auto/Data/Dumper/Dumper.bs</div><div>cp Dumper.pm blib/lib/Data/Dumper.pm</div>
<div>gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"2.145\" -DXS_VERSION=\"2.145\" -fPIC "-I/usr/lib64/perl5/CORE" -DUSE_PPPORT_H Dumper.c</div>
<div>rm -f blib/arch/auto/Data/Dumper/Dumper.so</div><div>gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro Dumper.o -o blib/arch/auto/Data/Dumper/Dumper.so <span class="" style="white-space:pre"> </span>\</div>
<div> <span class="" style="white-space:pre"> </span>\</div><div> </div><div>chmod 755 blib/arch/auto/Data/Dumper/Dumper.so</div><div>Manifying blib/man3/Data::Dumper.3pm</div><div>+ exit 0</div><div>Executing(%install): /bin/sh -e /home/lars/rpm/tmp/rpm-tmp.Ltvukd</div>
<div>+ umask 022</div><div>+ cd /home/lars/rpm/BUILD</div><div>+ '[' /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64 '!=' / ']'</div><div>+ rm -rf /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64</div>
<div>++ dirname /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64</div><div>+ mkdir -p /home/lars/rpm/BUILDROOT</div><div>+ mkdir /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64</div>
<div>+ cd Data-Dumper-2.145</div><div>+ make pure_install DESTDIR=/home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64</div><div>Files found in blib/arch: installing files in blib/lib into architecture dependent library tree</div>
<div>Installing /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/home/lars/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Data/Dumper/Dumper.bs</div><div>Installing /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/home/lars/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Data/Dumper/Dumper.so</div>
<div>Installing /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/home/lars/perl5/lib/perl5/x86_64-linux-thread-multi/Data/Dumper.pm</div><div>Installing /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/home/lars/perl5/man/man3/Data::Dumper.3pm</div>
<div>+ find /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64 -type f -name .packlist -exec rm -f '{}' ';'</div><div>+ find /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64 -type f -name '*.bs' -size 0 -exec rm -f '{}' ';'</div>
<div>+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/home</div><div>+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /home/lars/rpm/BUILD/Data-Dumper-2.145</div>
<div>extracting debug info from /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/home/lars/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Data/Dumper/Dumper.so</div><div>dwz: Too few files for multifile optimization</div>
<div>/usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match.</div><div>161 blocks</div><div>+ /usr/lib/rpm/check-buildroot</div><div>+ /usr/lib/rpm/redhat/brp-compress</div><div>+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip</div>
<div>+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1</div><div>+ /usr/lib/rpm/redhat/brp-python-hardlink</div><div>+ /usr/lib/rpm/redhat/brp-java-repack-jars</div><div>Executing(%check): /bin/sh -e /home/lars/rpm/tmp/rpm-tmp.mwbkfM</div>
<div>+ umask 022</div><div>+ cd /home/lars/rpm/BUILD</div><div>+ cd Data-Dumper-2.145</div><div>+ make test</div><div>PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t</div>
<div>t/bless.t ..................... ok </div><div>t/bless_var_method.t .......... ok </div><div>t/bugs.t ...................... ok </div><div>t/deparse.t ................... ok </div><div>t/dumper.t .................... ok </div>
<div>t/dumpperl.t .................. ok </div><div>t/freezer.t ................... ok </div><div>t/freezer_useperl.t ........... ok </div><div>t/indent.t .................... ok </div><div>t/misc.t ...................... ok </div>
<div>t/names.t ..................... ok </div><div>t/overload.t .................. ok </div><div>t/pair.t ...................... ok </div><div>t/perl-74170.t ................ ok </div><div>t/purity_deepcopy_maxdepth.t .. ok </div>
<div>t/qr.t ........................ ok </div><div>t/quotekeys.t ................. ok </div><div>t/seen.t ...................... ok </div><div>t/sortkeys.t .................. ok </div><div>t/sparseseen.t ................ ok </div>
<div>t/terse.t ..................... ok </div><div>t/toaster.t ................... ok </div><div>t/values.t .................... ok </div><div>All tests successful.</div><div>Files=23, Tests=647, 1 wallclock secs ( 0.12 usr 0.02 sys + 0.76 cusr 0.08 csys = 0.98 CPU)</div>
<div>Result: PASS</div><div>+ exit 0</div><div>Processing files: perl-Data-Dumper-2.145-3.el7.centos.x86_64</div><div>error: File not found by glob: /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/usr/lib64/perl5/vendor_perl/auto/*</div>
<div>error: File not found by glob: /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/usr/lib64/perl5/vendor_perl/Data*</div><div>error: File not found by glob: /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/usr/share/man/man3/*</div>
<div>Executing(%doc): /bin/sh -e /home/lars/rpm/tmp/rpm-tmp.TkASco</div><div>+ umask 022</div><div>+ cd /home/lars/rpm/BUILD</div><div>+ cd Data-Dumper-2.145</div><div>+ DOCDIR=/home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/usr/share/doc/perl-Data-Dumper-2.145</div>
<div>+ export DOCDIR</div><div>+ /usr/bin/mkdir -p /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/usr/share/doc/perl-Data-Dumper-2.145</div><div>+ cp -pr Changes /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/usr/share/doc/perl-Data-Dumper-2.145</div>
<div>+ cp -pr Todo /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/usr/share/doc/perl-Data-Dumper-2.145</div><div>+ exit 0</div><div><br></div><div><br></div><div>RPM build errors:</div><div> File not found by glob: /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/usr/lib64/perl5/vendor_perl/auto/*</div>
<div> File not found by glob: /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/usr/lib64/perl5/vendor_perl/Data*</div><div> File not found by glob: /home/lars/rpm/BUILDROOT/perl-Data-Dumper-2.145-3.el7.centos.x86_64/usr/share/man/man3/*</div>
<div>[lars@larsbuild7 ~]$ </div><div><br></div><div><br></div><div>My root user has no .rpmmacros file at all, the lars user has a trivial one:</div><div><br></div><div><div>[lars@larsbuild7 ~]$ cat .rpmmacros </div><div>
%_topdir /home/lars/rpm</div><div>%_tmppath /home/lars/rpm/tmp</div><div>%_rpmlock_path /home/lars/rpm/locks/transaction</div><div>%_signature gpg</div><div>%define debug_package %{nil}<br></div><div>%define __os_install_post %{nil}</div>
<div>%_rpmlock_path /home/lars/.mk-externals.tmp/transaction</div><div>[lars@larsbuild7 ~]</div></div><div><br></div><div><br></div><div>I assume I have to set some rpm variables like %perlvendor%, %perlarch% or so.</div>
<div><br></div><div>Any hint?</div><div><br></div><div>Thanks a lot,</div><div><br></div><div>Lars</div><div><br></div></div>