[MacPorts] #54456: qtiplot @0.9.8.9_13+qtexengine+python27: build falied relating to SIP

MacPorts noreply at macports.org
Mon Jul 10 08:01:56 UTC 2017


#54456: qtiplot @0.9.8.9_13+qtexengine+python27: build falied relating to SIP
--------------------+-------------------
 Reporter:  uvw2    |      Owner:
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.4.1
 Keywords:          |       Port:
--------------------+-------------------
 I want to build qtiplot with python27 scripting.
 However, the build failed as follows.
 {{{
 :info:build src/scripting/qti.sip:151:35: error: use of undeclared
 identifier 'sipType_QDateTime'
 ::info:build src/scripting/qti.sip:153:81: error: use of undeclared
 identifier 'sipType_QDateTime'
 :info:build src/scripting/qti.sip:167:35: error: use of undeclared
 identifier 'sipType_QTime'
 :info:build src/scripting/qti.sip:169:69: error: use of undeclared
 identifier 'sipType_QTime'
 }}}

 Therefore, I try to add the definitions in src/scripting/qti.sip to avoid
 compiling errors.
 {{{
 --- qti.sip.orig        2017-07-10 16:48:44.000000000 +0900
 +++ qti.sip.patched     2017-07-10 16:51:11.000000000 +0900
 @@ -122,6 +122,8 @@ static int setCellDataHelper(Table* tabl
      table->clearCell(row, col);
      return 0;
    }
 +  const sipTypeDef* sipType_QDateTime = sipFindType("QDateTime");
 +  const sipTypeDef* sipType_QTime = sipFindType("QTime");
    switch (table->columnType(col)) {
    case Table::Numeric:
      item = PyNumber_Float(item);
 }}}
 Since I'm not an expert on C++, could you comment this patch is valid or
 invalid?
 Or, if anyone knows better solution to build qtiplot with python scripting
 support, could you help me?

--
Ticket URL: <https://trac.macports.org/ticket/54456>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list