Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 456850 - net-analyzer/zabbix does not respect AR/RANLIB
Summary: net-analyzer/zabbix does not respect AR/RANLIB
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Marlowe (RETIRED)
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2013-02-11 20:50 UTC by Agostino Sarubbo
Modified: 2013-06-22 02:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

zabbix-2.0.6-ar.patch (zabbix-2.0.6-ar.patch,19.57 KB, patch)
2013-06-03 19:23 UTC, Michael Mair-Keimberger (iamnr3)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-02-11 20:50:08 UTC
You receive this bug because this package does not respect my system's AR/RANLIB ( x86_64-pc-linux-gnu-ar - /usr/bin/x86_64-pc-linux-gnu-ar | x86_64-pc-linux-gnu-ranlib - /usr/bin/x86_64-pc-linux-gnu-ranlib ) and calls directly ar - /usr/bin/ar | ranlib - /usr/bin/ranlib
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can
2)inherit toolchain-funcs and use tc-export AR RANLIB
3)inherit toolchain-funcs and use emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"

ar cru libzbxcrypto.a md5.o base64.o 
ar cru libzbxcommon.a misc.o regexp.o xml.o comms.o str.o time.o zbxgetopt.o alias.o file.o 
ar cru libzbxlog.a log.o 
ar cru libzbxalgo.a algodefs.o binaryheap.o hashmap.o hashset.o vector.o 
ar cru libzbxnix.a daemon.o pid.o ipc.o fatal.o 
ar cru libzbxconf.a cfg.o 
ar cru libagentsysinfo.a agent.o 
ar cru libcommonsysinfo.a common.o file.o http.o net.o system.o 
ar cru libsimplesysinfo.a simple.o ntp.o 
ar cru libspecsysinfo.a libspecsysinfo_a-boottime.o libspecsysinfo_a-cpu.o libspecsysinfo_a-diskio.o libspecsysinfo_a-diskspace.o libspecsysinfo_a-hardware.o 
libspecsysinfo_a-inodes.o libspecsysinfo_a-kernel.o libspecsysinfo_a-memory.o libspecsysinfo_a-net.o libspecsysinfo_a-proc.o libspecsysinfo_a-sensors.o 
libspecsysinfo_a-software.o libspecsysinfo_a-swap.o libspecsysinfo_a-uptime.o 
ar cru libzbxagentsysinfo.a libzbxagentsysinfo_a-sysinfo.o libzbxagentsysinfo_a-linux.o 
ar cru libzbxserversysinfo.a libzbxserversysinfo_a-sysinfo.o 
ar cru libzbxsys.a threads.o mutexs.o 
ar cru libzbxcomms.a comms.o telnet.o 
ar cru libzbxjson.a json.o 
ar cru libzbxexec.a execute.o 
ranlib libzbxcrypto.a
ranlib libzbxcommon.a
ranlib libzbxlog.a
ranlib libzbxalgo.a
ranlib libzbxnix.a
ranlib libzbxconf.a
ranlib libagentsysinfo.a
ranlib libcommonsysinfo.a
ranlib libsimplesysinfo.a
ranlib libspecsysinfo.a
ranlib libzbxagentsysinfo.a
ranlib libzbxserversysinfo.a
ranlib libzbxsys.a
ranlib libzbxcomms.a
ranlib libzbxjson.a
ranlib libzbxexec.a
Comment 1 Michael Mair-Keimberger (iamnr3) 2013-06-03 19:23:20 UTC
Created attachment 349994 [details, diff]

This patch fixes the configure/Makefiles and should fix this ar/ranlib issue. I've made this one for version 2.0.6 which is still masked. Maybe it works for 2.0.5 too, but i didn't tried.

On a side note:
I saw in the /files directory that we still have patches/initscript/configs for older versions of zabbix separated in directories.
However, oldest version in tree is 2.0.4-r1, which makes those patches useless. (i've checked all ebuilds, no one use those patches/initscript/configs)
I guess we could delete them, it would save ~43 KB
Comment 2 Michael Mair-Keimberger (iamnr3) 2013-06-03 19:30:33 UTC
Sorry, just saw files in files/1.6.6/ where still used, but couldn't find the others in the ebuilds
Comment 3 Matthew Marlowe (RETIRED) gentoo-dev 2013-06-22 02:38:31 UTC
I went with the provided solution #3:
inherit toolchain-funcs and use emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"

Committed to cvs in 2.0.6-r4