Your message dated Wed, 04 Jan 2017 22:20:58 +0000
with message-id <[email protected]>
and subject line Bug#845499: fixed in lirc 0.9.4c-6
has caused the Debian Bug report #845499,
regarding lirc: FTBFS on hurd-i386
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
845499: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845499
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: lirc
Version: 0.9.4c-4
Severity: important
Tags: patch
User: [email protected]
Usertags: hurd

Hello,

lirc currently FTBFS on !linux archs because it build-depends on
systemd, hardwires having uinput, and tries to install the systemd
files. The attached first patch fixes this. It also needs a

chmod +x debian/install

to make dh-exec work.

There are however various build issues, the attached patch fixes them.
(upstream had a convoluted way of calling Linux: "!BSD" :) )

Samuel

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), 
(500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
Samuel
        /* Amuse the user. */
        printk(
"              \\|/ ____ \\|/\n"
"              \"@'/ ,. \\`@\"\n"
"              /_| \\__/ |_\\\n"
"                 \\__U_/\n");
(From linux/arch/sparc/kernel/traps.c:die_if_kernel())
--- debian/control.original     2016-11-23 22:35:48.000000000 +0000
+++ debian/control      2016-11-23 23:33:20.000000000 +0000
@@ -14,6 +14,7 @@
  dh-autoreconf,
  dh-systemd,
  dh-python,
+ dh-exec,
  doxygen,
  kmod [linux-any],
  libasound2-dev [linux-any kfreebsd-any],
@@ -28,7 +29,7 @@
  portaudio19-dev,
  python3,
  python3-yaml,
- systemd,
+ systemd [linux-any],
  xsltproc
 # libjs-jquery
 
--- debian/rules.original       2016-11-23 23:02:38.000000000 +0000
+++ debian/rules        2016-11-23 23:02:39.000000000 +0000
@@ -9,8 +9,10 @@
 override_dh_autoreconf:
        dh_autoreconf $(CURDIR)/autogen.sh
 
+ifeq ($(DEB_HOST_ARCH_OS),linux)
 override_dh_auto_configure:
        dh_auto_configure -- HAVE_UINPUT=1
+endif
 
 override_dh_shlibdeps:
        dh_shlibdeps -l $(CURDIR)/debian/tmp/usr/lib/*/lirc/plugins
--- debian/install.original     2016-11-23 23:13:41.000000000 +0000
+++ debian/install      2016-11-23 23:13:43.000000000 +0000
@@ -1,5 +1,6 @@
+#! /usr/bin/dh-exec
 etc/lirc
-lib/systemd/*
+[linux-any] lib/systemd/*
 usr/lib/*/python3*/*
 usr/lib/tmpfiles.d/*
 usr/lib/*/lirc
Index: lirc-0.9.4c/Makefile.am
===================================================================
--- lirc-0.9.4c.orig/Makefile.am
+++ lirc-0.9.4c/Makefile.am
@@ -38,7 +38,7 @@ dist_lirc_conf_DATA     = lircd.conf \
 lircdconfigdir         = $(sysconfdir)/lirc/lircd.conf.d
 dist_lircdconfig_DATA  = README.conf.d 
 
-if !BSD
+if LINUX
 dist_lircdconfig_DATA  += devinput.lircd.conf
 endif
 
Index: lirc-0.9.4c/configure.ac
===================================================================
--- lirc-0.9.4c.orig/configure.ac
+++ lirc-0.9.4c/configure.ac
@@ -19,7 +19,7 @@ AC_PATH_PROG(SH_PATH,[sh])
 AC_CHECK_PROGS([MODINFO], [modinfo], [no], [$PATH:/sbin:/usr/sbin])
 if test x$MODINFO = xno; then
   AC_MSG_WARN(["No modinfo command found - skipping kernel drivers."])
-  MODINFO="/usr/bin/false"
+  MODINFO="/bin/false"
 else
   MODINFO=$( PATH=$PATH:/sbin:/usr/sbin which modinfo )
 fi
@@ -93,11 +93,13 @@ case $host_os in
        ;;
     *bsd*) osflags='-DFREEBSD'
        ;;
+    linux*) osflags='-DLINUX'
+       ;;
     *)  osflags=''
 esac
 
 AM_CONDITIONAL([DARWIN], [test "$osflags" = "-DDARWIN"])
-AM_CONDITIONAL([BSD], [test -n "$osflags"])
+AM_CONDITIONAL([LINUX], [test "$osflags" = "-DLINUX"])
 AC_SUBST(osflags)
 
 x_progs="irxevent xmode2"
@@ -514,7 +516,7 @@ AC_REPORT_CONDITIONAL([SYSTEMD_INSTALL])
 AC_REPORT_CONDITIONAL([DEVEL])
 AC_REPORT_CONDITIONAL([HAVE_UINPUT])
 AC_REPORT_CONDITIONAL([DARWIN])
