Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1568

rpm builder does not handle snapshot versions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.14.0
    • Packaging
    • None

    Description

      Failure looks like so:

      From aurora:

      git archive --prefix=apache-aurora-$(cat .auroraversion)/ -o snapshot.tar.gz HEAD
      tar -tzf snapshot.tar.gz | head -3
      apache-aurora-0.12.0-SNAPSHOT/
      apache-aurora-0.12.0-SNAPSHOT/.auroraversion
      apache-aurora-0.12.0-SNAPSHOT/.bowerrc
      

      From aurora-packaging in sibling dir:

      ./build-artifact.sh builder/rpm/centos-7 ../aurora/snapshot.tar.gz 0.12.0-SNAPSHOT
      ...
      Successfully built 99bf8605d349
      + mkdir -p /scratch/src
      + cd /scratch
      + tar --strip-components 1 -C src -xf /src.tar.gz
      + cp -R /specs/rpm .
      + cd rpm
      ++ echo 0.12.0-SNAPSHOT
      ++ tr - _
      + export AURORA_VERSION=0.12.0_SNAPSHOT
      + AURORA_VERSION=0.12.0_SNAPSHOT
      + make srpm
      ...
      Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.C6rU5N
      + umask 022
      + cd /dist/rpmbuild/BUILD
      + cd /dist/rpmbuild/BUILD
      + rm -rf apache-aurora-0.12.0_SNAPSHOT
      + /usr/bin/gzip -dc /dist/rpmbuild/SOURCES/aurora.tar.gz
      + /usr/bin/tar -xvvf -
      drwxrwxr-x root/root         0 2015-12-28 22:51 apache-aurora-0.12.0-SNAPSHOT/
      -rw-rw-r-- root/root        16 2015-12-28 22:51 apache-aurora-0.12.0-SNAPSHOT/.auroraversion
      -rw-rw-r-- root/root        35 2015-12-28 22:51 apache-aurora-0.12.0-SNAPSHOT/.bowerrc
      ...
      -rwxrwxr-x root/root      5275 2015-12-28 22:51 apache-aurora-0.12.0-SNAPSHOT/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh
      -rw-rw-r-- root/root      1483 2015-12-28 22:51 apache-aurora-0.12.0-SNAPSHOT/src/test/sh/org/apache/aurora/e2e/validate_serverset.py
      + STATUS=0
      + '[' 0 -ne 0 ']'
      + cd apache-aurora-0.12.0_SNAPSHOT
      /var/tmp/rpm-tmp.C6rU5N: line 35: cd: apache-aurora-0.12.0_SNAPSHOT: No such file or directory
      error: Bad exit status from /var/tmp/rpm-tmp.C6rU5N (%prep)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jsirois John Sirois
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: