Bug#824079: qgis: FTBFS on non-Linux: 'TCGETS' was not declared in this scope

Aaron M. Ucko amu at alum.mit.edu
Wed May 11 23:07:08 UTC 2016


Source: qgis
Version: 2.14.2+dfsg-1
Severity: important
Justification: fails to build from source (but built successfully in the past)

Builds of qgis on kFreeBSD failed:

  /«BUILDDIR»/qgis-2.14.2+dfsg/src/plugins/grass/qtermwidget/kpty.cpp: In member function 'bool KPty::tcGetAttr(termios*) const':
  /«BUILDDIR»/qgis-2.14.2+dfsg/src/plugins/grass/qtermwidget/kpty.cpp:126:44: error: 'TCGETS' was not declared in this scope
   #  define _tcgetattr(fd, ttmode) ioctl(fd, TCGETS, (char *)ttmode)
                                              ^
  /«BUILDDIR»/qgis-2.14.2+dfsg/src/plugins/grass/qtermwidget/kpty.cpp:647:12: note: in expansion of macro '_tcgetattr'
       return _tcgetattr(d->masterFd, ttmode) == 0;
              ^
  /«BUILDDIR»/qgis-2.14.2+dfsg/src/plugins/grass/qtermwidget/kpty.cpp: In member function 'bool KPty::tcSetAttr(termios*)':
  /«BUILDDIR»/qgis-2.14.2+dfsg/src/plugins/grass/qtermwidget/kpty.cpp:136:44: error: 'TCSETS' was not declared in this scope
   #  define _tcsetattr(fd, ttmode) ioctl(fd, TCSETS, (char *)ttmode)
                                              ^
  /«BUILDDIR»/qgis-2.14.2+dfsg/src/plugins/grass/qtermwidget/kpty.cpp:654:12: note: in expansion of macro '_tcsetattr'
       return _tcsetattr(d->masterFd, ttmode) == 0;
              ^

Given the natural similarity to #798053, I presume Hurd builds would
fail in the same fashion if their build dependcies were available.  If
and when qgis transitions to Qt5, the best solution would be to switch
to externally packaged libqtermwidget5-0-dev.  As it stands, though,
please patch the embedded copy.

Thanks!



More information about the Pkg-grass-devel mailing list