Pin xlswriter to 1.5.8 on Debian Jessie#1291
Open
Teko012 wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
Seems like it's again an unrelated pipeline failure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The nightly "Test recent" run for
masteris failing on Debian Jessie for bothphp:7.0-cli-jessieandphp:7.1-cli-jessie. See run 26323217533 — "Check on jessie".Root cause
xlswriter 2.0.0 (the current PECL
stable) introduced a newzim_vtiful_xls_nextRowRich()function inkernel/excel.cthat uses a C99-stylefor (int i = …)declaration:Debian Jessie ships GCC 4.9, which still defaults to
gnu89and rejects loop-initial declarations. GCC 5+ (Stretch and later, all Alpines we test) defaults tognu11, so every other distro in the matrix builds 2.0.0 fine — the failure is Jessie-only.Fix
Same pattern that is already used for
xmldiffa few lines below in the same file: when no explicit version is requested and we are ondebian@8, pin xlswriter to the last 1.x release,1.5.8. Theenable-reader yesconfigure option (added by xlswriter 1.2.7+) keeps working since 1.5.8 is well above that threshold.xlswriter) installRemoteModule_version="$(resolvePeclStabilityVersion "$installRemoteModule_module" "$installRemoteModule_version")" if test -z "$installRemoteModule_version"; then case "$DISTRO_VERSION" in debian@8) # The gcc version of Debian Jessie is too old => error: 'for' loop initial declarations are only allowed in C99 or C11 mode installRemoteModule_version=1.5.8 ;; esac fi …Notes / scope
debian@8. Other distros continue to install whatever the user (or PECL) considers current.install-php-extensions xlswriter-2.0.0— the pin only kicks in when no version is supplied (matching thexmldiffbehavior).-std=gnu99intoCFLAGSfor xlswriter on Jessie, but version pinning is consistent with the existing precedent in this file and keeps the change minimal.