Package: genwqe-user / 4.0.18-3

Metadata

Package Version Patches format
genwqe-user 4.0.18-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 lib hardware Fix printf for size_t.patch | (download)

lib/hardware.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 1/2] lib/hardware: fix printf for size_t
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

There are some debugging printf being called with %ld other than %zd.
This cause build on 32-bits platform, showing the following message:

 In file included from hardware.c:22:0:
 hardware.c: In function ‘h_inflate’:
 ./wrapper.h:90:22: error: format ‘%ld’ expects argument of type ‘long
 int’, but argument 3 has type ‘size_t {aka unsigned int}’
 [-Werror=format=]
     fprintf(zlib_log, "hhh " fmt, ## __VA_ARGS__); \
                       ^
 hardware.c:1456:5: note: in expansion of macro ‘hw_trace’
      hw_trace("    Suppress Z_STREAM_END %ld %ld\n",
      ^~~~~~~~
 ./wrapper.h:90:22: error: format ‘%ld’ expects argument of type ‘long
 int’, but argument 4 has type ‘size_t {aka unsigned int}’
 [-Werror=format=]
     fprintf(zlib_log, "hhh " fmt, ## __VA_ARGS__); \

This patch just fix this issue.t t

nostatic.patch | (download)

tools/Makefile | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 do not use static linking for zadc.
This patch was adapted from Ubuntu package.
missing_manpages.patch | (download)

tools/Makefile | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 manpages for 2 scripts that were missing
spellcheck.patch | (download)

lib/hardware.c | 2 1 + 1 - 0 !
misc/zlib_test.sh | 2 1 + 1 - 0 !
misc/zpipe_mt.c | 4 2 + 2 - 0 !
3 files changed, 4 insertions(+), 4 deletions(-)

 correct spelling caught by codespell and spellintian
fix leaks.patch | (download)

lib/libddcb.c | 2 1 + 1 - 0 !
misc/zpipe_append.c | 13 10 + 3 - 0 !
misc/zpipe_rnd.c | 28 22 + 6 - 0 !
tools/gzFile_test.c | 5 5 + 0 - 0 !
4 files changed, 38 insertions(+), 10 deletions(-)

 fixed resource leaks and syntax error
This patch is upstram already. It fixes some resource leaks caught by
cppcheck and one syntax error.
no dmesg.patch | (download)

misc/basic_hardware_tests.sh | 2 1 + 1 - 0 !
misc/basic_software_tests.sh | 2 1 + 1 - 0 !
misc/samtools_test.sh | 2 1 + 1 - 0 !
tools/genwqe_test_gz | 2 1 + 1 - 0 !
4 files changed, 4 insertions(+), 4 deletions(-)

 do not use dmesg
 The command dmesg needs to be run as root, so disabling it on the
 tests.


fix pthread.patch | (download)

lib/Makefile | 2 1 + 1 - 0 !
misc/Makefile | 2 1 + 1 - 0 !
tools/Makefile | 2 1 + 1 - 0 !
3 files changed, 3 insertions(+), 3 deletions(-)

 use -pthread instead of -lpthread
fix libs locations.patch | (download)

lib/Makefile | 10 6 + 4 - 0 !
1 file changed, 6 insertions(+), 4 deletions(-)

 make libs public.
Installing libzADC* files into /usr/lib/$(DEB_HOST_MULTIARCH) instead
of doing it into the subdirectory genwqe.
0001 Adding missing license header.patch | (download)

tools/force_cpu.c | 15 15 + 0 - 0 !
1 file changed, 15 insertions(+)

 [patch] adding missing license header

Signed-off-by: haver@linux.vnet.ibm.com>

0002 lib software Fix return types.patch | (download)

lib/software.c | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 [patch 2/2] lib/software: fix return types
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Currently, when building genwqe on 32-bits arch, it fails with the
following error:

  software.c:537:9: error: conflicting types for ‘gzseek64’
   z_off_t gzseek64(gzFile file, z_off64_t offset, int whence)
           ^~~~~~~~
  In file included from software.c:23:0:
  /usr/include/zlib.h:1693:30: note: previous declaration of ‘gzseek64’
  was here
      ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
                                ^~~~~~~~
This is because a 32bits gz function() should use z_off64_t instead of
z_off_t type.