Your message dated Wed, 17 Jan 2024 13:34:09 +0000
with message-id <[email protected]>
and subject line Bug#1060093: fixed in lirc 0.10.2-0.5
has caused the Debian Bug report #1060093,
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.)


-- 
1060093: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060093
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: lirc
Version: 0.10.2-0.2
Severity: important
Tags: patch
User: [email protected]
Usertags: hurd
X-Debbugs-CC: [email protected]

Hi,

lirc FTBFS on hurd-i386. (Built in the past, last successful build
version was 0.10.1-5.2)

This is due to usage of __u32 (and __u16,__u64) in
include/media/lirc.h, which is not defined on GNU/Hurd. Additionally
inclusion of header files is ifdef-ed and config.h is included.

Moreover, MODINFO is not available on GNU/Hurd since Hurd does not use
modules at all. This change is reflected in the second patch for
debian/rules.

The two patches enabling a successful build on GNU/Hurd (and
GNU/Linux)are attached in next mail:
- include/media/lirc.h
- debian_rules.patch.

I'm sending this bug report to Debian instead of upstream since this
package has been NMU-ed several times, and the second patch is Debian-
specific.

Thanks!

Index: lirc-0.10.2/include/media/lirc.h
===================================================================
--- lirc-0.10.2.orig/include/media/lirc.h
+++ lirc-0.10.2/include/media/lirc.h
@@ -6,8 +6,27 @@
 #ifndef _LINUX_LIRC_H
 #define _LINUX_LIRC_H
 
+#include "config.h"
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
+#ifdef HAVE_LINUX_TYPES_H
 #include <linux/types.h>
+#endif
+
+#ifdef HAVE_LINUX_IOCTL_H
 #include <linux/ioctl.h>
+#endif
+
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif
+
+#ifdef __GNU__
+#include <hurd/ioctl.h>
+#endif
 
 #define PULSE_BIT       0x01000000
 #define PULSE_MASK      0x00FFFFFF
@@ -93,55 +112,55 @@
 
 /*** IOCTL commands for lirc driver ***/
 
-#define LIRC_GET_FEATURES              _IOR('i', 0x00000000, __u32)
+#define LIRC_GET_FEATURES              _IOR('i', 0x00000000, uint32_t)
 
-#define LIRC_GET_SEND_MODE             _IOR('i', 0x00000001, __u32)
-#define LIRC_GET_REC_MODE              _IOR('i', 0x00000002, __u32)
-#define LIRC_GET_REC_RESOLUTION        _IOR('i', 0x00000007, __u32)
+#define LIRC_GET_SEND_MODE             _IOR('i', 0x00000001, uint32_t)
+#define LIRC_GET_REC_MODE              _IOR('i', 0x00000002, uint32_t)
+#define LIRC_GET_REC_RESOLUTION        _IOR('i', 0x00000007, uint32_t)
 
-#define LIRC_GET_MIN_TIMEOUT           _IOR('i', 0x00000008, __u32)
-#define LIRC_GET_MAX_TIMEOUT           _IOR('i', 0x00000009, __u32)
+#define LIRC_GET_MIN_TIMEOUT           _IOR('i', 0x00000008, uint32_t)
+#define LIRC_GET_MAX_TIMEOUT           _IOR('i', 0x00000009, uint32_t)
 
 /* code length in bits, currently only for LIRC_MODE_LIRCCODE */
-#define LIRC_GET_LENGTH                _IOR('i', 0x0000000f, __u32)
+#define LIRC_GET_LENGTH                _IOR('i', 0x0000000f, uint32_t)
 
-#define LIRC_SET_SEND_MODE             _IOW('i', 0x00000011, __u32)
-#define LIRC_SET_REC_MODE              _IOW('i', 0x00000012, __u32)
+#define LIRC_SET_SEND_MODE             _IOW('i', 0x00000011, uint32_t)
+#define LIRC_SET_REC_MODE              _IOW('i', 0x00000012, uint32_t)
 /* Note: these can reset the according pulse_width */
