Bug#1066485: [Debian-med-packaging] Bug#1066485: volpack: diff for NMU version 1.0b3-9.1

2024-03-17 Thread Étienne Mollier
Hi Andrey,

Andrey Rakhmatullin, on 2024-03-17:
> I've prepared an NMU for volpack (versioned as 1.0b3-9.1) and
> uploaded it to DELAYED/4. Please feel free to tell me if I
> should delay it longer.

Thank you for helping out with tackling these bugs, I reviewed
through your changes, with which I agree, and inlined them in
the VCS, so they will be preserved on further uploads.  Please
feel even free to reduce the delay to 0, if you like.

Have a nice day,  :)
-- 
  .''`.  Étienne Mollier 
 : :' :  pgp: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
 `. `'   sent from /dev/pts/4, please excuse my verbosity
   `-on air: Jean-Luc Ponty - Upon The Wings Of Music


signature.asc
Description: PGP signature


Bug#1066485: volpack: diff for NMU version 1.0b3-9.1

2024-03-17 Thread Andrey Rakhmatullin
Control: tags 1066485 + patch
Control: tags 1066485 + pending

Dear maintainer,

I've prepared an NMU for volpack (versioned as 1.0b3-9.1) and
uploaded it to DELAYED/4. Please feel free to tell me if I
should delay it longer.

Regards.


-- 
WBR, wRAR
diff -Nru volpack-1.0b3/debian/changelog volpack-1.0b3/debian/changelog
--- volpack-1.0b3/debian/changelog	2020-08-28 09:42:35.0 +0500
+++ volpack-1.0b3/debian/changelog	2024-03-17 21:32:58.0 +0500
@@ -1,3 +1,10 @@
+volpack (1.0b3-9.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with -Werror=implicit-function-declaration (Closes: #1066485).
+
+ -- Andrey Rakhmatullin   Sun, 17 Mar 2024 21:32:58 +0500
+
 volpack (1.0b3-9) unstable; urgency=medium
 
   * Test-Depends: build-essential
diff -Nru volpack-1.0b3/debian/patches/fix-implicit-function-declaration.patch volpack-1.0b3/debian/patches/fix-implicit-function-declaration.patch
--- volpack-1.0b3/debian/patches/fix-implicit-function-declaration.patch	1970-01-01 05:00:00.0 +0500
+++ volpack-1.0b3/debian/patches/fix-implicit-function-declaration.patch	2024-03-17 21:32:58.0 +0500
@@ -0,0 +1,104 @@
+Description: Add missing header includes and prototypes.
+Author: Andrey Rakhmatullin 
+Bug-Debian: https://bugs.debian.org/1066485
+Last-Update: 2024-03-17
+
+Index: volpack-1.0b3/examples/scalevolume.c
+===
+--- volpack-1.0b3.orig/examples/scalevolume.c
 volpack-1.0b3/examples/scalevolume.c
+@@ -38,6 +38,10 @@
+ #include 
+ #include 
+ #include 
++#include 
++#include 
++
++int write_den(char* filename, unsigned char* data, int xlen, int ylen, int zlen);
+ 
+ main(argc, argv)
+ int argc;
+Index: volpack-1.0b3/examples/rendervolume.c
+===
+--- volpack-1.0b3.orig/examples/rendervolume.c
 volpack-1.0b3/examples/rendervolume.c
+@@ -29,8 +29,13 @@
+  */
+ 
+ #include 
++#include 
++#include 
++#include 
+ #include "volume.h"
+ 
++int StorePGM(char* image, int width, int height, char* filename);
++
+ main(argc, argv)
+ int argc;
+ char **argv;
+Index: volpack-1.0b3/examples/denfile.c
+===
+--- volpack-1.0b3.orig/examples/denfile.c
 volpack-1.0b3/examples/denfile.c
+@@ -6,6 +6,9 @@
+  */
+ 
+ #include 
++#include 
++#include 
++#include 
+ 
+ #ifndef MIN
+ #define MIN(a, b) ((a) > (b) ? (b) : (a))
+@@ -17,6 +20,11 @@
+ 
+ #define MAX_READ_SIZE	8192	/* maximum # of bytes per read(2) call */
+ 
++int read_shorts(int fd, short* sbuf, int shortcount, int swap);
++int read_words(int fd, int* wbuf, int wordcount, int swap);
++int read_bytes(int fd, char* buf, int bytecount);
++int write_bytes(int fd, char* buf, int bytecount);
++
+ /*
+  * read_den
+  *
+Index: volpack-1.0b3/examples/classifyvolume.c
+===
+--- volpack-1.0b3.orig/examples/classifyvolume.c
 volpack-1.0b3/examples/classifyvolume.c
+@@ -29,6 +29,9 @@
+  */
+ 
+ #include 
++#include 
++#include 
++#include 
+ #include "volume.h"
+ 
+ main(argc, argv)
+Index: volpack-1.0b3/examples/makeoctree.c
+===
+--- volpack-1.0b3.orig/examples/makeoctree.c
 volpack-1.0b3/examples/makeoctree.c
+@@ -29,6 +29,8 @@
+  */
+ 
+ #include 
++#include 
++#include 
+ #include "volume.h"
+ 
+ main()
+Index: volpack-1.0b3/examples/makevolume.c
+===
+--- volpack-1.0b3.orig/examples/makevolume.c
 volpack-1.0b3/examples/makevolume.c
+@@ -29,6 +29,8 @@
+  */
+ 
+ #include 
++#include 
++#include 
+ #include "volume.h"
+ 
+ main()
diff -Nru volpack-1.0b3/debian/patches/series volpack-1.0b3/debian/patches/series
--- volpack-1.0b3/debian/patches/series	2020-08-28 09:42:35.0 +0500
+++ volpack-1.0b3/debian/patches/series	2024-03-17 21:32:58.0 +0500
@@ -1,3 +1,4 @@
 10_examples.patch
 10_vp_global_h.patch
 fixmanpages.patch
+fix-implicit-function-declaration.patch


signature.asc
Description: PGP signature