Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285382 - kde-base/kcontrol-3.5.10: illegal conversion from »const char*« to »char*«.
Summary: kde-base/kcontrol-3.5.10: illegal conversion from »const char*« to »char*«.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 01:29 UTC by Navid Zamani
Modified: 2009-09-18 02:26 UTC (History)
0 users

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


Attachments
»emerge --info« output (»emerge --info« output.txt,4.97 KB, text/plain)
2009-09-18 01:30 UTC, Navid Zamani
Details
kde-base/kcontrol-3.5.10 — complete build log (kde-base:kcontrol-3.5.10:20090918-003644.log,72.91 KB, text/plain)
2009-09-18 01:32 UTC, Navid Zamani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Navid Zamani 2009-09-18 01:29:15 UTC
Re-emerging kcontrol after a profile change to 10.0 in the following rebuild of xcb-dependend ebuilds just threw the error described below.
emerge --info and the compilation output will follow.

Reproducible: Always

Steps to Reproduce:
Only the first time:
1. eselect profile set 7 # default/linux/amd64/10.0/desktop
2. emerge -auDNtv world
3. revdep-rebuild
4. emerge @preserved-rebuild # should fail with kcontrol
5. revdep-rebuild # just to check that nothing is left to rebuild
6. reboot # in case of a changed environment
To reproduce a second time:
7. emerge @preserved-rebuild # the leftover package(s) that failed the first time. including kcontrol
Actual Results:  
kcontrol fails to compile with the following error (roughly translated by me):

Fontmap.cpp: In function »bool parseLine(const char*, QString&, QString&, bool&)«:
Fontmap.cpp:68: Error: Illegal conversion from »const char*« to »char*«
Fontmap.cpp: In function »void addEntry(QStringList&, const QString&, const QString&, const QString&)«:
Fontmap.cpp:199: Warning: It is recommended, to set explicit curly braces, to avoid ambiguous »else«
Fontmap.cpp: In function »QString locateFile(const char*, const char*, int)«:
Fontmap.cpp:256: Warning: It is recommended, to set explicit curly braces, to avoid ambiguous »else«

Expected Results:  
kcontrol should install, just like the last time.

The strange thing is, that that exact kcontrol is already installed.
I just changed the profile to the new »default/linux/amd64/10.0/desktop« one and this recompilation was the result of an »emerge @preserved-rebuild« that was required for the new »xcb« (X C-language bindings) of that profile.

Is the new profile perhaps not yet ready for general use? Or what went wrong this time.

Mind you that I have of course retried it, did revdep-rebuild twice, everything else is up-to-date, I rebooted the system (in case of environment changes), etc. 

How could we fix this bug? Apart from me patching the code that did compile the last time, which would be very weird in my eyes. ^^
Comment 1 Navid Zamani 2009-09-18 01:30:52 UTC
Created attachment 204481 [details]
»emerge --info« output
Comment 2 Navid Zamani 2009-09-18 01:32:59 UTC
Created attachment 204482 [details]
kde-base/kcontrol-3.5.10 — complete build log
Comment 3 Navid Zamani 2009-09-18 01:34:49 UTC
Oh, I might have found the problem: The ebuild is from the »acorn« overlay!
I’m sorry for overlooking that!!

If acorn bugs are not handled trough this site, then feel free to close the bug. :)
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2009-09-18 01:39:42 UTC
Closing the bug per last comment.
If you can reproduce the error with the ebuild in the main tree, feel free to reopen the bug.
Comment 5 Navid Zamani 2009-09-18 02:26:19 UTC
(In reply to comment #4)
LOL, I was just in the process of closing the bug myself, as you beat me to it.
My comment was:

I just removed the acorn overlay, and now portage’s kcontrol emerged fine. Case closed. :)
(But it’s good to have it here, in case others have the same problem.)