Bug 344255

Summary: PostgreSQL driver dependencies not found on Kexi configure stage
Product: [Applications] KEXI Reporter: phil.tagada
Component: KexiDBAssignee: Kexi Bugs <kexi-bugs>
Status: CLOSED UPSTREAM    
Severity: normal CC: adam, inksi, staniek
Priority: NOR    
Version: 2.9.5   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: more search dirs

Description phil.tagada 2015-02-16 20:38:53 UTC
cmake don't find Postgres when Postgres is installed with "postgresql-9.3.4-3-linux-x64.run" installer (http://www.enterprisedb.com/products-services-training/pgdownload)

Postgres is installed in /opt/PostgreSQL/9.3

Reproducible: Always



Expected Results:  
Add a file "FindProgreSQL.cmake" in cmake/modules to find postgres install
Comment 1 Jarosław Staniek 2015-02-16 21:29:12 UTC
Hi, thanks for the report.
We're using FindCalligraPostgreSQL.cmake (in SOURCEDIR/cmake/modules/FindCalligraPostgreSQL.cmake) to be independent of possible outdated FindPostgreSQL.cmake.

Our macro finds three required elements, my values for example:
PostgreSQL_INCLUDE_DIR:PATH=/usr/include/pgsql
PostgreSQL_LIBRARY:FILEPATH=/usr/lib64/libpq.so
PostgreSQL_TYPE_INCLUDE_DIR:PATH=/usr/include/pgsql/server
Comment 2 Jarosław Staniek 2015-02-16 21:34:33 UTC
Created attachment 91115 [details]
more search dirs

Could you please try this patch?
Comment 3 Jarosław Staniek 2015-02-18 23:35:42 UTC
If we find solution before Saturday it can go to 2.9.0. If not, 2.9.1.
Comment 4 Jarosław Staniek 2015-06-10 14:26:07 UTC
Setting for 2.9.5 as it's still not fixed. Waiting for more info.
Comment 5 Jarosław Staniek 2016-11-01 21:42:57 UTC
kdb.git/cmake/modules/FindPostgreSQL.cmake (3.0) and kexi.git/cmake/modules/FindKexiPostgreSQL.cmake (3.0) now contain PostgreSQL_KNOWN_VERSIONS variable that supports up to 9.6. These tests are used now so closing this bug.

Feel free to reopen if there are further issues.