You are not logged in.
So, I wanted to install artanis, I found out it was orphaned, so I cloned and modified PKGBUILD and adopted it ![]()
the original copy
─$ cat PKGBUILD
# Maintainer: LS-Shandong < ls-shandong at outlook dot com >
# Contributor: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Aditya Naik <nikeadilfc at gmail dot com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=artanis
pkgver=1.2.2
pkgrel=5
pkgdesc="A fast monolithic web-framework of Scheme"
url="https://artanis.dev/"
depends=('guile>=3.0.5' 'guile-curl' 'guile-redis' 'guile-json' 'nss' 'texinfo')
optdepends=('guile-dbi: A simple, generic, easy-to-use guile scheme interface to SQL databases, such as Postgres, MySQL or SQLite3'
'guile-dbd-sqlite3: The dbd plugin connects to an actual SQLite database server.'
'guile-dbd-postgresql: The dbd plugin connects to an actual PostgreSQL database server.'
'guile-dbd-mysql: The dbd plugin connects to an actual MySQL database server.')
arch=('x86_64' 'aarch64')
license=('GPL3' 'LGPL3')
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz{,.sig})
sha256sums=('F8EA894C28F8D69A747485D083CAAB8B4FF06C97C64122905BAB1C3084D17904' '1B93C0C6A0B6FD579CA57DAC2B4D24D6966E1E4313447A19421733B34E7C1628')
validpgpkeys=(F53B4C5695B5E4D56093432484696772846A0058)
options=('!strip')
build() {
cd $pkgname-$pkgver
./autogen.sh –no-configure
./configure --prefix=/usr
make
sed -i -e '219,220s/^/#/' -e "227s/^#/$(echo -e '\t')/" Makefile
sed -i '64,67!b;66b;s/true/false/g' build-aux/gendocs.sh
make docs
}
check() {
cd $pkgname-$pkgver
export GUILE_LOAD_PATH=$GUILE_LOAD_PATH:.
guile -c '(display (@ (artanis artanis) artanis-version))'
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm755 "$pkgdir"/bin/art "$pkgdir"/usr/bin/art
rm -rf "$pkgdir"/bin
}I wasn't entirely sure why the previous maintainer was running autogen.sh / autoreconf, as it was aborting the build on my end with AC_LIB_LINKFLAGS_FROM_LIBS errors
like release tarballs include the pre-generated configure scripts, I completely removed that step...
the current version I bumped after multiple iteration
# Maintainer: atvknox <atvknox at gmail dot com>
# Contributor: LS-Shandong <ls-shandong at outlook dot com>
# Contributor: Michał Wojdyła <micwoj9292 at gmail dot com>
# Contributor: Aditya Naik <nikeadilfc at gmail dot com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=artanis
pkgver=1.3.0
pkgrel=11
pkgdesc="A fast monolithic web-framework of Scheme"
url="https://artanis.dev/"
depends=('guile>=3.0.5' 'guile-curl' 'guile-redis' 'guile-json' 'nss')
optdepends=('guile-dbi: A simple, generic, easy-to-use guile scheme interface to SQL databases, such as Postgres, MySQL or SQLite3'
'guile-dbd-sqlite3: The dbd plugin connects to an actual SQLite database server.'
'guile-dbd-postgresql: The dbd plugin connects to an actual PostgreSQL database server.'
'guile-dbd-mysql: The dbd plugin connects to an actual MySQL database server.')
makedepends=('texinfo')
arch=('x86_64' 'aarch64')
license=('GPL-3.0-or-later' 'LGPL-3.0-or-later')
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"
"https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz.sig")
sha256sums=('f1532564383fedb7dcd47c43c0b803ec126f66543c7fb6f7c9e64f0fa8979c99'
'SKIP')
validpgpkeys=('F53B4C5695B5E4D56093432484696772846A0058')
options=('!strip')
build() {
cd "$pkgname-$pkgver"
export GUILE_AUTO_COMPILE=0
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
}
check() {
cd "$pkgname-$pkgver"
export GUILE_AUTO_COMPILE=0
export GUILE_LOAD_PATH=".:$GUILE_LOAD_PATH"
guile -q --no-auto-compile -c \
"(use-modules (artanis artanis)) (exit 0)"
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
if [ -f "$pkgdir/bin/art" ]; then
install -Dm755 "$pkgdir/bin/art" "$pkgdir/usr/bin/art"
rm -rf "$pkgdir/bin"
fi
find "$pkgdir" -name "*.go" -exec sed -i \
"s|$srcdir|/usr/src/debug/$pkgname|g" {} + 2>/dev/null || true
}what are your thoughts on this? like is this the correct approach for AUR packaging in this case, or is there a preferred way to handle autotools-related failures while still preserving upstream build consistency?
Edit:
marking as solved
Edit:
replaced w/ current code.
Last edited by 5hridhyan (2026-05-31 10:05:40)
Offline
Probably taken from https://www.gnu.org/software/artanis/ma … users.html
I guess few people would voluntarily run autoreconf if there's a working configure script.
Does the error look like https://aur.archlinux.org/packages/guil … nt-1061332 ?
https://lists.nongnu.org/archive/html/g … 00042.html ![]()
Offline
Thanks for the links, I guess it explains it well...
I had this on my feather pad like I was about to ask yesterday itself, when I bumped the version the "first" time, I saw these:
$ makepkg -sirc
==> Making package: artanis 1.3.0-1 (Sun 31 May 2026 12:51:04 AM IST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found artanis-1.3.0.tar.gz
-> Found artanis-1.3.0.tar.gz.sig
==> Validating source files with sha256sums...
artanis-1.3.0.tar.gz ... Passed
artanis-1.3.0.tar.gz.sig ... Skipped
==> Verifying source file signatures with gpg...
artanis-1.3.0.tar.gz ... Passed
==> Extracting sources...
-> Extracting artanis-1.3.0.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
aclocal -I m4
autoreconf -iv
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: no obvious need to run autopoint
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: autopoint --force
Copying file ABOUT-NLS
Copying file build-aux/config.rpath
Copying file m4/build-to-host.m4
Copying file m4/gettext.m4
Copying file m4/host-cpu-c-abi.m4
Copying file m4/iconv.m4
Copying file m4/intlmacosx.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/progtest.m4
Creating directory po
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sed
Copying file po/quot.sed
Copying file po/remove-potcdate.sed
autoreconf: running: /usr/bin/autoconf
configure:2576: error: undefined or overquoted macro: AC_LIB_LINKFLAGS_FROM_LIBS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: error: /usr/bin/autoconf failed with exit status: 1
make: *** [.Makefile.dist:6: configure] Error 1
==> ERROR: A failure occurred in build().
Aborting... so yeah, the error looks the "same"
Appreciate the help mapping out why Autotools was complaining!
Offline