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

Bug 832236

Summary: media-radio/xlog-2.0.24 fails to compile: gui_tracedialog.c:70:16: error: assignment of read-only variable stderr
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Thomas Beierlein <tomjbe>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-01-28 22:27:19 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-radio/xlog-2.0.24 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-28 22:27:21 UTC
Created attachment 763852 [details]
build.log

build log and emerge --info
Comment 2 Thomas Beierlein gentoo-dev 2022-02-11 18:35:58 UTC
Upstream tries to switch stderr back and forth for diagnostic reasons. That does not go well as Musl team had decided to interpret the standard strict and made stdin, stdout and stderr constant (see discussion on https://listman.redhat.com/archives/linux-lvm/2016-February/msg00027.html)

A possible fix is in the work. Mail to upstream is sent. Lets see how it goes.
Comment 3 Thomas Beierlein gentoo-dev 2022-03-20 14:39:26 UTC
No feedback from upstream. 
Will merge in fix shortly.
Comment 4 Larry the Git Cow gentoo-dev 2022-03-20 14:43:23 UTC
The bug has been closed via the following commit(s):

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

commit bd4276c164ab0e8cd3bd81d75f9275de11338a04
Author:     Thomas Beierlein <tomjbe@gentoo.org>
AuthorDate: 2022-03-20 14:42:22 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2022-03-20 14:42:22 +0000

    media-radio/xlog: Avoid writing to read only stderr varaible in musl C
    
    Closes: https://bugs.gentoo.org/832236
    Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>

 media-radio/xlog/files/xlog-2.0.24-musl.patch | 51 +++++++++++++++++++++++++++
 media-radio/xlog/xlog-2.0.24.ebuild           |  3 +-
 2 files changed, 53 insertions(+), 1 deletion(-)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-20 14:49:46 UTC
(In reply to Thomas Beierlein from comment #3)
> No feedback from upstream. 
> Will merge in fix shortly.

Nice work and thanks for digging into this!