[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-grass-general] Re: DebianGis: Packaging postgis/geos



On Fri, November 19, 2004 15:49, Steve Halasz said:
> Roberto,
>
> Sorry about the libgeos2 rename. I messed up according to policy and had
> to change it.
>
> To get the package to build I also had to make a few scripts executable:
> -rwxr-xr-x  1 steve steve  730 Nov 14 17:57 mkinstalldirs
> -rwxr-xr-x  1 steve steve 8.7K Nov 14 17:57 postgis_build
> -rwxr-xr-x  1 steve steve  870 Nov 14 17:57 postgis_clean
> -rwxr-xr-x  1 steve steve 1.5K Nov 14 17:57 postgis_install
>
> The built package though doesn't contain the libraries:
> # dpkg -L postgis
> /.
> /usr
> /usr/lib
> /usr/lib/postgresql
> /usr/lib/postgresql/bin
> /usr/lib/postgresql/lib
> /usr/share
> /usr/share/doc
> /usr/share/doc/postgis
> /usr/share/doc/postgis/TODO
> /usr/share/doc/postgis/html
> /usr/share/doc/postgis/html/style.css
> /usr/share/doc/postgis/html/postgis.html
> /usr/share/doc/postgis/README.Debian
> /usr/share/doc/postgis/README.postgis.gz
> /usr/share/doc/postgis/copyright
> /usr/share/doc/postgis/examples
> /usr/share/doc/postgis/examples/wkb_reader
> /usr/share/doc/postgis/examples/wkb_reader/Makefile
> /usr/share/doc/postgis/examples/wkb_reader/README
> /usr/share/doc/postgis/examples/wkb_reader/readwkb.c.gz
> /usr/share/doc/postgis/examples/wkb_reader/printwkb.inc.gz
> /usr/share/doc/postgis/examples/ogc_test_suite
> /usr/share/doc/postgis/examples/ogc_test_suite/3_cleanup.sql
> /usr/share/doc/postgis/examples/ogc_test_suite/2_queries.sql.gz
> /usr/share/doc/postgis/examples/ogc_test_suite/README
> /usr/share/doc/postgis/examples/ogc_test_suite/1_schema.sql.gz
> /usr/share/doc/postgis/changelog.gz
> /usr/share/doc/postgis/CREDITS
> /usr/share/doc/postgis/changelog.Debian.gz
> /usr/share/postgresql
>
> It looks like they got built in the main postgis-0.9.0 directory, but
> were never installed to postgis-0.9.0/debian/postgis
>
> The problem seems to be this line of debian/postgis_install:
> ${PACKAGE_ROOT}/debian/mkinstalldirs /usr/share/doc/postgresql/contrib
> /usr/share/postgresql/contrib /usr/lib
>
> If I comment that out things get installed ok. I haven't had time to
> check if it actually works or conforms to policy though. I think you may
> have missed the above problems by building the package as root? I build
> as a regular user with dpkg-buildpackage -rfakeroot. I don't know if the
> maintainer guide suggests this only since it can be done by a user
> without root access or if there are other reasons.
>

FWIW, I can confirm that building as root I didn't have all these problems:

$ dpkg -L postgis

/.
/usr
/usr/share
/usr/share/postgresql
/usr/share/postgresql/postgis.sql
/usr/share/postgresql/postgis_undef.sql
/usr/share/postgresql/spatial_ref_sys.sql
/usr/share/postgresql/README.postgis
/usr/share/doc
/usr/share/doc/postgis
/usr/share/doc/postgis/TODO
/usr/share/doc/postgis/CREDITS
/usr/share/doc/postgis/html
/usr/share/doc/postgis/html/postgis.html
/usr/share/doc/postgis/html/style.css
/usr/share/doc/postgis/README.Debian
/usr/share/doc/postgis/copyright
/usr/share/doc/postgis/examples
/usr/share/doc/postgis/examples/ogc_test_suite
/usr/share/doc/postgis/examples/ogc_test_suite/3_cleanup.sql
/usr/share/doc/postgis/examples/ogc_test_suite/README
/usr/share/doc/postgis/examples/ogc_test_suite/1_schema.sql.gz
/usr/share/doc/postgis/examples/ogc_test_suite/2_queries.sql.gz
/usr/share/doc/postgis/examples/wkb_reader
/usr/share/doc/postgis/examples/wkb_reader/Makefile
/usr/share/doc/postgis/examples/wkb_reader/README
/usr/share/doc/postgis/examples/wkb_reader/printwkb.inc.gz
/usr/share/doc/postgis/examples/wkb_reader/readwkb.c.gz
/usr/share/doc/postgis/changelog.Debian.gz
/usr/share/doc/postgis/changelog.gz
/usr/share/doc/postgis/README.postgis.gz
/usr/lib
/usr/lib/postgresql
/usr/lib/postgresql/bin
/usr/lib/postgresql/bin/pgsql2shp
/usr/lib/postgresql/bin/shp2pgsql
/usr/lib/postgresql/lib
/usr/lib/postgresql/lib/libpostgis.so.0.9
/usr/lib/postgresql/lib/libpostgis.so
/usr/lib/postgresql/lib/libpostgis.so.0

Moritz





Reply to: