Created
October 21, 2014 10:20
-
-
Save rasky/88fdf719d732e78a6fe0 to your computer and use it in GitHub Desktop.
Tentative patch for brew fakeroot on Yosemite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Library/Formula/fakeroot.rb b/Library/Formula/fakeroot.rb | |
index fecde7e..ecf8b94 100644 | |
--- a/Library/Formula/fakeroot.rb | |
+++ b/Library/Formula/fakeroot.rb | |
@@ -9,6 +9,8 @@ class Fakeroot < Formula | |
depends_on :automake | |
depends_on :libtool | |
+ patch :DATA | |
+ | |
def install | |
system "./bootstrap" | |
system "./configure", "--disable-dependency-tracking", | |
@@ -21,3 +23,18 @@ class Fakeroot < Formula | |
assert_equal "root", shell_output("#{bin}/fakeroot whoami").strip | |
end | |
end | |
+ | |
+__END__ | |
+diff --git a/wrapfunc.inp b/wrapfunc.inp | |
+index 5629b0f..8e916a6 100644 | |
+--- a/wrapfunc.inp | |
++++ b/wrapfunc.inp | |
+@@ -157,7 +157,7 @@ fchownat;int;(int dir_fd, const char *path, uid_t owner, gid_t group, int flags) | |
+ mkdirat;int;(int dir_fd, const char *pathname, mode_t mode);(dir_fd, pathname, mode) | |
+ #endif /* HAVE_MKDIRAT */ | |
+ #ifdef HAVE_OPENAT | |
+-openat;int;(int dir_fd, const char *pathname, int flags);(dir_fd, pathname, flags) | |
++openat;int;(int dir_fd, const char *pathname, int flags, ...); | |
+ #endif /* HAVE_OPENAT */ | |
+ #ifdef HAVE_RENAMEAT | |
+ renameat;int;(int olddir_fd, const char *oldpath, int newdir_fd, const char *newpath);(olddir_fd, oldpath, newdir_fd, newpath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
↪ fakeroot sh | |
dyld: Symbol not found: _my_openat | |
Referenced from: /usr/local/Cellar/fakeroot/1.18.4/lib/libfakeroot.dylib | |
Expected in: flat namespace | |
in /usr/local/Cellar/fakeroot/1.18.4/lib/libfakeroot.dylib | |
/usr/local/bin/fakeroot: line 181: 86296 Trace/BPT trap: 5 FAKEROOTKEY=$FAKEROOTKEY DYLD_INSERT_LIBRARIES="$LIB" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment