Package: chmlib Followup-For: Bug #1066327 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu noble ubuntu-patch Control: tags -1 patch
Dear Maintainer, This is the updated patch that tries to address the build issue on amd64. 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:40.000000000 -0600 @@ -0,0 +1,39 @@ +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 +--- +Index: chmlib/src/chm_http.c +=================================================================== +--- chmlib.orig/src/chm_http.c ++++ chmlib/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> +Index: chmlib/src/chm_lib.c +=================================================================== +--- chmlib.orig/src/chm_lib.c ++++ chmlib/src/chm_lib.c +@@ -48,6 +48,7 @@ + * * + ***************************************************************************/ + ++#define _LARGEFILE64_SOURCE 1 + #include "chm_lib.h" + + #ifdef CHM_MT 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