[postgis-tickets] [PostGIS] #5014: flatgeobuf test failure
PostGIS
trac at osgeo.org
Fri Nov 26 10:10:12 PST 2021
#5014: flatgeobuf test failure
-----------------------------+---------------------------
Reporter: Bas Couwenberg | Owner: pramsey
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 3.2.0
Component: postgis | Version: master
Resolution: | Keywords:
-----------------------------+---------------------------
Comment (by robe):
Yah the patches look harmless and I tested using the same folder and it
was fine if I build without dpkg-buildpackage.
I'm not sure how to use fakeroot (I tried but gave me permission issues).
It must be causing it to build a corrupt package.
The reason I say that is if I test (what I think is the built package from
dpkg-buildpackage using pg_virtualenv) it crashes too.
So it's not testing in fakeroot that is the issue unless I'm testing that
wrong.
If I do this it passes
{{{
sudo cowbuilder --create \
--distribution=sid \
--basepath=/var/cache/pbuilder/base-sid.cow
sudo cowbuilder --login --basepath /var/cache/pbuilder/base-sid.cow
# Inside the chroot
## Add apt sources
echo "deb http://deb.debian.org/debian/ experimental main contrib non-
free" >> /etc/apt/sources.list
echo "deb-src http://deb.debian.org/debian/ experimental main contrib non-
free" >> /etc/apt/sources.list
sed -i 's/^#deb-src/deb-src/' /etc/apt/sources.list
apt update
apt upgrade #this I added I didn't do that before when testing
## Install tools you need (vim, less, gdb, etc)
## Get postgis source package
cd /tmp/buildd
apt source -t experimental postgis
cd postgis-*/
## Install build dependencies
apt build-dep postgis
## Delete patch which skips the failing test
apt install quilt
quilt delete flatgeobuff.patch
pg_virtualenv -v 14 -s make check RUNTESTFLAGS="-v"
}}}
If I do this it fails both during the building and running env after
{{{
sudo cowbuilder --create \
--distribution=sid \
--basepath=/var/cache/pbuilder/base-sid.cow
sudo cowbuilder --login --basepath /var/cache/pbuilder/base-sid.cow
# Inside the chroot
## Add apt sources
echo "deb http://deb.debian.org/debian/ experimental main contrib non-
free" >> /etc/apt/sources.list
echo "deb-src http://deb.debian.org/debian/ experimental main contrib non-
free" >> /etc/apt/sources.list
sed -i 's/^#deb-src/deb-src/' /etc/apt/sources.list
apt update
apt upgrade #this I added I didn't do that before when testing
## Install tools you need (vim, less, gdb, etc)
## Get postgis source package
cd /tmp/buildd
apt source -t experimental postgis
cd postgis-*/
## Install build dependencies
apt build-dep postgis
## Delete patch which skips the failing test
apt install quilt
quilt delete flatgeobuff.patch
## Build the package #crashes on flatgeobuf
dpkg-buildpackage -uc -uc 2>&1 | tee ../postgis.build
## Also crashes on flatgeobuf
exit #assume this exits the fakeroot
pg_virtualenv -v 14 -s make check RUNTESTFLAGS="-v"
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5014#comment:13>
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