Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package fxload for openSUSE:Factory checked in at 2021-10-15 23:04:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fxload (Old) and /work/SRC/openSUSE:Factory/.fxload.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fxload" Fri Oct 15 23:04:25 2021 rev:25 rq:925432 version:2013_01_03 Changes: -------- --- /work/SRC/openSUSE:Factory/fxload/fxload.changes 2020-12-17 17:08:44.081936892 +0100 +++ /work/SRC/openSUSE:Factory/.fxload.new.1890/fxload.changes 2021-10-15 23:04:58.226140532 +0200 @@ -1,0 +2,14 @@ +Tue Oct 12 06:45:04 UTC 2021 - Paolo Stivanin <[email protected]> + +- Update to v2013_01_03: + * Switch to a more updated codebase, since the previous one + has been unmaintained for years and do not support newer devices. + This codebase is the same as the old fxload but with some small + changes made by Steven J. Magnani that add support for + Cypress FX3 USB 3.0 devices. + This package is needed, for example, by most of the recent + astronomical cameras (e.g QHY, ZWO, etc), otherwise the OS + will not be able to recognize them. +- Rebase and rename fxload-2008_10_13-prefer_DEVNAME.patch to fxload-2013_01_03-prefer_DEVNAME.patch + +------------------------------------------------------------------- Old: ---- fxload-2008_10_13-prefer_DEVNAME.patch fxload-2008_10_13.tar.bz2 New: ---- fxload-2013_01_03-prefer_DEVNAME.patch fxload-2013_01_03.tar.xz generate-tarball.sh ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fxload.spec ++++++ --- /var/tmp/diff_new_pack.FeREyR/_old 2021-10-15 23:04:58.642140828 +0200 +++ /var/tmp/diff_new_pack.FeREyR/_new 2021-10-15 23:04:58.642140828 +0200 @@ -1,7 +1,7 @@ # # spec file for package fxload # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany. # # All modifications and additions to the file contributed by third parties @@ -18,21 +18,22 @@ Name: fxload -Version: 2008_10_13 +Version: 2013_01_03 Release: 0 Summary: Download Firmware into USB FX and FX2 Devices License: LGPL-2.1-or-later Group: System/Kernel -URL: http://linux-hotplug.sf.net/ -Source0: http://mesh.dl.sourceforge.net/sourceforge/linux-hotplug/fxload-%{version}.tar.bz2 -Source1: %{name}.changes +URL: https://sourceforge.net/projects/fx3load/ +Source0: %{name}-%{version}.tar.xz +Source1: generate-tarball.sh Patch0: fxload-2002_04_11.patch -# PATCH-FIX-UPSTREAM fxload-2008_10_13-prefer_DEVNAME.patch lp#156085 -- [email protected] -Patch1: fxload-2008_10_13-prefer_DEVNAME.patch +# PATCH-FIX-UPSTREAM fxload-2013_01_03-prefer_DEVNAME.patch lp#156085 -- [email protected] +Patch1: fxload-2013_01_03-prefer_DEVNAME.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -This program can download firmware into FX and FX2 EZ-USB devices as +This program can download firmware into FX, FX2 and FX3 +(thanks to the patch from Steven J. Magnani) EZ-USB devices as well as the original AnchorChips EZ-USB. It is intended to be invoked by hotplug scripts when the unprogrammed device appears on the bus. @@ -42,9 +43,7 @@ stage loader must first be downloaded. %prep -%setup -q -%patch0 -p1 -%patch1 -p1 +%autosetup -p1 %build # use date of .changes file instead of __DATE__ @@ -60,6 +59,8 @@ %endif %files +%license COPYING +%doc README.txt %defattr(-,root,root) %if !0%{?usrmerged} /sbin/* @@ -68,6 +69,5 @@ %{_mandir}/man?/* %dir %{_datadir}/usb %{_datadir}/usb/a3load.hex -%doc COPYING README.txt %changelog ++++++ fxload-2008_10_13-prefer_DEVNAME.patch -> fxload-2013_01_03-prefer_DEVNAME.patch ++++++ --- /work/SRC/openSUSE:Factory/fxload/fxload-2008_10_13-prefer_DEVNAME.patch 2014-01-13 10:52:59.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.fxload.new.1890/fxload-2013_01_03-prefer_DEVNAME.patch 2021-10-15 23:04:58.178140498 +0200 @@ -1,18 +1,6 @@ -Author: Stefan Seyfried <[email protected]> -Subject: Adapt fxload to newer udev - -Actually this patch is from ubuntu: -https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/156085/comments/102 - * Use DEVNAME from the environment in preference to DEVICE, - the former contains the modern /dev/bus/usb path. LP: #156085. - -Index: b/main.c -=================================================================== ---- a/main.c -+++ b/main.c -@@ -32,23 +32,23 @@ - * -s <path> -- use this second stage loader - * -c <byte> -- Download to EEPROM, with this config byte +--- fx3load-2013_01_03/main.c.orig 2021-10-07 16:21:12.459576894 +0200 ++++ fx3load-2013_01_03/main.c 2021-10-07 16:23:05.868024865 +0200 +@@ -35,7 +35,7 @@ * * -L <path> -- Create a symbolic link to the device. * -m <mode> -- Set the permissions on the device after download. @@ -21,8 +9,7 @@ * * -V -- Print version ID for program * - * This program is intended to be started by hotplug scripts in - * response to a device appearing on the bus. It therefore also +@@ -44,10 +44,10 @@ * expects these environment variables which are passed by hotplug to * its sub-scripts: * @@ -37,11 +24,7 @@ */ # include <stdlib.h> - # include <stdio.h> - # include <getopt.h> -@@ -89,17 +89,20 @@ void logerror(const char *format, ...) - - int main(int argc, char*argv[]) +@@ -92,13 +92,16 @@ { const char *link_path = 0; const char *ihex_path = 0; @@ -54,23 +37,17 @@ int config = -1; + if (!device_path) -+ device_path = getenv("DEVICE"); ++ device_path = getenv("DEVICE"); + while ((opt = getopt (argc, argv, "2vV?D:I:L:c:lm:s:t:")) != EOF) switch (opt) { - case '2': // original version of "-t fx2" - type = "fx2"; -@@ -189,11 +192,11 @@ usage: - fputs (argv [0], stderr); - fputs (" [-vV] [-l] [-t type] [-D devpath]\n", stderr); +@@ -193,7 +196,7 @@ fputs ("\t\t[-I firmware_hexfile] ", stderr); fputs ("[-s loader] [-c config_byte]\n", stderr); fputs ("\t\t[-L link] [-m mode]\n", stderr); - fputs ("... [-D devpath] overrides DEVICE= in env\n", stderr); -+ fputs ("... [-D devpath] overrides DEVNAME= and DEVICE= in env\n", stderr); - fputs ("... device types: one of an21, fx, fx2, fx2lp\n", stderr); ++ fputs ("... [-D devpath] overrides DEVNAME= and DEVICE= in env\n", stderr); + fputs ("... device types: one of an21, fx, fx2, fx2lp, fx3\n", stderr); fputs ("... at least one of -I, -L, -m is required\n", stderr); return -1; - } - ++++++ generate-tarball.sh ++++++ #!/bin/bash NAME="fxload" VERSION="2013_01_03" wget -nv https://downloads.sourceforge.net/project/fx3load/fx3load.tgz tar xf fx3load.tgz pushd fx3load > /dev/null rm -rf CVS rm -f fxload rm -f *.o popd > /dev/null mv fx3load "$NAME-$VERSION" tar -cf "$NAME-$VERSION.tar.xz" "$NAME-$VERSION" rm -fr fx3load fx3load.tgz "$NAME-$VERSION"
