Skip to content

Commit 4db5249

Browse files
authored
Merge pull request #1565 from larsewi/technickcom
ENT-12565: Fixed bootstrap host after tcpdf 6.8.0 dependency upgrade
2 parents 7a92fab + 6cb6ae8 commit 4db5249

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

build-scripts/bootstrap-tarballs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ fi
9393
(
9494
if test -f "$BASEDIR/mission-portal/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php"; then
9595
cd $BASEDIR/mission-portal
96+
# The ability to use visibility modifiers on constants was added in PHP 7.1
97+
# However, the default apt repository of the bootstrap host currently
98+
# provides PHP 7.0. Thus, we need to remove the visibility modifiers from
99+
# this file to avoid syntax errors. See ENT-12565. We can remove this line
100+
# once the default apt repository provides a version >= 7.1
101+
sed -i 's/protected const/const/g' ./vendor/tecnickcom/tcpdf/include/tcpdf_static.php
102+
96103
# Add Red Hat Text font to TCPDF library that we use in Mission Portal for PDF generation
97104
php ./vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php -i ./public/themes/default/bootstrap/cfengine/font/rht/RedHatText-Regular.ttf
98105
php ./vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php -i ./public/themes/default/bootstrap/cfengine/font/rht/RedHatText-Bold.ttf

ci/cfengine-build-host-setup.cf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ bundle agent cfengine_build_host_setup
5252
(debian_10|debian_11).systemssl_build_host::
5353
"libssl-dev";
5454
debian.bootstrap_pr_host::
55+
"php-curl"; # Required by tecnickcom/tcpdf 6.8.0
5556
"librsync-dev"; # bootstrap_pr host needs this to run configure and make dist
5657

5758
# I attempted to arrange these packages in order of: generic (all versions) and then as if we gradually added them through time: rhel-6, 7, 8, 9...

0 commit comments

Comments
 (0)