diff --git a/core/fakeroot/build b/core/fakeroot/build new file mode 100755 index 00000000..f1c9ba00 --- /dev/null +++ b/core/fakeroot/build @@ -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 diff --git a/core/fakeroot/checksums b/core/fakeroot/checksums new file mode 100644 index 00000000..1a3c34f7 --- /dev/null +++ b/core/fakeroot/checksums @@ -0,0 +1,4 @@ +009cd6696a931562cf1c212bb57ca441a4a2d45cd32c3190a35c7ae98506f4f6 fakeroot_1.23.orig.tar.xz +347f6496c93ed0d91dcb554db92602b50520a16308e3b8bc33822bd69966267b silence-dlerror.patch +4fd7a4c8d05dd71414c3e82887780b76d93f599944260c41d769cb463e660bbf fakeroot-no64.patch +1b0be39e41ce78116de4db7aed1b025a64427d780f666a860ed30ad1512588ad fakeroot-stdint.patch diff --git a/core/fakeroot/depends b/core/fakeroot/depends new file mode 100644 index 00000000..1f97bc3a --- /dev/null +++ b/core/fakeroot/depends @@ -0,0 +1 @@ +linux-headers make diff --git a/core/fakeroot/patches/fakeroot-no64.patch b/core/fakeroot/patches/fakeroot-no64.patch new file mode 100644 index 00000000..03f70ef4 --- /dev/null +++ b/core/fakeroot/patches/fakeroot-no64.patch @@ -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 + diff --git a/core/fakeroot/patches/fakeroot-stdint.patch b/core/fakeroot/patches/fakeroot-stdint.patch new file mode 100644 index 00000000..fa4abbd3 --- /dev/null +++ b/core/fakeroot/patches/fakeroot-stdint.patch @@ -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; diff --git a/core/fakeroot/patches/silence-dlerror.patch b/core/fakeroot/patches/silence-dlerror.patch new file mode 100644 index 00000000..a4472d8f --- /dev/null +++ b/core/fakeroot/patches/silence-dlerror.patch @@ -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 */ + } + } + diff --git a/core/fakeroot/sources b/core/fakeroot/sources new file mode 100644 index 00000000..91c46888 --- /dev/null +++ b/core/fakeroot/sources @@ -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 diff --git a/core/fakeroot/version b/core/fakeroot/version new file mode 100644 index 00000000..843b2ed1 --- /dev/null +++ b/core/fakeroot/version @@ -0,0 +1 @@ +1.23 1 diff --git a/core/kiss/depends b/core/kiss/depends index e8219517..9683f43f 100644 --- a/core/kiss/depends +++ b/core/kiss/depends @@ -1,3 +1,4 @@ +fakeroot file git rsync