Package Details: libfastjson-git 1.2304.0.r5.gf1983a8-1

Git Clone URL: https://aur.archlinux.org/libfastjson-git.git (read-only, click to copy)
Package Base: libfastjson-git
Description: A performance-focused json library for C
Upstream URL: https://github.com/rsyslog/libfastjson
Licenses: GPL
Submitter: ilovemikael
Maintainer: ilovemikael
Last Packager: ilovemikael
Votes: 0
Popularity: 0.000000
First Submitted: 2026-04-23 08:37 (UTC)
Last Updated: 2026-04-23 08:37 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

harre commented on 2026-07-22 18:48 (UTC) (edited on 2026-07-22 18:50 (UTC) by harre)

build fails

...
:: (1/1) Parsing SRCINFO: libfastjson-git
==> Making package: libfastjson-git 1.2304.0.r5.gf1983a8-1 (Wed 22 Jul 2026 20:45:07 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating libfastjson git repo...
==> Validating source files with sha256sums...
    libfastjson ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of libfastjson git repo...
Cloning into 'libfastjson'...
done.
==> Starting pkgver()...
/home/markus/.cache/yay/libfastjson-git/PKGBUILD: line 12: cd: libfastjson-git: No such file or directory
==> ERROR: A failure occurred in pkgver().
    Aborting...
 -> error making: libfastjson-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
libfastjson-git - exit status 4

with this fix we get another roadblock

1 markus@staropramen /data/code/aur-packages/libfastjson-git (git)-[master] % git diff
diff --git a/PKGBUILD b/PKGBUILD
index b7f1547..2cd1377 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,5 @@
 pkgname=libfastjson-git
+_pkgname=libfastjson
 pkgver=1.2304.0.r5.gf1983a8
 pkgrel=1
 pkgdesc="A performance-focused json library for C"
@@ -9,18 +10,18 @@ source=(git+https://github.com/rsyslog/libfastjson)
 sha256sums=('SKIP')

 pkgver() {
-  cd "$pkgname"
+  cd "$_pkgname"
   git describe --long --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
 } 

 build() {
-  cd "$pkgname"
+  cd "$_pkgname"
   autoreconf -fvi
   ./configure --prefix=/usr
   make
 }

 package() {
-  cd "$pkgname"
+  cd "$_pkgname"
   make DESTDIR="$pkgdir/" install
 }
make[1]: Entering directory '/data/code/aur-packages/libfastjson-git/src/libfastjson'
Making all in .
make[2]: Entering directory '/data/code/aur-packages/libfastjson-git/src/libfastjson'
  CC       libfastjson_la-json_object.lo
  CC       libfastjson_internal_la-arraylist.lo
arraylist.c: In function 'array_list_new':
arraylist.c:34:49: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
   34 |         if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) {
      |                                                 ^~~~
arraylist.c:34:49: note: earlier argument should specify number of elements, later size of each element
json_object.c: In function 'fjson_object_new':
json_object.c:217:78: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  217 |         struct fjson_object *const jso = (struct fjson_object*)calloc(sizeof(struct fjson_object), 1);
      |                                                                              ^~~~~~
json_object.c:217:78: note: earlier argument should specify number of elements, later size of each element
cc1: all warnings being treated as errors
make[2]: *** [Makefile:634: libfastjson_internal_la-arraylist.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[2]: *** [Makefile:662: libfastjson_la-json_object.lo] Error 1
make[2]: Leaving directory '/data/code/aur-packages/libfastjson-git/src/libfastjson'
make[1]: *** [Makefile:754: all-recursive] Error 1
make[1]: Leaving directory '/data/code/aur-packages/libfastjson-git/src/libfastjson'
make: *** [Makefile:482: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
makepkg -si  12.20s user 3.66s system 96% cpu 16.360 total