Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 580730 Details for
Bug 549108
sys-apps/sandbox: build with musl libc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
v2-0002-scripts-gen_symbol_header.awk-undefine-libc-symbo.patch
v2-0002-scripts-gen_symbol_header.awk-undefine-libc-symbo.patch (text/plain), 1.18 KB, created by
Sergei Trofimovich (RETIRED)
on 2019-06-24 21:00:54 UTC
(
hide
)
Description:
v2-0002-scripts-gen_symbol_header.awk-undefine-libc-symbo.patch
Filename:
MIME Type:
Creator:
Sergei Trofimovich (RETIRED)
Created:
2019-06-24 21:00:54 UTC
Size:
1.18 KB
patch
obsolete
>From 4a2b2ee1c14bfe05abe58cf5d414e527191b50fe Mon Sep 17 00:00:00 2001 >From: Sergei Trofimovich <slyfox@gentoo.org> >Date: Sun, 23 Jun 2019 21:50:54 +0100 >Subject: [PATCH v2 2/2] scripts/gen_symbol_header.awk: undefine libc symbol > aliases > >Avoid libc's symbol rename via #define. musl defines aliases as: > #define mkstemp64 mkstemp > #define mkstemps64 mkstemps > >This causes libsandbox's aliases to clash with one another, >like mkstemp and mkstemp64. > >The change does not break glibc and restores musl support. > >Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> >--- > scripts/gen_symbol_header.awk | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/scripts/gen_symbol_header.awk b/scripts/gen_symbol_header.awk >index c9af7f9..3f23134 100644 >--- a/scripts/gen_symbol_header.awk >+++ b/scripts/gen_symbol_header.awk >@@ -117,6 +117,10 @@ END { > gsub(/@|\./, "_", sym_real_name); > } > >+ # Avoid libc's symbol rename via #define. musl defines aliases as: >+ # #define mkstemp64 mkstemp >+ # #define mkstemps64 mkstemps >+ printf("#undef %s\n", sym_index); > printf("#define symname_%s \"%s\"\n", sym_real_name, sym_index); > > # We handle non-versioned libc's by setting symver_* >-- >2.22.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 549108
:
403010
|
403012
|
403814
|
404754
|
496772
|
496774
|
496776
|
496778
|
580598
|
580600
| 580730 |
581128