Ticket #14 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Need to embed tinyows in the fgs environment

Reported by: nsavard Owned by: nsavard
Priority: blocker Version: SVN
Keywords: fgs,configure Cc: adube@…
Triage Stage: Unreviewed State of Approval: Proposed
Attached Patches: Code Complexity: Unknown
Compatibility: Unknown Specification: Unnecessary

Description

To be able to build tinyows as a fgs package we need to specify the libxml2 and postgresql location in the fgs built environment. For that configure.in and Makefile.in have to be modified to allow a user to set the path to these headers and library directories.

To specify the path to tinyows configuration and schema files during an fgs installation, we have to modify the following files:

src/ows_define.h.in src/ows/ows.c src/ows/ows_request.c src/ows_api.h

The best approach here is to create two environment variables. TINYOWS_SCHEMA_DIR will be the path to the schema files and TINYOWS_CONFIG_FILE will point out to the XML configuration file. Each constant define in ows_define.h.in for the schema files have been split in two components: the complete path and the end of the path corresponding to the XSD file.

I created two functions named "ows_get_schema_path" and "ows_get_config_path" in ows.c. Each function first checks if the environment variable is set. If this is the case the value of this variable is assigned to the return variable. If the environment variable is not set, the value of the constant, defined in ows_define.h.in, pointing to the full path of the file (config.xml or xxx.xsd) is used.

These functions are called in ows_usage(), main() and ows_request_check().

Attachments

tinyows_conf.patch (10.3 kB) - added by nsavard 3 years ago.
patch to build tinyows as a fgs package

Change History

Changed 3 years ago by nsavard

patch to build tinyows as a fgs package

  Changed 3 years ago by nsavard

  • cc adube@… added

follow-up: ↓ 3   Changed 3 years ago by nsavard

  • owner set to nsavard
  • approval changed from Unnecessary to Proposed

Olivier: Can I apply this patch?

in reply to: ↑ 2   Changed 3 years ago by ol

Replying to nsavard:

Olivier: Can I apply this patch?

Yeap go on ! :)

  Changed 3 years ago by nsavard

  • status changed from new to closed
  • resolution set to fixed

Applied path in svn.

Note: See TracTickets for help on using tickets.