Debian Bug report logs - #979021
lirc: reproducible builds: Embeds different paths to "modinfo" and "sh"

version graph

Package: src:lirc; Maintainer for src:lirc is Debian Lirc Team <team+debian-lirc@tracker.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sat, 2 Jan 2021 01:27:01 UTC

Severity: serious

Tags: patch

Fixed in version lirc/0.10.1-7.1

Done: Micha Lenk <micha@debian.org>

Forwarded to https://sourceforge.net/p/lirc/tickets/374/

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Lirc Team <team+debian-lirc@tracker.debian.org>:
Bug#979021; Package src:lirc. (Sat, 02 Jan 2021 01:27:03 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Lirc Team <team+debian-lirc@tracker.debian.org>. (Sat, 02 Jan 2021 01:27:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: lirc: reproducible builds: Embeds different paths to "modinfo" and "sh"
Date: Fri, 01 Jan 2021 17:25:27 -0800
[Message part 1 (text/plain, inline)]
Source: lirc
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: usrmerge
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Various files embed paths to "modinfo" and "sh" differently on a
non-usrmerge vs. usrmerge system.

  https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/i386/diffoscope-results/lirc.html

  /usr/lib/x86_64-linux-gnu/python3.9/site-packages/lirc/config.py
  MODINFO·=·"/sbin/modinfo"
  vs.
  MODINFO·=·"/usr/sbin/modinfo"

  /usr/include/lirc/config.h
  #define·SH_PATH·"/bin/sh"
  vs.
  #define·SH_PATH·"/usr/bin/sh"

The attached patches fix this by patching configure.ac to accept the
MODINFO variable, and passing the SH_PATH and MODINFO variables to
configure.


Thanks for maintaining lirc!

live well,
  vagrant
[0002-debian-patches-Add-patch-to-support-passing-MODINFO-.patch (text/x-diff, inline)]
From 63155d63989f7470ce5231e4846029cd8b20be34 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 2 Jan 2021 01:04:17 +0000
Subject: [PATCH 2/3] debian/patches: Add patch to support passing MODINFO to
 configure.

---
 ...figure.ac-to-support-passing-MODINFO.patch | 25 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 debian/patches/0010-Patch-configure.ac-to-support-passing-MODINFO.patch

diff --git a/debian/patches/0010-Patch-configure.ac-to-support-passing-MODINFO.patch b/debian/patches/0010-Patch-configure.ac-to-support-passing-MODINFO.patch
new file mode 100644
index 0000000..fd4d9f8
--- /dev/null
+++ b/debian/patches/0010-Patch-configure.ac-to-support-passing-MODINFO.patch
@@ -0,0 +1,25 @@
+From 6f3ba4fa2b98d7fede17da5888fb8e00fb54dba4 Mon Sep 17 00:00:00 2001
+From: Vagrant Cascadian <vagrant@reproducible-builds.org>
+Date: Sat, 2 Jan 2021 01:03:10 +0000
+Subject: [PATCH] Patch configure.ac to support passing MODINFO.
+
+---
+ configure.ac | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 58347d8..1d910b0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -25,8 +25,6 @@ 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="false"
+-else
+-  MODINFO=$( PATH=$PATH:/sbin:/usr/sbin which modinfo )
+ fi
+ AC_SUBST(MODINFO)
+ AC_CHECK_PROG([PKGCONFIG],[pkg-config],[yes],[no])
+-- 
+2.20.1
+
diff --git a/debian/patches/series b/debian/patches/series
index 7797a6c..0dbfd25 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
 0007-python3.8.diff
 0008-doxyfile-Don-t-include-full-pathname-961954.patch
 0009-Do-not-embed-build-date-and-kernel-version-in-variou.patch
+0010-Patch-configure.ac-to-support-passing-MODINFO.patch
-- 
2.20.1

[0003-debian-rules-Pass-MODINFO-and-SH_PATH-to-configure.patch (text/x-diff, inline)]
From c4e6f2360108bf15d23684290f56e09e78a6fc1e Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 2 Jan 2021 00:47:10 +0000
Subject: [PATCH 3/3] debian/rules: Pass MODINFO and SH_PATH to configure.

The paths to "modinfo" and "sh" may vary as either located in /bin and
/sbin or in /usr/bin and /usr/sbin if the system is configured as a
usrmerge system. Use the non-usrmerge paths for the most compatible
location.
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 84787ef..446510f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,10 +17,14 @@ override_dh_autoreconf:
 override_dh_auto_configure:
 ifeq ($(DEB_BUILD_ARCH_OS), linux)
 	dh_auto_configure -- \
