Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-15995

rpmbuild: Illegal char '-' (0x2d) in: Version: 2.15.0-RC5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      I downloaded the tgz archive from a b2_15 patch on Gerrit and tried to build it. While running "make rpms", I hit the following error:

      tardir=lustre-2.15.0-RC5 && tar --format=posix -chf - "$tardir" | eval GZIP= gzip --best -c >lustre-2.15.0-RC5.tar.gz
      make[1]: Leaving directory '/root/b2_15'
      if test -d "lustre-2.15.0-RC5"; then find "lustre-2.15.0-RC5" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "lustre-2.15.0-RC5" || { sleep 5 && rm -rf "lustre-2.15.0-RC5"; }; else :; fi
      rpmbuilddir=`mktemp -t -d rpmbuild-lustre-$USER-XXXXXXXX`; \
      make  \
      	rpmbuilddir="$rpmbuilddir" rpm-local || exit 1; \
      cp ./rpm/* .; \
      /usr/bin/rpmbuild \
      	--define "_tmppath $rpmbuilddir/TMP" \
      	--define "_topdir $rpmbuilddir" \
      	--define "dist %{nil}" \
      	-ts lustre-2.15.0-RC5.tar.gz || exit 1; \
      cp $rpmbuilddir/SRPMS/lustre-2.15.0-RC5-*.src.rpm . || exit 1; \
      rm -rf $rpmbuilddir
      make[1]: Entering directory '/root/b2_15'
      make[1]: Leaving directory '/root/b2_15'
      error: line 176: Illegal char '-' (0x2d) in: Version: 2.15.0-RC5
      make: *** [autoMakefile:1211: srpm] Error 1
      

      According to http://ftp.rpm.org/max-rpm/s1-rpm-inside-tags.html:

      The version tag defines the version of the software being packaged. The version specified should be as close as possible to the format of the original software's version. In most cases, there should be no problem specifying the version just as the software's original developer did. However, there is a restriction. There can be no dashes in the version.

      Attachments

        Activity

          People

            yujian Jian Yu
            yujian Jian Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: