Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3454 closed defect (fixed)

debian build scripts for osm2pgsql are broken

Reported by: Komяpa Owned by: frederik@…
Priority: major Milestone:
Component: utils Version:
Keywords: Cc:

Description

A package can't be built anymore using just "dpkg-buildpackage" utility. For me, it dies this way currently:

kom@debian osm2pgsql % dpkg-buildpackage 
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 osm2pgsql
dpkg-buildpackage: source version 0.69
dpkg-buildpackage: source changed by Frederik Ramm <fred@lambert>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build osm2pgsql
 fakeroot debian/rules clean
dpatch deapply-all
rm -rf patch-stamp debian/patched
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean || /bin/true
make[1]: Entering directory `/home/kom/svn/osm2pgsql'
Making clean in gazetteer
make[2]: Entering directory `/home/kom/svn/osm2pgsql/gazetteer'
rm -rf .libs _libs
test -z "gazetteer.la" || rm -f gazetteer.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
make[2]: Leaving directory `/home/kom/svn/osm2pgsql/gazetteer'
Making clean in .
make[2]: Entering directory `/home/kom/svn/osm2pgsql'
 rm -f osm2pgsql
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
make[2]: Leaving directory `/home/kom/svn/osm2pgsql'
make[1]: Leaving directory `/home/kom/svn/osm2pgsql'
dh_clean 
 dpkg-source -b osm2pgsql
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: info: using source format `1.0'
dpkg-source: warning: source directory 'osm2pgsql' is not <sourcepackage>-<upstreamversion> 'osm2pgsql-0.69'
dpkg-source: info: building osm2pgsql in osm2pgsql_0.69.tar.gz
dpkg-source: info: building osm2pgsql in osm2pgsql_0.69.dsc
 debian/rules build
dpatch apply-all
dpatch cat-all >patch-stamp
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
# Add here commands to compile the package.
autoreconf -f
aclocal
autoconf
configure.ac:35: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
make: *** [build-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Change History (4)

comment:1 Changed 9 years ago by Tom Hughes

Component: mapnikutils
Owner: changed from mapnik-team@… to unknown@…
Status: newassigned

This isn't really anything to do with the mapnik guys, or even the the people that normally maintain osm2pgsql. It's down to whoever writes the debian scripts and insists on shoving them in our repository. No idea who that is though.

comment:2 Changed 9 years ago by Tom Hughes

Owner: changed from unknown@… to frederik@…

Looks like Frederik is the main culprit.

comment:3 Changed 9 years ago by woodpeck

Resolution: fixed
Status: assignedclosed

Removed broken build scripts.

comment:4 Changed 9 years ago by Andrew Shadura

The proper way to build the latest SVN version is as follows:

apt-get source osm2pgsql
cd osm2pgsql-*
debian/rules get-orig-source
dch -v 0.69+r25031-1
dpkg-buildpackage

Of course, you need to substitute r25031 with a corresponding revision number as get-orig-source suggests.

Note: See TracTickets for help on using tickets.