Skip to content

Add temporary "freetype-config" workaround for PHP 7.3, 7.2, and 7.1 on buster #869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

tianon
Copy link
Member

@tianon tianon commented Jul 19, 2019

See:

This is not necessary for Debian Stretch (where freetype-config still exists) nor PHP 7.4+ (where pkg-config is used instead/in addition).

Closes #865

…on buster

See:

- docker-library#865
- https://bugs.php.net/bug.php?id=76324
- php/php-src#3632
- php/php-src@2d03197

This is not necessary for Debian Stretch (where `freetype-config` still exists) nor PHP 7.4+ (where `pkg-config` is used instead/in addition).
@tianon
Copy link
Member Author

tianon commented Jul 19, 2019

I verified this hack works as intended via the following patch to drupal:

diff --git a/8.7/apache/Dockerfile b/8.7/apache/Dockerfile
index 5c0d588..24654f5 100644
--- a/8.7/apache/Dockerfile
+++ b/8.7/apache/Dockerfile
@@ -1,7 +1,9 @@
 # from https://www.drupal.org/docs/8/system-requirements/drupal-8-php-requirements
-FROM php:7.3-apache-stretch
+FROM php:7.3-apache-buster
 # TODO switch to buster once https://github.com/docker-library/php/issues/865 is resolved in a clean way (either in the PHP image or in PHP itself)
 
+RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
+
 # install the PHP extensions we need
 RUN set -eux; \
        \

(Which would otherwise fail without applying this workaround.)

@yosifkit yosifkit merged commit a74d01a into docker-library:master Jul 22, 2019
@yosifkit yosifkit deleted the freetype-config branch July 22, 2019 21:46
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jul 22, 2019
Changes:

- docker-library/php@a74d01a: Merge pull request docker-library/php#869 from infosiftr/freetype-config
- docker-library/php@a0ce8af: Add temporary "freetype-config" workaround for PHP 7.3, 7.2, and 7.1 on buster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installing gd on buster results in freetype-config not found
2 participants