summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/arcanist-lib/Makefile1
-rw-r--r--devel/arcanist-lib/files/patch-src_parser_ArcanistBundle.php20
-rw-r--r--devel/arcanist-lib/files/patch-src_toolset_workflow_ArcanistVersionWorkflow.php (renamed from devel/arcanist-lib/files/patch-src-toolset-workflow-ArcanistVersionWorkflow.php)0
3 files changed, 21 insertions, 0 deletions
diff --git a/devel/arcanist-lib/Makefile b/devel/arcanist-lib/Makefile
index 3be58fea6b70..3f2065d8d138 100644
--- a/devel/arcanist-lib/Makefile
+++ b/devel/arcanist-lib/Makefile
@@ -1,5 +1,6 @@
PORTNAME?= arcanist
PORTVERSION?= 20220518
+PORTREVISION?= 1
CATEGORIES?= devel
PKGNAMESUFFIX= ${SLAVE_PKGNAMESUFFIX}${PHP_PKGNAMESUFFIX}
diff --git a/devel/arcanist-lib/files/patch-src_parser_ArcanistBundle.php b/devel/arcanist-lib/files/patch-src_parser_ArcanistBundle.php
new file mode 100644
index 000000000000..095e1b24ee81
--- /dev/null
+++ b/devel/arcanist-lib/files/patch-src_parser_ArcanistBundle.php
@@ -0,0 +1,20 @@
+--- src/parser/ArcanistBundle.php.orig 2022-09-08 16:04:09 UTC
++++ src/parser/ArcanistBundle.php
+@@ -762,7 +762,7 @@ final class ArcanistBundle extends Phobject {
+ $old_data = $this->getBlob($old_phid, $name);
+ }
+
+- $old_length = strlen($old_data);
++ $old_length = strlen($old_data ?? '');
+
+ // Here, and below, the binary will be emitted with base85 encoding. This
+ // encoding encodes each 4 bytes of input in 5 bytes of output, so we may
+@@ -795,7 +795,7 @@ final class ArcanistBundle extends Phobject {
+ $new_data = $this->getBlob($new_phid, $name);
+ }
+
+- $new_length = strlen($new_data);
++ $new_length = strlen($new_data ?? '');
+ $this->reserveBytes($new_length * 5 / 4);
+
+ if ($new_data === null) {
diff --git a/devel/arcanist-lib/files/patch-src-toolset-workflow-ArcanistVersionWorkflow.php b/devel/arcanist-lib/files/patch-src_toolset_workflow_ArcanistVersionWorkflow.php
index e76384bac69e..e76384bac69e 100644
--- a/devel/arcanist-lib/files/patch-src-toolset-workflow-ArcanistVersionWorkflow.php
+++ b/devel/arcanist-lib/files/patch-src_toolset_workflow_ArcanistVersionWorkflow.php