Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 837794 - sys-block/gparted-1.4.0 fails to compile: BCache_Info.cc:52:40: error: basename was not declared in this scope; did you mean g_basename?
Summary: sys-block/gparted-1.4.0 fails to compile: BCache_Info.cc:52:40: error: basena...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-04-11 07:00 UTC by Agostino Sarubbo
Modified: 2022-05-29 19:50 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,92.61 KB, text/plain)
2022-04-11 07:00 UTC, Agostino Sarubbo
Details
Upstream patch for sys-block/gparted-1.4.0 (gparted-1.4.0-musl-basename.patch,2.23 KB, patch)
2022-05-18 20:35 UTC, CFuga
Details | Diff
Patch for sys-block/gparted-1.4.0.ebuild (gparted-1.4.0-ebuild.patch,312 bytes, patch)
2022-05-18 20:37 UTC, CFuga
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-04-11 07:00:26 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-block/gparted-1.4.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-04-11 07:00:28 UTC
Created attachment 770021 [details]
build.log

build log and emerge --info
Comment 2 CFuga 2022-05-18 20:35:27 UTC
Created attachment 779450 [details, diff]
Upstream patch for sys-block/gparted-1.4.0

Upstream has a fix for this bug. I've attached the patch, available from

https://gitlab.gnome.org/GNOME/gparted/-/merge_requests/99
Comment 3 CFuga 2022-05-18 20:37:02 UTC
Created attachment 779453 [details, diff]
Patch for sys-block/gparted-1.4.0.ebuild

Patch for sys-block/gparted-1.4.0.ebuild, to apply the upstream fix for this bug.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-18 20:37:31 UTC
(In reply to CFuga from comment #2)
> Created attachment 779450 [details, diff] [details, diff]
> Upstream patch for sys-block/gparted-1.4.0
> 
> Upstream has a fix for this bug. I've attached the patch, available from
> 
> https://gitlab.gnome.org/GNOME/gparted/-/merge_requests/99

Thanks!
Comment 5 Larry the Git Cow gentoo-dev 2022-05-18 20:38:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a536e7e575df3fb58dd7d6cf56ec0809718a796

commit 1a536e7e575df3fb58dd7d6cf56ec0809718a796
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-18 20:37:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-18 20:37:37 +0000

    sys-block/gparted: fix build with musl
    
    Revbump as switching to POSIX basename could in theory (but as per
    patch, shouldn't) change runtime behaviour for glibc.
    
    Closes: https://bugs.gentoo.org/837794
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/gparted-1.4.0-musl-basename.patch        | 53 ++++++++++++
 sys-block/gparted/gparted-1.4.0-r1.ebuild          | 95 ++++++++++++++++++++++
 2 files changed, 148 insertions(+)