-AC_REPORT_CONDITIONAL([BSD])
+AC_REPORT_CONDITIONAL([LINUX])
 
 echo
 
Index: lirc-0.9.4c/lib/Makefile.am
===================================================================
--- lirc-0.9.4c.orig/lib/Makefile.am
+++ lirc-0.9.4c/lib/Makefile.am
@@ -104,7 +104,7 @@ input_map.lo: lirc/input_map.inc
 
 input_map.inc: lirc/input_map.inc
 
-if BSD
+if !LINUX
 lirc/input_map.inc:
        touch $@
        touch touch input_map.inc
Index: lirc-0.9.4c/plugins/Makefile.am
===================================================================
--- lirc-0.9.4c.orig/plugins/Makefile.am
+++ lirc-0.9.4c/plugins/Makefile.am
@@ -41,7 +41,7 @@ srm7500libusb_la_SOURCES    = srm7500lib
 srm7500libusb_la_LDFLAGS    = $(AM_LDFLAGS) @usb_libs@
 srm7500libusb_la_CFLAGS     = $(AM_CFLAGS) $(LIBUSB_CFLAGS)
 
-if !BSD
+if LINUX
 plugin_LTLIBRARIES          += commandir.la
 commandir_la_SOURCES        = commandir.c
 commandir_la_LDFLAGS        = $(AM_LDFLAGS) @usb_libs@
@@ -113,7 +113,7 @@ osx_usbraw_la_SOURCES       = osx_usbraw
 osx_usbraw_la_LDFLAGS       = $(AM_LDFLAGS) -framework IOKit -framework Cocoa
 endif
 
-if !BSD
+if LINUX
 plugin_LTLIBRARIES          += default.la
 default_la_SOURCES          = default.c
 
Index: lirc-0.9.4c/include/media/lirc.h
===================================================================
--- lirc-0.9.4c.orig/include/media/lirc.h
+++ lirc-0.9.4c/include/media/lirc.h
@@ -6,8 +6,16 @@
 #ifndef _LINUX_LIRC_H
 #define _LINUX_LIRC_H
 
+#ifdef __linux__
 #include <linux/types.h>
 #include <linux/ioctl.h>
+#else
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#if defined(_IOT_SIMPLE) && !defined(_IOT__IOTBASE___u32)
+#define _IOT__IOTBASE___u32 _IOT_SIMPLE(__u32)
+#endif
+#endif
 
 #define PULSE_BIT       0x01000000
 #define PULSE_MASK      0x00FFFFFF
Index: lirc-0.9.4c/lib/lirc_client.c
===================================================================
--- lirc-0.9.4c.orig/lib/lirc_client.c
+++ lirc-0.9.4c/lib/lirc_client.c
@@ -40,6 +40,10 @@
 
 #include "lirc_client.h"
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
+
 /** Timeout in lirc_read_string. */
 static const struct timeval CMD_TIMEOUT = { .tv_sec = 1, .tv_usec = 0 };
 
Index: lirc-0.9.4c/plugins/atilibusb.c
===================================================================
--- lirc-0.9.4c.orig/plugins/atilibusb.c
+++ lirc-0.9.4c/plugins/atilibusb.c
@@ -34,6 +34,10 @@
 
 #include "lirc_driver.h"
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 #define CODE_BYTES 5
 #define USB_TIMEOUT (1000 * 60)
 
Index: lirc-0.9.4c/plugins/awlibusb.c
===================================================================
--- lirc-0.9.4c.orig/plugins/awlibusb.c
+++ lirc-0.9.4c/plugins/awlibusb.c
@@ -43,6 +43,10 @@
 
 #include "lirc_driver.h"
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 #define AW_MODE_LIRCCODE 1
 
 #define AWUSB_RECEIVE_BYTES 5
Index: lirc-0.9.4c/plugins/dfclibusb.c
===================================================================
--- lirc-0.9.4c.orig/plugins/dfclibusb.c
+++ lirc-0.9.4c/plugins/dfclibusb.c
@@ -35,6 +35,10 @@
 
 #include "lirc_driver.h"
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 #define CODE_BYTES 6
 #define USB_TIMEOUT (5000)
 
Index: lirc-0.9.4c/tools/irpty.cpp
===================================================================
--- lirc-0.9.4c.orig/tools/irpty.cpp
+++ lirc-0.9.4c/tools/irpty.cpp
@@ -142,6 +142,10 @@ static void copy_loop(int ptym, int igno
        lirc_deinit();
 }
 
