mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
php8.1: Fix .so links in man pages
This commit is contained in:
parent
a223318f38
commit
fa8c3c0d08
2 changed files with 26 additions and 1 deletions
25
srcpkgs/php8.1/patches/fix-manpages.patch
Normal file
25
srcpkgs/php8.1/patches/fix-manpages.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
This patch fixes .so links in man pages.
|
||||||
|
It's needed because of the configure option -
|
||||||
|
|
||||||
|
--program-suffix=${_php_version}
|
||||||
|
|
||||||
|
The changes made by this patch should be the same as the changes made by this
|
||||||
|
block of code -
|
||||||
|
|
||||||
|
_regexp='^[[:space:]]*\.so[[:space:]]'
|
||||||
|
for file in $(grep -l -e "$_regexp" -R .); do
|
||||||
|
vsed -i "$file" -e "/$_regexp/"'s=^[[:space:]]*\.[^.]*=&'${_php_version}=
|
||||||
|
done
|
||||||
|
|
||||||
|
Where _php_version is defined in the template file.
|
||||||
|
|
||||||
|
--- a/ext/phar/phar.phar.1.in
|
||||||
|
+++ b/ext/phar/phar.phar.1.in
|
||||||
|
@@ -1 +1 @@
|
||||||
|
-.so man1/phar.1
|
||||||
|
+.so man1/phar8.1.1
|
||||||
|
--- a/sapi/cgi/php-cgi.1.in
|
||||||
|
+++ b/sapi/cgi/php-cgi.1.in
|
||||||
|
@@ -1 +1 @@
|
||||||
|
-.so man1/php.1
|
||||||
|
+.so man1/php8.1.1
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'php8.1'
|
# Template file for 'php8.1'
|
||||||
pkgname=php8.1
|
pkgname=php8.1
|
||||||
version=8.1.7
|
version=8.1.7
|
||||||
revision=2
|
revision=3
|
||||||
_php_version=8.1
|
_php_version=8.1
|
||||||
wrksrc="php-${version}"
|
wrksrc="php-${version}"
|
||||||
hostmakedepends="bison pkg-config apache-devel"
|
hostmakedepends="bison pkg-config apache-devel"
|
||||||
|
|
Loading…
Add table
Reference in a new issue