taskXlog - Tasks: task #16121, xlog-2.0.24 fails to build with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #16121: xlog-2.0.24 fails to build with musl C library

Submitter:  Thomas Beierlein <dl1jbe>
Submitted:  Fri 11 Feb 2022 06:59:28 PM UTC
 
Category:  general Should Start On:  Thu 10 Feb 2022 11:00:00 PM UTC
Should be Finished on:  Thu 10 Feb 2022 11:00:00 PM UTC Priority:  5 - Normal
Status:  None Privacy:  Public
Percent Complete:  0% Assigned to:  None
Open/Closed:  Open Release:  None
Effort:  0.00

Fri 11 Feb 2022 06:59:28 PM UTC, original submission:  

While preparing packages to be build with musl C library we found that Xlog does not compile with it. For details see https://bugs.gentoo.org/832236

Reason is the code which tries to switch stderr to a file and back again in src/gui_tracedialog.c. As it turned out musl made stderr file pointer a constant.

I did some checks to work around the problem. It seems that it is enough to just switch the underlying filedescriptor with a dup2() call. There seems to be no need to also change the FILE * stderr itself with freopen() or fdopen(). See attached patch file.

On first test the idea seems to work, but you should check again.

73, de Tom <tomjbe@gentoo.org> <dl1jbe@darc.de>

Thomas Beierlein <dl1jbe>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #52845:  xlog-2.0.24-musl.patch added by dl1jbe (1KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dl1jbe (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-11 dl1jbe Attached File- Added xlog-2.0.24-musl.patch, #52845

    Back to the top


    Powered by Savane 3.9