Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18826

Cannot use --define option to build rpm

XMLWordPrintable

    • Sprint 72 (Jan 2021)
    • 2

      Steps to reproduce:

      1. Run rpmbuild --bb SPEC/zabbix.spec --define 'build_server 0'

      Result:
      Server packages will be built.

      Expected:
      Server packages must excluded.

      You must check define in spec like that:

      %{!?build_server: %define build_server 1}

      This also applies to others %define macro.

            yurii Jurijs Klopovskis
            asand3r Khatsayuk Alexander
            Team I
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: