#5542 closed defect (fixed)

../../doc/postgis_comments.sql: No such file or directory

Reported by: ImreSamu Owned by: strk
Priority: medium Milestone: PostGIS 3.5.0
Component: build Version: master
Keywords: docbook5 docker-postgis Cc: ImreSamu

Description (last modified by ImreSamu)

The recent updates to the master version of PostGIS related to 'docbook5' caused a building problem in the Docker PostGIS master images. ( postgis/postgis:15-master ) An error message showed up, saying a certain file couldn't be found.

cat: ../../doc/postgis_comments.sql: No such file or directory

Ideally, there should've been a warning about missing components, or no error at all.

The issue was resolved by including the following building components:

  • docbook-xml ( correction ! )
  • docbook5-xml ( correction 2. )
  • libxml2-utils

patch/workaround: https://github.com/postgis/docker-postgis/pull/359/commits/b1591edf1351ea3141934d3996253e84686afcc0

original log:

#17 173.8 	| /usr/bin/perl ../../utils/create_extension_unpackage.pl postgis >> sql/raster_unpackage.sql
#17 173.8 /usr/bin/perl ../../utils/create_upgrade.pl sql/postgis_for_extension.sql > sql/postgis_upgrade_for_extension.sql.in
#17 173.8 sed -ne '/UNPACKAGE_CODE/{s///; :a' -e 'n;p;ba' -e '}' \
#17 173.8 	./unpackage_raster_if_needed.sql  >> sql/raster_unpackage.sql
#17 173.8 printf '\\echo Use "CREATE EXTENSION postgis" to load this file. \\quit\n' > sql/postgis--3.5.0dev.sql
#17 173.8 cat sql/postgis_for_extension.sql ../../doc/postgis_comments.sql sql/spatial_ref_sys_config_dump.sql sql/spatial_ref_sys.sql >> sql/postgis--3.5.0dev.sql
#17 173.8 cat: ../../doc/postgis_comments.sql: No such file or directory
#17 173.8 make[2]: *** [Makefile:95: sql/postgis--3.5.0dev.sql] Error 1
#17 173.8 make[2]: *** Deleting file 'sql/postgis--3.5.0dev.sql'
#17 173.8 make[2]: *** Waiting for unfinished jobs....
#17 173.8 make[2]: Leaving directory '/usr/src/postgis/extensions/postgis'
#17 173.9 make[1]: Leaving directory '/usr/src/postgis/extensions'
#17 173.9 make[1]: *** [Makefile:29: all] Error 1
#17 173.9 make: *** [GNUmakefile:25: all] Error 1

Change History (10)

comment:1 by ImreSamu, 14 months ago

update:

To resolve the issue, only the following two packages are needed:

  • docbook5-xml ( correction 2 )
  • libxml2-utils
Last edited 14 months ago by ImreSamu (previous) (diff)

comment:2 by ImreSamu, 14 months ago

Description: modified (diff)

comment:3 by ImreSamu, 14 months ago

sorry ..

only "libxml2-utils" is important

comment:4 by ImreSamu, 14 months ago

Description: modified (diff)

comment:5 by ImreSamu, 14 months ago

Summary: docbook5 | ../../doc/postgis_comments.sql: No such file or directory../../doc/postgis_comments.sql: No such file or directory

comment:6 by Sandro Santilli <strk@…>, 14 months ago

In 2739e48/git:

Disable extensions if comments cannot be built due to missing xmllint

References #5542

comment:7 by Sandro Santilli <strk@…>, 14 months ago

In 644797a9/git:

Do not check documentation on make check if deps are not met

References #5536 #5542

comment:8 by Sandro Santilli <strk@…>, 14 months ago

In bfaab76/git:

Check for xml checking validation deps at configure time

References #5536 #5542

comment:9 by strk, 13 months ago

ImreSamu is this still a problem for you ?

comment:10 by strk, 12 months ago

Resolution: fixed
Status: newclosed

Assuming the problem was fixed, feel free to reopen if it wasn't.

Note: See TracTickets for help on using tickets.