Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468114 - dev-util/valgrind : does not respect AR
Summary: dev-util/valgrind : does not respect AR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2013-05-01 10:26 UTC by Agostino Sarubbo
Modified: 2013-05-26 12:18 UTC (History)
1 user (show)

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


Attachments
valgrind-3.8.1.patch (valgrind-3.8.1.patch,281 bytes, patch)
2013-05-26 12:06 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-05-01 10:26:35 UTC
You receive this bug because this package does not respect my system's AR (x86_64-pc-linux-gnu-ar) and calls directly /usr/bin/ar
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can;
2)inherit toolchain-funcs and use tc-export AR
3)inherit toolchain-funcs and use emake AR="$(tc-getAR)"


From the build log:

/usr/bin/ar cru libvex-amd64-linux.a libvex_amd64_linux_a-main_globals.o libvex_amd64_linux_a-main_main.o libvex_amd64_linux_a-main_util.o libvex_amd64_linux_a-ir_defs.o 
libvex_amd64_linux_a-ir_match.o libvex_amd64_linux_a-ir_opt.o libvex_amd64_linux_a-guest_generic_bb_to_IR.o libvex_amd64_linux_a-guest_generic_x87.o 
libvex_amd64_linux_a-guest_x86_helpers.o libvex_amd64_linux_a-guest_x86_toIR.o libvex_amd64_linux_a-guest_amd64_helpers.o libvex_amd64_linux_a-guest_amd64_toIR.o 
libvex_amd64_linux_a-guest_ppc_helpers.o libvex_amd64_linux_a-guest_ppc_toIR.o libvex_amd64_linux_a-guest_arm_helpers.o libvex_amd64_linux_a-guest_arm_toIR.o 
libvex_amd64_linux_a-guest_s390_helpers.o libvex_amd64_linux_a-guest_s390_toIR.o libvex_amd64_linux_a-guest_mips_helpers.o libvex_amd64_linux_a-guest_mips_toIR.o 
libvex_amd64_linux_a-host_generic_regs.o libvex_amd64_linux_a-host_generic_simd64.o libvex_amd64_linux_a-host_generic_simd128.o 
libvex_amd64_linux_a-host_generic_reg_alloc2.o libvex_amd64_linux_a-host_x86_defs.o libvex_amd64_linux_a-host_x86_isel.o libvex_amd64_linux_a-host_amd64_defs.o 
libvex_amd64_linux_a-host_amd64_isel.o libvex_amd64_linux_a-host_ppc_defs.o libvex_amd64_linux_a-host_ppc_isel.o libvex_amd64_linux_a-host_arm_defs.o 
libvex_amd64_linux_a-host_arm_isel.o libvex_amd64_linux_a-host_s390_defs.o libvex_amd64_linux_a-host_s390_isel.o libvex_amd64_linux_a-host_s390_disasm.o 
libvex_amd64_linux_a-host_mips_defs.o libvex_amd64_linux_a-host_mips_isel.o
Comment 1 Michael Mair-Keimberger (iamnr3) 2013-05-26 12:06:33 UTC
Created attachment 349232 [details, diff]
valgrind-3.8.1.patch

I've add tc-export AR to src_confiugre(). This fixes the issue for me.
Comment 2 Anthony Basile gentoo-dev 2013-05-26 12:18:20 UTC
(In reply to Michael Mair-Keimberger (iamnr3) from comment #1)
> Created attachment 349232 [details, diff] [details, diff]
> valgrind-3.8.1.patch
> 
> I've add tc-export AR to src_confiugre(). This fixes the issue for me.

Thanks Michael.  This is a safe change so I added it directly to 3.8.1.