Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932577 - dev-db/sqlitebrowser-3.12.2 does not pass compilation with clang + libc++
Summary: dev-db/sqlitebrowser-3.12.2 does not pass compilation with clang + libc++
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mattéo Rossillol‑‑Laruelle
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-23 20:04 UTC by Denis Pronin
Modified: 2024-06-21 15:59 UTC (History)
3 users (show)

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


Attachments
Patch to make the compilation pass (sqlitebrowser-3.12.2-str-conflict-fix.patch,392 bytes, patch)
2024-05-23 20:05 UTC, Denis Pronin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Pronin 2024-05-23 20:04:34 UTC
dev-db/sqlitebrowser-3.12.2 should be built up successfully with clang and libc++ as runtime but actually it fails to compile

Reason: the project uses macro that interferes with runtime's classes and their methods

Solution: add patch to substitute current macro name the the new one that would not conflict with the runtime's names and declarations

Reproducible: Always

Steps to Reproduce:
1. set clang with libc++ as a compiler and runtime to use
2. emerge -1 dev-db/sqlitebrowser
3. see how the compilation will fail
Actual Results:  
The compilation fails

Expected Results:  
The compilation must be successful

I have already submitted PR https://github.com/gentoo/gentoo/pull/35909 awaiting to be merged in
Comment 1 Denis Pronin 2024-05-23 20:05:59 UTC
Created attachment 894073 [details, diff]
Patch to make the compilation pass
Comment 2 Mattéo Rossillol‑‑Laruelle 2024-06-21 15:59:49 UTC
Fixed in "=dev-db/sqlitebrowser-3.12.2-r2"