[postgis-tickets] [PostGIS] #5453: 3.4.0 beta1 does not honor --datadir

PostGIS trac at osgeo.org
Mon Jul 24 01:43:49 PDT 2023


#5453: 3.4.0 beta1 does not honor --datadir
------------------------------------+---------------------------
  Reporter:  devrimgunduz           |      Owner:  strk
      Type:  defect                 |     Status:  new
  Priority:  medium                 |  Milestone:  PostGIS 3.4.0
 Component:  build/upgrade/install  |    Version:  master
Resolution:                         |   Keywords:
------------------------------------+---------------------------
Comment (by strk):

 Can you show what exactly is attempted to be installed in /usr/share ?
 From which directory ?
 The loader/ directory, which installs the .desktop and icon files, seem to
 respect the given --datadir for me:
 {{{
 [strk at c19:/usr/local/src/postgis/postgis/loader(main)] make install
 mkdir -p /tmp/pgis-share/applications
 /usr/bin/install -c -m 644 shp2pgsql-gui.desktop /tmp/pgis-
 share/applications/shp2pgsql-gui.desktop
 for size in 8x8 16x16 22x22 24x24 32x32 36x36 40x40 42x42 48x48 64x64; do
 \
         mkdir -p /tmp/pgis-share/icons/hicolor/${size}/apps; \
         /usr/bin/install -c -m 644 ./icons/hicolor/${size}/apps/shp2pgsql-
 gui.png /tmp/pgis-share/icons/hicolor/${size}/apps/shp2pgsql-gui.png; \
 done
 /bin/bash ../libtool --mode=install /usr/bin/install -c shp2pgsql-gui
 "/tmp/pgis/bin/shp2pgsql-gui"
 libtool: install: /usr/bin/install -c shp2pgsql-gui /tmp/pgis/bin
 /shp2pgsql-gui
 /bin/bash ../libtool --mode=install /usr/bin/install -c pgsql2shp
 "/tmp/pgis/bin/pgsql2shp"
 libtool: install: /usr/bin/install -c pgsql2shp /tmp/pgis/bin/pgsql2shp
 /bin/bash ../libtool --mode=install /usr/bin/install -c shp2pgsql
 "/tmp/pgis/bin/shp2pgsql"
 libtool: install: /usr/bin/install -c shp2pgsql /tmp/pgis/bin/shp2pgsql
 /bin/bash ../libtool --mode=install /usr/bin/install -c postgis
 "/tmp/pgis/bin/postgis"
 libtool: install: /usr/bin/install -c postgis /tmp/pgis/bin/postgis
 }}}

 The above happens when I configure with --prefix=/tmp/pgis --datadir=/tmp
 /pgis-share

 I confirm we do not default to PG directories now, except for the
 extension files
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5453#comment:2>
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