Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585630 - media-gfx/sam2p-0.49.2 fails to build with GCC 6: cannot compute depends
Summary: media-gfx/sam2p-0.49.2 fails to build with GCC 6: cannot compute depends
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-6
  Show dependency tree
 
Reported: 2016-06-11 19:57 UTC by Aric Belsito
Modified: 2016-10-28 22:37 UTC (History)
3 users (show)

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


Attachments
ccdep.pl patch. (sam2p-0.49.2-c++98.patch,873 bytes, patch)
2016-06-11 19:57 UTC, Aric Belsito
Details | Diff
sam2p-0.49.2-Wno-literal-suffix.patch (sam2p-0.49.2-Wno-literal-suffix.patch,469 bytes, patch)
2016-09-21 04:55 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aric Belsito 2016-06-11 19:57:01 UTC
Created attachment 437192 [details, diff]
ccdep.pl patch.

ccdep.pl 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 ccdep.pl 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 ccdep.pl still allows the library to be built under the C++14 standard, because ccdep.pl is just used in the configure stage.
Comment 3 Peter Levine 2016-09-21 04:55:30 UTC
Created attachment 447006 [details, diff]
sam2p-0.49.2-Wno-literal-suffix.patch

GCC-6 emits invalid suffix warnings while parsing the code in some printf/scanf functions.  The 'ccdep.pl' script turns them into errors.  As an alternate patch, you could just add "-Wno-literal-suffix" to one line in 'ccdep.pl'.
Comment 4 David Seifert gentoo-dev 2016-10-28 22:37:25 UTC
commit 1e4d9bfb79505198acd14497f4da8841ef7b314e
Author: Jonathan Scruggs <j.scruggs@gmail.com>
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 (j.scrugs@gmail.com)
    Closes: https://github.com/gentoo/gentoo/pull/2688
    
    Signed-off-by: David Seifert <soap@gentoo.org>