Added recipes to build UnixODBC, PHP's odbc extension and PHP's pdo_odbc extension - #29
Conversation
…dbc extension. It's a requirement to build UnixODBC from source because the version packaged with Ubuntu Trusty is older and there has been a major version change to the library. Thus any ODBC driver compiled against the newer version of UnixODBC will not be compatible with the older version. This can be removed when Ubuntu packages v2.3.0+ of UnixODBC. Because we compile UnixODBC manually and this happens after PHP is compiled, we cannot build the extensions as a part of PHP. To work around this, we copy the extension files out of the PHP source and build them like a stand-alone PECL library, after UnixODBC has been built. This causes a minor issue with the ODBC extension, which requires a small patch to its build files. See the link in the comment for more details.
|
Hey dmikusa-pivotal! Thanks for submitting this pull request! All pull request submitters and commit authors must have a Contributor License Agreement (CLA) on-file with us. Please sign the appropriate CLA (individual or corporate). When sending signed CLA please provide your github username in case of individual CLA or the list of github usernames that can make pull requests on behalf of your organization. If you are confident that you're covered under a Corporate CLA, please make sure you've publicized your membership in the appropriate Github Org, per these instructions. Once you've publicized your membership, one of the owners of this repository can close and reopen this pull request, and dreddbot will take another look. |
|
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/149227375 The labels on this github issue will be updated when the story is started. |
…dbc"" This reverts commit db75205. [#149227375]
Added recipes to build UnixODBC, PHP's odbc extension and PHP's pdo_odbc extension
…al/php-add-odbc"" This reverts commit db75205. [#149227375]
…al/php-add-odbc"" This reverts commit db75205. [#149227375]
1. Increase make parallelism from -j4 to -j$(nproc): Use all available CPU cores instead of hardcoded 4 jobs. This significantly reduces compilation time for large dependencies like Node.js (from ~1h15m to potentially <30m), reducing exposure to worker infrastructure issues. 2. Remove sudo from apt-get in python recipe: Build containers run as root, so sudo is unnecessary and may cause issues. Changes apply to both cflinuxfs4 and legacy recipe paths. Part of fix for Node.js LTS build failures in buildpacks-ci dependency-builds pipeline (#29-#33).
Notes:
It's a requirement to build UnixODBC from source because the version packaged with
Ubuntu Trusty is older and there has been a major version change to the library.
Thus any ODBC driver compiled against the newer version of UnixODBC will not be
compatible with the older version. This can be removed when Ubuntu packages v2.3.0+
of UnixODBC.
Because we compile UnixODBC manually and this happens after PHP is compiled, we cannot
build the extensions as a part of PHP. To work around this, we copy the extension
files out of the PHP source and build them like a stand-alone PECL library, after
UnixODBC has been built. This causes a minor issue with the ODBC extension, which
requires a small patch to its build files. See the link in the comment for more
details.