[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-11 Thread Stephen Kelly
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #10 from Stephen Kelly --- Here's an updated version of those two files: #!/usr/bin/env python from __future__ import print_function import sys from clang import cindex from clang.cindex import CursorKind, SourceRange

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-11 Thread Stephen Kelly
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #11 from Stephen Kelly --- Damn, useEnum should use uint instead of the flags type like this: void useEnum(int foo = 100, uint flags = EnumValueOne); -- You are receiving this mail because: You are watching all bug changes.

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-11 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #12 from Antonio Rojas --- I get identical output with or without use14 (besides the 'using...' line) clang is 3.9.1, python 2.7.13 -- You are receiving this mail because: You are watching all bug changes.

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-11 Thread Stephen Kelly
https://bugs.kde.org/show_bug.cgi?id=374801 Stephen Kelly changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-11 Thread Stephen Kelly
https://bugs.kde.org/show_bug.cgi?id=374801 Stephen Kelly changed: What|Removed |Added Latest Commit|https://commits.kde.org/ext |https://commits.kde.org/ext |

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-16 Thread Simon Andric
https://bugs.kde.org/show_bug.cgi?id=374801 Simon Andric changed: What|Removed |Added CC||simonandr...@gmail.com -- You are receiving thi

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-09 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=374801 Antonio Rojas changed: What|Removed |Added Assignee|kdelibs-b...@kde.org|steve...@gmail.com -- You are receiving this m

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-09 Thread Stephen Kelly
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #1 from Stephen Kelly --- Thanks for trying this. Can you please post the /build/kguiaddons/src/build/src/sip/PyKF5/KGuiAddons/kfontutils.sip file and indicate line 14? -- You are receiving this mail because: You are watching all bug chan

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-09 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #2 from Antonio Rojas --- Created attachment 103312 --> https://bugs.kde.org/attachment.cgi?id=103312&action=edit kfontutils.sip line 14 is: qreal adaptFontSize(QPainter & painter, const QString & text, double width, double height, do

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-09 Thread Stephen Kelly
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #3 from Stephen Kelly --- Created attachment 103313 --> https://bugs.kde.org/attachment.cgi?id=103313&action=edit More debug output Please apply the attached patch to your extra-cmake-modules and run cd build rm -rf tests/GenerateSipBi

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-09 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #4 from Antonio Rojas --- Created attachment 103314 --> https://bugs.kde.org/attachment.cgi?id=103314&action=edit cpplib.sip > ctest -R Sip Test project /home/antonio/Software/test/extra-cmake-modules/src/build Start 1: GenerateSipBin

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-09 Thread Stephen Kelly
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #5 from Stephen Kelly --- Created attachment 103315 --> https://bugs.kde.org/attachment.cgi?id=103315&action=edit kguiaddons debug output Strange. Please now add this patch to ECM, and run the build of kguiaddons and paste the output.

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-09 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #6 from Antonio Rojas --- Scanning dependencies of target generate_KGuiAddons_sip_files [ 1%] Generating sip/PyKF5/KGuiAddons/kcolorutils.sip [ 3%] Generating sip/PyKF5/KGuiAddons/kcolorcollection.sip [ 5%] Generating sip/PyKF5/KGuiAddons

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-09 Thread Stephen Kelly
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #7 from Stephen Kelly --- I don't understand and I can't reproduce this. We have a test in extra-cmake-modules that works for you and has almost the same thing as this kguiaddons header. What libclang version do you have? I think because

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-10 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #8 from Antonio Rojas --- OK, got it. The difference is that in the ECM test the sip_generator.py command line contains "-std=gnu++14" in --flags, but in the kguiaddons build it doesn't. Running the sip_generator line manually and adding "-s

[frameworks-kguiaddons] [Bug 374801] Python bindings build fails

2017-01-11 Thread Stephen Kelly
https://bugs.kde.org/show_bug.cgi?id=374801 --- Comment #9 from Stephen Kelly --- Superb, thanks for reducing it to that. Now let's see if we can get a reduced testcase showing it is an upstream bug somehow. Please create a file called clang-param-test.h containing enum MyFlagType { EnumV