[PostGIS] #5779: create_upgrade.pl fails for 3.5.0-beta1

PostGIS trac at osgeo.org
Wed Sep 18 08:40:20 PDT 2024


#5779: create_upgrade.pl fails for 3.5.0-beta1
-----------------------------+---------------------------
  Reporter:  Bas Couwenberg  |      Owner:  strk
      Type:  defect          |     Status:  new
  Priority:  medium          |  Milestone:  PostGIS 3.5.0
 Component:  build           |    Version:  master
Resolution:                  |   Keywords:
-----------------------------+---------------------------
Comment (by Bas Couwenberg):

 With the changes from 4b786d9992479041f4bc0cf559cc10e3feca4e2c the build
 fails again:
 {{{
 ---- Making all in postgis
 make[4]: Entering directory
 '/build/postgis-3.5.0~beta1+dfsg/extensions/postgis'
 mkdir -p sql
 /usr/bin/make -C ../../raster/rt_pg sql_objs
 make[5]: Entering directory '/build/postgis-3.5.0~beta1+dfsg/raster/rt_pg'
 /usr/bin/make -C ../../raster/rt_pg sql_objs
 make[5]: Entering directory '/build/postgis-3.5.0~beta1+dfsg/raster/rt_pg'
 /usr/bin/make -C ../../raster/rt_pg sql_objs
 make[5]: Entering directory '/build/postgis-3.5.0~beta1+dfsg/raster/rt_pg'
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I./../../postgis
 ../../postgis/postgis.sql.in > sql/postgis_for_extension.sql.tmp
 /usr/bin/perl -pe 's/BEGIN\;//g ; s/COMMIT\;//g' ../../spatial_ref_sys.sql
 > sql/spatial_ref_sys.sql
 /usr/bin/perl ../../utils/create_spatial_ref_sys_config_dump.pl
 ../../spatial_ref_sys.sql > sql/spatial_ref_sys_config_dump.sql
 grep -v '^#' sql/postgis_for_extension.sql.tmp | \
 /usr/bin/perl -lpe \
         "s'MODULE_PATHNAME'\$libdir/postgis-3'g" \
         | /usr/bin/perl -pe 's/BEGIN\;//g ; s/COMMIT\;//g' >
 sql/postgis_for_extension.sql
 echo '-- Just tag extension postgis version as "ANY"' > sql/postgis--
 TEMPLATED--TO--ANY.sql
 echo '-- Installed by postgis 3.5.0beta1' >> sql/postgis--TEMPLATED--TO--
 ANY.sql
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis.sql.in > rtpostgis.sql.tmp
 cat postgis.control.in \
         | sed -e 's|@EXTVERSION@|3.5.0beta1|g' \
         | sed -e 's|@EXTENSION@|postgis|g' \
         | sed -e 's|@MODULEPATH@|$libdir/postgis-3|g' \
         > postgis.control
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis_upgrade_cleanup.sql.in > rtpostgis_upgrade_cleanup.sql.tmp
 echo '-- Built on 2024-09-18 14:44:20' >> sql/postgis--TEMPLATED--TO--
 ANY.sql
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis_drop.sql.in > rtpostgis_drop.sql.tmp
 rm -f sql/postgis_for_extension.sql.tmp
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis.sql.in > rtpostgis.sql.tmp
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis_legacy.sql.in > rtpostgis_legacy.sql.tmp
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis.sql.in > rtpostgis.sql.tmp
 echo "-- Nothing to do here" > sql/postgis--unpackaged.sql
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis_upgrade_cleanup.sql.in > rtpostgis_upgrade_cleanup.sql.tmp
 printf '\\echo Use "CREATE EXTENSION postgis" to load this file. \\quit\n'
 > sql/postgis--3.5.0beta1.sql
 /usr/bin/perl ../../utils/create_upgrade.pl sql/postgis_for_extension.sql
 > sql/postgis_upgrade_for_extension.sql.in
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis_drop.sql.in > rtpostgis_drop.sql.tmp
 cat sql/postgis_for_extension.sql sql/spatial_ref_sys_config_dump.sql
 sql/spatial_ref_sys.sql >> sql/postgis--3.5.0beta1.sql
 grep -v '^#' rtpostgis.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis.sql
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis_upgrade_cleanup.sql.in > rtpostgis_upgrade_cleanup.sql.tmp
 grep -v '^#' rtpostgis_upgrade_cleanup.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis_upgrade_cleanup.sql
 grep -v '^#' rtpostgis_drop.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis_drop.sql
 grep -v '^#' rtpostgis_legacy.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis_legacy.sql
 grep -v '^#' rtpostgis.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis.sql
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis_legacy.sql.in > rtpostgis_legacy.sql.tmp
 rm -f rtpostgis_legacy.sql.tmp
 rm -f rtpostgis_upgrade_cleanup.sql.tmp
 rm -f rtpostgis.sql.tmp
 grep -v '^#' rtpostgis.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis.sql
 #strip BEGIN/COMMIT since these are not allowed in extensions
 grep -v '^#' rtpostgis_upgrade_cleanup.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis_upgrade_cleanup.sql
 grep -v '^#' rtpostgis_upgrade_cleanup.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis_upgrade_cleanup.sql
 rm -f rtpostgis_drop.sql.tmp
 grep: rtpostgis.sql.tmp: No such file or directory
 rm -f rtpostgis.sql.tmp
 grep -v '^#' rtpostgis_drop.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis_drop.sql
 grep: /usr/bin/perl ../../utils/create_upgrade.pl rtpostgis.sql >
 rtpostgis_upgrade.sql.in
 # WARNING: we should make sure these are not internal to function bodies
 rtpostgis_upgrade_cleanup.sql.tmp: No such file or directory
 grep -v '^#' rtpostgis_legacy.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis_legacy.sql
 grep: rtpostgis_upgrade_cleanup.sql.tmp: No such file or directory
 /usr/bin/perl ../../utils/create_uninstall.pl rtpostgis.sql 170 >
 uninstall_rtpostgis.sql
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis_drop.sql.in > rtpostgis_drop.sql.tmp
 rm -f rtpostgis.sql.tmp
 rm -f rtpostgis_upgrade_cleanup.sql.tmp
 grep: rtpostgis_drop.sql.tmp: No such file or directory
 Unable to locate target new version number in rtpostgis.sql
 cat ../../postgis/common_before_upgrade.sql
 ../../postgis/postgis_before_upgrade.sql
 sql/postgis_upgrade_for_extension.sql.in
 ../../postgis/postgis_after_upgrade.sql
 ../../postgis/common_after_upgrade.sql | /usr/bin/perl -pe 's/BEGIN\;//g ;
 s/COMMIT\;//g' > sql/postgis_upgrade_for_extension.sql
 make[5]: *** [Makefile:156: rtpostgis_upgrade.sql.in] Error 255
 make[5]: *** Deleting file 'rtpostgis_upgrade.sql.in'
 make[5]: *** Waiting for unfinished jobs....
 /usr/bin/perl ../../utils/create_upgrade.pl rtpostgis.sql >
 rtpostgis_upgrade.sql.in
 rm -f rtpostgis_upgrade_cleanup.sql.tmp
 rm -f rtpostgis_drop.sql.tmp
 /usr/bin/perl ../../utils/create_uninstall.pl rtpostgis.sql 170 >
 uninstall_rtpostgis.sql
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
 rtpostgis_legacy.sql.in > rtpostgis_legacy.sql.tmp
 rm -f rtpostgis_legacy.sql.tmp
 /usr/bin/perl ../../utils/create_upgrade.pl rtpostgis.sql >
 rtpostgis_upgrade.sql.in
 /usr/bin/perl ../../utils/create_uninstall.pl rtpostgis.sql 170 >
 uninstall_rtpostgis.sql
 /usr/bin/perl -pe "s/BEGIN\;//g ; s/COMMIT\;//g; s/^(DROP .*)\;/SELECT
 postgis_extension_drop_if_exists('postgis', '\1');\n\1\;/"
 sql/postgis_upgrade_for_extension.sql > sql/postgis_upgrade.sql
 Unable to locate target new version number in rtpostgis.sql
 Unable to locate target new version number in rtpostgis.sql
 make[5]: Leaving directory '/build/postgis-3.5.0~beta1+dfsg/raster/rt_pg'
 make[5]: *** [Makefile:156: rtpostgis_upgrade.sql.in] Error 255
 make[5]: *** Deleting file 'rtpostgis_upgrade.sql.in'
 make[5]: *** Waiting for unfinished jobs....
 make[4]: *** [Makefile:76:
 ../../raster/rt_pg/rtpostgis_upgrade_cleanup.sql] Error 2
 make[4]: *** Deleting file
 '../../raster/rt_pg/rtpostgis_upgrade_cleanup.sql'
 make[4]: *** Waiting for unfinished jobs....
 make[5]: *** [Makefile:156: rtpostgis_upgrade.sql.in] Error 255
 make[5]: *** Waiting for unfinished jobs....
 grep -v '^#' rtpostgis_drop.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis_drop.sql
 grep: rtpostgis_drop.sql.tmp: No such file or directory
 grep -v '^#' rtpostgis_legacy.sql.tmp | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" >
 rtpostgis_legacy.sql
 make[5]: Leaving directory '/build/postgis-3.5.0~beta1+dfsg/raster/rt_pg'
 make[4]: *** [Makefile:76: ../../raster/rt_pg/uninstall_rtpostgis.sql]
 Error 2
 make[4]: *** Deleting file '../../raster/rt_pg/uninstall_rtpostgis.sql'
 rm -f rtpostgis_drop.sql.tmp
 rm -f rtpostgis_legacy.sql.tmp
 make[5]: Leaving directory '/build/postgis-3.5.0~beta1+dfsg/raster/rt_pg'
 make[4]: *** [Makefile:76: ../../raster/rt_pg/rtpostgis_drop.sql] Error 2
 make[4]: *** Deleting file '../../raster/rt_pg/rtpostgis_drop.sql'
 make[4]: Leaving directory
 '/build/postgis-3.5.0~beta1+dfsg/extensions/postgis'
 make[3]: *** [Makefile:36: all] Error 1
 make[3]: Leaving directory '/build/postgis-3.5.0~beta1+dfsg/extensions'
 make[2]: *** [GNUmakefile:34: all] Error 1
 make[2]: Leaving directory '/build/postgis-3.5.0~beta1+dfsg'
 make[1]: *** [debian/rules:129: override_dh_auto_build] Error 2
 make[1]: Leaving directory '/build/postgis-3.5.0~beta1+dfsg'
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5779#comment:5>
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