Summary: | media-sound/hydrogen-0.9.5 : libs/.../local_file_mgr.cpp:983:14: error: no match for ‘operator==’ (operand types are ‘std::ifstream {aka std::basic_ifstream<char>}’ and ‘long int’) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Professional Audio Applications Maintainers <proaudio> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | zeekec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 582084 | ||
Attachments: |
config.log
emerge-history.txt environment media-sound:hydrogen-0.9.5:20161026-112916.log patched portage local tree |
Description
Toralf Förster
2016-10-26 13:05:09 UTC
Created attachment 451476 [details]
config.log
Created attachment 451478 [details]
emerge-history.txt
Created attachment 451480 [details]
environment
Created attachment 451482 [details]
media-sound:hydrogen-0.9.5:20161026-112916.log
I am having the same problem. So I can confirm. This patch has been proposed to fix the issue: Ralf Corsepius 2016-03-22 06:30:18 EDT IMO, this patch should fix this FTBFS: # diff -Naur hydrogen-0.9.5.1.orig/libs/hydrogen/src/local_file_mgr.cpp hydrogen-0.9.5.1/libs/hydrogen/src/local_file_mgr.cpp --- libs/hydrogen/src/local_file_mgr.cpp +++ libs/hydrogen/src/local_file_mgr.cpp @@ -980,7 +980,7 @@ std::string playlistInfoFile = patternname; std::ifstream verify( playlistInfoFile.c_str() , std::ios::in | std::ios::binary ); - if ( verify == NULL ) { + if ( !verify ) { //ERRORLOG( "Load Playlist: Data file " + playlistInfoFile + " not found." ); return NULL; } And I can confirm it does. Regards. The suggested patch should also be backward compatible with older GCCs using older STL implementations. Can someone either make this ebuild allow for user patches or add this patch to the upstream ebuild? Created attachment 488498 [details, diff]
patched portage local tree
decompress in /usr/local/portage then run 'emerge -1 hydrogen'
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2753ebbdac800866fed8a2c7bf8a9da7eba9b151 commit 2753ebbdac800866fed8a2c7bf8a9da7eba9b151 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2017-09-26 18:10:25 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2017-09-26 18:10:25 +0000 media-sound/hydrogen: Add build fix for gcc-6, bug 598124 Thanks to Carlos Salvador Pérez Salgado for the patch. Closes: https://bugs.gentoo.org/598124 Package-Manager: Portage-2.3.10, Repoman-2.3.3 media-sound/hydrogen/files/hydrogen-0.9.5-gcc6.patch | 12 ++++++++++++ media-sound/hydrogen/hydrogen-0.9.5-r1.ebuild | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) |