Package Details: sqlar-fossil 0ab1c6f50f-1

Git Clone URL: https://aur.archlinux.org/sqlar-fossil.git (read-only, click to copy)
Package Base: sqlar-fossil
Description: Compressed archives in SQLite databases, including a fuse filesystem
Upstream URL: https://sqlite.org/sqlar/doc/trunk/README.md
Licenses: Public Domain
Conflicts: sqlar
Provides: sqlar
Submitter: ido50
Maintainer: ido50
Last Packager: ido50
Votes: 2
Popularity: 0.000003
First Submitted: 2021-04-08 11:39 (UTC)
Last Updated: 2024-09-17 02:26 (UTC)

Dependencies (5)

Required by (0)

Sources (0)

Latest Comments

ido50 commented on 2024-09-17 02:27 (UTC)

Thanks a lot sorcix, fixed and pushed.

sorcix commented on 2024-09-16 12:16 (UTC)

When building in a clean chroot, this fails with:

==> Starting prepare()...
cannot determine user
Cannot figure out who you are!  Consider using the --user
command line option, setting your USER environment variable,
or setting a default user with "fossil user default USER".

Adding --user anonymous to the clone command in PKGBUILD fixes it.

Next error was:

sqlarfs.c:10:10: fatal error: fuse.h: No such file or directory
   10 | #include <fuse.h>
      |          ^~~~~~~~
compilation terminated.
make: *** [Makefile:18: sqlarfs] Error 1

Adding fuse2 to makedepends in PKGBUILD fixed this one.

ido50 commented on 2023-10-03 10:09 (UTC)

Thanks a lot, fixed and updated.

paulieg commented on 2023-10-03 02:22 (UTC) (edited on 2023-10-03 02:24 (UTC) by paulieg)

This fails to compile with the included sqlite3.c amalgamation with current gcc:

sqlite3.c:103150:3: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
103150 |   if( pIdx->pPartIdxWhere!=0 ) a[0] -= 10;  assert( 10==sqlite3LogEst(2) );

Generally speaking, people have been fixing this by using the sqlite3.c amalgamation produced by make sqlite3.c from the main repo. However, this would complicate the PKGBUILD as written, so here's a better solution.

Add the following to the value of CFLAGS in the build() stage:

CFLAGS="-Wno-misleading-indentation -Wno-return-local-addr -O2"

The latter two are not strictly necessary, but it turns on optimisation which is inexplicably turned off and silences a spurious warning resulting from it.