Skip to content

Autotools: Use runstatedir for var/run directory#16064

Closed
petk wants to merge 1 commit intophp:masterfrom
petk:patch-2-runstatedir
Closed

Autotools: Use runstatedir for var/run directory#16064
petk wants to merge 1 commit intophp:masterfrom
petk:patch-2-runstatedir

Conversation

@petk
Copy link
Copy Markdown
Member

@petk petk commented Sep 25, 2024

This removes duplicate substituted variables in FPM SAPI. The php_fpm_sysconfdir is the same as EXPANDED_SYSCONFDIR and php_fpm_localstatedir is the same as EXPANDED_LOCALSTATEDIR, which are already done in the configure.ac.

Instead of hardcoding the var/run directory, the runstatedir can be used (configured also via the --runstatedir configure option). By default, the runstatedir is ${localstatedir}/run.

This removes duplicate substituted variables in FPM SAPI. The
php_fpm_sysconfdir is the same as EXPANDED_SYSCONFDIR and
php_fpm_localstatedir is the same as EXPANDED_LOCALSTATEDIR, which are
already done in the configure.ac.

Instead of hardcoding the var/run directory, the runstatedir can be
used (configured also via the `--runstatedir` configure option). By
default, the runstatedir is `${localstatedir}/run`.
@petk
Copy link
Copy Markdown
Member Author

petk commented Sep 25, 2024

Ah. This is only for Autoconf 2.70 and later. As Autoconf minimum version will be probably bumped later on due to that C minimum standard issue, then this can be synced also then.

@petk petk marked this pull request as draft September 25, 2024 20:13
@petk
Copy link
Copy Markdown
Member Author

petk commented Apr 30, 2026

I think I don't need this. In CMake-based build system patching of these FPM config files is done anyway so even if there is run directory hardcoded, it doesn't cause much issues. And those config files are templates to be heavily further adjusted anyway when using FPM, so I'll just close this one.

@petk petk closed this Apr 30, 2026
@petk petk deleted the patch-2-runstatedir branch April 30, 2026 20:44
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.

2 participants