Hello community, here is the log from the commit of package stlink for openSUSE:Factory checked in at 2018-05-11 09:15:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/stlink (Old) and /work/SRC/openSUSE:Factory/.stlink.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "stlink" Fri May 11 09:15:43 2018 rev:5 rq:605835 version:1.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/stlink/stlink.changes 2016-05-10 09:27:50.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.stlink.new/stlink.changes 2018-05-11 09:15:58.667509203 +0200 @@ -1,0 +2,50 @@ +Tue May 8 15:44:20 UTC 2018 - [email protected] + +- update to release 1.5.0 + * Chip support added for: + + STM32F72xx73xx support (#1969148) + + Add support of STM32L496xx/4A6xx devices (#615) + * Fixes: + + Fix memory map for stm32l496xx boards (#639) + + Fix write for microcontroler with RAM size less or equal to 32K (#637) + + Added LIB_INSTALL_DIR to correct libs install on 64-bit systems (#636) + + Fix verification of flash error for STM32L496x device (#618) + + Fix build on Fedora with GCC 8 (#666) +- Fix failing build due to use of deprecated libusb function: + Add fix-deprecated-libusb-function.patch + +------------------------------------------------------------------- +Tue Nov 28 00:27:30 UTC 2017 - [email protected] + +- update to release 1.4.0 + * Add support for STM32L452 target + * Initial support to compile with Microsoft Visual Studio 2017 + * Added support for flashing second bank on STM32F10x_XL + * Add support for STM32L011 target + * Allow building of debian package with CPack + * Add preliminary support for STM32L011 to see it after probe + * Strip full paths to source files in log + * Add support for STM32F413 target + * Add support for Semihosting SYS_READC + * Deprecation of autotools (autoconf, automake) + * Removal of undocumented st-term utility, + which is now replaced by st-util ARM semihosting feature + * Add support for native debian packaging + * Add intel hex file reading for st-flash + * Add --reset command to st-flash + * Support serial numbers argument for st-util + and st-flash for multi-programmer setups + * Add kill ('k') command to gdb-server for st-util + * Add manpages (generated with pandoc from Markdown) + * Rewrite commandline parsing for st-flash + * Add support for ARM semihosting to st-util + + * Chip support added for: + + STM32L432 + + STM32F412 + + STM32F410 + + Add memory map for STM32F401XE + + L0x Category 5 devices + + Add L0 Category 2 device + +------------------------------------------------------------------- Old: ---- stlink-1.2.0.tar.gz New: ---- fix-deprecated-libusb-function.patch stlink-1.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ stlink.spec ++++++ --- /var/tmp/diff_new_pack.QCWoZq/_old 2018-05-11 09:15:59.467480221 +0200 +++ /var/tmp/diff_new_pack.QCWoZq/_new 2018-05-11 09:15:59.467480221 +0200 @@ -1,7 +1,7 @@ # # spec file for package stlink # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,17 +17,19 @@ Name: stlink -Version: 1.2.0 +Version: 1.5.0 Release: 0 Summary: STM32 discovery line linux programmer License: BSD-3-Clause Group: Development/Tools/Debuggers Url: https://github.com/texane/stlink Source0: https://github.com/texane/stlink/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: autoconf -BuildRequires: automake +# PATCH-FIX-UPSTREAM fix-deprecated-libusb-function.patch +Patch0: https://github.com/texane/stlink/commit/aaf8e9207581.patch#/fix-deprecated-libusb-function.patch +BuildRequires: cmake BuildRequires: gtk3-devel BuildRequires: pkg-config +BuildRequires: systemd-rpm-macros BuildRequires: udev BuildRequires: pkgconfig(libusb-1.0) Requires: udev @@ -44,30 +46,75 @@ %description gui STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers. +%package -n libstlink-shared1 +Summary: Shared library for stlink +Group: Development/Tools/Debuggers + +%description -n libstlink-shared1 +STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers. + +%package devel +Summary: Development files for stlink package +#Requires: %%{name} = %%{version} +Group: Development/Tools/Debuggers +Requires: libstlink-shared1 = %{version} + +%description devel +STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers. + %prep %setup -q +%patch0 -p1 %build -autoreconf -fi -%configure \ - --with-gtk +%cmake -DSTLINK_UDEV_RULES_DIR="%_udevrulesdir" \ + -DCMAKE_EXE_LINKER_FLAGS="-pie" make %{?_smp_mflags} %install -%make_install +%cmake_install +# remove static lib sdi +rm -f %{buildroot}%{_libdir}/*.a install -d %{buildroot}/%{_udevrulesdir}/ -install -D -m 0644 49-stlink*.rules %{buildroot}/%{_udevrulesdir}/ +install -D -m 0644 etc/udev/rules.d/49-stlink*.rules %{buildroot}/%{_udevrulesdir}/ + +%post -n libstlink-shared1 -p /sbin/ldconfig + +%postun -n libstlink-shared1 -p /sbin/ldconfig %files %defattr(-,root,root) -%doc AUTHORS ChangeLog COPYING README +%doc LICENSE README.md doc/app-example doc/tested-boards.md doc/tutorial.md %{_bindir}/st-* %{_udevrulesdir}/49-stlink* +%config %{_sysconfdir}/modprobe.d/stlink_v1.conf +%{_mandir}/man1/st-flash.1* +%{_mandir}/man1/st-info.1* +%{_mandir}/man1/st-util.1* + +%files -n libstlink-shared1 +%{_libdir}/libstlink-shared.so.1* %files gui %defattr(-,root,root) %{_bindir}/stlink-gui %{_datadir}/stlink/ +%files devel +%dir %{_includedir}/stlink +%{_includedir}/stlink.h +%{_includedir}/stlink/backend.h +%{_includedir}/stlink/chipid.h +%{_includedir}/stlink/commands.h +%{_includedir}/stlink/flash_loader.h +%{_includedir}/stlink/logging.h +%{_includedir}/stlink/mmap.h +%{_includedir}/stlink/reg.h +%{_includedir}/stlink/sg.h +%{_includedir}/stlink/usb.h +%{_includedir}/stlink/version.h +%{_libdir}/libstlink-shared.so +%{_libdir}/pkgconfig/stlink.pc + %changelog ++++++ fix-deprecated-libusb-function.patch ++++++ >From aaf8e92075811e6b78cd7f68b636c642f27749bf Mon Sep 17 00:00:00 2001 From: Slyshyk Oleksiy <[email protected]> Date: Sun, 1 Apr 2018 20:16:49 +0300 Subject: [PATCH] Fix libusb function deprecation used for stlinkv1 Fixes #703 --- src/sg.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sg.c b/src/sg.c index 541ef555..90a14418 100644 --- a/src/sg.c +++ b/src/sg.c @@ -944,6 +944,10 @@ static stlink_t* stlink_open(const int verbose) { struct stlink_libsg *slsg = malloc(sizeof (struct stlink_libsg)); if (sl == NULL || slsg == NULL) { WLOG("Couldn't malloc stlink and stlink_sg structures out of memory!\n"); + if(sl != NULL) + free(sl); + if(slsg != NULL) + free(slsg); return NULL; } @@ -954,7 +958,11 @@ static stlink_t* stlink_open(const int verbose) { return NULL; } +#if LIBUSBX_API_VERSION < 0x01000106 libusb_set_debug(slsg->libusb_ctx, 3); +#else + libusb_set_option(slsg->libusb_ctx, LIBUSB_OPTION_LOG_LEVEL, 3); +#endif slsg->usb_handle = libusb_open_device_with_vid_pid(slsg->libusb_ctx, STLINK_USB_VID_ST, STLINK_USB_PID_STLINK); if (slsg->usb_handle == NULL) { ++++++ stlink-1.2.0.tar.gz -> stlink-1.5.0.tar.gz ++++++ ++++ 27222 lines of diff (skipped)