+	    SH_PATH=/bin/sh \
+	    MODINFO=/sbin/modinfo \
 	    --enable-uinput --enable-devinput \
 	    --enable-silent-rules
 else
 	dh_auto_configure -- \
+	    SH_PATH=/bin/sh \
+	    MODINFO=/sbin/modinfo \
 	    --disable-uinput --disable-devinput \
 	    --enable-silent-rules
 endif
-- 
2.20.1

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Lirc Team <team+debian-lirc@tracker.debian.org>:
Bug#979021; Package src:lirc. (Sun, 17 Jul 2022 12:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to Simon McVittie <smcv@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Lirc Team <team+debian-lirc@tracker.debian.org>. (Sun, 17 Jul 2022 12:06:03 GMT) (full text, mbox, link).


Message #10 received at 979021@bugs.debian.org (full text, mbox, reply):

From: Simon McVittie <smcv@debian.org>
To: 979021@bugs.debian.org
Cc: Vagrant Cascadian <vagrant@reproducible-builds.org>
Subject: Re: Bug#979021: lirc: reproducible builds: Embeds different paths to "modinfo" and "sh"
Date: Sun, 17 Jul 2022 13:03:44 +0100
Control: severity -1 serious

On Fri, 01 Jan 2021 at 17:25:27 -0800, Vagrant Cascadian wrote:
> Various files embed paths to "modinfo" and "sh" differently on a
> non-usrmerge vs. usrmerge system.
> 
>   https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/i386/diffoscope-results/lirc.html
> 
>   /usr/lib/x86_64-linux-gnu/python3.9/site-packages/lirc/config.py
>   MODINFO·=·"/sbin/modinfo"
>   vs.
>   MODINFO·=·"/usr/sbin/modinfo"
> 
>   /usr/include/lirc/config.h
>   #define·SH_PATH·"/bin/sh"
>   vs.
>   #define·SH_PATH·"/usr/bin/sh"

This will be a practical problem as soon as Debian starts using merged-/usr
on official buildds, and the Debian technical committee resolution
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994388#110 recommends
treating this class of bug as release-critical for Debian 12, so I'm
raising the severity of this bug.

The problem scenario is:

- build the package on a system where both /bin/sh and /usr/bin/sh exist
  (merged-/usr)
- install and run the package on a system where only /bin/sh exists
  (non-merged-/usr)
- result: the feature that runs sh will not work

and the same for modinfo.

> The attached patches fix this by patching configure.ac to accept the
> MODINFO variable, and passing the SH_PATH and MODINFO variables to
> configure.

Please upload a fixed package before the Debian 12 freeze. Vagrant's patch
looks appropriate.

Thanks,
    smcv



