Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288393 - [QA] dev-util/pkgconfig-0.23: remove useless configure check for C++ compiler
Summary: [QA] dev-util/pkgconfig-0.23: remove useless configure check for C++ compiler
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-10 08:47 UTC by Michał Masłowski
Modified: 2010-06-17 09:31 UTC (History)
1 user (show)

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


Attachments
the patch (pkgconfig-0.23-without-cxx.patch,255 bytes, patch)
2009-10-10 08:48 UTC, Michał Masłowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Masłowski 2009-10-10 08:47:42 UTC
The attached patch removes the configure check for C++ compiler in dev-util/pkgconfig-0.23 using epunt_cxx from the eutils eclass, allowing correct compilation of pkgconfig in system without a C++ compiler.

Reproducible: Always

Steps to Reproduce:
Comment 1 Michał Masłowski 2009-10-10 08:48:07 UTC
Created attachment 206628 [details, diff]
the patch
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-11 17:45:27 UTC
I'd rather have an upstream bug telling them to fix their autoconf to only check for C
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-10-11 18:18:46 UTC
That's not an upstream autoconf bug it's a libtool 1.5 problem, it's fixed when using libtool-2, but you need to fix that "manually" for libtool 1.5.
Comment 4 Mart Raudsepp gentoo-dev 2009-10-12 02:58:20 UTC
a) Last I knew epunt_cxx did absolutely nothing as the patch it tries to apply does not apply anymore with newer autoconf results, and it is made to not die in such a case. Even if epunt_cxx has been updated with a patching method that works, it might silently stop working again. If it doesn't silently stop working again, but rather fail the build, then it's a bad thing to use as well.

b) pkgconfig compiled fine for me on a gcc[nocxx] system many months ago (we were also at pkgconfig-0.23). Albeit I probably used ~arch and libtool-2.2. By now libtool-2.2 is in stable tree too (at least for many arches), but the ltmain.sh in there is from 1.5 and the system libtool version shouldn't matter, hmm... Then again, maybe I remember wrong and didn't compile pkg-config on the nocxx system, but rather cross-compiled that system, so host pkg-config was used

c) pkg-config configure.ac has no calls to AC_PROG_CXX, so indeed libtool-1.5 problem


Anyway, not sure what to do about this. I don't feel comfortable with epunt_cxx. Maybe when I get to solving all the pkg-config bugs I need to start eautoreconfing anyway and it updates to libtool-2.2?
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-06-17 09:31:48 UTC
The problem seems to be fixed with 0.25 (per build.log's and ./configure not checking for g++ and/or cxx anymore)