Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641078 - media-sound/mpd-0.20.12[cdio] with dev-libs/libcdio-1.1.0 - src/archive/plugins/Iso9660ArchivePlugin.cxx:118:32: error: too few arguments to function ‘void _cdio_list_free(CdioList_t*, int, CdioDataFree_t)’
Summary: media-sound/mpd-0.20.12[cdio] with dev-libs/libcdio-1.1.0 - src/archive/plugi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL: https://github.com/MusicPlayerDaemon/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-15 02:00 UTC by Andreas Proteus
Modified: 2018-08-15 13:20 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
media-sound:mpd-0.20.12:20171214-194410.log (media-sound:mpd-0.20.12:20171214-194410.log,294.00 KB, text/plain)
2017-12-15 02:00 UTC, Andreas Proteus
Details
Output of emerge --info (emerge.info.txt,7.45 KB, text/plain)
2017-12-15 02:01 UTC, Andreas Proteus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Proteus 2017-12-15 02:00:10 UTC
Created attachment 510070 [details]
media-sound:mpd-0.20.12:20171214-194410.log

It builds ok if USE="-cdio
Comment 1 Andreas Proteus 2017-12-15 02:01:22 UTC
Created attachment 510072 [details]
Output of emerge --info
Comment 2 Duncan 2017-12-17 05:21:29 UTC
Are you sure you mean libcdio-1.0.0?

Because I'm seeing the same build error here, attempting to build against the new libcdio-1.1.0.  But as it happens I run with FEATURES=buildpkg, so I had an old libcdio-1.0.0-r1 binpkg to revert to, and sure enough, mpd builds against it just fine.

So if you don't mean libcdio-1.1.0 breaks and libcdio-1.0.0(-r1) is fine, I'm confused!

Duncan
Comment 3 Andreas Proteus 2017-12-17 05:59:04 UTC
@Duncan
Fixed the title. My mistake.
Indeed I meant libcdio-1.1.0
Comment 4 Duncan 2018-01-14 03:15:48 UTC
Given that URL, and from it the fact that upstream mpd has now removed cdio support going forward, it would seem the best fix here would be to either mask the flag or remove it, and the cdio deps, entirely, as well.
Comment 5 Duncan 2018-01-14 03:20:01 UTC
(In reply to Duncan from comment #4)
> Given that URL, and from it the fact that upstream mpd has now removed cdio
> support going forward, it would seem the best fix here would be to either
> mask the flag or remove it, and the cdio deps, entirely, as well.

Of course the (temporary) alternative would be to mask libcdio-1.1.0, since as discussed at the above URL, it contains an API-break without a corresponding major version and *.so version bump.  But at least for mpd that's temporary, as upstream mpd seems to be removing support now, so the option won't exist for the next version anyway.
Comment 6 Jeremy Stent 2018-07-12 17:54:49 UTC
Github for MPD has a fix for this.

at about line 118 of src/archive/plugins/Iso9660ArchivePlugin.cxx

#if LIBCDIO_VERSION_NUM >= 20000
	iso9660_filelist_free(entlist);
#else
	_cdio_list_free (entlist, true);
#endif
Comment 7 Larry the Git Cow gentoo-dev 2018-08-15 13:20:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79b15a0228e634e9418706ff8b27d21ced8ba0ee

commit 79b15a0228e634e9418706ff8b27d21ced8ba0ee
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-08-15 12:56:54 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-08-15 13:20:04 +0000

    media-sound/mpd: Fix build with >=dev-libs/libcdio-2
    
    Closes: https://bugs.gentoo.org/641078
    Package-Manager: Portage-2.3.46, Repoman-2.3.10

 media-sound/mpd/files/mpd-0.20.10-libcdio-2.patch | 27 +++++++++++++++++++++++
 media-sound/mpd/mpd-0.20.10.ebuild                |  1 +
 media-sound/mpd/mpd-0.20.12-r2.ebuild             |  5 ++++-
 3 files changed, 32 insertions(+), 1 deletion(-)