Package: chmlib Followup-For: Bug #1066327 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu noble ubuntu-patch Control: tags -1 patch
Dear Maintainer, In Ubuntu, the attached patch was applied to achieve the following: * debian/patches/implicit-declarations.patch: Add missing includes and fix large file support. (LP: #2062947). Thanks for considering the patch. -- System Information: Debian Release: bookworm/sid APT prefers jammy-updates APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), (100, 'jammy-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.5.0-28-generic (SMP w/10 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru chmlib-0.40a/debian/patches/implicit-declarations.patch chmlib-0.40a/debian/patches/implicit-declarations.patch --- chmlib-0.40a/debian/patches/implicit-declarations.patch 1969-12-31 17:00:00.000000000 -0700 +++ chmlib-0.40a/debian/patches/implicit-declarations.patch 2024-04-19 20:28:30.000000000 -0600 @@ -0,0 +1,38 @@ +Description: Add missing includes and fix large file support +Author: Zixing Liu <zixing....@canonical.com> +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066327 +Bug-Ubuntu: https://bugs.launchpad.net/bugs/2062947 +Forwarded: no +Last-Update: 2024-04-19 +--- +--- chmlib-0.40a.orig/src/chm_http.c ++++ chmlib-0.40a/src/chm_http.c +@@ -34,6 +34,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <unistd.h> + #if __sun || __sgi + #include <strings.h> + #define strrchr rindex +@@ -43,6 +44,7 @@ + #include <sys/socket.h> + #include <sys/types.h> + #include <netinet/in.h> ++#include <arpa/inet.h> + + /* threading includes */ + #include <pthread.h> +--- chmlib-0.40a.orig/src/chm_lib.c ++++ chmlib-0.40a/src/chm_lib.c +@@ -86,7 +86,9 @@ + #include <fcntl.h> + /* #include <dmalloc.h> */ + #endif +- ++#ifdef _LARGEFILE_SOURCE ++#define pread64 pread ++#endif + /* includes/defines for threading, if using them */ + #ifdef CHM_MT + #ifdef WIN32 diff -Nru chmlib-0.40a/debian/patches/series chmlib-0.40a/debian/patches/series --- chmlib-0.40a/debian/patches/series 1969-12-31 17:00:00.000000000 -0700 +++ chmlib-0.40a/debian/patches/series 2024-04-19 20:25:29.000000000 -0600 @@ -0,0 +1 @@ +implicit-declarations.patch