Bug#777854: Patch for GCC5 build issue

2015-07-23 Thread Nicholas Luedtke

tags 777854 + patch
thanks

Here's a fix for the GCC 5 build issue. Change extern inline to static 
to prevent redefinition. The package builds and links with GCC5  with 
this change.


Upstream may prefer to move to C99 instead, please see section
Different semantics for inline functions at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Nicholas Luedtke
Linux for HP Helion OpenStack, Hewlett-Packard
Description: Fixes GCC5 build issue.
 Change extern inline function to static to prevent redefinition isseue.
 .
 freecraft (1:1.20-1.2) UNRELEASED; urgency=medium
 .
   * Non-maintainer upload.
   * Fixes GCC5 build issue.
Author: 'Nicholas Luedtke nicholas.lued...@hp.com

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: vendor|upstream|other, url of original patch
Bug: url in upstream bugtracker
Bug-Debian: https://bugs.debian.org/bugnumber
Bug-Ubuntu: https://launchpad.net/bugs/bugnumber
Forwarded: no|not-needed|url proving that it has been forwarded
Reviewed-By: name and email of someone who approved the patch
Last-Update: -MM-DD

--- freecraft-1.20.orig/src/libmodplug/stdafx.h
+++ freecraft-1.20/src/libmodplug/stdafx.h
@@ -86,7 +86,7 @@ inline void ProcessPlugins(int n) {}
 
 #include string.h
 
-extern inline long MulDiv (long a, long b, long c)
+static inline long MulDiv (long a, long b, long c)
 {
   // if (!c) return 0;
   return ((unsigned long long) a * (unsigned long long) b ) / c;


Bug#777907: Patch for GCC build issue.

2015-07-20 Thread Nicholas Luedtke

tags 777907 + patch
thanks

Even simpler change that preserves the build integrity with GCC4.9. The 
package builds and links with GCC 5 with this change.


Upstream may prefer to move to C99 instead, please see section
Different semantics for inline functions at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Nicholas Luedtke
Linux for HP Helion OpenStack, Hewlett-Packard
diff -urN hunt-1.5.orig/Makefile hunt-1.5/Makefile
--- hunt-1.5.orig/Makefile	2015-07-20 14:37:07.965162235 +
+++ hunt-1.5/Makefile	2015-07-20 14:37:32.713162020 +
@@ -1,4 +1,4 @@
-CFLAGS=-Wall -O2 -g -D_REENTRANT
+CFLAGS=-Wall -O2 -g -D_REENTRANT -std=gnu89
 #CFLAGS+=-DSYNC_FAST
 #CFLAGS+=-D_WITH_LINUX_KERNEL_HDR
 


Bug#777835: Unreproducible error.

2015-07-20 Thread Nicholas Luedtke

tags 777835 + unreproducible
thanks

This package also builds fine for me with sid/gcc5 from experimental.

--
Nicholas Luedtke
Linux for HP Helion OpenStack, Hewlett-Packard


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#778151: Patch for GCC5 build error

2015-07-17 Thread Nicholas Luedtke

tags 778151 + patch
thanks

Here's a fix for the GCC 5 build issue. I added extern to
inline function in render.c. The package builds and links with GCC 5 
with this change.


Upstream may prefer to move to C99 instead, please see section
Different semantics for inline functions at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Nicholas Luedtke
Linux for HP Helion OpenStack, Hewlett-Packard
Description: Fixes GCC5 build error
 TODO: ADD extern to put_pixel to conform to the gnu99 std.
 .
 tuxonice-userui (1.1+dfsg1.gc3bdd83-3.1) UNRELEASED; urgency=medium
 .
   * Non-maintainer upload.
   * Fixed GCC5 build error.
Author: Nicholas Luedtkenicholas.lued...@hp.com

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: vendor|upstream|other, url of original patch
Bug: url in upstream bugtracker
Bug-Debian: https://bugs.debian.org/bugnumber
Bug-Ubuntu: https://launchpad.net/bugs/bugnumber
Forwarded: no|not-needed|url proving that it has been forwarded
Reviewed-By: name and email of someone who approved the patch
Last-Update: -MM-DD

--- tuxonice-userui-1.1+dfsg1.gc3bdd83.orig/fbsplash/render.c
+++ tuxonice-userui-1.1+dfsg1.gc3bdd83/fbsplash/render.c
@@ -45,7 +45,7 @@ void render_icon(icon *ticon, u8 *target
 	}
 }
 
-inline void put_pixel (u8 a, u8 r, u8 g, u8 b, u8 *src, u8 *dst, u8 add)
+extern inline void put_pixel (u8 a, u8 r, u8 g, u8 b, u8 *src, u8 *dst, u8 add)
 {
 	if (fb_opt) {
 		if (a != 255) {


Bug#778146: Patch for GCC5 build issue

2015-07-17 Thread Nicholas Luedtke

tags 778145 + patch
thanks

Here's a fix for the GCC 5 build issue. Removed inline from function 
signatures to work with test cases. The package builds and links with 
GCC 5 with this change.


Upstream may prefer to move to C99 instead, please see section
Different semantics for inline functions at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Nicholas Luedtke
Linux for HP Helion OpenStack, Hewlett-Packard
Description: Fixxed GCC5 build issue
 Removed inline from problematic functions.
 .
 tinyscheme (1.41-1.1) UNRELEASED; urgency=medium
 .
   * Non-maintainer upload.
   * Fixed GCC5 build issue.
Author: Nicholas Luedtke Nicholas lued...@hp.com

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: vendor|upstream|other, url of original patch
Bug: url in upstream bugtracker
Bug-Debian: https://bugs.debian.org/bugnumber
Bug-Ubuntu: https://launchpad.net/bugs/bugnumber
Forwarded: no|not-needed|url proving that it has been forwarded
Reviewed-By: name and email of someone who approved the patch
Last-Update: -MM-DD

--- tinyscheme-1.41.orig/scheme.c
+++ tinyscheme-1.41/scheme.c
@@ -200,8 +200,8 @@ INTERFACE double rvalue(pointer p){
 INTERFACE  long charvalue(pointer p)  { return ivalue_unchecked(p); }
 
 INTERFACE INLINE int is_port(pointer p) { return (type(p)==T_PORT); }
-INTERFACE INLINE int is_inport(pointer p)  { return is_port(p)  p-_object._port-kind  port_input; }
-INTERFACE INLINE int is_outport(pointer p) { return is_port(p)  p-_object._port-kind  port_output; }
+INTERFACE int is_inport(pointer p)  { return is_port(p)  p-_object._port-kind  port_input; }
+INTERFACE int is_outport(pointer p) { return is_port(p)  p-_object._port-kind  port_output; }
 
 INTERFACE INLINE int is_pair(pointer p) { return (type(p)==T_PAIR); }
 #define car(p)   ((p)-_object._cons._car)
@@ -226,7 +226,7 @@ INTERFACE INLINE char *syntaxname(pointe
 static const char *procname(pointer x);
 
 INTERFACE INLINE int is_closure(pointer p)  { return (type(p)==T_CLOSURE); }
-INTERFACE INLINE int is_macro(pointer p){ return (type(p)==T_MACRO); }
+INTERFACE int is_macro(pointer p){ return (type(p)==T_MACRO); }
 INTERFACE INLINE pointer closure_code(pointer p)   { return car(p); }
 INTERFACE INLINE pointer closure_env(pointer p){ return cdr(p); }
 


Bug#777837: Patch for GCC5 build issue

2015-07-15 Thread Nicholas Luedtke

tags 777837 + patch
thanks

Here's a fix for the GCC 5 build issue. I added extern to
inline function in jcode.c. The package builds and links with GCC 5 with 
this change.


Upstream may prefer to move to C99 instead, please see section
Different semantics for inline functions at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Nicholas Luedtke
Linux for HP Helion OpenStack, Hewlett-Packard
--- ebview-0.3.6.2/src/jcode.c	2015-07-15 18:49:36.866726205 +
+++ jcode.c	2015-07-15 18:48:09.530726966 +
@@ -275,7 +275,7 @@
 	return(result);
 }
 
-inline gboolean isjisp(const gchar *buff){
+extern inline gboolean isjisp(const gchar *buff){
 g_assert(buff != NULL);
 
 if((buff[0] = 0x21)  (buff[0] = 0x74) 


Bug#777907: Patch for GCC5 build issue

2015-07-15 Thread Nicholas Luedtke

tags 777907 + patch
thanks

Here's a fix for the GCC 5 build issue. Removed extern from
inline functions in hunt.h. The package builds and links with GCC 5 with 
this change.


Upstream may prefer to move to C99 instead, please see section
Different semantics for inline functions at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Nicholas Luedtke
Linux for HP Helion OpenStack, Hewlett-Packard
--- ../hunt.h	2015-07-15 20:47:03.634664806 +
+++ hunt.h	2015-07-15 20:47:43.506664459 +
@@ -291,20 +291,20 @@
 #define TCP_HDR_LENGTH(tcph) ((tcph)-doff  2)
 
 
-extern inline unsigned int generate_key(unsigned long saddr, unsigned long daddr,
+inline unsigned int generate_key(unsigned long saddr, unsigned long daddr,
 			   unsigned short source, unsigned short dest)
 {
 	return saddr + daddr + source + dest;
 }
 
 #if 0
-extern inline unsigned int generate_key_from_packet(struct packet *p)
+inline unsigned int generate_key_from_packet(struct packet *p)
 {
 	return generate_key(ntohl(p-p_iph-saddr), ntohl(p-p_iph-daddr),
 		ntohs(p-p_hdr.p_tcph-source), ntohs(p-p_hdr.p_tcph-dest));
 }
 #endif
-extern inline unsigned int uci_generate_key(struct user_conn_info *uci)
+inline unsigned int uci_generate_key(struct user_conn_info *uci)
 {
 	return generate_key(ntohl(uci-src_addr), ntohl(uci-dst_addr),
 		ntohs(uci-src_port), ntohs(uci-dst_port));


Bug#778051: Patch for GCC5 build issue.

2015-07-15 Thread Nicholas Luedtke

tags 778051 + patch
thanks

Here's a fix for the GCC 5 build issue. Added extern to
inline functions in stuff.c . The package builds and links with GCC 5 
with this change.


Upstream may prefer to move to C99 instead, please see section
Different semantics for inline functions at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Nicholas Luedtke
Linux for HP Helion OpenStack, Hewlett-Packard
Description: Fixed GCC5 build issue.
 ADD extern to xpart and ypart functions
 .
 overgod (1.0-4.1) UNRELEASED; urgency=medium
 .
   * Non-maintainer upload.
   * Fixed Gcc5 build issue. (closes 778051)
Author: Nicholas Luedtke nicholas.lued...@hp.com

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: vendor|upstream|other, url of original patch
Bug: url in upstream bugtracker
Bug-Debian: https://bugs.debian.org/bugnumber
Bug-Ubuntu: https://launchpad.net/bugs/bugnumber
Forwarded: no|not-needed|url proving that it has been forwarded
Reviewed-By: name and email of someone who approved the patch
Last-Update: -MM-DD

Index: overgod-1.0/stuff.c
===
--- overgod-1.0.orig/stuff.c
+++ overgod-1.0/stuff.c
@@ -51,7 +51,6 @@ float decoy_table [ANGLE_FULL]; // not u
 float cos_table [ANGLE_FULL];
 float sin_table [ANGLE_FULL];
 
-inline int xpart(int angle, int length);
 
 void init_trig(void)
 {
@@ -66,13 +65,13 @@ void init_trig(void)
  
 }
 
-inline int xpart(int angle, int length)
+extern inline int xpart(int angle, int length)
 {
 // return (lcos(angle) * length);// / ANGLE_FULL;
  return (cos_table [angle  1023] * length);// / ANGLE_FULL;
 }
 
-inline int ypart(int angle, int length)
+extern inline int ypart(int angle, int length)
 {
  return (sin_table [angle  1023] * length);// / ANGLE_FULL;
 }