Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] gsl: add patch to fix build on ppc-musl
@ 2019-10-08  0:21 voidlinux-github
  2019-10-08 18:21 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2019-10-08  0:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 317 bytes --]

There is a new pull request by q66 against master on the void-packages repository

https://github.com/void-ppc/void-packages gsl
https://github.com/void-linux/void-packages/pull/15227

gsl: add patch to fix build on ppc-musl


A patch file from https://github.com/void-linux/void-packages/pull/15227.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gsl-15227.patch --]
[-- Type: text/x-diff, Size: 1554 bytes --]

From 00dc5bd620f2ba0db6ed5489dab1c63b5e728cad Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Sun, 1 Sep 2019 00:47:00 +0200
Subject: [PATCH] gsl: add patch to fix build on ppc-musl

[ci skip]
---
 srcpkgs/gsl/patches/ppc-musl.patch | 36 ++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 srcpkgs/gsl/patches/ppc-musl.patch

diff --git a/srcpkgs/gsl/patches/ppc-musl.patch b/srcpkgs/gsl/patches/ppc-musl.patch
new file mode 100644
index 00000000000..807ae163675
--- /dev/null
+++ b/srcpkgs/gsl/patches/ppc-musl.patch
@@ -0,0 +1,36 @@
+fpu_control.h is glibc specific, but we only need some bits from it.
+
+--- ieee-utils/fp-gnuppc.c
++++ ieee-utils/fp-gnuppc.c
+@@ -18,7 +18,31 @@
+  */
+ 
+ #include <stdio.h>
++
++#if defined(__GLIBC__)
+ #include <fpu_control.h>
++#else
++/* copied from fpu_control.h, only stuff that is needed here */
++# define _FPU_RC_NEAREST 0x00
++# define _FPU_RC_DOWN    0x03
++# define _FPU_RC_UP      0x02
++# define _FPU_RC_ZERO    0x01
++
++# define _FPU_MASK_ZM  0x10
++# define _FPU_MASK_OM  0x40
++# define _FPU_MASK_UM  0x20
++# define _FPU_MASK_IM  0x80 
++
++# define _FPU_SETCW(cw)						\
++  { union { double __d; unsigned long long __ll; } __u;		\
++    register double __fr;					\
++    __u.__ll = 0xfff80000LL << 32; /* This is a QNaN.  */	\
++    __u.__ll |= (cw) & 0xffffffffLL;				\
++    __fr = __u.__d;						\
++    __asm__ __volatile__("mtfsf 255,%0" : : "f" (__fr));	\
++  }
++#endif
++
+ #include <gsl/gsl_errno.h>
+ #include <gsl/gsl_ieee_utils.h>
+ 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: gsl: add patch to fix build on ppc-musl
  2019-10-08  0:21 [PR PATCH] gsl: add patch to fix build on ppc-musl voidlinux-github
@ 2019-10-08 18:21 ` voidlinux-github
  0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2019-10-08 18:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 173 bytes --]

There's a merged pull request on the void-packages repository

gsl: add patch to fix build on ppc-musl
https://github.com/void-linux/void-packages/pull/15227

Description:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-08 18:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08  0:21 [PR PATCH] gsl: add patch to fix build on ppc-musl voidlinux-github
2019-10-08 18:21 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).