[ClusterLabs] Unable to build rpm using make rpm command for pacemaker-2.1.4.

S Sathish S s.s.sathish at ericsson.com
Mon Nov 21 08:04:30 EST 2022


Hi Team,

I am getting the below error when executing make rpm command to build pacemaker-2.1.4 package on linux 8 server.

[root at node1 pacemaker-Pacemaker-2.1.4]# make rpm
make  -C rpm  "rpm"
make[1]: Entering directory '/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm'
cd /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/..;                                                   \
if [ -n "" ]; then                                              \
    git commit -m "DO-NOT-PUSH" -a;                                     \
    git archive --prefix=pacemaker-DIST/ -o "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/../pacemaker-DIST.tar.gz" HEAD^{tree};      \
    git reset --mixed HEAD^;                                            \
    echo "`date`: Rebuilt /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/../pacemaker-DIST.tar.gz";                                     \
elif [ -f "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/../pacemaker-DIST.tar.gz" ]; then                                             \
    echo "`date`: Using existing tarball: /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/../pacemaker-DIST.tar.gz";                     \
else                                                                    \
    git archive --prefix=pacemaker-DIST/ -o "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/../pacemaker-DIST.tar.gz" DIST^{tree};      \
    echo "`date`: Rebuilt /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/../pacemaker-DIST.tar.gz";                                     \
fi
fatal: not a git repository (or any of the parent directories): .git
Mon Nov 21 07:42:25 EST 2022: Rebuilt /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/../pacemaker-DIST.tar.gz
rm -f "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/SRPMS"/*.src.rpm
rm -f "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/SPECS/pacemaker.spec"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
/usr/bin/mkdir -p "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/SPECS"
if [ x"`git ls-files -m pacemaker.spec.in 2>/dev/null`" != x ]; then    \
    cat "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/pacemaker.spec.in";                                     \
elif git cat-file -e DIST:rpm/pacemaker.spec.in 2>/dev/null; then               \
    git show DIST:rpm/pacemaker.spec.in;                                        \
elif git cat-file -e DIST:pacemaker.spec.in 2>/dev/null; then                   \
    git show DIST:pacemaker.spec.in;                                            \
else                                                                            \
    cat "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/pacemaker.spec.in";                                     \
fi | sed                                                                        \
    -e 's/^\(%global pcmkversion \).*/\12.1.4/'                 \
    -e 's/^\(%global specversion \).*/\11/'                     \
    -e 's/^\(%global commit \).*/\1DIST/'                               \
    -e 's/^\(%global commit_abbrev \).*/\14/'                   \
    -e "s/PACKAGE_DATE/$(date +'%a %b %d %Y')/"                         \
    -e 's/PACKAGE_VERSION/2.1.4-1/'                     \
    > "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/SPECS/pacemaker.spec"
if [ -e "../build.counter" ]; then              \
       echo 1 > "../build.counter";    \
fi
rpmbuild -bs --define "_sourcedir /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/.." --define "_topdir /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm" --without doc "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/SPECS/pacemaker.spec"
error: File /root/smf_source/pacemaker-Pacemaker-2.1.4/pacemaker-DIST.tar.gz is smaller than 13 bytes
Wrote: /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/SRPMS/pacemaker-2.1.4-1.DIST.git.el8.src.rpm
To create custom builds, edit the flags and options in pacemaker.spec first
rpmbuild --define "_sourcedir /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/.." --define "_topdir /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm" --without doc --rebuild "/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/SRPMS"/*.src.rpm
Installing /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/SRPMS/pacemaker-2.1.4-1.DIST.git.el8.src.rpm
error: File /root/smf_source/pacemaker-Pacemaker-2.1.4/pacemaker-DIST.tar.gz is smaller than 13 bytes
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fb1j8n
+ umask 022
+ cd /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/BUILD
+ cd /root/smf_source/pacemaker-Pacemaker-2.1.4/rpm/BUILD
+ rm -rf pacemaker-DIST
+ /usr/bin/tar -xof /root/smf_source/pacemaker-Pacemaker-2.1.4/pacemaker-DIST.tar.gz
/usr/bin/tar: This does not look like a tar archive

gzip: stdin: unexpected end of file
/usr/bin/tar: Child returned status 1
/usr/bin/tar: Error is not recoverable: exiting now
error: Bad exit status from /var/tmp/rpm-tmp.fb1j8n (%prep)


RPM build errors:
    File /root/smf_source/pacemaker-Pacemaker-2.1.4/pacemaker-DIST.tar.gz is smaller than 13 bytes
    Bad exit status from /var/tmp/rpm-tmp.fb1j8n (%prep)
make[1]: *** [Makefile:869: rpm] Error 1
make[1]: Leaving directory '/root/smf_source/pacemaker-Pacemaker-2.1.4/rpm'
make: *** [GNUmakefile:54: rpm] Error 2

Below steps followed after downloading pacemaker-2.1.4 package from Clusterlab and install required dependencies as per documentation.

#./autogen.sh
#./configure
#make
#make rpm

Please help solve the issue.

Thanks and Regards,
S Sathish S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20221121/b381dfb2/attachment-0001.htm>


More information about the Users mailing list