Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media-libs/audiofile: Fix Clang compilation failure #33614

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

csfore
Copy link
Contributor

@csfore csfore commented Oct 31, 2023

Due to upstream not having a push since 2016 (and it's not quite last rite'd yet), this fixes the Clang compilation failure from deprecated functions by adding -stdlib=libstdc++ to CXXFLAGS.

I made sure to run the test suite and it seems to report:

error: non-constant-expression cannot be narrowed from type 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]

but it seems to behave correctly outside of tests, not sure how to proceed if that is a blocker so I'm highlighting it to make sure I haven't missed something.

Closes: https://bugs.gentoo.org/914349

Due to upstream not having a push since 2016 (and it's not quite last
rite'd yet), this fixes the Clang compilation failure from deprecated
functions by adding `-stdlib=libstdc++` to CXXFLAGS.

Closes: https://bugs.gentoo.org/914349
Signed-off-by: Christopher Fore <csfore@posteo.net>
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @csfore
Areas affected: ebuilds
Packages affected: media-libs/audiofile

media-libs/audiofile: @gentoo/sound

Linked bugs

Bugs linked: 914349


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Oct 31, 2023
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-10-31 19:01 UTC
Newest commit scanned: 6142944
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/b88bc4b1b5/output.html

@@ -32,6 +32,10 @@ src_prepare() {
}

multilib_src_configure() {
# Bug 914349
if tc-is-clang; then
append-flags "-stdlib=libstdc++"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't do this - it breaks ABI if it was previously built with libcxx.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, what do you recommend I look at instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it should be forced to build with gcc like how btop does?
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-process/btop/btop-1.2.13.ebuild#n20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR.
Projects
None yet
4 participants