[postgis-tickets] [PostGIS] #3032: Travis CI error in before_install: libgdal-dev : Depends: libgdal1h

PostGIS trac at osgeo.org
Mon Feb 9 01:11:57 PST 2015


#3032: Travis CI error in before_install: libgdal-dev : Depends: libgdal1h
-----------------------+----------------------------------------------------
 Reporter:  mwtoews    |       Owner:  robe 
     Type:  patch      |      Status:  new  
 Priority:  medium     |   Milestone:       
Component:  buildbots  |     Version:  trunk
 Keywords:             |  
-----------------------+----------------------------------------------------
 Since about 6 days ago, Travis CI has failed to go past the
 `before_install` step with this error:
 {{{
 ...
 Some packages could not be installed. This may mean that you have
 requested an impossible situation or if you are using the unstable
 distribution that some required packages have not yet been created
 or been moved out of Incoming.
 The following information may help to resolve the situation:

 The following packages have unmet dependencies:
  libgdal-dev : Depends: libgdal1h (= 1.10.0-1~precise1) but it is not
 going to be installed
 E: Unable to correct problems, you have held broken packages.

 The command "sudo apt-get install -q build-essential flex autoconf libtool
 gfortran postgresql-server-dev-9.1 postgresql-client-9.1 postgresql-9.1
 xsltproc libjson0-dev libproj-dev dblatex xsltproc libcunit1-dev libcunit1
 docbook-xsl docbook-mathml libgdal-dev libgeos-dev" failed and exited with
 100 during .

 Your build has been stopped.
 }}}
 (this is from [https://travis-ci.org/postgis/postgis/builds/50001075 build
 #821], the most recent)

 I'm not sure why this is, since [https://travis-
 ci.org/postgis/postgis/builds/49134411 build #817] from almost a week ago
 did not have that error.

 Note that Travis CI mix a few upstream repos, such as
 http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/ (stable), and
 http://apt.postgresql.org precise-pgdg/main, which may influence the
 outcome of `before_install`, which is unrelated to the actual unit
 testing.

 I've reworked the `.travis.yml file`, which does a few of the following:
  * Switch from DOS to UNIX line endings (see DevWikiComitGuidelines)
  * Tidy it up, add nice breaks and enforce <80 chars width to make it more
 readable
  * Use the [http://docs.travis-ci.com/user/using-postgresql/ PostgreSQL
 addon for Travis CI] specifying version "9.4", bumping it from the
 previous "9.1"
  * With `apt-get install`, organize a few logical groups, remove redundant
 or obvious depends
  * Remove commented out parts since they don't have any context as to why
 they remain
  * Also removed a few `git config --global` and `PGUSER=postgres`
 variables, since I'm not sure why they were set and removing them does not
 appear to alter the behavior
  * Don't bother purging other versions of PostgreSQL or PostGIS -- I think
 they can coexist (unless otherwise proven)

 In the end, I'm not exactly sure what it is with `.travis.yml` in `svn-
 trunk` to throw an error, but the attached `mwtoews.travis.yml` seems to
 fix it.

 Please modify as needed.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/3032>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list