Bug#916054: procmeter3 FTBFS with glibc 2.28
control: tags -1 + pending Dear Maintainer, In order to allow the libsensors4 -> libsensors5 to finish, I have just uploaded a source NMU fixing bug #916054 (debdiff attached) to DELAYED/2. I hope this does not cause any troubles, and please let me know if this is an issue and would like me to cancel it. Regards, Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurel...@aurel32.net http://www.aurel32.net diff -Nru procmeter3-3.6/debian/changelog procmeter3-3.6/debian/changelog --- procmeter3-3.6/debian/changelog 2014-03-22 16:38:22.0 +0100 +++ procmeter3-3.6/debian/changelog 2018-12-26 00:22:40.0 +0100 @@ -1,3 +1,11 @@ +procmeter3 (3.6-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * debian/patches/loff_t.patch + + Fix build with glibc 2.28 Closes: #916054. + + -- Aurelien Jarno Wed, 26 Dec 2018 00:22:40 +0100 + procmeter3 (3.6-1) unstable; urgency=low * New upstream release 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 01:00:00.0 +0100 +++ procmeter3-3.6/debian/patches/loff_t.patch 2018-12-21 22:52:13.0 +0100 @@ -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 +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 + #include diff -Nru procmeter3-3.6/debian/patches/series procmeter3-3.6/debian/patches/series --- procmeter3-3.6/debian/patches/series2014-03-22 16:38:22.0 +0100 +++ procmeter3-3.6/debian/patches/series2018-12-21 22:51:43.0 +0100 @@ -6,3 +6,4 @@ #include.patch dont-override-flags.patch libX11.patch +loff_t.patch signature.asc Description: PGP signature
Bug#916054: procmeter3 FTBFS with glibc 2.28
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.0 + +++ procmeter3-3.6/debian/patches/loff_t.patch 2018-12-21 21:50:55.0 + @@ -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 +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 + #include diff -Nru procmeter3-3.6/debian/patches/series procmeter3-3.6/debian/patches/series --- procmeter3-3.6/debian/patches/series2014-03-22 15:38:22.0 + +++ procmeter3-3.6/debian/patches/series2018-12-21 21:50:55.0 + @@ -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
Bug#916054: procmeter3 FTBFS with glibc 2.28
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) { ^~