[5.3] build.php Bug fix and stability improvements#45622
Merged
rdeutz merged 5 commits intojoomla:5.3-devfrom Jun 22, 2025
Merged
[5.3] build.php Bug fix and stability improvements#45622rdeutz merged 5 commits intojoomla:5.3-devfrom
rdeutz merged 5 commits intojoomla:5.3-devfrom
Conversation
- Copying of non-existing `build/fido.jwt` file is simple deleted
- I was wondering, why do we have this error and nobody cares? Looking around I found:
- `plugins/system/webauthn/fido.jwt` file is created by `composer i`
- Which runs `php build/update_fido_cache.php`
- Which downloads the FIDO metadata about authenticators from
https://mds.fidoalliance.org into `plugins/system/webauthn/fido.jwt` file
- The line with `system('cp build/fido.jwt ' . $fullpath . '/plugins/system/webauthn/fido.jwt');`
was added on 2 Sep 2022 with c2191a7 'Joomla! 4.2.2 Stable'
- I assume this was another implementation of getting the FIDO metadata and is no more valid.
- btw, the check `file_exists 'plugins/system/webauthn/fido.jwt'` was added with 205c7a5
'Fix/38233 webauth preload fido (joomla#38664)'
- Improvement of two places where a variable was used for both the return code and the system output
- The exit codes are now checked for all system commands and the script stops in case of errors
richard67
reviewed
Jun 19, 2025
In deed it it true, ob_start is no longer needed. thx
Before this commit, the zip commands displayed every added file. Before joomla#45535, the output of the zip command with all added file names was suppressed by redirecting stdout to /dev/null. The same behaviour is now restored with the -q option.
Contributor
Author
|
@tecpromotion May I ask you to test with macOS? |
Contributor
|
I have tested this item ✅ successfully on ef8e99f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45622.
Run build command
|
Member
|
I have tested this item ✅ successfully on 2732677
What I could not verify is the effect of the This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45622. |
Member
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45622. |
Contributor
|
Thanks |
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.



Summary of Changes
This is a follow-up to #45535 and was discussed in maintainer meeting 11 June 2025.
build/fido.jwtfile is simple deletedplugins/system/webauthn/fido.jwtfile is created bycomposer iphp build/update_fido_cache.phpplugins/system/webauthn/fido.jwtfilesystem('cp build/fido.jwt ' . $fullpath . '/plugins/system/webauthn/fido.jwt');was added on 2 Sep 2022 with c2191a7 'Joomla! 4.2.2 Stable'file_exists 'plugins/system/webauthn/fido.jwt'was added with 205c7a5 'Fix/38233 webauth preload fido (Fix/38233 webauth preload fido #38664)'/dev/null. The same behaviour is now restored with the -q option.Testing Instructions
php build/build.phpphp build/build.php --remote=HEADsystem_and_checkcall and hack an error in, e.g. changecomposertocomposerXXXand check the script stopspassthru()replacement e.g. changewhich gitwithwhich cheesecakeand check the script stopscheck the latest tag from Git repository is used, e.g.
Start build for remote tags/6.0.0-alpha1.After merging this PR, we should check the nightly builds as they also use the script.
Actual result BEFORE applying this Pull Request
cp: build/fido.jwt: No such file or directoryExpected result AFTER applying this Pull Request
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed