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

Bug 424689

Summary: media-libs/libjpeg-turbo-1.2.0-r2 wants C++ CPP (?)
Product: Gentoo Linux Reporter: Sylvain BERTRAND <sylvain.bertrand>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log
build.log
emerge -pv sys-devel/gcc
config.log.bz2

Description Sylvain BERTRAND 2012-07-04 01:01:40 UTC
Created attachment 317081 [details]
emerge --info

fail to compile because configure is looking for a C++ CPP, but this is a C lib.
Comment 1 Sylvain BERTRAND 2012-07-04 01:03:27 UTC
Created attachment 317083 [details]
build.log
Comment 2 Sylvain BERTRAND 2012-07-04 01:06:11 UTC
Created attachment 317085 [details]
build.log
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-07-04 07:11:19 UTC
It says: See `config.log' for more details.

Always when you have problem with ./configure on a autotools based package (has econf in ebuild) then attach config.log right next to build.log.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-07-04 09:35:59 UTC
Reopen the bug from NEEDINFO status when you have config.log and 'emerge -pv sys-devel/gcc' outputs provided.
Comment 5 Sylvain BERTRAND 2012-07-04 11:20:42 UTC
Created attachment 317103 [details]
emerge -pv sys-devel/gcc
Comment 6 Sylvain BERTRAND 2012-07-04 11:37:53 UTC
Created attachment 317115 [details]
config.log.bz2
Comment 7 Sylvain BERTRAND 2012-07-04 11:39:15 UTC
logs added
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-07-04 14:34:35 UTC
[ebuild   R    ] sys-devel/gcc-4.6.3  USE="nls nocxx nptl (-altivec) -bootstrap -build -cxx

^ USE="-cxx" means you don't have g++ C++ compiler installed at all. is that in purpose? anyway...

Try if adding

epunt_cxx

to the end of src_prepare() (as last command of the function)
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2012-07-04 14:36:22 UTC
(In reply to comment #8)
[ ... ]

> to the end of src_prepare() (as last command of the function)

--- libjpeg-turbo-1.2.0-r2.ebuild
+++ libjpeg-turbo-1.2.0-r2.ebuild
@@ -49,6 +49,8 @@
 		eautoreconf
 	fi
 	java-pkg-opt-2_src_prepare
+
+	epunt_cxx
 }
Comment 10 Sylvain BERTRAND 2012-07-04 16:27:51 UTC
"epunt_cxx" works: configuring without pb, compiling ok.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2012-07-04 18:24:08 UTC
cool

epunt_cxx added to tree for -r2