control: tag -1 + patch

On 2018-12-09 19:12, Adrian Bunk wrote:
> Source: procmeter3
> Version: 3.6-1
> Severity: serious
> Tags: ftbfs buster sid
> 
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/procmeter3.html
> 
> ...
> longrun.c:41:24: error: unknown type name 'loff_t'; did you mean 'off_t'?
>  static void read_cpuid(loff_t address, int *eax, int *ebx, int *ecx, int 
> *edx) {
>                         ^~~~~~

Please find below a patch to fix the issue.

diff -Nru procmeter3-3.6/debian/patches/loff_t.patch 
procmeter3-3.6/debian/patches/loff_t.patch
--- procmeter3-3.6/debian/patches/loff_t.patch  1970-01-01 00:00:00.000000000 
+0000
+++ procmeter3-3.6/debian/patches/loff_t.patch  2018-12-21 21:50:55.000000000 
+0000
@@ -0,0 +1,18 @@
+Description: Fix compilation with newer glibc
+Fixes compilation with newer glibc.
+If _XOPEN_SOURCE is defined _DEFAULT_SOURCE needs to be defined explicit
+to have the definition of loff_t.
+Author: Aurelien Jarno <aure...@debian.org>
+Bug-Debian: https://bugs.debian.org/916054
+Last-Update: 2018-12-21
+
+--- procmeter3-3.6.orig/modules/longrun.c
++++ procmeter3-3.6/modules/longrun.c
+@@ -15,6 +15,7 @@
+   ***************************************/
+ 
+ #define _XOPEN_SOURCE 500
++#define _DEFAULT_SOURCE
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
diff -Nru procmeter3-3.6/debian/patches/series 
procmeter3-3.6/debian/patches/series
--- procmeter3-3.6/debian/patches/series        2014-03-22 15:38:22.000000000 
+0000
+++ procmeter3-3.6/debian/patches/series        2018-12-21 21:50:55.000000000 
+0000
@@ -6,3 +6,4 @@
 #include.patch
 dont-override-flags.patch
 libX11.patch
+loff_t.patch

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurel...@aurel32.net                 http://www.aurel32.net

Reply via email to