Opened 12 years ago

Closed 9 years ago

Last modified 4 years ago

#2316 closed task (fixed)

Setup buildbot jobs to test sfcgal

Reported by: robe Owned by: robe
Priority: high Milestone: Website Management, Bots
Component: QA/buildbots Version: master
Keywords: Cc:

Description

These would be in addition to the ones testing without sfcgal enabled.

Change History (13)

comment:1 by robe, 12 years ago

Milestone: PostGIS 2.1.0PostGIS 2.2.0

comment:2 by robe, 11 years ago

Have winnie tsting with sfcgal support but she's coughing up some blood. Will put in separate ticket.

comment:3 by robe, 10 years ago

winnie testing smoothly now against sfcgal 1.0.5. would probably be good to have debbie testing as well

comment:4 by pramsey, 9 years ago

Milestone: PostGIS 2.2.0Management 2.0

comment:5 by strk, 9 years ago

See #2778 too, for travis. The SFCGAL tests just failed succeeding, during 2.2.0 close-up (Paul, I think it's one of your commits)

comment:6 by robe, 9 years ago

So I guess I just have to apt-get this?

https://packages.debian.org/sid/sfcgal-bin

comment:7 by robe, 9 years ago

nope haven't a clue how to use that, my standard apt-get update followed by apt get sfcgal-dev couldn't find anything. So seems I might need to add a repo (and possibly upgrade debbie's gcc since it says requires gcc 4.9 or higher

comment:8 by vmo, 9 years ago

Hi,

Add that to your /etc/apt-source.list

  deb-src http://debian.mirrors.ovh.net/debian/ sid main contrib non-free

Then:

  sudo apt-get update
  apt-get build-dep sfcgal-bin
  apt-get -b source sfcgal-bin

After that you have a nice list of .deb in your working directory:

  dpkg -i *.deb

comment:9 by robe, 9 years ago

Sadly this did not work. I think I need to upgrade Debbie to a newer version of Debian or Ubuntu. I was planning to build her from scratch or another version of her just for testing, but probably won't have time for that for a couple of months.

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Build-Depends dependency for sfcgal-bin cannot be satisfied because no available versions of package debhelper can satisfy version requirements
root@30266-3-1329969:~#   apt-get -b source sfcgal-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'sfcgal-bin' packaging is maintained in the 'Git' version control system at:
git://anonscm.debian.org/pkg-grass/sfcgal.git
Need to get 2,517 kB of source archives.
Get:1 http://debian.mirrors.ovh.net/debian/ sid/main sfcgal 1.1.0-2 (dsc) [2,153 B]
Get:2 http://debian.mirrors.ovh.net/debian/ sid/main sfcgal 1.1.0-2 (tar) [2,393 kB]
Get:3 http://debian.mirrors.ovh.net/debian/ sid/main sfcgal 1.1.0-2 (diff) [121 kB]
Fetched 2,517 kB in 2s (1,230 kB/s)
gpgv: keyblock resource `/root/.gnupg/trustedkeys.gpg': file open error
gpgv: Signature made Fri 31 Jul 2015 06:27:43 AM PDT using RSA key ID E88D4AF1
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./sfcgal_1.1.0-2.dsc
dpkg-source: info: extracting sfcgal in sfcgal-1.1.0
dpkg-source: info: unpacking sfcgal_1.1.0.orig.tar.gz
dpkg-source: info: unpacking sfcgal_1.1.0-2.debian.tar.xz
dpkg-source: info: applying 0001-Fix-spelling-errors-accourding-to-lintian-tool-of-th.patch
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: source package sfcgal
dpkg-buildpackage: source version 1.1.0-2
dpkg-buildpackage: source changed by Sven Geggus <sven-debian@geggus.net>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build sfcgal-1.1.0
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 9) libcgal-dev libboost-all-dev libmpfr-dev libgmp-dev libopenscenegraph-dev libopenthreads-dev libpq-dev libqt4-dev libqt4-opengl-dev pkg-kde-tools
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
Build command 'cd sfcgal-1.1.0 && dpkg-buildpackage -b -uc' failed.

when I try to install the missing dependencies I get:

 apt-get install libcgal-dev libboost-all-dev libmpfr-dev libgmp-dev libopenscenegraph-dev libopenthreads-dev libpq-dev libqt4-dev libqt4-opengl-dev pkg-kde-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcgal-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libcgal-dev' has no installation candidate
E: Unable to locate package libgmp-dev

FWIW debbie is running:

Distributor ID: Debian
Description:    Debian GNU/Linux 6.0.10 (squeeze)
Release:        6.0.10
Codename:       squeeze

comment:10 by robe, 9 years ago

Well I started trying to compile sfcgal on the new debbie. I installed cgal and boost using apt-get install no problem. I figured I should compile sfcgal to follow the updates like I do with GDAL.

Anyway it failed midway - ticketed here.

https://github.com/Oslandia/SFCGAL/issues/114

The issue might be something wrong with GCC 5.2.1 ( https://gcc.gnu.org/gcc-5/) and related to issue #3346 (which seems to be something to do with GEOS compile). I'm not sure if any of us is running GCC 5.2 chain besides debbie. I only have 4.8.3 running on winnie and travis is running 4.6.3.

comment:11 by robe, 9 years ago

I think it might be I don't have enough memory in debbie. Only have 2GB.

Anyrate, I took the chicken route and installed sfcgal from packages using

apt-get install libsfcgal-dev

an I got sucky 1.1.0. Maybe they'll have 1.2.0 available soon.

I switched 2.3.0 to test with SFCGAL and it succeeded.

I'll switch 2.2.0 to do the same and close this out.

comment:12 by robe, 9 years ago

Resolution: fixed
Status: newclosed

(In [14326]) build with sfcgal (currently 1.1.0 from debian sid repo) closes #2316

comment:13 by robe, 4 years ago

Milestone: Management 2.0Website Management, Bots

Milestone renamed

Note: See TracTickets for help on using tickets.