Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 894204

Summary: app-admin/gtkdiskfree-2.0.4_p20200224 fails to compile (MUSL-CLANG-SYSTEM): main.c:45:5: error: call to undeclared function setlocale; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Samuel Bauer <samuel.bauer>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/31671
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2023-02-13 16:26:21 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-admin/gtkdiskfree-2.0.4_p20200224 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-13 16:26:23 UTC
Created attachment 850708 [details]
build.log

build log and emerge --info
Comment 2 Samuel Bauer 2023-07-03 12:41:16 UTC

*** This bug has been marked as a duplicate of bug 830268 ***
Comment 3 Larry the Git Cow gentoo-dev 2023-07-24 06:31:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26595685e8adf66589c45923d3cee362b19a5876

commit 26595685e8adf66589c45923d3cee362b19a5876
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-06-29 19:10:43 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-07-24 06:30:57 +0000

    app-admin/gtkdiskfree: Fix call to undeclared function setlocale
    
    Closes: https://bugs.gentoo.org/894204
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/31671
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../files/gtkdiskfree-2.0.4-musl-setlocale.patch   | 11 +++++++
 .../gtkdiskfree-2.0.4_p20200224-r1.ebuild          | 37 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)