I've just updated to MacOS ventura 13.0.1. How do I get composer update to work?

The version of patch

 patch -v
 patch 2.0-12u11-Apple

The patch file is there

cat /var/folders/q4/6fm4gd05575d6snq43_pcggm0000gn/T/63830c0849b7b.patch 
--- Mail/mime.php   2020-06-27 18:35:27.000000000 +1000
+++ Mail/mime.php   2020-07-25 08:36:14.570334621 +1000
@@ -1527,6 +1527,9 @@
             $this->{$type} .= $data;
+        // wordwrap the txtbody to be 750 characters to comply with RFC 2821
+        // CRM-3133
+        $this->{$type} = wordwrap($this->{$type}, 750);
         return true;

If I run the command manually there is a prompt for 'file to patch'

% patch -p1 --no-backup-if-mismatch -d  /Users/jrobens/Sites/electrifyingbradfield/vendor/pear/mail_mime < '/var/folders/q4/6fm4gd05575d6snq43_pcggm0000gn/T/63830c0849b7b.patch'

File to patch: ^C% 

The man page provides 2 scenarios

 patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory] [-g vcs-option] [-F max-fuzz] [-i patchfile] [-o out-file] [-p strip-count]
     [-r rej-name] [-T | -Z] [-V t | nil | never | none] [-x number] [-Y prefix] [-> z backup-ext] [--quoting-style style] [--posix] [origfile [patchfile]]

patch <patchfile

This works

patch -d vendor/pear/mail_mime < '/var/folders/q4/6fm4gd05575d6snq43_pcggm0000gn/T/63830c0849b7b.patch'

patching file 'Mail/mime.php'

Adding -p1 does not

1 Answer 1


Installing gpatch is the solution recommended here. The symptoms are the same, the process freezes waiting for input on 'which file to patch'.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.