-#define LIRC_SET_SEND_CARRIER          _IOW('i', 0x00000013, __u32)
-#define LIRC_SET_REC_CARRIER           _IOW('i', 0x00000014, __u32)
-#define LIRC_SET_SEND_DUTY_CYCLE       _IOW('i', 0x00000015, __u32)
-#define LIRC_SET_TRANSMITTER_MASK      _IOW('i', 0x00000017, __u32)
+#define LIRC_SET_SEND_CARRIER          _IOW('i', 0x00000013, uint32_t)
+#define LIRC_SET_REC_CARRIER           _IOW('i', 0x00000014, uint32_t)
+#define LIRC_SET_SEND_DUTY_CYCLE       _IOW('i', 0x00000015, uint32_t)
+#define LIRC_SET_TRANSMITTER_MASK      _IOW('i', 0x00000017, uint32_t)
 
 /*
  * when a timeout != 0 is set the driver will send a
  * LIRC_MODE2_TIMEOUT data packet, otherwise LIRC_MODE2_TIMEOUT is
  * never sent, timeout is disabled by default
  */
-#define LIRC_SET_REC_TIMEOUT           _IOW('i', 0x00000018, __u32)
+#define LIRC_SET_REC_TIMEOUT           _IOW('i', 0x00000018, uint32_t)
 
 /* 1 enables, 0 disables timeout reports in MODE2 */
-#define LIRC_SET_REC_TIMEOUT_REPORTS   _IOW('i', 0x00000019, __u32)
+#define LIRC_SET_REC_TIMEOUT_REPORTS   _IOW('i', 0x00000019, uint32_t)
 
 /*
  * if enabled from the next key press on the driver will send
  * LIRC_MODE2_FREQUENCY packets
  */
-#define LIRC_SET_MEASURE_CARRIER_MODE	_IOW('i', 0x0000001d, __u32)
+#define LIRC_SET_MEASURE_CARRIER_MODE	_IOW('i', 0x0000001d, uint32_t)
 
 /*
  * to set a range use LIRC_SET_REC_CARRIER_RANGE with the
  * lower bound first and later LIRC_SET_REC_CARRIER with the upper bound
  */
-#define LIRC_SET_REC_CARRIER_RANGE     _IOW('i', 0x0000001f, __u32)
+#define LIRC_SET_REC_CARRIER_RANGE     _IOW('i', 0x0000001f, uint32_t)
 
-#define LIRC_SET_WIDEBAND_RECEIVER     _IOW('i', 0x00000023, __u32)
+#define LIRC_SET_WIDEBAND_RECEIVER     _IOW('i', 0x00000023, uint32_t)
 
 /*
  * Return the recording timeout, which is either set by
  * the ioctl LIRC_SET_REC_TIMEOUT or by the kernel after setting the protocols.
  */
-#define LIRC_GET_REC_TIMEOUT	       _IOR('i', 0x00000024, __u32)
+#define LIRC_GET_REC_TIMEOUT	       _IOR('i', 0x00000024, uint32_t)
 
 /**
  * struct lirc_scancode - decoded scancode with protocol for use with
@@ -157,11 +176,11 @@
  * @scancode: the scancode received or to be sent
  */
 struct lirc_scancode {
-	__u64	timestamp;
-	__u16	flags;
-	__u16	rc_proto;
-	__u32	keycode;
-	__u64	scancode;
+	uint64_t	timestamp;
+	uint16_t	flags;
+	uint16_t	rc_proto;
+	uint32_t	keycode;
+	uint64_t	scancode;
 };
 
 /* Set if the toggle bit of rc-5 or rc-6 is enabled */
--- a/debian/rules	2023-12-16 18:35:11.000000000 +0100
+++ b/debian/rules	2024-01-02 12:49:12.000000000 +0100
@@ -4,7 +4,14 @@
 include /usr/share/dpkg/pkg-info.mk
 
 export DEB_BUILD_MAINT_OPTIONS      = hardening=+all
-export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__$(DEB_HOST_ARCH_OS)_$(DEB_HOST_MULTIARCH)
+
+ifeq ($(DEB_HOST_ARCH_OS), hurd)
+#FIXME: Replace gnu0 with either gnu or hurd in python3.11!
+#/usr/lib/python3.11/__pycache__/_sysconfigdata__gnu0_i386-gnu.cpython-311.pyc
+	export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__gnu0_$(DEB_HOST_MULTIARCH)
+else
+	export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__$(DEB_HOST_ARCH_OS)_$(DEB_HOST_MULTIARCH)
+endif
 
 export LC_ALL=C.UTF-8
 
