You are not logged in.

#1 2022-08-09 16:28:02

linuxscoop
Member
Registered: 2022-08-09
Posts: 26

[REQUEST] stash-box-git

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

#2 2022-08-10 11:47:43

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [REQUEST] stash-box-git

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

#3 2022-08-10 13:51:36

linuxscoop
Member
Registered: 2022-08-09
Posts: 26

Re: [REQUEST] stash-box-git

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

#4 2022-08-10 18:25:20

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [REQUEST] stash-box-git

Try with options=('!makeflags').

Offline

#5 2022-08-10 20:47:22

linuxscoop
Member
Registered: 2022-08-09
Posts: 26

Re: [REQUEST] stash-box-git

Same error.

Offline

#6 2022-08-11 09:36:58

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [REQUEST] stash-box-git

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

#7 2022-08-11 17:29:49

linuxscoop
Member
Registered: 2022-08-09
Posts: 26

Re: [REQUEST] stash-box-git

Oh wow. I'll take a look at some go PKGBUILDs to see if I can figure it out.

Offline

Board footer

Powered by FluxBB