git: 4a72f0e04218 - main - devel/tup: correctly detect endianness
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Aug 2022 21:16:40 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=4a72f0e0421858d2e55e81e89d9b29a7d1a57530 commit 4a72f0e0421858d2e55e81e89d9b29a7d1a57530 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-08-09 21:15:26 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-08-09 21:16:35 +0000 devel/tup: correctly detect endianness Fixes build on powerpc64le: bootstrap LD tup -fstack-protector-strong -lm SQL error: database disk image is malformed Query was: create table node (id integer primary key not null, dir integer not null, type integer not null, mtime integer not null, srcid integer not null, name varchar(4096), display varchar(4096), flags varchar(256), unique(dir, name)) .tup repository initialized: .tup/db SQL error: database disk image is malformed Query was: create table node (id integer primary key not null, dir integer not null, type integer not null, mtime integer not null, srcid integer not null, name varchar(4096), display varchar(4096), flags varchar(256), unique(dir, name)) .tup repository initialized: :memory: --- devel/tup/files/patch-src_sqlite3_sqlite3.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/devel/tup/files/patch-src_sqlite3_sqlite3.c b/devel/tup/files/patch-src_sqlite3_sqlite3.c new file mode 100644 index 000000000000..9ee90ee9bbca --- /dev/null +++ b/devel/tup/files/patch-src_sqlite3_sqlite3.c @@ -0,0 +1,12 @@ +--- src/sqlite3/sqlite3.c.orig 2022-08-09 21:05:11 UTC ++++ src/sqlite3/sqlite3.c +@@ -14487,7 +14487,8 @@ typedef INT16_TYPE LogEst; + # if defined(i386) || defined(__i386__) || defined(_M_IX86) || \ + defined(__x86_64) || defined(__x86_64__) || defined(_M_X64) || \ + defined(_M_AMD64) || defined(_M_ARM) || defined(__x86) || \ +- defined(__ARMEL__) || defined(__AARCH64EL__) || defined(_M_ARM64) ++ defined(__ARMEL__) || defined(__AARCH64EL__) || defined(_M_ARM64) || \ ++ defined(__LITTLE_ENDIAN__) + # define SQLITE_BYTEORDER 1234 + # elif defined(sparc) || defined(__ppc__) || \ + defined(__ARMEB__) || defined(__AARCH64EB__)