All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/libusb: bump to version 1.0.26
@ 2022-06-20 12:56 yegorslists--- via buildroot
  2022-06-27 22:41 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: yegorslists--- via buildroot @ 2022-06-20 12:56 UTC (permalink / raw)
  To: buildroot; +Cc: Zoltan Gyarmati

From: Yegor Yefremov <yegorslists@googlemail.com>

Remove upstreamed patches.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 ...igure.ac-link-with-latomic-if-needed.patch | 39 -------------------
 ..._usbfs-fix-maybe-uninitialized-error.patch | 37 ------------------
 package/libusb/libusb.hash                    |  2 +-
 package/libusb/libusb.mk                      |  2 +-
 4 files changed, 2 insertions(+), 78 deletions(-)
 delete mode 100644 package/libusb/0001-configure.ac-link-with-latomic-if-needed.patch
 delete mode 100644 package/libusb/0002-linux_usbfs-fix-maybe-uninitialized-error.patch

diff --git a/package/libusb/0001-configure.ac-link-with-latomic-if-needed.patch b/package/libusb/0001-configure.ac-link-with-latomic-if-needed.patch
deleted file mode 100644
index 5f6c88e57d..0000000000
--- a/package/libusb/0001-configure.ac-link-with-latomic-if-needed.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 0b857081d687f7ee41483a3d7e9846af44a5ba7d Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-Date: Mon, 7 Feb 2022 11:55:54 +0100
-Subject: [PATCH] configure.ac: link with -latomic if needed
-
-libusb unconditionally uses atomic_fetch_add since version 1.0.25 and
-https://github.com/libusb/libusb/commit/1a08aa84d96397a3840a75abe66051f5360c2c84
-https://github.com/libusb/libusb/commit/eed8a371ea53939096ba94d44001e0637d042572
-but some architectures (e.g. sparc) needs to link with -latomic to be
-able to use it. So check if -latomic is needed and update libusb-1.0.pc
-accordingly to avoid the following build failure with openocd:
-
-/home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-0/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libusb-1.0.so: undefined reference to `__atomic_fetch_add_4'
-collect2: error: ld returned 1 exit status
-
-Fixes:
- - http://autobuild.buildroot.org/results/4a27a769bb3cdf78643c3049b87d792178d6512c
-
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-[Upstream status: https://github.com/libusb/libusb/pull/1064]
----
- configure.ac | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/configure.ac b/configure.ac
-index f6cf2f9..002bcf6 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -152,6 +152,7 @@ if test "x$platform" = xposix; then
- 	AC_SEARCH_LIBS([pthread_create], [pthread],
- 		[test "x$ac_cv_search_pthread_create" != "xnone required" && AC_SUBST(THREAD_LIBS, [-lpthread])],
- 		[], [])
-+	AC_SEARCH_LIBS([__atomic_fetch_add_4], [atomic])
- elif test "x$platform" = xwindows; then
- 	AC_DEFINE([PLATFORM_WINDOWS], [1], [Define to 1 if compiling for a Windows platform.])
- else
--- 
-2.34.1
-
diff --git a/package/libusb/0002-linux_usbfs-fix-maybe-uninitialized-error.patch b/package/libusb/0002-linux_usbfs-fix-maybe-uninitialized-error.patch
deleted file mode 100644
index ea299081aa..0000000000
--- a/package/libusb/0002-linux_usbfs-fix-maybe-uninitialized-error.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From bea5891591402f14940a607eafbdcd169ff8827f Mon Sep 17 00:00:00 2001
-From: Yegor Yefremov <yegorslists@googlemail.com>
-Date: Sun, 6 Feb 2022 07:12:14 +0100
-Subject: [PATCH] linux_usbfs: fix maybe-uninitialized error
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Initialize active_config to an invalid value to avoid the following
-compilation error:
-
-os/linux_usbfs.c: In function ‘op_get_configuration’:
-os/linux_usbfs.c:1452:12: error: ‘active_config’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- 1452 |  *config = (uint8_t)active_config;
-
-Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
-Upstream: https://github.com/libusb/libusb/pull/1062
----
- libusb/os/linux_usbfs.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libusb/os/linux_usbfs.c b/libusb/os/linux_usbfs.c
-index c300675..285d9ca 100644
---- a/libusb/os/linux_usbfs.c
-+++ b/libusb/os/linux_usbfs.c
-@@ -1429,7 +1429,7 @@ static int op_get_configuration(struct libusb_device_handle *handle,
- 	uint8_t *config)
- {
- 	struct linux_device_priv *priv = usbi_get_device_priv(handle->dev);
--	int active_config;
-+	int active_config = -1; /* to please compiler */
- 	int r;
- 
- 	if (priv->sysfs_dir) {
--- 
-2.17.0
-
diff --git a/package/libusb/libusb.hash b/package/libusb/libusb.hash
index a18935fe03..bbb0ccf5b9 100644
--- a/package/libusb/libusb.hash
+++ b/package/libusb/libusb.hash
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256  8a28ef197a797ebac2702f095e81975e2b02b2eeff2774fa909c78a74ef50849  libusb-1.0.25.tar.bz2
+sha256  12ce7a61fc9854d1d2a1ffe095f7b5fac19ddba095c259e6067a46500381b5a5  libusb-1.0.26.tar.bz2
 sha256  5df07007198989c622f5d41de8d703e7bef3d0e79d62e24332ee739a452af62a  COPYING
diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk
index aa306e295d..8c79ebb23a 100644
--- a/package/libusb/libusb.mk
+++ b/package/libusb/libusb.mk
@@ -5,7 +5,7 @@
 ################################################################################
 
 LIBUSB_VERSION_MAJOR = 1.0
-LIBUSB_VERSION = $(LIBUSB_VERSION_MAJOR).25
+LIBUSB_VERSION = $(LIBUSB_VERSION_MAJOR).26
 LIBUSB_SOURCE = libusb-$(LIBUSB_VERSION).tar.bz2
 LIBUSB_SITE = https://github.com/libusb/libusb/releases/download/v$(LIBUSB_VERSION)
 LIBUSB_LICENSE = LGPL-2.1+
-- 
2.17.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] package/libusb: bump to version 1.0.26
  2022-06-20 12:56 [Buildroot] [PATCH] package/libusb: bump to version 1.0.26 yegorslists--- via buildroot
@ 2022-06-27 22:41 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2022-06-27 22:41 UTC (permalink / raw)
  To: yegorslists--- via buildroot; +Cc: Zoltan Gyarmati

>>>>> "yegorslists---" == yegorslists--- via buildroot <buildroot@buildroot.org> writes:

 > From: Yegor Yefremov <yegorslists@googlemail.com>
 > Remove upstreamed patches.

 > Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
 > ---
 >  ...igure.ac-link-with-latomic-if-needed.patch | 39 -------------------
 >  ..._usbfs-fix-maybe-uninitialized-error.patch | 37 ------------------
 >  package/libusb/libusb.hash                    |  2 +-
 >  package/libusb/libusb.mk                      |  2 +-
 >  4 files changed, 2 insertions(+), 78 deletions(-)
 >  delete mode 100644 package/libusb/0001-configure.ac-link-with-latomic-if-needed.patch
 >  delete mode 100644 package/libusb/0002-linux_usbfs-fix-maybe-uninitialized-error.patch

 > diff --git a/package/libusb/0001-configure.ac-link-with-latomic-if-needed.patch b/package/libusb/0001-configure.ac-link-with-latomic-if-needed.patch
 > deleted file mode 100644

This presumably also means that we can drop _AUTORECONF. Committed with
that fixed, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-27 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 12:56 [Buildroot] [PATCH] package/libusb: bump to version 1.0.26 yegorslists--- via buildroot
2022-06-27 22:41 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.