@@ -33,7 +40,7 @@
 else
 	dh_auto_configure -- \
 	    SH_PATH=/bin/sh \
-	    MODINFO=/sbin/modinfo \
+	    MODINFO= \
 	    --disable-uinput --disable-devinput
 endif
 

--- End Message ---
--- Begin Message ---
Source: lirc
Source-Version: 0.10.2-0.5
Done: Gianfranco Costamagna <[email protected]>

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.
Gianfranco Costamagna <[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: Wed, 17 Jan 2024 14:21:20 +0100
Source: lirc
Built-For-Profiles: noudeb
Architecture: source
Version: 0.10.2-0.5
Distribution: unstable
Urgency: medium
Maintainer: Debian Lirc Team <[email protected]>
Changed-By: Gianfranco Costamagna <[email protected]>
Closes: 1060093 1060557
Changes:
 lirc (0.10.2-0.5) unstable; urgency=medium
 .
   * Non-maintainer upload.
 .
   [ Michael Biebl ]
   * Update dependency to systemd-dev (Closes: #1060557)
   [ Svante Signell, Samuel Thibault ]
   * Fix build on hurd (Closes: #1060093)
Checksums-Sha1:
 118869a4d46450d8fcef20b0f0d09435ad8bb96a 2539 lirc_0.10.2-0.5.dsc
 319091476c10afb62db59e814382fd0d20331e77 40316 lirc_0.10.2-0.5.debian.tar.xz
 bd086250ea6249adefdd2c3f2661502066f632aa 10488 lirc_0.10.2-0.5_source.buildinfo
Checksums-Sha256:
 d4b742e8a52699833e284ea939ce66122602946f2172fda178d83c96dc057f43 2539 
lirc_0.10.2-0.5.dsc
 47477e8a6225cf7ea454d4aaadc30fef38e04e5cbe1299dd38c085ce4fdd8968 40316 
lirc_0.10.2-0.5.debian.tar.xz
 9140d0199f632f44009dc91d0b1ebaf3c10df5c45e4be69cb603a055998f4fe4 10488 
lirc_0.10.2-0.5_source.buildinfo
Files:
 23c7f7fc760f99e4cd58497e90dae0f4 2539 utils optional lirc_0.10.2-0.5.dsc
 8a3d8bd01eeff0c13bc2a95ab7e401c5 40316 utils optional 
lirc_0.10.2-0.5.debian.tar.xz
 d7f0ff15b8a58832b9d268175e7538d9 10488 utils optional 
lirc_0.10.2-0.5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEkpeKbhleSSGCX3/w808JdE6fXdkFAmWn1ZoACgkQ808JdE6f
XdkQSg/8DgUZey1pPMh9oDa2XrUnHiAWNvSDMU71jjd3UYwNmq4vgKk4HyD4ehM3
wfYSXNM4iCWYEDi9Hu8fD8C3jo7Ya9h0XfUlSMrSoyZ4tXXetGx8Rg4U6pO0apJg
94yeZeqv0ugvCO1Cvsz+eVrYdL/zeaUhKN3S7KZZAzX4kpVSYxc/aADnPLlIehKE
oBzEx1+y/p2404KOS4ruvQSFGufhlChPbRLP5hUlzS9RBuuDTbjQTUiLKCUS81ln
kf2qQEVQLUDQuCrJNEzxDHnTfAYL46Xk3NRfFaijvjlPKt3lMnUsehXVRAHvnUJd
SUCNPBckeW72+0d1ziBuIAoHJOl4b/hzaLGBQL7cS9712RJWePMH1tmFR7Ea0pwP
+crwW1Qdqbxb2bl7xxxDCAh0DV2SJW+pwT1EZGFQT3vjcOFlOv158i+tY+BoAAuA
ur7HuLojgMD4SR3+B60HijBr2R3lXU7YGn/moGp6mJkES5PVQ5+27BOcWA7NBPix
AvhQxPWb07eWh87Arn71ix3CxW4aeXQjnKPGKW8mPpcj3AMfYIwKgKe3amV2jwxT
s8GflD8mfuqeyyLbeHfHx8LEotLVQ8RG+pGiKfG46LX8+mHk74+zPbRVkXKOylpL
4kA5ThxBXqUsrJFAozHNB9C+5z5CV1I050WwFKJ4PJRyZZ2zdLQ=
=13vf
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to