Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546272 - dev-libs/libf2c: Does not compile with musl libc
Summary: dev-libs/libf2c: Does not compile with musl libc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2015-04-11 16:06 UTC by Felix Janda
Modified: 2021-05-25 18:20 UTC (History)
3 users (show)

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


Attachments
Proposed patch against libf2c-20110801 (libf2c-musl.patch,537 bytes, patch)
2015-04-11 16:07 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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