Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-1514

nodejs-ms cannot be rebuilt from srpm due to missing test dependencies

XMLWordPrintable

    • Hide

      The two dependencies are optional, in a way, because in the spec file there is this

      %global enable_tests 1
      
      [...]
      
      %if 0%{?enable_tests}
      BuildRequires:  npm(expect.js)
      BuildRequires:  npm(mocha)
      %endif
      

      I did not find a way to set the macro to 0 on command line.

      Show
      The two dependencies are optional, in a way, because in the spec file there is this %global enable_tests 1 [...] % if 0%{?enable_tests} BuildRequires: npm(expect.js) BuildRequires: npm(mocha) %endif I did not find a way to set the macro to 0 on command line.

           rpmbuild --rebuild --define 'debug_package %{nil}' --define "dist .el8+7"  --define '_topdir /usr/src/redhat'  --rcfile /tmp/tps_rpmrc_rrKPhI:/usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc packages/nodejs-ms/2.0.0/3.el8+7/data/signed/fd431d51/src/nodejs-ms-2.0.0-3.el8+7.src.rpm
      
      doRpmCommand-result (256): 
      FAILED to rebuild packages/nodejs-ms/2.0.0/3.el8+7/data/signed/fd431d51/src/nodejs-ms-2.0.0-3.el8+7.src.rpm -- return code 256
      
      REBUILD: FAIL for nodejs-ms-2.0.0-3.el8+7.src.rpmBUILDLOG: nodejs-ms-2.0.0-3.el8+7.src.rpm-noarch-rebuild.log contains full details.  Reports from make and rpmbuild, with line numbers:
      1-warning: user mockbuild does not exist - using root
      2-warning: group mockbuild does not exist - using root
      3-warning: user mockbuild does not exist - using root
      4-warning: group mockbuild does not exist - using root
      5:error: Failed build dependencies:
      6-	npm(expect.js) is needed by nodejs-ms-2.0.0-3.el8+7.noarch
      7-	npm(mocha) is needed by nodejs-ms-2.0.0-3.el8+7.noarch
      

      We do not ship RPMs for expect.js or mocha.

              iboverma Irina Boverman (Inactive)
              jdanek@redhat.com Jiri Daněk
              Jiri Daněk Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: