[postgis-tickets] [PostGIS] #5521: make clean does not drop the sql/ dirs

PostGIS trac at osgeo.org
Fri Sep 1 01:48:37 PDT 2023


#5521: make clean does not drop the sql/ dirs
-----------------------------------+---------------------------
 Reporter:  strk                   |      Owner:  strk
     Type:  defect                 |     Status:  new
 Priority:  medium                 |  Milestone:  PostGIS 3.4.1
Component:  build/upgrade/install  |    Version:  3.4.x
 Keywords:                         |
-----------------------------------+---------------------------
 If you happen to build postgis in source tree and then want to build
 elsewhere, running {{{ make distclean }}} will set you in trouble as it
 will leave a few empty sql/ directory in the source tree so then when
 building in a build tree the VPATH will think 'sql' target exists and not
 create it again, resulting in errors like
 {{{
 root at 5fc637b9a827:/postgis/postgis/build/pg12/extensions/postgis# make
 sql/postgis_for_extension.sql
 /usr/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I./../../postgis
 ../../../../extensions/postgis/../../postgis/postgis.sql.in >
 sql/postgis_for_extension.sql.tmp
 /bin/sh: 1: cannot create sql/postgis_for_extension.sql.tmp: Directory
 nonexistent
 }}}

 We'd better remove those empty directories too on {{{ make clean }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5521>
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