summaryrefslogtreecommitdiff
path: root/archivers/php85-phar/files
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--archivers/php85-phar/files/patch-config.m411
-rw-r--r--archivers/php85-phar/files/patch-phar__internal.h18
-rw-r--r--archivers/php85-phar/files/patch-pharzip.h19
3 files changed, 48 insertions, 0 deletions
diff --git a/archivers/php85-phar/files/patch-config.m4 b/archivers/php85-phar/files/patch-config.m4
new file mode 100644
index 000000000000..13ba9cf818b4
--- /dev/null
+++ b/archivers/php85-phar/files/patch-config.m4
@@ -0,0 +1,11 @@
+--- config.m4.orig 2025-07-01 21:58:05 UTC
++++ config.m4
+@@ -32,8 +32,4 @@ if test "$PHP_PHAR" != "no"; then
+ PHP_ADD_EXTENSION_DEP(phar, spl)
+ PHP_ADD_MAKEFILE_FRAGMENT
+
+- AC_CONFIG_FILES([
+- $ext_dir/phar.1
+- $ext_dir/phar.phar.1
+- ])
+ fi
diff --git a/archivers/php85-phar/files/patch-phar__internal.h b/archivers/php85-phar/files/patch-phar__internal.h
new file mode 100644
index 000000000000..8e78b1e703f8
--- /dev/null
+++ b/archivers/php85-phar/files/patch-phar__internal.h
@@ -0,0 +1,18 @@
+--- phar_internal.h.orig 2025-08-19 05:47:26 UTC
++++ phar_internal.h
+@@ -17,6 +17,9 @@
+ +----------------------------------------------------------------------+
+ */
+
++#ifndef PHAR_PHAR_INTERNAL_H
++#define PHAR_PHAR_INTERNAL_H
++
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
+@@ -487,3 +490,5 @@ END_EXTERN_C()
+ phar_path_check_result phar_path_check(char **p, size_t *len, const char **error);
+
+ END_EXTERN_C()
++
++#endif /* PHAR_PHAR_INTERNAL_H */
diff --git a/archivers/php85-phar/files/patch-pharzip.h b/archivers/php85-phar/files/patch-pharzip.h
new file mode 100644
index 000000000000..5e0e89f2a844
--- /dev/null
+++ b/archivers/php85-phar/files/patch-pharzip.h
@@ -0,0 +1,19 @@
+--- pharzip.h.orig 2025-08-19 05:41:37 UTC
++++ pharzip.h
+@@ -17,6 +17,10 @@
+ +----------------------------------------------------------------------+
+ */
+
++/* Add missing include guard to avoid multiple inclusion */
++#ifndef PHAR_PHARZIP_H
++#define PHAR_PHARZIP_H
++
+ typedef struct _phar_zip_file_header {
+ char signature[4]; /* local file header signature 4 bytes (0x04034b50) */
+ char zipversion[2]; /* version needed to extract 2 bytes */
+@@ -238,3 +242,5 @@ typedef struct _phar_zip_dir_end {
+ char comment_len[2]; /* .ZIP file comment length 2 bytes */
+ /* .ZIP file comment (variable size) */
+ } phar_zip_dir_end;
++
++#endif /* PHAR_PHARZIP_H */