diff options
Diffstat (limited to 'homebrew/fakeroot/.beer')
-rw-r--r-- | homebrew/fakeroot/.beer | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/homebrew/fakeroot/.beer b/homebrew/fakeroot/.beer new file mode 100644 index 000000000..4634c1834 --- /dev/null +++ b/homebrew/fakeroot/.beer @@ -0,0 +1,64 @@ +{ + "name": "Fakeroot", + "description": "Provide a fake root environment", + "url": "https://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.23.orig.tar.xz", + "mirror": null, + "homepage": "https://tracker.debian.org/pkg/fakeroot", + "depends": [], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": "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", + "strip": "1" + }, + { + "url": "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", + "strip": "1" + }, + { + "url": null, + "data": [ + "index 15fdd1d..29d738d 100644\n", + "--- a/libfakeroot.c\n", + "+++ b/libfakeroot.c\n", + "@@ -2446,6 +2446,6 @@ int openat(int dir_fd, const char *pathname, int flags, ...)\n", + " va_end(args);\n", + " return next_openat(dir_fd, pathname, flags, mode);\n", + " }\n", + "- return next_openat(dir_fd, pathname, flags);\n", + "+ return next_openat(dir_fd, pathname, flags, NULL);\n", + " }\n", + " #endif\n" + ] + } + ], + "install": [ + "system \"./configure\", \"--disable-dependency-tracking\",", + "\"--disable-static\",", + "\"--disable-silent-rules\",", + "\"--prefix=#{prefix}\"", + "system \"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", + "system \"patch < patch-for-wraptmpf-h\"", + "system \"make\"", + "system \"make\", \"install\"" + ], + "version": "1.23", + "file": "fakeroot.rb" +}
\ No newline at end of file |