+#undef RESET
+#undef RAW
+#undef CBREAK
+
 static struct termios save_termios;
 static int ttysavefd = -1;
 static enum {
Index: lirc-0.9.4c/plugins/ftdix.c
===================================================================
--- lirc-0.9.4c.orig/plugins/ftdix.c
+++ lirc-0.9.4c/plugins/ftdix.c
@@ -51,11 +51,13 @@
 
 #include <ftdi.h>
 
+#ifdef LINUX
 #define LIRC_FTDIX_SET_SCHEDULER 1
 #ifdef LIRC_FTDIX_SET_SCHEDULER
 #include <sched.h>
 #include <linux/sched.h>
 #endif
+#endif
 
 static const logchannel_t logchannel = LOG_DRIVER;
 

--- End Message ---
--- Begin Message ---
Source: lirc
Source-Version: 0.9.4c-6

We believe that the bug you reported is fixed in the latest version of
lirc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alec Leamas <[email protected]> (supplier of updated lirc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 20 Dec 2016 12:36:19 +0100
Source: lirc
Binary: lirc lirc-doc liblirc0 liblircclient0 liblircclient-dev liblirc-dev 
liblirc-client0 lirc-x
Architecture: source
Version: 0.9.4c-6
Distribution: unstable
Urgency: medium
Maintainer: lirc Maintainer Team <[email protected]>
Changed-By: Alec Leamas <[email protected]>
Description:
 liblirc-client0 - infra-red remote control support - client library
 liblirc-dev - Infra-red remote control support - development files
 liblirc0   - Infra-red remote control support - Run-time libraries
 liblircclient-dev - Transitional placeholder for obsoleted liblircclient-dev
 liblircclient0 - Transitional placeholder for obsoleted liblircclient0
 lirc       - Infra-red remote control support - daemons and utils
 lirc-doc   - Infra-red remote control support - website and manual docs
 lirc-x     - infra-red remote control support - X utilities
Closes: 845499 848135 849266
Changes:
 lirc (0.9.4c-6) unstable; urgency=medium
 .
   * Fix unsecure permissions for /run/lirc. Closes: #848135
   * Fix missing config.h header (Upstream #250).
   * Fix HURD build (Closes: #845499)
     - Fix from Samuel Thibault
   * Add missing Suggests: for lirc-compat-remotes.
   * Fix --listen option parsing bug (upstream #249).
   * Fix bad update handling of lirc_options.conf (Closes: #849266).
Checksums-Sha1:
 96777bb360c6eef2d4c0ebdb9c8fa8e7857d1a8f 2605 lirc_0.9.4c-6.dsc
 08e2ec3608df3e0ea0579f485c55774cc1a62172 41168 lirc_0.9.4c-6.debian.tar.xz
Checksums-Sha256:
 018ac352c84644bca441c04eb930b07754d20e6192d17b63f3fc76c5a461048b 2605 
lirc_0.9.4c-6.dsc
 9597e3bc2374dace2cbab2553b3c2512960dbbca172fbb732c98569d813333c2 41168 
lirc_0.9.4c-6.debian.tar.xz
Files:
 504efe0ba17050323ff49d1cac903ca7 2605 utils extra lirc_0.9.4c-6.dsc
 9d9ee819d9515f386e5507c933784b4e 41168 utils extra lirc_0.9.4c-6.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYbXL/AAoJEPNPCXROn13ZFVsP/0/qIS7AdoVnaXchjZFhprdD
x0402uZEQez27NBmW4clwk5jUUF0ArJUsr8LhpwxPan7obuldEmxMhfNufEkoH+c
hsIn5F1iBjww+inqf4dzxjBNJ88Z+7gkHsMhEo5MdEgxkwXcWdGRxTmsa1AIptSy
jzpcNM41Wd0GSccBzNqvjuTL0ma2Gt2Xxre2KJF9qvibfnwa7WPjoM8KP4tt5oiK
fmCZW+vdcFpaVgapgBvrSF6MOAf44GxSHJIGF+epTpH8RyMmKGEb1vO8DNDqN9oR
AkFpLEFhaokVDBnr5a5LQpkiUKLyVio/vsqcjlzOyeElX34RLbistNTxDgyQG7eK
mT7+XYus/7jzpIVQct64PoI5L+iF1LWpbbVG7nVU503CSnm1wIyyctDSAhchuSqO
n7HkkY4wV9BHfPH8H13KHfCCqiZyIZ64+LBEFfygGn7D3/0b1VTnQQZN5Y19Efyg
JyvkhCYHL6RPZd0o/qjQLNJq6sgtJ0PXlLIrrgGd06LXHLQrDkRCMxyAFpVrwB4n
pwRr80BJZveFBaoVvZyr5d5e1Ntenf6pc4nYCMx/QOQPaToYyf9/VKL8kSCCBO6C
zjekk6mLKxfkvn9XJFGmfx1EWJToAVS64Kqbrh+ixymEK8DjG/MIi6HaoyDSeZTj
9zLNBsqOQMzhkUXpU2YE
=cQ9x
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to