From 0d37a1ef234c38b27faba43bc3a22f985d311deb Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 17 May 2023 17:01:27 +0100 Subject: Remove all firmware --- repo/fakeroot/fix-format.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 repo/fakeroot/fix-format.patch (limited to 'repo/fakeroot/fix-format.patch') diff --git a/repo/fakeroot/fix-format.patch b/repo/fakeroot/fix-format.patch new file mode 100644 index 0000000..8f86396 --- /dev/null +++ b/repo/fakeroot/fix-format.patch @@ -0,0 +1,25 @@ +Fakeroot defines custom fake_dev_t/fake_ino_t as uint64_t +but doesn't use the PRIu64 format specifier from inttypes.h +to print them thereby relying on a specific representation +of these types. + +diff -upr fakeroot-1.27.orig/faked.c fakeroot-1.27/faked.c +--- fakeroot-1.27.orig/faked.c 2022-01-17 21:37:21.000000000 +0100 ++++ fakeroot-1.27/faked.c 2022-01-30 11:36:59.963019225 +0100 +@@ -121,6 +121,7 @@ + #include + #include + #include ++#include + #ifdef HAVE_STDINT_H + # include + #endif +@@ -687,7 +688,7 @@ int load_database(const uint32_t remote) + /* */ + /*********************************/ + void debug_stat(const struct fakestat *st){ +- fprintf(stderr,"dev:ino=(%llx:%lli), mode=0%lo, own=(%li,%li), nlink=%li, rdev=%lli\n", ++ fprintf(stderr,"dev:ino=(%"PRIx64":%"PRIu64"), mode=0%lo, own=(%li,%li), nlink=%li, rdev=%"PRIu64"\n", + st->dev, + st->ino, + (long)st->mode, -- cgit v1.2.1