Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-4105

Build fails when '-DpkgSuffix' is specified and '(rpm|deb)_pkg_suffix' is not specified in bigtop.bom

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • build
    • None

    Description

      Build fails when '-DpkgSuffix' is specified when '(rpm|deb)_pkg_suffix'  is not specified in bigtop.bom

      Issue introduced this bug by not checking whether the '(rpm|deb)_pkg_suffix' has been specified in bigtop.bom.

      When config '(rpm|deb)_pkg_suffix'  is not specified, groovy returns an empty map  '[:]' which breaks the build. 

       

       

      Task :bigtop-groovy-srpm
      Wrote: /home/mathew/Projects/bigtop/build/bigtop-groovy/rpm/SRPMS/bigtop-groovy-2.5.4-1.el8.src.rpm> Task :bigtop-utils-srpm
      Wrote: /home/mathew/Projects/bigtop/build/bigtop-utils/rpm/SRPMS/bigtop-utils-3.3.0-1.el8.src.rpm> Task :bigtop-utils-rpm FAILED
      error: cannot open /home/mathew/Projects/bigtop/output/bigtop-utils/bigtop-utils[:]-3.3.0-1.el8.src.rpm: No such file or directoryFAILURE: Build failed with an exception.
       

       

      Sample code to illustrate the source of bug. Below groovy sample is how packages.gradle access project config in bigtop.bom

      def bom = """bigtop {
          name = "ambari"
      }"""
      
      def conf = new ConfigSlurper().parse(bom)
      
      println('Output')
      println(conf.bigtop.name)
      println(conf.bigtop.not_exist) 
      
      // Output
      // ambari
      // [:]

       

       

      Attachments

        Issue Links

          Activity

            People

              mkapkiai Mathew Kapkiai
              mkapkiai Mathew Kapkiai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m