summaryrefslogtreecommitdiff
path: root/homebrew/fakeroot/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/fakeroot/.make.sh-auto')
-rw-r--r--homebrew/fakeroot/.make.sh-auto22
1 files changed, 22 insertions, 0 deletions
diff --git a/homebrew/fakeroot/.make.sh-auto b/homebrew/fakeroot/.make.sh-auto
new file mode 100644
index 000000000..3862cc250
--- /dev/null
+++ b/homebrew/fakeroot/.make.sh-auto
@@ -0,0 +1,22 @@
+pkg:setup
+pkg:configure --disable-dependency-tracking --disable-static --disable-silent-rules
+make wraptmpf.h
+(buildpath/"patch-for-wraptmpf-h").write <<~EOS
+diff --git a/wraptmpf.h b/wraptmpf.h
+index dbfccc9..0e04771 100644
+--- a/wraptmpf.h
++++ b/wraptmpf.h
+@@ -575,6 +575,10 @@ static __inline__ int next_mkdirat (int dir_fd, const char *pathname, mode_t mod
+#endif /* HAVE_MKDIRAT */
+#ifdef HAVE_OPENAT
+extern int openat (int dir_fd, const char *pathname, int flags, ...);
++static __inline__ int next_openat (int dir_fd, const char *pathname, int flags, mode_t mode) __attribute__((always_inline));
++static __inline__ int next_openat (int dir_fd, const char *pathname, int flags, mode_t mode) {
++ return openat (dir_fd, pathname, flags, mode);
++}
+#endif /* HAVE_OPENAT */
+#ifdef HAVE_RENAMEAT
+EOS
+patch < patch-for-wraptmpf-h
+make
+make DESTDIR=${PKG_DEST} install