[lustre-discuss] problem building 2.8.0 rpm

Riccardo Veraldi Riccardo.Veraldi at cnaf.infn.it
Mon Apr 25 19:19:52 PDT 2016


Hello,
I am building lustre 2.8.0 rpm on RHEL7.

rpmbuild --without ldiskfs --without ldiskfsprogs --without lustre_tests 
--without lustre_modules --with zfs -ba lustre.spec

But there are quite a few problems in the %install section of the SPEC 
file I think.
some files are missing.

First I get a complain about

make[3]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre'
make[2]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre'
make[1]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0/lustre'
+ :
+ ln -s Lustre.ha_v2 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/ha.d/resource.d/Lustre
ln: failed to create symbolic link 
'/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/ha.d/resource.d/Lustre': 
No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.M7PLHi (%install)



so inside lustre.spec I comment out

# legacy syntax. Install a compatibility symlink to avoid conflicts when
# newer-style agents are added.
#ln -s Lustre.ha_v2 $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d/Lustre

then I rebuild again and this time:


make[2]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0'
make[1]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.8.0'
test -n "" \
|| find "lustre-source/lustre-2.8.0" -type d ! -perm -755 \
     -exec chmod u+rwx,go+rx {} \; -o \
   ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
   ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
   ! -type d ! -perm -444 -exec /bin/sh 
/root/rpmbuild/BUILD/lustre-2.8.0/config/install-sh -c -m a+r {} {} \; \
|| chmod -R a+r "lustre-source/lustre-2.8.0"
+ chmod -R go-w lustre-source/lustre-2.8.0
+ find 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64 
-name '*.so' -type f -exec chmod +x '{}' ';'
+ '[' -d 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/lib64/lustre/snmp 
']'
+ find 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/lib64/lustre 
-name '*.la' -type f -exec rm -f '{}' ';'
find: 
'/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/lib64/lustre': 
No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.VybtEe (%install)



so I again comment out in lustre.spec


# fc18 needs 'x' permission for library files
#find $RPM_BUILD_ROOT -name \*.so -type f -exec chmod +x {} \;

and also

# find $RPM_BUILD_ROOT%{_libdir}/lustre \
#    -name \*.la -type f -exec rm -f {} \;

and again I run


rpmbuild --without ldiskfs --without ldiskfsprogs --without lustre_tests 
--without lustre_modules --with zfs -ba lustre.spec


and finally I got this error.
Looks like the following files are not being put into $RPM_BUILD_ROOT.
Any hints ?
I am am rebuilding from
lustre-2.8.0-3.10.0_327.3.1.el7_lustre.x86_64.src.rpm

but I have the same error if I use lustre-2.5.3-1zfs.src.rpm on RHEL7 
usign lustre 2.8.0 sources


warning: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/sbin/wirecheck
warning: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/sbin/wiretest
warning: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/sbin/zfsobj2fid
error: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/libexec/lustre/lc_common
error: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/libexec/lustre/haconfig
error: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/bin/lustre_req_history
error: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/ha.d/resource.d/Lustre.ha_v2
error: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/ha.d/resource.d/Lustre
error: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/sysconfig/lustre
error: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/init.d/lustre
error: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/init.d/lnet
error: File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/init.d/lsvcgss


RPM build errors:
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/sbin/wirecheck
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/sbin/wiretest
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/sbin/zfsobj2fid
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/libexec/lustre/lc_common
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/libexec/lustre/haconfig
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/usr/bin/lustre_req_history
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/ha.d/resource.d/Lustre.ha_v2
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/ha.d/resource.d/Lustre
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/sysconfig/lustre
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/init.d/lustre
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/init.d/lnet
     File not found: 
/root/rpmbuild/BUILDROOT/lustre-2.8.0-3.10.0_327.13.1.el7.x86_64.x86_64/etc/init.d/lsvcgss


More information about the lustre-discuss mailing list