Package Details: spek 0.8.5-2

Git Clone URL: https://aur.archlinux.org/spek.git (read-only, click to copy)
Package Base: spek
Description: An acoustic spectrum analyser
Upstream URL: http://spek.cc/
Licenses: GPL3
Submitter: sushidude
Maintainer: petronny (AutoUpdateBot)
Last Packager: petronny
Votes: 53
Popularity: 0.081646
First Submitted: 2015-08-12 05:45 (UTC)
Last Updated: 2025-03-18 09:31 (UTC)

Latest Comments

1 2 3 Next › Last »

Kyuunex commented on 2025-05-09 12:01 (UTC)

does not build.

autoreconf: running: aclocal --force 
configure.ac:71: warning: macro 'AM_GNU_GETTEXT_VERSION' not found in library
configure.ac:72: warning: macro 'AM_GNU_GETTEXT' not found in library
autoreconf: configure.ac: tracing
configure.ac: warning: AM_GNU_GETTEXT_VERSION or AM_GNU_GETTEXT_REQUIRE_VERSION is used, but not AM_GNU_GETTEXT
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force 
configure.ac:71: warning: macro 'AM_GNU_GETTEXT_VERSION' not found in library
configure.ac:72: warning: macro 'AM_GNU_GETTEXT' not found in library
autoreconf: running: /usr/bin/autoconf --force
configure.ac:12: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:12: You should run autoupdate.
aclocal.m4:122: AC_PROG_LIBTOOL is expanded from...
configure.ac:12: the top level
configure.ac:71: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:72: error: possibly undefined macro: AM_GNU_GETTEXT
autoreconf: error: /usr/bin/autoconf failed with exit status: 1
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'spek-0.8.5-2': 
error: packages failed to build: spek-0.8.5-2

dakataca commented on 2025-03-03 21:58 (UTC)

Update PKGBUID please:

# Mantainer: Michał Przybyś <michal@przybys.eu>
pkgname=spek
pkgver=0.8.5
pkgrel=1
pkgdesc='An acoustic spectrum analyser'
arch=(x86_64)
url='http://spek.cc/'
license=(GPL3)
depends=(ffmpeg wxwidgets-gtk3)
makedepends=(autoconf automake libtool gettext)
source=("https://github.com/alexkay/spek/archive/v${pkgver}.tar.gz")
sha256sums=('9053d2dec452dcde421daa0f5f59a9dee47927540f41d9c0c66800cb6dbf6996')

prepare() {
    cd "spek-${pkgver}"
    # Obtener la versión actual de gettext usando tu método mejorado
    GETTEXT_VERSION=$(gettext --version | sed -En '/gettext/ s/^.*runtime\) //p')
    # Actualizar la versión en configure.ac
    sed -i "s/AM_GNU_GETTEXT_VERSION(\[[0-9]\+\.[0-9]\+\])/AM_GNU_GETTEXT_VERSION([$GETTEXT_VERSION])/" configure.ac
}

build() {
    cd "spek-${pkgver}"
    export CXXFLAGS="$(pkg-config --cflags-only-I libavutil)"
    ./autogen.sh --with-wx-config=/usr/bin/wx-config --prefix=/usr
    make
}

package() {
    cd "spek-${pkgver}"
    make DESTDIR="${pkgdir}" install
}

d2a2 commented on 2025-02-14 20:36 (UTC) (edited on 2025-02-23 09:50 (UTC) by d2a2)

I have the same problem as hippieben. I modified the PKGBUILD to build from the release tarball, using the provided configure script instead of generating one with autogen:

https://0x0.st/8NAd.txt

It builds and runs in a clean chroot for me. There's a missing icon assertion when running the binary but otherwise appears to function as normal.

EDIT: I bumped the version of gettext to 0.23 in configure.ac and the build succeeded. Run this before running autogen.sh in the PKGBUILD:

sed -i 's/AM_GNU_GETTEXT_VERSION(\[0.21\])/AM_GNU_GETTEXT_VERSION([0.23])/' configure.ac

Still getting those wxWidgets assertion errors though.

hippieben commented on 2025-02-13 03:43 (UTC)

Does not build. The solution posted by rgambord did not help.

rgambord commented on 2025-01-13 21:12 (UTC) (edited on 2025-01-13 21:24 (UTC) by rgambord)

fix for @d2a2's issue,

edit the PKGBUILD to re-gettextize the package,

build() {
    cd "$srcdir/$pkgname"
    expect -c 'spawn gettextize --force; send "\r"; expect eof'
    autoreconf -ivf
    ./autogen.sh --prefix=/usr
    make
}

Note, the gettextize script explicitly polls for user input via /dev/tty. I used `expect' to handle that non-interactively.

d2a2 commented on 2025-01-07 07:53 (UTC) (edited on 2025-01-07 07:57 (UTC) by d2a2)

Building both this package and spek-git in a chroot fails with the same error:

make[1]: Entering directory '/build/spek/src/spek-0.8.5'
...
make[2]: Leaving directory '/build/spek/src/spek-0.8.5/man'
Making all in po
make[2]: Entering directory '/build/spek/src/spek-0.8.5/po'
*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.20 but the autoconf macros are from gettext version 0.22
make[2]: *** [Makefile:243: stamp-po] Error 1
make[2]: Leaving directory '/build/spek/src/spek-0.8.5/po'
make[1]: *** [Makefile:481: all-recursive] Error 1
make[1]: Leaving directory '/build/spek/src/spek-0.8.5'
make: *** [Makefile:407: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

I checked out the install guide on the upstream repo and building from the git repo fails too, but not building from the tarball. The last commit was two years ago so maybe it's a problem with upstream?

ToadKing commented on 2024-06-06 22:31 (UTC)

Any package that's a part of base-devel should be omitted from make dependencies since it's assumed you have it installed when building anything from AUR. (Or pacman packages in general.)

https://wiki.archlinux.org/title/PKGBUILD#makedepends

rien333 commented on 2024-06-06 16:56 (UTC)

Everyone getting errors regarding autoconf/automake: these are very fundamental packages for building *nix software. They are also part of base-devel, a package you should probably have around if you are using the AUR.

In other words: this package is not out of date. At best, it needs to have more dependencies in the makedepends array.

mosgerila commented on 2023-06-14 10:11 (UTC)

To resolve the error it is necessary to install autoconf. $ sudo pacman -Syu autoconf

mosgerila commented on 2023-06-12 11:30 (UTC)

Hello! Nobody here??? ==> Starting build()... ./autogen.sh: line 9: autoreconf: command not found ==> ERROR: A failure occurred in build(). Aborting...