[QGIS-trac] Re: [Quantum GIS] #2411: FTBFS: qgsgrass.cpp + old grasses on Debian/Lenny

Quantum GIS qgis at qgis.org
Sat Feb 13 15:06:53 EST 2010


#2411: FTBFS: qgsgrass.cpp + old grasses on Debian/Lenny
-----------------------------------------------------+----------------------
        Reporter:  hamish                            |         Owner:  nobody       
            Type:  bug                               |        Status:  new          
        Priority:  major: does not work as expected  |     Milestone:  Version 1.5.0
       Component:  Build/Install                     |       Version:  HEAD         
      Resolution:                                    |      Keywords:  grass        
Platform_version:  Lenny amd64                       |      Platform:  Debian       
        Must_fix:  No                                |   Status_info:  0            
-----------------------------------------------------+----------------------
Comment (by hamish):

 this seems to fix the `'class QStringList' has no member named 'length'`
 error:

 {{{
 Index: src/plugins/grass/qgsgrassshell.cpp
 ===================================================================
 --- src/plugins/grass/qgsgrassshell.cpp (revision 12941)
 +++ src/plugins/grass/qgsgrassshell.cpp (working copy)
 @@ -66,7 +66,7 @@
      {
        QString line = buf;
        QStringList kv = line.split ( ':' );
 -      if ( kv.length() == 2 &&  kv.at(0) == "GRASS_GUI" )
 +      if ( kv.size() == 2 &&  kv.at(0) == "GRASS_GUI" )
        {
          oldGui = kv.at(1).trimmed ();
          break;
 }}}

 and now it fails with:
 {{{
 dh_testdir
 dh_testroot
 dh_installchangelogs ChangeLog
 dh_installdocs
 dh_installexamples
 dh_install --sourcedir=debian/tmp
 cp: cannot stat `debian/tmp/usr/lib/libqgis_core.so.QGIS_ABI': No such
 file or directory
 dh_install: command returned error code 256
 make: *** [binary-arch] Error 1
 debuild: fatal error at line 1301:
 couldn't exec fakeroot debian/rules:
 }}}


 {{{
 trunk$ ls -l debian/tmp/usr/lib/libqgis_core.*
 lrwxrwxrwx ... 21 ... debian/tmp/usr/lib/libqgis_core.so ->
 libqgis_core.so.1.5.0
 -rw-r--r-- ... 6457442 ... debian/tmp/usr/lib/libqgis_core.so.1.5.0
 }}}

 so apparently the "libqgis_core.so.QGIS_ABI" macro isn't being expanded?


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2411#comment:2>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list