forked from kiss-community/repo
core: Added fakeroot.
This commit is contained in:
parent
e7af3420cb
commit
9c8c6a5a7f
15
core/fakeroot/build
Executable file
15
core/fakeroot/build
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
patch -p1 < silence-dlerror.patch
|
||||
patch -p0 < fakeroot-no64.patch
|
||||
patch -p0 < fakeroot-stdint.patch
|
||||
|
||||
export CONFIG_SHELL=/bin/sh
|
||||
export CFLAGS="-D_STAT_VER=0 $CFLAGS"
|
||||
|
||||
ac_cv_func_capset=no \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-static
|
||||
|
||||
make DESTDIR="$1" install
|
4
core/fakeroot/checksums
Normal file
4
core/fakeroot/checksums
Normal file
@ -0,0 +1,4 @@
|
||||
009cd6696a931562cf1c212bb57ca441a4a2d45cd32c3190a35c7ae98506f4f6 fakeroot_1.23.orig.tar.xz
|
||||
347f6496c93ed0d91dcb554db92602b50520a16308e3b8bc33822bd69966267b silence-dlerror.patch
|
||||
4fd7a4c8d05dd71414c3e82887780b76d93f599944260c41d769cb463e660bbf fakeroot-no64.patch
|
||||
1b0be39e41ce78116de4db7aed1b025a64427d780f666a860ed30ad1512588ad fakeroot-stdint.patch
|
1
core/fakeroot/depends
Normal file
1
core/fakeroot/depends
Normal file
@ -0,0 +1 @@
|
||||
linux-headers make
|
17
core/fakeroot/patches/fakeroot-no64.patch
Normal file
17
core/fakeroot/patches/fakeroot-no64.patch
Normal file
@ -0,0 +1,17 @@
|
||||
--- libfakeroot.c.orig
|
||||
+++ libfakeroot.c
|
||||
@@ -81,12 +81,14 @@
|
||||
#define SEND_STAT64(a,b,c) send_stat64(a,b,c)
|
||||
#define SEND_GET_STAT(a,b) send_get_stat(a,b)
|
||||
#define SEND_GET_STAT64(a,b) send_get_stat64(a,b)
|
||||
+#define SEND_GET_XATTR(a,b,c) send_get_xattr(a,b,c)
|
||||
#define SEND_GET_XATTR64(a,b,c) send_get_xattr64(a,b,c)
|
||||
#else
|
||||
#define SEND_STAT(a,b,c) send_stat(a,b)
|
||||
#define SEND_STAT64(a,b,c) send_stat64(a,b)
|
||||
#define SEND_GET_STAT(a,b) send_get_stat(a)
|
||||
#define SEND_GET_STAT64(a,b) send_get_stat64(a)
|
||||
+#define SEND_GET_XATTR(a,b,c) send_get_xattr(a,b)
|
||||
#define SEND_GET_XATTR64(a,b,c) send_get_xattr64(a,b)
|
||||
#endif
|
||||
|
34
core/fakeroot/patches/fakeroot-stdint.patch
Normal file
34
core/fakeroot/patches/fakeroot-stdint.patch
Normal file
@ -0,0 +1,34 @@
|
||||
--- faked.c.orig
|
||||
+++ faked.c
|
||||
@@ -514,11 +514,11 @@
|
||||
|
||||
#ifdef FAKEROOT_DB_PATH
|
||||
if (find_path(i->buf.dev, i->buf.ino, roots, path))
|
||||
- fprintf(f,"mode=%llo,uid=%llu,gid=%llu,nlink=%llu,rdev=%llu %s\n",
|
||||
+ fprintf(f,"mode=%"PRIo64",uid=%"PRIu64",gid=%"PRIu64",nlink=%"PRIu64",rdev=%"PRIu64" %s\n",
|
||||
(uint64_t) i->buf.mode,(uint64_t) i->buf.uid,(uint64_t) i->buf.gid,
|
||||
(uint64_t) i->buf.nlink,(uint64_t) i->buf.rdev,path);
|
||||
#else
|
||||
- fprintf(f,"dev=%llx,ino=%llu,mode=%llo,uid=%llu,gid=%llu,nlink=%llu,rdev=%llu\n",
|
||||
+ fprintf(f,"dev=%"PRIx64",ino=%"PRIu64",mode=%"PRIo64",uid=%"PRIu64",gid=%"PRIu64",nlink=%"PRIu64",rdev=%"PRIu64"\n",
|
||||
(uint64_t) i->buf.dev,(uint64_t) i->buf.ino,(uint64_t) i->buf.mode,
|
||||
(uint64_t) i->buf.uid,(uint64_t) i->buf.gid,(uint64_t) i->buf.nlink,
|
||||
(uint64_t) i->buf.rdev);
|
||||
@@ -544,7 +544,7 @@
|
||||
|
||||
while(1){
|
||||
#ifdef FAKEROOT_DB_PATH
|
||||
- r=scanf("mode=%llo,uid=%llu,gid=%llu,nlink=%llu,rdev=%llu "DB_PATH_SCAN"\n",
|
||||
+ r=scanf("mode=%"PRIo64",uid=%"PRIu64",gid=%"PRIu64",nlink=%"PRIu64",rdev=%"PRIu64" "DB_PATH_SCAN"\n",
|
||||
&stmode, &stuid, &stgid, &stnlink, &strdev, &path);
|
||||
if (r != 6)
|
||||
break;
|
||||
@@ -559,7 +559,7 @@
|
||||
stdev = path_st.st_dev;
|
||||
stino = path_st.st_ino;
|
||||
#else
|
||||
- r=scanf("dev=%llx,ino=%llu,mode=%llo,uid=%llu,gid=%llu,nlink=%llu,rdev=%llu\n",
|
||||
+ r=scanf("dev=%"PRIx64",ino=%"PRIu64",mode=%"PRIo64",uid=%"PRIu64",gid=%"PRIu64",nlink=%"PRIu64",rdev=%"PRIu64"\n",
|
||||
&stdev, &stino, &stmode, &stuid, &stgid, &stnlink, &strdev);
|
||||
if (r != 7)
|
||||
break;
|
17
core/fakeroot/patches/silence-dlerror.patch
Normal file
17
core/fakeroot/patches/silence-dlerror.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/libfakeroot.c b/libfakeroot.c
|
||||
index f867758..7ef6e47 100644
|
||||
--- a/libfakeroot.c
|
||||
+++ b/libfakeroot.c
|
||||
@@ -256,10 +256,12 @@ void load_library_symbols(void){
|
||||
/* clear dlerror() just in case dlsym() legitimately returns NULL */
|
||||
msg = dlerror();
|
||||
*(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
|
||||
+#ifdef LIBFAKEROOT_DEBUGGING
|
||||
if ( (msg = dlerror()) != NULL){
|
||||
fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
|
||||
/* abort ();*/
|
||||
}
|
||||
+#endif /* LIBFAKEROOT_DEBUGGING */
|
||||
}
|
||||
}
|
||||
|
4
core/fakeroot/sources
Normal file
4
core/fakeroot/sources
Normal file
@ -0,0 +1,4 @@
|
||||
https://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.23.orig.tar.xz
|
||||
patches/silence-dlerror.patch
|
||||
patches/fakeroot-no64.patch
|
||||
patches/fakeroot-stdint.patch
|
1
core/fakeroot/version
Normal file
1
core/fakeroot/version
Normal file
@ -0,0 +1 @@
|
||||
1.23 1
|
@ -1,3 +1,4 @@
|
||||
fakeroot
|
||||
file
|
||||
git
|
||||
rsync
|
||||
|
Loading…
Reference in New Issue
Block a user