Skip to content

gen_stub: Update the arginfo file timestamp when generation is skipped#20891

Open
thg2k wants to merge 1 commit intophp:PHP-8.4from
thg2k:pr/stub_touch
Open

gen_stub: Update the arginfo file timestamp when generation is skipped#20891
thg2k wants to merge 1 commit intophp:PHP-8.4from
thg2k:pr/stub_touch

Conversation

@thg2k
Copy link
Copy Markdown
Contributor

@thg2k thg2k commented Jan 10, 2026

In case the script is started by the Makefile, the timestamp of the product
needs to be updated even if no changes are needed, otherwise it will be
started over and over without any effect.

@thg2k thg2k changed the base branch from master to PHP-8.4 January 10, 2026 07:44
@thg2k
Copy link
Copy Markdown
Contributor Author

thg2k commented Jan 10, 2026

What's the right target for this? I have more similar fixes to the build process coming up.

@iluuu1994 iluuu1994 requested a review from kocsismate January 10, 2026 12:01
@iluuu1994
Copy link
Copy Markdown
Member

What's the right target for this?

8.4 looks right.

Comment thread build/Makefile.global Outdated
In case the script is started by the Makefile, the timestamp of the product
needs to be updated even if no changes are needed, otherwise it will be
started over and over without any effect.
@thg2k
Copy link
Copy Markdown
Contributor Author

thg2k commented Jan 29, 2026

@TimWolla You were right, the patch was bad because it touched the file even if gen_stub failed, blocking further attempts to regenerate the file. It would have needed a "&&" instead.

I changed the PR to touch the file inside the gen_stub script instead of the Makefile.

@TimWolla
Copy link
Copy Markdown
Member

I changed the PR to touch the file inside the gen_stub script instead of the Makefile.

Thanks, can you please also adjust the PR title and description to match the new commit?

@thg2k thg2k changed the title Fix Makefile arginfo files generation rule gen_stub: Update the arginfo file timestamp when generation is skipped Jan 29, 2026
@thg2k
Copy link
Copy Markdown
Contributor Author

thg2k commented Jan 29, 2026

I changed the PR to touch the file inside the gen_stub script instead of the Makefile.

Thanks, can you please also adjust the PR title and description to match the new commit?

Sure! Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants