Bug 217425 - devel/py-pykde4: fails to build on armv6
Summary: devel/py-pykde4: fails to build on armv6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Many People
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on: 217424
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-28 17:43 UTC by Mikael Urankar
Modified: 2017-07-14 15:22 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments
patch (1.49 KB, patch)
2017-02-28 17:43 UTC, Mikael Urankar
no flags Details | Diff
patch (1.20 KB, patch)
2017-06-04 08:13 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer freebsd_triage 2017-02-28 17:43:07 UTC
Created attachment 180363 [details]
patch

error message:

[ 40%] Building CXX object CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart3.cpp.o
/nxb-bin/usr/bin/c++   -DQT_CORE_LIB -DQT_GUI_LIB -DSIP_PROTECTED_IS_PUBLIC -DUSING_SOPRANO_NRLMODEL_UNSTABLE_API -D_REENTRANT -Dprotected=public -Dpython_module_PyKDE4_khtml_EXPORTS -I/wrkdirs/usr/ports/devel/py-pykde4/work/.build -I/wrkdirs/usr/ports/devel/py-pykde4/work/pykde4-4.14.3 -I/usr/local/include/kde4 -I/usr/local/include/kde4/KDE -I/usr/local/include/KDE -I/usr/local/include -I/usr/local/include/qt4/phonon -I/usr/local/include/qt4/QtXmlPatterns -I/usr/local/include/qt4/QtXml -I/usr/local/include/qt4/QtWebKit -I/usr/local/include/qt4/QtUiTools -I/usr/local/include/qt4/QtTest -I/usr/local/include/qt4/QtSvg -I/usr/local/include/qt4/QtSql -I/usr/local/include/qt4/QtScript -I/usr/local/include/qt4/QtOpenGL -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4/QtHelp -I/usr/local/include/qt4/QtDesigner -I/usr/local/include/qt4/QtDeclarative -I/usr/local/include/qt4/QtDBus -I/usr/local/include/qt4/Qt3Support -I/usr/local/include/qt4/QtGui -I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/Qt -I/usr/local/share/qt4/mkspecs/default -I/usr/local/include/qt4 -I/wrkdirs/usr/ports/devel/py-pykde4/work/include/python2.7 -I/usr/local/include/python2.7 -I/usr/local/include/kde4/solid -I/usr/local/include/kde4/kio -I/usr/local/include/kde4/dom -I/usr/local/include/kde4/ksettings -I/usr/local/include/kde4/knewstuff2 -I/usr/local/include/kde4/dnssd -O2 -pipe -O2 -munaligned-access -mcpu=cortex-a15 -fno-builtin-sincos -fno-builtin-sin -fno-builtin-cos -fno-builtin-sincosf -fno-builtin-sinf -fno-builtin-cosf -fno-builtin-sincosl -fno-builtin-sinl -fno-builtin-cosl -fno-strict-aliasing -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -Woverloaded-virtual -fno-common -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -Wno-return-type-c-linkage -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC -o CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart3.cpp.o -c /wrkdirs/usr/ports/devel/py-pykde4/work/.build/sip/khtml/sipkhtmlpart3.cpp
--- CMakeFiles/python_module_PyKDE4_plasma.dir/all ---
/wrkdirs/usr/ports/devel/py-pykde4/work/.build/sip/plasma/sipplasmapart1.cpp:22620:110: error: cannot initialize a parameter of type 'double *' with an lvalue of type 'qreal *' (aka 'float *')
    ((sipVH_QtGui_197)(sipModuleAPI_plasma_QtGui->em_virthandlers[197]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
                                                                                                             ^~
/wrkdirs/usr/ports/devel/py-pykde4/work/.build/sip/plasma/sipplasmapart1.cpp:22684:31: error: no viable conversion from 'const QList<qreal>' to 'const QList<double>'


The attached patch fixes the issue, from https://sources.debian.net/patches/pykde4/4:4.14.0-1/make_pykde4_respect_sip_flags.diff/ and https://bugs.kde.org/show_bug.cgi?id=176693
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2017-05-31 10:29:04 UTC
ping
Comment 2 Tobias C. Berner freebsd_committer freebsd_triage 2017-06-03 10:45:22 UTC
Can you explain the reason for the second hunk in the patch, disabling tools/examples? 
That does not seem to make sense in general.
Comment 3 Mikael Urankar freebsd_committer freebsd_triage 2017-06-04 08:13:29 UTC
Created attachment 183191 [details]
patch

I can't remember why I disable the tools/example but it's definitely wrong.
Comment 5 Mikael Urankar freebsd_committer freebsd_triage 2017-07-14 12:38:25 UTC
ping
Comment 6 commit-hook freebsd_committer freebsd_triage 2017-07-14 15:22:08 UTC
A commit references this bug:

Author: tcberner
Date: Fri Jul 14 15:21:45 UTC 2017
New revision: 445765
URL: https://svnweb.freebsd.org/changeset/ports/445765

Log:
  Fix build on armv6.

  This uses the parts added in r442475.

  PR:		217425
  Submitted by:	Mika?l Urankar <mikael.urankar@gmail.com>

Changes:
  head/devel/py-pykde4/files/patch-CMakeLists.txt
Comment 7 Tobias C. Berner freebsd_committer freebsd_triage 2017-07-14 15:22:28 UTC
Thanks for the reminder, and the patch.