Skip to content

Added recipes to build UnixODBC, PHP's odbc extension and PHP's pdo_odbc extension - #29

Merged
dgodd merged 1 commit into
cloudfoundry:masterfrom
dmikusa:php-add-odbc
Jul 21, 2017
Merged

Added recipes to build UnixODBC, PHP's odbc extension and PHP's pdo_odbc extension#29
dgodd merged 1 commit into
cloudfoundry:masterfrom
dmikusa:php-add-odbc

Conversation

@dmikusa

@dmikusa dmikusa commented Jul 20, 2017

Copy link
Copy Markdown

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.

…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.
@cfdreddbot

Copy link
Copy Markdown

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.

@cf-gitbot

Copy link
Copy Markdown

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.

@dgodd
dgodd merged commit fc8daea into cloudfoundry:master Jul 21, 2017
dgodd pushed a commit that referenced this pull request Jul 24, 2017
This reverts commit fc8daea, reversing
changes made to 6ff094e.
dgodd pushed a commit that referenced this pull request Jul 25, 2017
bonfilsd pushed a commit to orange-cloudfoundry/binary-builder that referenced this pull request Oct 12, 2017
Added recipes to build UnixODBC, PHP's odbc extension and PHP's pdo_odbc extension
bonfilsd pushed a commit to orange-cloudfoundry/binary-builder that referenced this pull request Oct 12, 2017
…dd-odbc"

This reverts commit fc8daea, reversing
changes made to 6ff094e.
bonfilsd pushed a commit to orange-cloudfoundry/binary-builder that referenced this pull request Oct 12, 2017
…al/php-add-odbc""

This reverts commit db75205.

[#149227375]
aduffeck pushed a commit to SUSE/cf-binary-builder that referenced this pull request Feb 22, 2018
…al/php-add-odbc""

This reverts commit db75205.

[#149227375]
tnikolova82 added a commit that referenced this pull request Mar 4, 2026
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants