Bug#813136: Default permissions for local upload not ideal

2016-01-29 Thread Alexander Balderson

Package: dput-ng
Version: 1.10
Severity: minor
Tags: patch

The file permissions for 'local' uploads are not ideal as 'install'
defaults to rwxr-xr-x, which doesn't make much sense for .changes,
.deb and similar files.

I've attached a patch that changes the permission to 0644 (-rw-r--r--)
Let me know if you think this should be a config option.
diff -Nru dputng/dput/uploaders/local.py dputng-patched/dput/uploaders/local.py
--- dputng/dput/uploaders/local.py	2015-08-18 10:01:06.0 -0600
+++ dputng-patched/dput/uploaders/local.py	2016-01-29 09:46:08.685827823 -0700
@@ -54,6 +54,8 @@
 whereto = os.path.join(os.environ["HOME"], whereto)
 dput.util.run_command([
 "install",
+"--mode",
+"0644",
 filename,
 whereto
 ])


Bug#778058: patch for gcc5 bug

2015-07-24 Thread Alexander Balderson

tags 778058 + patch
thanks

Here's a fix for the GCC 5 build issue. Converted __PRETTY_FUNCTION__ to 
__func__ to be compatible with new compilers.


--
Alexander Balderson
Linux for HP Helion OpenStack, Hewlett-Packard
Description: Fixes gcc5 build errors
 Replacing __PRETTY_FUNCTION__ with __func__ to meet standards of gcc5.

 percona-xtradb-cluster-galera-2.x (1:2.11.2675-1.1) UNRELEASED; urgency=medium
 .
   * Non-maintainer upload.
   * d/p/gcc5.patch: Fixing to build under gcc5 by replacing __PRETTY_FUNCTION__
 with __func__
Author: alexander balderson 

---
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: , 
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: 
Reviewed-By: 
Last-Update: 

--- percona-xtradb-cluster-galera-2.x-2.11.2675.orig/galerautils/src/gu_log.h
+++ percona-xtradb-cluster-galera-2.x-2.11.2675/galerautils/src/gu_log.h
@@ -70,7 +70,7 @@ extern gu_log_severity_t gu_log_max_leve
 #if !defined(__cplusplus) || defined(GALERA_LOG_H_ENABLE_CXX)
 // NOTE: don't add "\n" here even if you really want to do it
 #define GU_LOG_C(level, ...)\
