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

'make install' with zabbix_agent2 ignores DESTDIR

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 4.4.3
    • Agent (G)
    • CentOS 6.10

      Steps to reproduce:

      1. configure --enable-agent2 ...
      2. make
      3. make install DESTDIR=/some/staging/path

      Result:
      **

      {{ go install -mod vendor -ldflags="-X zabbix.com/pkg/version.titleMessage=zabbix_agent2 -X 'zabbix.com/pkg/version.compileDate=`date +"%b %_d %Y"`' -X zabbix.com/pkg/version.compileTime=`date +%H:%M:%S` -X zabbix.com/pkg/version.compileOs=`go env GOOS` -X zabbix.com/pkg/version.compileArch=`go env GOARCH` -X main.confDefault=/usr/local/etc/zabbix_agent2.conf" zabbix.com/cmd/zabbix_agent2 go install -mod vendor -ldflags="-X zabbix.com/pkg/version.titleMessage=zabbix_agent2 -X 'zabbix.com/pkg/version.compileDate=`date +"%b %_d %Y"`' -X zabbix.com/pkg/version.compileTime=`date +%H:%M:%S` -X zabbix.com/pkg/version.compileOs=`go env GOOS` -X zabbix.com/pkg/version.compileArch=`go env GOARCH` -X main.confDefault=/usr/local/etc/zabbix_agent2.conf" zabbix.com/cmd/zabbix_agent2go install zabbix.com/cmd/zabbix_agent2: open /usr/local/sbin/zabbix_agent2: permission denied}}

      Expected:
      Install zabbix_agent2 as ${DESTDIR}/usr/local/sbin/zabbix_agent2 (for packaging, and like zabbix_agent, zabbix_proxy, etc...)

            rvaliahmetovs Renats Valiahmetovs (Inactive)
            eborisch Eric A. Borisch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: