summaryrefslogtreecommitdiff
path: root/homebrew/fakeroot/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/fakeroot/patches.sh')
-rwxr-xr-xhomebrew/fakeroot/patches.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/homebrew/fakeroot/patches.sh b/homebrew/fakeroot/patches.sh
new file mode 100755
index 000000000..0f02ef758
--- /dev/null
+++ b/homebrew/fakeroot/patches.sh
@@ -0,0 +1,16 @@
+wget https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=0001-Implement-openat-2-wrapper-which-handles-optional-ar.patch;att=1;bug=766649
+wget https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=0002-OS-X-10.10-introduced-id_t-int-in-gs-etpriority.patch;att=2;bug=766649
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+index 15fdd1d..29d738d 100644
+--- a/libfakeroot.c
++++ b/libfakeroot.c
+@@ -2446,6 +2446,6 @@ int openat(int dir_fd, const char *pathname, int flags, ...)
+ va_end(args);
+ return next_openat(dir_fd, pathname, flags, mode);
+ }
+- return next_openat(dir_fd, pathname, flags);
++ return next_openat(dir_fd, pathname, flags, NULL);
+ }
+ #endif
+EOF