Package Details: cantata 2.5.0-5

Git Clone URL: https://aur.archlinux.org/cantata.git (read-only, click to copy)
Package Base: cantata
Description: Qt5 client for the music player daemon (MPD)
Upstream URL: https://github.com/CDrummond/cantata
Licenses: GPL3
Submitter: arojas
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 12
Popularity: 2.36
First Submitted: 2024-01-24 15:31 (UTC)
Last Updated: 2024-01-30 18:24 (UTC)

Latest Comments

caseyjp1 commented on 2024-03-14 00:23 (UTC)

The latest plasma6 update is now throwing this error via journalctl: kde.dataengine.mpris: mpris:trackid from "Cantata" does not conform to the MPRIS2 standard. Please report the issue to the developer.

I don't know where to report the issue as there are several forks out there at this point, so there ya go.

FabioLolix commented on 2024-01-30 20:13 (UTC)

Thank you for adding fenuks patch.

Thanks to fenuks

Please have md4c added to the makedepends clause. Build will fail otherwise.

md4c is a depends of qt5-base so is already in the dependency chain, if you have an error log please use a pastebin service or send it to me by email

KdU7aq commented on 2024-01-30 19:26 (UTC)

@FabioLolix

Thank you for adding fenuks patch. The package compiles fine now indeed.

connaisseur commented on 2024-01-30 19:17 (UTC)

Please have

md4c

added to the makedepends clause. Build will fail otherwise.

Thanks!

FabioLolix commented on 2024-01-30 18:25 (UTC)

fenuks's applied, the program build and works again

KdU7aq commented on 2024-01-30 13:27 (UTC)

Having problems building the package with makepkg. Giving error: make: *** [Makefile:156: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

Can confirm I'm getting the same error, like @FabioLolix mentioned this is related to TagLib

/home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp: In function ‘void Tags::readAPETags(TagLib::APE::Tag*, Song*, ReplayGain*, QImage*, int*)’:
/home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp:622:64: error: ‘const class TagLib::APE::Item’ has no member named ‘value’; did youmean ‘values’?
  622 |          TagLib::ByteVector item = map["COVER ART (FRONT)"].value();
      |                                                             ^~~~~
      |                                                             values
[ 10%] Building CXX object 3rdparty/solid-lite/CMakeFiles/solidlite.dir/devicemanager.cpp.o
/home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp: In function ‘void Tags::readTags(TagLib::FileRef, Song*, ReplayGain*, QImage*, QString*, int*)’:
/home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp:1304:36: error: invalid conversion from ‘TagLib::Tag*’ to ‘TagLib::ID3v2::Tag*’ [-fpermissive]
 1304 |             readID3v2Tags(file->tag(), song, rg, img, lyrics, rating);
      |                           ~~~~~~~~~^~
      |                                    |
      |                                    TagLib::Tag*
/home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp:313:47: note:   initializing argument 1 of ‘void Tags::readID3v2Tags(TagLib::ID3v2::Tag*, Song*, ReplayGain*, QImage*, QString*, int*)’
  313 | static void readID3v2Tags(TagLib::ID3v2::Tag *tag, Song *song, ReplayGain *rg, QImage *img, QString *lyrics, int *rating)
      |                           ~~~~~~~~~~~~~~~~~~~~^~~
/home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp: In function ‘bool Tags::writeTags(TagLib::FileRef, const Song&, const Song&, constRgTags&, const QByteArray&, int, bool)’:
/home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp:1422:45: error: invalid conversion from ‘TagLib::Tag*’ to ‘TagLib::ID3v2::Tag*’ [-fpermissive]
 1422 |             changed=writeID3v2Tags(file->tag(), from, to, rg, img, rating) || changed;
      |                                    ~~~~~~~~~^~
      |                                             |
      |                                             TagLib::Tag*
/home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp:496:48: note:   initializing argument 1 of ‘bool Tags::writeID3v2Tags(TagLib::ID3v2::Tag*, const Song&, const Song&, const RgTags&, const QByteArray&, int)’
  496 | static bool writeID3v2Tags(TagLib::ID3v2::Tag *tag, const Song &from, const Song &to, const RgTags &rg, const QByteArray &img, int rating)
      |                            ~~~~~~~~~~~~~~~~~~~~^~~
/home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp: In function ‘Song Tags::read(const QString&)’:
/home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp:1458:76: warning: ‘virtual int TagLib::AudioProperties::length() const’ is deprecated [-Wdeprecated-declarations]
 1458 | fileref.audioProperties() ? fileref.audioProperties()->length() : 0;
      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~

In file included from /usr/include/taglib/fileref.h:33,
                 from /home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/filetyperesolver.h:28,
                 from /home/0axde67/.cache/paru/clone/cantata/src/cantata-2.5.0/tags/tags.cpp:26:
/usr/include/taglib/audioproperties.h:82:17: note: declared here
   82 |     virtual int length() const;
      |                 ^~~~~~

[...]

[ 35%] Linking CXX static library libsolidlite.a
[ 35%] Built target solidlite
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'cantata-2.5.0-4'

FabioLolix commented on 2024-01-29 17:55 (UTC)

@d_fajardo your post don't identify which is the error, only that it fails, anyway, I made some tests, there has been a taglib update to v2.0 this have introduced breaking changes, taglib1 have been uploaded on the AUR, bad news there isn't a way to specify the taglib path with cmake at first sight

the options at the moment are:

  • disable taglib support (this disable tagging, replaygain and media device)
  • depends or makedepends on taglib1 but the pkgbuild must be build in clean chroot using a local repo or passing the taglib package

d_fajardo commented on 2024-01-29 17:23 (UTC)

Having problems building the package with makepkg. Giving error: make: *** [Makefile:156: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...