You are not logged in.
I want to make a general purpose media wiki based on stash-box but first I have to make it run. I would like to install it with a PKGBUILD.
I'm getting an error in build right now:
make: *** [Makefile:27: build] Error 2
==> ERROR: A failure occurred in build().
Aborting...
pkgname=stash-box-git
pkgver=1.r377.35c65644.BETA
pkgrel=1
pkgdesc="Stash App's own OpenSource video indexing and Perceptual Hashing MetaData API"
arch=('any')
url="https://github.com/stashapp/stash-box"
license=('MIT')
depends=() # ?? requires 'go' and 'yarn' to build and 'postgresql' to run
provides=('stash-box')
source=("git+${url}")
sha256sums=('SKIP')
pkgver() {
cd stash-box
printf "1.r%s.%s.BETA" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd stash-box
make pre-ui
make ui
make build
}
package() {
cd stash-box
install -Dm755 stash-box "${pkgdir}/usr/bin/stash-box"
}
Last edited by linuxscoop (2022-08-09 17:23:57)
Offline
Incase you're using some aur helper, try building with makepkg first to verify the aur helper is not part of the problem.
Your build() function has 3 make commands, on which of those does it fail ?
Please add --log to your makepkg command and post the content of the files that produces .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
rm -rf ~/.cache/yay/stash-box
mkdir -p ~/.cache/yay/stash-box
cd ~/.cache/yay/stash-box
Add PKGBUILD and install
makepkg -si --log
stash-box-git-1.r377.35c65644.BETA-1-x86_64-build.log
stash-box-git-1.r377.35c65644.BETA-1-x86_64-pkgver.log
1.r377.35c65644.BETA
Last edited by linuxscoop (2022-08-10 13:53:12)
Offline
Try with options=('!makeflags').
Offline
Same error.
Offline
stash-box doesn't build with nodejs 18, have to makedepeend on a nodejs lts version.
Add
makedepends=('yarn' 'git' 'nodejs-lts-gallium' 'go')
to the PKGBUILD.
The command where things fail is
go build $(OUTPUT) -v -ldflags "$(LDFLAGS) $(EXTRA_LDFLAGS)"
Check https://wiki.archlinux.org/title/Go_pac … ld_options for a possible solution to the error,.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
Oh wow. I'll take a look at some go PKGBUILDs to see if I can figure it out.
Offline