Severity set to 'serious' from 'normal' Request was from Simon McVittie <smcv@debian.org> to 979021-submit@bugs.debian.org. (Sun, 17 Jul 2022 12:06:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Lirc Team <team+debian-lirc@tracker.debian.org>:
Bug#979021; Package src:lirc. (Sun, 16 Oct 2022 13:21:03 GMT) (full text, mbox, link).


Acknowledgement sent to Micha Lenk <micha@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Lirc Team <team+debian-lirc@tracker.debian.org>. (Sun, 16 Oct 2022 13:21:03 GMT) (full text, mbox, link).


Message #17 received at 979021@bugs.debian.org (full text, mbox, reply):

From: Micha Lenk <micha@debian.org>
To: 979021@bugs.debian.org
Cc: control@bugs.debian.org
Subject: lirc: diff for NMU version 0.10.1-7.1
Date: Sun, 16 Oct 2022 15:19:14 +0200
[Message part 1 (text/plain, inline)]
tags 979021 + pending
forwarded 979021 https://sourceforge.net/p/lirc/tickets/374/
user debian-release@lists.debian.org
usertags -1 + bsp-2022-10-de-karlsruhe
thank you


Dear maintainer,

I've prepared an NMU for lirc (versioned as 0.10.1-7.1) and
uploaded it to DELAYED/3. Please feel free to tell me if I
should delay it longer.

Additionally I dared to forward the patch affecting the upstream
code to their bug tracker. Hopefully this will make future
maintenance of this package easier.

Regards,
Micha
[lirc-0.10.1-7.1-nmu.diff (text/x-diff, attachment)]

Added tag(s) pending. Request was from Micha Lenk <micha@debian.org> to control@bugs.debian.org. (Sun, 16 Oct 2022 13:21:04 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://sourceforge.net/p/lirc/tickets/374/'. Request was from Micha Lenk <micha@debian.org> to control@bugs.debian.org. (Sun, 16 Oct 2022 13:21:05 GMT) (full text, mbox, link).


Reply sent to Micha Lenk <micha@debian.org>:
You have taken responsibility. (Wed, 19 Oct 2022 15:27:04 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Wed, 19 Oct 2022 15:27:04 GMT) (full text, mbox, link).


Message #26 received at 979021-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 979021-close@bugs.debian.org
Subject: Bug#979021: fixed in lirc 0.10.1-7.1
Date: Wed, 19 Oct 2022 15:24:40 +0000
Source: lirc
Source-Version: 0.10.1-7.1
Done: Micha Lenk <micha@debian.org>

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 979021@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Micha Lenk <micha@debian.org> (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 ftpmaster@ftp-master.debian.org)


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

Format: 1.8
Date: Sun, 16 Oct 2022 13:31:28 +0200
Source: lirc
Architecture: source
Version: 0.10.1-7.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Lirc Team <team+debian-lirc@tracker.debian.org>
Changed-By: Micha Lenk <micha@debian.org>
Closes: 979021
Changes:
 lirc (0.10.1-7.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * debian/patches: Add patch to support passing MODINFO to configure.
   * debian/rules: Pass MODINFO and SH_PATH to configure. The paths to "modinfo"
     and "sh" may vary as either located in /bin and /sbin or in /usr/bin and
     /usr/sbin if the system is configured as a usrmerge system. Use the
     non-usrmerge paths for the most compatible location (closes: #979021).
Checksums-Sha1:
 e09c289fd856f910418b54178bef75fcafedd211 2663 lirc_0.10.1-7.1.dsc
 a96698ccb90c5e87335128b293571c620238cd8c 39952 lirc_0.10.1-7.1.debian.tar.xz
 3c6a8005740549e83ed2f0a80cef631a394ae204 8438 lirc_0.10.1-7.1_source.buildinfo
Checksums-Sha256:
 c7a682cb3113b5fa6a779702cccd6fcf82448cb238670220d77168e09e7f2005 2663 lirc_0.10.1-7.1.dsc
 d9c2fb2012a486fee0ffad078371f80aedc98c82dd333f74ea96d381367f5fd9 39952 lirc_0.10.1-7.1.debian.tar.xz
 b941d6181513524c149d946aad842c3491b448fb06bb88243efc428075316ca7 8438 lirc_0.10.1-7.1_source.buildinfo
Files:
 60e91c7cc8809c746cf9d5dddd1a8fa7 2663 utils optional lirc_0.10.1-7.1.dsc
 8d50e2251fcd31f1d5c3e046a1f96e16 39952 utils optional lirc_0.10.1-7.1.debian.tar.xz
 fcb85fcac30e747520bef12bd03f14bc 8438 utils optional lirc_0.10.1-7.1_source.buildinfo

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

iQIzBAEBCAAdFiEEo+u0H8Wr1nXO5BxF6mymuVG4UTkFAmNMB1AACgkQ6mymuVG4
UTmS6Q/+NR6iL96pd2eqESnA588pJ1J9uhnpTLQtNcCwHsXol+ML/e/WyiGqNMwA
G9ecqnHCV6wBceqNMydOtFiLCFb0aYydNVVMYRUGpK5tlrV9RO40bG3qi+sHiaRp
EwR+My5DkuAwAgGljIFWjCiGZ88llVX9JpjJLeh9fsveM4XhYSwkDKWRuk3BDxHu
gjN1H8BcxhGIcRR5ghIc6QPE5z/20mASsTSmtH/S5M326yCran3OK+L3wtObf7w9
aFdIHof/NKyupowGzm/1HhFhCEgIT74qQy0bYSGz+ckvPAr/ubWxot2jYLWbTbk8
JGTVPDMHpEymixsoEx+sNg7PGjo22Et1u9maa9uvWO74lhfDKE4zAXdalEaLVpWt
C8+OwtdFT/dYJKT9FRr9fvo1XsNiri1IGlHWPbuLgNsHsTk67WowpJTZLpe2wSyS
zPLid8jh9vk1tBKVDDMBxl78me/yek3kd7yPMq6Cg9IDO+POElKW2fbWUq70mv4s
QPpQwxhTG42312H5dCqfD7Fla/6Qc42tJKHpWs58VcWcsU+v4TqdktP+cGjX5Llr
FC6XuUxTWRZoTxaSInpsBYgFM2lodxRM3xXxBGPNv3vCeb8bFU52SZAErFbmGCzF
q0FMxNeWAbH0O1YjhXgKld66ABZFR6RcVQQk8nUC4LO+pTQZy50=
=tHgl
-----END PGP SIGNATURE-----




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 09:59:24 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.