Skip to contentSkip to conversation

package/gnupg2: fix libusb detection

PATCH New Bernd Kuhls 3 participants 3 messages Mar 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gnupg2: fix libusb detection

gnupg2 does not use pkgconf to detect the include dir of libusb.

Fixes
http://autobuild.buildroot.net/results/70c/70c9f5f8ae77fbda2b5eba3aacf831430dc59a1c/

---
 package/gnupg2/gnupg2.mk | 1 +
 1 file changed, 1 insertion(+)
package/gnupg2/gnupg2.mk +1 -0
index 5815e7003..3932c3a0f 100644
@@ -43,6 +43,7 @@ GNUPG2_CONF_OPTS += --disable-gnutls
 endif
 
 ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y)
+GNUPG2_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/libusb-1.0"
 GNUPG2_CONF_OPTS += --enable-ccid-driver
 GNUPG2_DEPENDENCIES += libusb-compat
 else
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/gnupg2: fix libusb detection

Bernd, All,

On 2017-03-21 08:09 +0100, Bernd Kuhls spake thusly:

Quoted 6 lines

gnupg2 does not use pkgconf to detect the include dir of libusb.

Fixes
http://autobuild.buildroot.net/results/70c/70c9f5f8ae77fbda2b5eba3aacf831430dc59a1c/

This is not the best fix, but the best fix would require use of pkg-config. Maybe worth pushing that support upstream? ;-)

Regards,
Yann E. MORIN.

Quoted 23 lines
---
 package/gnupg2/gnupg2.mk | 1 +
 1 file changed, 1 insertion(+)
package/gnupg2/gnupg2.mk +1 -0
index 5815e7003..3932c3a0f 100644
@@ -43,6 +43,7 @@ GNUPG2_CONF_OPTS += --disable-gnutls
 endif
 
 ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y)
+GNUPG2_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/libusb-1.0"
 GNUPG2_CONF_OPTS += --enable-ccid-driver
 GNUPG2_DEPENDENCIES += libusb-compat
 else
Signature · 6 lines
2.11.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 package/gnupg2: fix libusb detection

In reply to Bernd Kuhls

Hello,

Quoted 9 lines · Bernd Kuhls

gnupg2 does not use pkgconf to detect the include dir of libusb.

Fixes
http://autobuild.buildroot.net/results/70c/70c9f5f8ae77fbda2b5eba3aacf831430dc59a1c/

---
 package/gnupg2/gnupg2.mk | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

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