Control: tags -1 + patch

Until upstream decide to reinsert the symbol or bump the SONAME, I
suggest to carry this patch.  It should get the broken packages in
Debian working again.

diff -ur tiff-4.4.0/libtiff/tif_dir.c tiff-4.4.0-new/libtiff/tif_dir.c
--- tiff-4.4.0/libtiff/tif_dir.c        2022-05-20 18:15:09.000000000 +0200
+++ tiff-4.4.0-new/libtiff/tif_dir.c    2022-06-24 10:45:10.465540590 +0200
@@ -56,6 +56,8 @@
 }
 void _TIFFsetByteArray(void** vpp, const void* vp, uint32_t n)
     { setByteArray(vpp, vp, n, 1); }
+void _TIFFsetString(char** cpp, char* cp)
+    { setByteArray((void**) cpp, (void*) cp, strlen(cp)+1, 1); }
 static void _TIFFsetNString(char** cpp, const char* cp, uint32_t n)
     { setByteArray((void**) cpp, cp, n, 1); }
 void _TIFFsetShortArray(uint16_t** wpp, const uint16_t* wp, uint32_t n)
diff -ur tiff-4.4.0/libtiff/tiffiop.h tiff-4.4.0-new/libtiff/tiffiop.h
--- tiff-4.4.0/libtiff/tiffiop.h        2022-05-20 18:15:09.000000000 +0200
+++ tiff-4.4.0-new/libtiff/tiffiop.h    2022-06-24 10:45:40.709737278 +0200
@@ -340,6 +340,7 @@
 extern uint32_t _TIFFDefaultStripSize(TIFF* tif, uint32_t s);
 extern void _TIFFDefaultTileSize(TIFF* tif, uint32_t* tw, uint32_t* th);
 
+extern void _TIFFsetString(char**, const char*);
 extern void _TIFFsetByteArray(void**, const void*, uint32_t);
 extern void _TIFFsetShortArray(uint16_t**, const uint16_t*, uint32_t);
 extern void _TIFFsetLongArray(uint32_t**, const uint32_t*, uint32_t);

In addition the debian/libtiff5.symbols file will need an update.

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to