Source: lm-sensors
Version: 1:3.4.0-2
Severity: normal
Tags: patch

Hi,

the patch below makes lm-sensors compile on hurd-i386. As discussed
on IRC, it doesn't make the package actually usable, but it will allow
reverse-dependencies to link against lm-sensors without having to
patch away support for it on this architecture.

Christoph


diff -Nru lm-sensors-3.4.0/debian/changelog lm-sensors-3.4.0/debian/changelog
--- lm-sensors-3.4.0/debian/changelog   2015-09-07 20:51:22.000000000 +0200
+++ lm-sensors-3.4.0/debian/changelog   2016-05-11 10:21:26.000000000 +0200
@@ -1,3 +1,9 @@
+lm-sensors (1:3.4.0-2.1) UNRELEASED; urgency=medium
+
+  * Define PATH_MAX on GNU Hurd.
+
+ -- Christoph Berg <[email protected]>  Wed, 11 May 2016 10:21:04 +0200
+
 lm-sensors (1:3.4.0-2) unstable; urgency=medium
 
   * Build-depends on librrd-dev instead of librrd2-dev as the Provides
diff -Nru lm-sensors-3.4.0/debian/patches/15-path-max.patch 
lm-sensors-3.4.0/debian/patches/15-path-max.patch
--- lm-sensors-3.4.0/debian/patches/15-path-max.patch   1970-01-01 
01:00:00.000000000 +0100
+++ lm-sensors-3.4.0/debian/patches/15-path-max.patch   2016-05-11 
10:12:06.000000000 +0200
@@ -0,0 +1,14 @@
+--- a/lib/access.h
++++ b/lib/access.h
+@@ -22,6 +22,11 @@
+ #ifndef LIB_SENSORS_ACCESS_H
+ #define LIB_SENSORS_ACCESS_H
+ 
++/* PATH_MAX is undefined on GNU Hurd */
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ #include "sensors.h"
+ #include "data.h"
+ 
diff -Nru lm-sensors-3.4.0/debian/patches/series 
lm-sensors-3.4.0/debian/patches/series
--- lm-sensors-3.4.0/debian/patches/series      2015-08-09 11:35:15.000000000 
+0200
+++ lm-sensors-3.4.0/debian/patches/series      2016-05-11 10:11:08.000000000 
+0200
@@ -10,3 +10,4 @@
 12-sensors-detect-superio-x86.patch
 13-sensors-manpage.patch
 14-2-digits-kernel.patch
+15-path-max.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to