[pgrouting-dev] Patch for CMakeLists.txt to support more Postgres variants

Sandeep Thakkar sandeep.thakkar at enterprisedb.com
Tue Sep 6 21:19:54 PDT 2022


Hi

I created a new pull request for the same at
https://github.com/pgRouting/pgrouting/pull/2362. Can someone please review
it?

On Mon, Sep 5, 2022 at 9:41 AM Sandeep Thakkar <
sandeep.thakkar at enterprisedb.com> wrote:

> Hi,
>
> I was trying to compile pgRouting-3.3.1 against EnterpriseDB Postgres
> (EPAS) on Rocky Linux 8 instance and the build failed with the following
> error:
>
> CMake Error at CMakeLists.txt:183 (message):
>>    PostgreSQL 9.2.0 or greater is required.
>
>
> Attached is the patch for CMakeLists.txt to support additional Postgres
> variants along with community PostgreSQL. If there is a better way to
> submit the patch (https://docs.pgrouting.org/doxygen/ ?) then do let me
> know and I'll be happy to do that.
>
> --
>
>>    The current logic to get the version from the version string depends
>>     on the position (11) which may not work with other postgres variants
>>     because of the different strings they may carry like EnterpriseDB for
>>     an example.
>
>
>     So instead of string substring, use string regex match to get the
>>     version. Also, move up the code to replace the strings alpha/beta/rc
>>     a bit to support the patch
>
>
>     Tested on Linux
>
> --
>
> --
> Sandeep Thakkar
>
>
>

-- 
Sandeep Thakkar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgrouting-dev/attachments/20220907/bf0e78aa/attachment.htm>


More information about the pgrouting-dev mailing list