You are not logged in.
Hi,
I'm trying to build flactag package. It's already in AUR: https://aur.archlinux.org/packages/flactag/, but it's outdated and broken.
Here is proto-pkgbuild:
pkgname=flactag
pkgver=2.0.4
pkgrel=1
pkgdesc="Utility for tagging single album FLAC files with embedded CUE sheets using data from the MusicBrainz service"
arch=('x86_64' 'i686')
url="http://flactag.sourceforge.net/"
license=('GPL3')
depends=('libmusicbrainz5' 'libdiscid' 'flac' 'slang' 'gnutls' 'unac' 'libjpeg' 'asciidoc')
source=("http://downloads.sourceforge.net/sourceforge/flactag/$pkgname-$pkgver.tar.gz")
md5sums=('c66e110c52d4672aa1f979edfdad2fc7')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
And when I'm trying to build it I got error:
<snip/>
make all-am
make[1]: Entering directory '/home/aidan/devel/flactag/src/flactag-2.0.4'
/bin/sh ./libtool --tag=CXX --mode=link g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro -o flactag flactag.o Album.o Track.o AlbumWindow.o TrackWindow.o FlacInfo.o TagName.o TagsWindow.o CuesheetTrack.o Cuesheet.o DiscIDWrapper.o base64.o ScrollableWindow.o ConfigFile.o MusicBrainzInfo.o FileNameBuilder.o ErrorLog.o CommandLine.o CoverArt.o UTF8Tag.o WriteInfo.o -ldiscid -lneon -lslang -lmusicbrainz5 -lFLAC++ -lunac -ljpeg
libtool: link: g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o flactag flactag.o Album.o Track.o AlbumWindow.o TrackWindow.o FlacInfo.o TagName.o TagsWindow.o CuesheetTrack.o Cuesheet.o DiscIDWrapper.o base64.o ScrollableWindow.o ConfigFile.o MusicBrainzInfo.o FileNameBuilder.o ErrorLog.o CommandLine.o CoverArt.o UTF8Tag.o WriteInfo.o -ldiscid /usr/lib/libneon.so -lslang -lmusicbrainz5 -lFLAC++ -lunac -ljpeg
/usr/bin/ld: FlacInfo.o: undefined reference to symbol 'FLAC__Metadata_ChainStatusString'
/usr/lib/libFLAC.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:567: recipe for target 'flactag' failed
make[1]: *** [flactag] Error 1
make[1]: Leaving directory '/home/aidan/devel/flactag/src/flactag-2.0.4'
Makefile:465: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I've found some information at Debian maillist: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713645
This is a bug in libflac++-dev: Chain::Status::as_cstring uses
FLAC__Metadata_ChainStatusString which is in libFLAC. Since the function
is inline, every program calling this function must also link with
-lflac, but this is missing in flac++.pc. There are two ways to fix
this: implement Chain::Status::as_cstring in such a way that the caller
does not need to link with -lflac or add -lflac to the pkg-config file.
But it looks a bit cryptic for non-c++ dev. And it seems that in Debian they have patched 'flac' package instead of 'flactag'.
Last edited by diffycat (2014-01-19 07:17:17)
Offline
i would change the pkgver to 2.04 or a little older, unac in "depends" to unace.
then calculate md5sum again and try to build.
ezik
Offline
i would change the pkgver to 2.04 or a little older, unac in "depends" to unace.
I don't get it. There is no 2.04 version, only 2.0.4 and I'm already trying to build it.
unac in "depends" to unace.
No, it is a different package: https://aur.archlinux.org/packages/unac/
Offline
The bug mentions manually linking with flac, so try this in your build function:
LIBS="-lFLAC" ./configure --prefix=/usr
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Offline
Sorry for posting on such an old thread, but this is the only place where I found information about this package having been in the AUR. Does anybody know where I can find the PKGBUILD for the `unac` dependency in order to build this? It's not on the AUR anymore
Offline
It does not seem to have been removed either. Removed packages still have their git archives available on the AUR. It must have been gone before the migration from AUR3.
Looking at the github archive of what was there at the transition, this may be what you seek: https://github.com/felixonmars/aur3-mir … 19be4/unac
But, be advised, this is ancient stuff. Best of luck.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline