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

Bug 720884

Summary: media-libs/libmng calls cc directly
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=725406
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-05-04 06:26:39 UTC
This is an auto-filled bug because media-libs/libmng calls cc directly.
The issue was originally discovered on arm64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you think it doesn't make sense fix these type of issues, I'd like to point out that won't be possible use a different CC implementation (like clang) by setting the CC variable. So this issue has been reproduced by setting the CC variable to aarch64-unknown-linux-gnu-gcc and by removing the /usr/bin/cc - /usr/bin/gcc binaries.
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-04 06:26:50 UTC
Created attachment 635904 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2020-05-25 08:37:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8933084aa74fa58638bd21b5dc5de9420beb4db3

commit 8933084aa74fa58638bd21b5dc5de9420beb4db3
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-05-25 08:37:05 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-05-25 08:37:27 +0000

    media-libs/libmng: don't call 'gcc' in src_prepare(), bug #720884
    
    Before the change src_prepare() was calling 'emake distclean'.
    That forced reconfiguration with default CC=gcc.
    
    The change just deletes files which 'make distclean' would delete.
    
    Reported-by: Agostino Sarubbo
    Closes: https://bugs.gentoo.org/720884
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 media-libs/libmng/libmng-2.0.3.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)