-gu_log(level, __FILE__, __PRETTY_FUNCTION__, __LINE__,\
+gu_log(level, __FILE__, __func__, __LINE__,\
## __VA_ARGS__, NULL)
 
 /**
--- percona-xtradb-cluster-galera-2.x-2.11.2675.orig/gcache/src/pasture/Logger.hpp
+++ percona-xtradb-cluster-galera-2.x-2.11.2675/gcache/src/pasture/Logger.hpp
@@ -89,7 +89,7 @@ namespace gcache
 
 #define LOG(level)   \
 if (Logger::no_log(level)) ; \
-else Logger().get(level, __FILE__, __PRETTY_FUNCTION__, __LINE__)
+else Logger().get(level, __FILE__, __func__, __LINE__)
 
 #define log_fatal LOG(LOG_FATAL)
 #define log_error LOG(LOG_ERROR)


Bug#777853: patch for gcc5 build issue

2015-07-20 Thread Alexander Balderson

tags 778122 + patch
thanks

Here is a simpler fix.  I added the -std=gcc89 flag to 07_libft_PIC 
patch to cover gcc5 build issue.

This builds and links with gcc5 and gcc4.9

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.

--
Alexander Balderson
Linux for HP Helion OpenStack, Hewlett-Packard
--- flow-tools-0.68.orig/debian/patches/07_libft_PIC	2015-07-20 22:00:28.47600 +
+++ flow-tools-0.68/debian/patches/07_libft_PIC	2015-07-20 21:55:19.29200 +
@@ -30,7 +30,7 @@
  #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs
  #AM_CFLAGS=-O2
 -AM_CFLAGS = -g -Wall
-+AM_CFLAGS = -g -Wall -fPIC
++AM_CFLAGS = -g -Wall -fPIC -std=gnu89
  
  DEFS = -I. -I$(srcdir)/lib
  


Bug#778122: Wrong bug number

2015-07-20 Thread Alexander Balderson

Sorry,
I sent the prior patch to the wrong bug number.
was meant for 777853.
Thanks,

--
Alexander Balderson
Linux for HP Helion OpenStack, Hewlett-Packard


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



Bug#778122: patch for gcc5 build issue

2015-07-20 Thread Alexander Balderson

tags 778122 + patch
thanks

Here is a simpler fix.  I added the -std=gcc89 flag to 07_libft_PIC 
patch to cover gcc5 build issue.

This builds and links with gcc5 and gcc4.9

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.

--
Alexander Balderson
Linux for HP Helion OpenStack, Hewlett-Packard
--- flow-tools-0.68.orig/debian/patches/07_libft_PIC	2015-07-20 22:00:28.47600 +
+++ flow-tools-0.68/debian/patches/07_libft_PIC	2015-07-20 21:55:19.29200 +
@@ -30,7 +30,7 @@
  #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs
  #AM_CFLAGS=-O2
 -AM_CFLAGS = -g -Wall
-+AM_CFLAGS = -g -Wall -fPIC
++AM_CFLAGS = -g -Wall -fPIC -std=gnu89
  
  DEFS = -I. -I$(srcdir)/lib
  


Bug#777853: patch for gcc5 bug

2015-07-17 Thread Alexander Balderson

tags 777853 + patch
thanks

Here's a fix for GCC5 build issue.  Added extern to inline functions in 
ftfil.c


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.

--
Alexander Balderson
Linux for HP Helion OpenStack, Hewlett-Packard
--- flow-tools-0.68/lib/ftfil.c	2015-07-17 19:46:14.52000 +
+++ flow-tools-0.68.fixed/lib/ftfil.c	2015-07-17 20:57:52.13600 +
@@ -547,7 +547,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_src_as(struct ftfil_lookup_as *lookup, char *rec,
+extern inline int eval_match_src_as(struct ftfil_lookup_as *lookup, char *rec,
   struct fts3rec_offsets *fo)
 {
   u_int16 *src_as;
@@ -574,7 +574,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_dst_as(struct ftfil_lookup_as *lookup, char *rec,
+extern inline int eval_match_dst_as(struct ftfil_lookup_as *lookup, char *rec,
   struct fts3rec_offsets *fo)
 {
   u_int16 *dst_as;
@@ -602,7 +602,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_ip_prot(struct ftfil_lookup_ip_prot *lookup, char *rec,
+extern inline int eval_match_ip_prot(struct ftfil_lookup_ip_prot *lookup, char *rec,
   struct fts3rec_offsets *fo)
 {
   u_int8 *ip_prot;
@@ -630,7 +630,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_ip_src_prefix_len(struct ftfil_lookup_ip_prefix_len *lookup,
+extern inline int eval_match_ip_src_prefix_len(struct ftfil_lookup_ip_prefix_len *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int8 *src_mask;
@@ -658,7 +658,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_ip_dst_prefix_len(struct ftfil_lookup_ip_prefix_len *lookup,
+extern inline int eval_match_ip_dst_prefix_len(struct ftfil_lookup_ip_prefix_len *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int8 *dst_mask;
@@ -686,7 +686,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_ip_tos(struct ftfil_lookup_ip_tos *lookup,
+extern inline int eval_match_ip_tos(struct ftfil_lookup_ip_tos *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int8 tos;
@@ -714,7 +714,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_ip_marked_tos(struct ftfil_lookup_ip_tos *lookup,
+extern inline int eval_match_ip_marked_tos(struct ftfil_lookup_ip_tos *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int8 marked_tos;
@@ -743,7 +743,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_ip_tcp_flags(struct ftfil_lookup_ip_tcp_flags *lookup,
+extern inline int eval_match_ip_tcp_flags(struct ftfil_lookup_ip_tcp_flags *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int8 tcp_flags;
@@ -772,7 +772,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_ip_src_port(struct ftfil_lookup_ip_port *lookup,
+extern inline int eval_match_ip_src_port(struct ftfil_lookup_ip_port *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int16 *src_port;
@@ -799,7 +799,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_ip_dst_port(struct ftfil_lookup_ip_port *lookup,
+extern inline int eval_match_ip_dst_port(struct ftfil_lookup_ip_port *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int16 *dst_port;
@@ -827,7 +827,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_src_if_index(struct ftfil_lookup_if_index *lookup,
+extern inline int eval_match_src_if_index(struct ftfil_lookup_if_index *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int16 *src_if_index;
@@ -854,7 +854,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_dst_if_index(struct ftfil_lookup_if_index *lookup,
+extern inline int eval_match_dst_if_index(struct ftfil_lookup_if_index *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int16 *dst_if_index;
@@ -882,7 +882,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_engine_id(struct ftfil_lookup_engine *lookup,
+extern inline int eval_match_engine_id(struct ftfil_lookup_engine *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int8 *engine_id;
@@ -910,7 +910,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_engine_type(struct ftfil_lookup_engine *lookup,
+extern inline int eval_match_engine_type(struct ftfil_lookup_engine *lookup,
   char *rec, struct fts3rec_offsets *fo)
 {
   u_int8 *engine_type;
@@ -937,7 +937,7 @@
  * returns: FT_FIL_MODE_PERMIT
  *  FT_FIL_MODE_DENY
  */
-inline int eval_match_flows(struct ftfil_lookup_counter *lookup, char *rec,
+extern inline int e

Bug#778122: patch for gcc5 bug

2015-07-15 Thread Alexander Balderson

tags 778122 + patch
thanks

Here's a fix for the GCC 5 build issue. Added extern to inline functions 
in ppc_fpu.c, ppc_mmu.c, and emul.c


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.

--
Alexander Balderson
Linux for HP Helion OpenStack, Hewlett-Packard
--- skyeye-1.2.5/arch/ppc/common/ppc_fpu.c	2007-06-17 02:22:22.0 +
+++ ppc_fpu.c	2015-07-15 20:49:30.86000 +
@@ -29,7 +29,7 @@
 
 
 #define PPC_FPR_TYPE2(a,b) (((a)<<8)|(b))
-inline void ppc_fpu_add(ppc_double *res, ppc_double *a, ppc_double *b)
+extern inline void ppc_fpu_add(ppc_double *res, ppc_double *a, ppc_double *b)
 {
 	switch (PPC_FPR_TYPE2(a->type, b->type)) {
 	case PPC_FPR_TYPE2(ppc_fpr_norm, ppc_fpr_norm): {
@@ -134,7 +134,7 @@
 	}
 }
 
-inline void ppc_fpu_quadro_mshr(ppc_quadro *q, int exp)
+extern inline void ppc_fpu_quadro_mshr(ppc_quadro *q, int exp)
 {
 	if (exp >= 64) {
 		q->m1 = q->m0;
@@ -147,7 +147,7 @@
 	q->m1 |= t<<(64-exp);
 }
 
-inline void ppc_fpu_quadro_mshl(ppc_quadro *q, int exp)
+extern inline void ppc_fpu_quadro_mshl(ppc_quadro *q, int exp)
 {
 	if (exp >= 64) {
 		q->m0 = q->m1;
@@ -160,7 +160,7 @@
 	q->m0 |= t;
 }
 
-inline void ppc_fpu_add_quadro_m(ppc_quadro *res, const ppc_quadro *a, const ppc_quadro *b)
+extern inline void ppc_fpu_add_quadro_m(ppc_quadro *res, const ppc_quadro *a, const ppc_quadro *b)
 {
 	res->m1 = a->m1+b->m1;
 	if (res->m1 < a->m1) {
@@ -170,7 +170,7 @@
 	}
 }
 
-inline void ppc_fpu_sub_quadro_m(ppc_quadro *res, const ppc_quadro *a, const ppc_quadro *b)
+extern inline void ppc_fpu_sub_quadro_m(ppc_quadro *res, const ppc_quadro *a, const ppc_quadro *b)
 {
 	res->m1 = a->m1-b->m1;
 	if (a->m1 < b->m1) {
@@ -181,7 +181,7 @@
 }
 
 // res has 107 significant bits. a, b have 106 significant bits each.
-inline void ppc_fpu_add_quadro(ppc_quadro *res, ppc_quadro *a, ppc_quadro *b)
+extern inline void ppc_fpu_add_quadro(ppc_quadro *res, ppc_quadro *a, ppc_quadro *b)
 {
 	// treat as 107 bit mantissa
 	if (a->type == ppc_fpr_norm) ppc_fpu_quadro_mshl(a, 1);
@@ -317,14 +317,14 @@
 	}
 }
 
-inline void ppc_fpu_add_uint64_carry(uint64 *a, uint64 b, uint64 *carry)
+extern inline void ppc_fpu_add_uint64_carry(uint64 *a, uint64 b, uint64 *carry)
 {
 	*carry = (*a+b < *a) ? 1 : 0;
 	*a += b;
 }
 
 // 'res' has 56 significant bits on return, a + b have 56 significant bits each
-inline void ppc_fpu_mul(ppc_double *res, const ppc_double *a, const ppc_double *b)
+extern inline void ppc_fpu_mul(ppc_double *res, const ppc_double *a, const ppc_double *b)
 {
 	res->s = a->s ^ b->s;
 	switch (PPC_FPR_TYPE2(a->type, b->type)) {
@@ -404,7 +404,7 @@
 
 // 'res' has 'prec' significant bits on return, a + b have 56 significant bits each
 // for 111 >= prec >= 64
-inline void ppc_fpu_mul_quadro(ppc_quadro *res, ppc_double *a, ppc_double *b, int prec)
+extern inline void ppc_fpu_mul_quadro(ppc_quadro *res, ppc_double *a, ppc_double *b, int prec)
 {
 	res->s = a->s ^ b->s;
 	switch (PPC_FPR_TYPE2(a->type, b->type)) {
@@ -496,7 +496,7 @@
 // FIXME: There is a bug in this code that shows up in Mac OS X Finder fwd/bwd
 // button: the top line is not rendered correctly. This works with the jitc_x86
 // FPU however...
-inline void ppc_fpu_mul_add(ppc_double *res, ppc_double *m1, ppc_double *m2,
+extern inline void ppc_fpu_mul_add(ppc_double *res, ppc_double *m1, ppc_double *m2,
 	ppc_double *s)
 {
 	ppc_quadro p;
@@ -539,7 +539,7 @@
 		ppc_fpu_get_fpr_type(res.type));*/
 }
 
-inline void ppc_fpu_div(ppc_double *res, const ppc_double *a, const ppc_double *b)
+extern inline void ppc_fpu_div(ppc_double *res, const ppc_double *a, const ppc_double *b)
 {
 	res->s = a->s ^ b->s;
 	switch (PPC_FPR_TYPE2(a->type, b->type)) {
@@ -601,7 +601,7 @@
 	}
 }
 
-inline void ppc_fpu_sqrt(ppc_double *D, const ppc_double *B)
+extern inline void ppc_fpu_sqrt(ppc_double *D, const ppc_double *B)
 {
 	switch (B->type) {
 	case ppc_fpr_norm:
@@ -682,7 +682,7 @@
 /*
  *	a and b must not be NaNs
  */
-inline uint32 ppc_fpu_compare(ppc_double *a, ppc_double *b)
+extern inline uint32 ppc_fpu_compare(ppc_double *a, ppc_double *b)
 {
 	if (a->type == ppc_fpr_zero) {
 		if (b->type == ppc_fpr_zero) return 2;
--- skyeye-1.2.5/arch/ppc/common/ppc_mmu.c	2007-11-16 03:16:22.0 +
+++ ppc_mmu.c	2015-07-15 20:49:38.28400 +
@@ -1347,7 +1347,7 @@
 	return r;
 }
 
-inline int FASTCALL ppc_read_physical_qword(uint32 addr, Vector_t *result)
+extern inline int FASTCALL ppc_read_physical_qword(uint32 addr, Vector_t *result)
 {
 	if (addr < boot_romSize) {
 		// big endian
@@ -1422,7 +1422,7 @@
 	return r;
 }
 
-inline int FASTCALL ppc_read_effective_qword(uint32 addr, Vector_t *result)
+extern inline int FASTCALL ppc_read_