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

Bug 546272

Summary: dev-libs/libf2c: Does not compile with musl libc
Product: Gentoo Linux Reporter: Felix Janda <felix.janda>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: andrewammerlaan, blueness, lu_zero
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: Proposed patch against libf2c-20110801

Description Felix Janda 2015-04-11 16:06:32 UTC
dev-libs/libf2c-20110801 does not compile on the musl profiles
because musl libc lacks __off64_t and <fpu_control.h>.

These are easy to fix:

* Where defined __off64_t is a synomym for off64_t.
* fpu_control.h is glibc specific, so test for __GLIBC__ instead of __linux__

Below is a patch implementing these fixes.


Reproducible: Always
Comment 1 Felix Janda 2015-04-11 16:07:23 UTC
Created attachment 401050 [details, diff]
Proposed patch against libf2c-20110801
Comment 2 Felix Janda 2015-04-12 08:52:41 UTC
The first problem is actually fixed in the current upstream version of
libf2c.
Comment 3 Anthony Basile gentoo-dev 2015-08-23 12:36:30 UTC
(In reply to Felix Janda from comment #2)
> The first problem is actually fixed in the current upstream version of
> libf2c.

Felix, do you need this on the overlay?
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2015-08-23 13:36:11 UTC
Hope that helps

commit 7bb9bf7c16ff3f60baae485b86546190f05c3419
Author: Justin Lecher <jlec@gentoo.org>
Date:   Sun Aug 23 15:34:52 2015 +0200

    dev-libs/libf2c: Version Bump

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=546272

    Package-Manager: portage-2.2.20.1
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

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