Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 585630

Summary: media-gfx/sam2p-0.49.2 fails to build with GCC 6: cannot compute depends
Product: Gentoo Linux Reporter: Aric Belsito <lluixhi>
Component: Current packagesAssignee: TeX project <tex>
Severity: normal CC: mail, plevine457, robink
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 582084    
Attachments: patch.

Description Aric Belsito 2016-06-11 19:57:01 UTC
Created attachment 437192 [details, diff] patch. needs to call g++ with -std=c++98 during the configure stage.

We can't fix this simply by building with "-std=c++98" appended to CXXFLAGS because the CXXFLAGS used by are hardcoded.
Comment 1 Francesco Turco 2016-08-30 13:20:40 UTC
Patch from comment 0 works for me too.
Comment 2 Aric Belsito 2016-09-14 22:42:46 UTC
Just FYI, adding -std=c++98 to still allows the library to be built under the C++14 standard, because is just used in the configure stage.
Comment 3 Peter Levine 2016-09-21 04:55:30 UTC
Created attachment 447006 [details, diff]

GCC-6 emits invalid suffix warnings while parsing the code in some printf/scanf functions.  The '' script turns them into errors.  As an alternate patch, you could just add "-Wno-literal-suffix" to one line in ''.
Comment 4 David Seifert gentoo-dev 2016-10-28 22:37:25 UTC
commit 1e4d9bfb79505198acd14497f4da8841ef7b314e
Author: Jonathan Scruggs <>
Date:   Fri Oct 28 16:53:26 2016 +0100

    media-gfx/sam2p: version bump to 0.49.3
    Gentoo-bug: 585630, 598362
    - Switch to EAPI 6
    - Simplify ebuild
    - Update to new HOMEPAGE
    Signed off by: Jonathan Scruggs (
    Signed-off-by: David Seifert <>