Skip to contentSkip to conversation

lirc-tools: remove useless libusb-compat dependnecy

PATCH New Baruch Siach 2 participants 6 messages Aug 28, 2017 – Aug 31, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 lirc-tools: remove useless libusb-compat dependnecy

The only plugin that uses libusb/libusb-compat is the ftdi plugin. This plugin needs libftdi1 that already depends on libusb in Buildroot. So in practice libusb-compat is never actually used; we can safely remove it. The libusb dependency is implicit in the libftdi1 optional dependency.

---
 package/lirc-tools/lirc-tools.mk | 4 ----
 1 file changed, 4 deletions(-)
package/lirc-tools/lirc-tools.mk +0 -4
index 9d46c1b1b042..e767d9d7f02c 100644
@@ -23,10 +23,6 @@ ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
 LIRC_TOOLS_DEPENDENCIES += alsa-lib
 endif
 
-ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y)
-LIRC_TOOLS_DEPENDENCIES += libusb-compat
-endif
-
 ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
 LIRC_TOOLS_DEPENDENCIES += portaudio
 endif
Signature · 1 line
2.14.1
#1 lore raw

PATCH 2/2 libftdi1: bump to version 1.4

---
 package/libftdi1/libftdi1.hash | 5 +++--
 package/libftdi1/libftdi1.mk   | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
package/libftdi1/libftdi1.hash +3 -2
index 0a89182449c1..40512a7fc302 100644
@@ -1,2 +1,3 @@
-# Locally computed (after checking the signature from http://www.intra2net.com/en/developer/libftdi/download.php)
-sha256  9a8c95c94bfbcf36584a0a58a6e2003d9b133213d9202b76aec76302ffaa81f4  libftdi1-1.3.tar.bz2
+# Locally computed after checking the signature
+# https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.4.tar.bz2.sig
+sha256  ec36fb49080f834690c24008328a5ef42d3cf584ef4060f3a35aa4681cb31b74  libftdi1-1.4.tar.bz2
package/libftdi1/libftdi1.mk +1 -1
index 6b84b953170f..c45c83a71116 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBFTDI1_VERSION = 1.3
+LIBFTDI1_VERSION = 1.4
 LIBFTDI1_SOURCE = libftdi1-$(LIBFTDI1_VERSION).tar.bz2
 LIBFTDI1_SITE = http://www.intra2net.com/en/developer/libftdi/download
 LIBFTDI1_INSTALL_STAGING = YES
Signature · 1 line
2.14.1
#2 lore raw

PATCH 2/2 libftdi1: bump to version 1.4

Hello,

Quoted 6 lines · Baruch Siach
---
 package/libftdi1/libftdi1.hash | 5 +++--
 package/libftdi1/libftdi1.mk   | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 1/2 lirc-tools: remove useless libusb-compat dependnecy

In reply to Baruch Siach

Hello,

Quoted 4 lines · Baruch Siach

The only plugin that uses libusb/libusb-compat is the ftdi plugin. This plugin needs libftdi1 that already depends on libusb in Buildroot. So in practice libusb-compat is never actually used; we can safely remove it. The libusb dependency is implicit in the libftdi1 optional dependency.

Are you sure ?

From the configure.ac script:

AC_CHECK_HEADERS([usb.h libusb-1.0/libusb.h libusb.h]) AC_CHECK_LIB([usb],[usb_get_string],[usb_libs="-lusb"],,) AM_CONDITIONAL([BUILD_USB],[test x$usb_libs != x]) AC_CHECK_LIB([usb-1.0],[libusb_lock_events],[usb_libs="$usb_libs -lusb-1.0"],,)

In addition, I do see a number of plugins linked with libusb-0.1:

$ readelf -d output/target/usr/lib/lirc/plugins/* | grep libusb-0.1
 0x00000001 (NEEDED)                     Shared library: [libusb-0.1.so.4]
 0x00000001 (NEEDED)                     Shared library: [libusb-0.1.so.4]
 0x00000001 (NEEDED)                     Shared library: [libusb-0.1.so.4]
 0x00000001 (NEEDED)                     Shared library: [libusb-0.1.so.4]
 0x00000001 (NEEDED)                     Shared library: [libusb-0.1.so.4]

Am I missing something ?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

PATCH 1/2 lirc-tools: remove useless libusb-compat dependnecy

Hi Thomas,

Quoted 17 lines · Thomas Petazzoni
Quoted 4 lines · Baruch Siach

The only plugin that uses libusb/libusb-compat is the ftdi plugin. This plugin needs libftdi1 that already depends on libusb in Buildroot. So in practice libusb-compat is never actually used; we can safely remove it. The libusb dependency is implicit in the libftdi1 optional dependency.

Are you sure ?

From the configure.ac script:

AC_CHECK_HEADERS([usb.h libusb-1.0/libusb.h libusb.h]) AC_CHECK_LIB([usb],[usb_get_string],[usb_libs="-lusb"],,) AM_CONDITIONAL([BUILD_USB],[test x$usb_libs != x]) AC_CHECK_LIB([usb-1.0],[libusb_lock_events],[usb_libs="$usb_libs -lusb-1.0"],,)

In addition, I do see a number of plugins linked with libusb-0.1:

Quoted 8 lines
$ readelf -d output/target/usr/lib/lirc/plugins/* | grep libusb-0.1
 0x00000001 (NEEDED)                     Shared library: [libusb-0.1.so.4]
 0x00000001 (NEEDED)                     Shared library: [libusb-0.1.so.4]
 0x00000001 (NEEDED)                     Shared library: [libusb-0.1.so.4]
 0x00000001 (NEEDED)                     Shared library: [libusb-0.1.so.4]
 0x00000001 (NEEDED)                     Shared library: [libusb-0.1.so.4]

Am I missing something ?

No. I missed the libusb-0.1 related symbols in configure.ac and plugins/Makefile.am.

Marked as rejected.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#5 lore raw

PATCH 1/2 lirc-tools: remove useless libusb-compat dependnecy

Hello,

Quoted 6 lines · Baruch Siach
Quoted 1 line

Am I missing something ?

No. I missed the libusb-0.1 related symbols in configure.ac and plugins/Makefile.am.

Marked as rejected.

OK, thanks for confirming. FYI, when I saw your patch, I looked at the Git log on this package, and found a commit from Bernd adding the LIBUSB_COMPAT optional dependency, with a commit log saying that it is referenced in configure.ac. That's how I started to have some doubts on your patch :-)

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com