Skip to content

Commit 80e7ccf

Browse files
committed
Added patch to fix FTBFS on i386
1 parent 149f848 commit 80e7ccf

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

debian/changelog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
gnuais (0.3.3-5) unstable; urgency=medium
2+
3+
* Added debian/patches/02_fix_inline_functions.patch:
4+
- Add "__attribute__ ((gnu_inline))" to "extern inline" functions
5+
to fix FTBFS on i386.
6+
7+
-- Ruben Undheim <[email protected]> Wed, 23 Dec 2015 11:53:53 +0100
8+
19
gnuais (0.3.3-4) unstable; urgency=medium
210

311
* Fixed build-dependency (Closes: #808091)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Description: With the new C standard (c11), it fails if
2+
"extern inline" is defined in a header file included in multiple
3+
source files. Add "__attribute__ ((gnu_inline))" to tell it to
4+
use the old interpretation of inline.
5+
Author: Ruben Undheim <[email protected]>
6+
7+
Index: gnuais/src/filter-i386.h
8+
===================================================================
9+
--- gnuais.orig/src/filter-i386.h 2015-12-24 09:50:53.165709440 +0100
10+
+++ gnuais/src/filter-i386.h 2015-12-24 09:51:17.681468317 +0100
11+
@@ -32,7 +32,7 @@
12+
13+
#include <stdio.h>
14+
15+
-extern inline float __mac_g(const float *a, const float *b,
16+
+__attribute__ ((gnu_inline)) extern inline float __mac_g(const float *a, const float *b,
17+
unsigned int size)
18+
{
19+
float sum = 0;
20+
@@ -43,7 +43,7 @@
21+
return sum;
22+
}
23+
24+
-extern inline float __mac_c(const float *a, const float *b,
25+
+__attribute__ ((gnu_inline)) extern inline float __mac_c(const float *a, const float *b,
26+
unsigned int size)
27+
{
28+
float f;

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
01_conf_location.patch
2+
02_fix_inline_functions.patch

0 commit comments

Comments
 (0)