1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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"
}
|