Package Details: sqlar-fossil 4824e73896-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
Licenses: Public Domain
Conflicts: sqlar
Provides: sqlar
Submitter: ido50
Maintainer: ido50 (tee)
Last Packager: tee
Votes: 2
Popularity: 0.000000
First Submitted: 2021-04-08 11:39 (UTC)
Last Updated: 2026-06-09 09:19 (UTC)

Latest Comments

ido50 commented on 2026-06-09 08:42 (UTC)

Hi @tee, thanks for offering to help. I gave you co-maintainer.

tee commented on 2026-06-09 06:08 (UTC)

some useful updates:

1.

you can remove package() and add:

source=("fossil+https://sqlite.org/sqlar")
sha1sums=(SKIP)

that way we won't have to make a new clone on each clean build.

2.

CFLAGS="$CFLAGS ..."

include CFLAGS in CFLAGS so that the CFLAGS in /etc/makepkg.conf is respected.

3.

change the last line to install -Dm755 sqlar sqlarfs -t "${pkgdir}/usr/bin/" then you won't need to mkdir /usr/bin first.

4.

you don't need to makedepends on gcc and make because that is required by base-devel which is a prerequisite for AUR usage.

I can co-maintain to add these changes if you want.

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.