Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 733770

Summary: media-tv/mythtv calls nm directly
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Wilson M. Michaels <thebitpit>
Status: CONFIRMED ---    
Severity: normal CC: proxy-maint, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-07-24 13:29:31 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-tv/mythtv calls nm directly.
Discovered on: amd64 (internal ref: ci)

NOTE:
As per QA policy, toolchain tools must not be called directly because they can cause issue in cross-compiling and because is not possible use a different NM implementation (like llvm-nm). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks] and set the NM variable to x86_64-pc-linux-gnu-nm.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-24 13:29:38 UTC
Created attachment 650566 [details]
build.log

build log and emerge --info
Comment 2 Wilson M. Michaels 2020-07-24 21:17:48 UTC
I need help fixing this. I found several calls to nm in the upstream configure file for the mythtv package. I guess I need to change it to something else. I have no idea what that fix looks like. 

Is there an example or some documentation about fixing this.

I do not understand how to run the tinderbox test to verify I fixed it.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-17 07:54:17 UTC
(In reply to Wilson M. Michaels from comment #2)
> I need help fixing this. I found several calls to nm in the upstream
> configure file for the mythtv package. I guess I need to change it to
> something else. I have no idea what that fix looks like. 
> 
> Is there an example or some documentation about fixing this.
> 
> I do not understand how to run the tinderbox test to verify I fixed it.

This should help: https://wiki.gentoo.org/wiki/Project:Toolchain/use_native_symlinks.

The idea is to use e.g. AM_PROG_AR (https://www.gnu.org/software/automake/manual/html_node/Public-Macros.html) in the build system and/or $(AR) to respect ir from the environment.