Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898156 - net-print/cups-filters-1.28.17 build failed with >=app-text/qpdf-11.3.0 (error: ‘std::string_view’ has not been declared)
Summary: net-print/cups-filters-1.28.17 build failed with >=app-text/qpdf-11.3.0 (erro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-02-27 13:23 UTC by ArchFeh(Yu Gu)
Modified: 2023-03-14 22:32 UTC (History)
0 users

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


Attachments
build.log (build.log,317.31 KB, text/x-log)
2023-02-27 13:23 UTC, ArchFeh(Yu Gu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ArchFeh(Yu Gu) 2023-02-27 13:23:20 UTC
Created attachment 855020 [details]
build.log

/usr/include/qpdf/QPDFWriter.hh:560:32: error: ‘std::string_view’ has not been declared

std::string_view was introduced in c++17, and the ebuild was compiled with c++11, so the error occurs. I will raise a pr.
Comment 1 Larry the Git Cow gentoo-dev 2023-02-27 22:30:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67821b27fe794c645040025594950eac26fd9e3c

commit 67821b27fe794c645040025594950eac26fd9e3c
Author:     Yu Gu <guyu2876@gmail.com>
AuthorDate: 2023-02-27 13:29:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-27 22:30:28 +0000

    net-print/cups-filters: fix compile failure
    
    /usr/include/qpdf/QPDFWriter.hh:560:32: error: ‘std::string_view’ has not been declared
    std::string_view was introduced in c++17, and the ebuild was compiled with c++11, so the error occurs.
    
    Bug: https://bugs.gentoo.org/898156
    Signed-off-by: Yu Gu <guyu2876@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/29831
    Signed-off-by: Sam James <sam@gentoo.org>

 .../cups-filters/cups-filters-1.28.17-r1.ebuild    | 145 +++++++++++++++++++++
 1 file changed, 145 insertions(+)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-27 22:30:53 UTC
Can you send something upstream too please? Thanks!

Either qpdf needs to indicate this in its pkgconfig file & cmake files, or cups-filters needs to respect the settings qpdf is exposing.
Comment 3 ArchFeh(Yu Gu) 2023-02-28 08:10:12 UTC
(In reply to Sam James from comment #2)
> Can you send something upstream too please? Thanks!
> 
> Either qpdf needs to indicate this in its pkgconfig file & cmake files, or
> cups-filters needs to respect the settings qpdf is exposing.

Sure. I added the issue on see also
Comment 4 psh0r 2023-03-14 22:32:44 UTC
This fix breaks the build for clang profile, see bug 901243