Bug 556128 - Review Request: ff-utils - Utilities to test force feedback of input device
Summary: Review Request: ff-utils - Utilities to test force feedback of input device
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-16 17:27 UTC by Michal Ambroz
Modified: 2011-12-16 19:58 UTC (History)
8 users (show)

Fixed In Version: ff-utils-2.4.21-4.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-25 02:13:44 UTC
Type: ---
Embargoed:
msuchy: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Michal Ambroz 2010-01-16 17:27:13 UTC
Spec URL: http://rebus.webz.cz/d/ff-utils.spec
SRPM URL: http://rebus.webz.cz/d/ff-utils-2.4.21-1.fc12.src.rpm
Description: 
Set of utilities provides possibility to test force feedback of
input devices like joysticks, gamepads or gamewheels in linux.

Comment 1 Michal Ambroz 2010-01-16 17:29:32 UTC
Result of the rpmlint ff-utils-2.4.21-1.fc12.src.rpm ff-utils-2.4.21-1.fc12.i686.rpm ff-utils-debuginfo-2.4.21-1.fc12.i686.rpm:

ff-utils.i686: W: no-documentation
3 packages and 0 specfiles checked; 0 errors, 1 warnings.

Package really doesn't contain any documentation, not even license.
License is directly mentioned in the source files.

Comment 2 Michal Ambroz 2010-01-16 17:34:37 UTC
This is my first package for fedora so it would be great if somebody could sponsor me.

Thank you
Michal Ambroz

Comment 3 timlank 2010-01-21 18:55:04 UTC
I'm trying to get sponsored for the first time also... from the reading, I think I need to make sure I try to help out others by doing some reviewing of my own....

I've been looking at yours and I was wondering if the SDL-devel package among potentially many others are required in the %BuildRequires area of the .spec.  

I tried to build this on a bare bones f12 system and ended up needing to install  about 40 rpms before getting the SDL & SDL-devel package to install -and then I could successfully build ff-utils.  I can provide the list if it helps.

Thanks,
Tim

Comment 4 Jason Tibbitts 2010-01-21 20:24:34 UTC
Yes, it is a very good idea to become involved in the whole review process and help each other out.  You probably don't want to actually build packages directly on your system however.  Either install mock and use that to build locally, or do scratch builds in the Fedora buildsystem (koji).  Anyone with a Fedora account can use the buildsystem.

Comment 5 Michal Ambroz 2010-01-24 19:38:35 UTC
Spec URL: http://rebus.webz.cz/d/ff-utils.spec
SRPM URL: http://rebus.webz.cz/d/ff-utils-2.4.21-2.fc12.src.rpm

based on review from Tim (thank you Tim!) I have added the build requirement for the SDL-devel package to be present during the build.

Comment 6 Michal Ambroz 2010-04-18 17:37:47 UTC
Hello Tim,
Are you going to review this package? I have seen that you are already sponsored.
Same here. Maybe we could finalize the review.
Michal

Comment 7 Thibault North 2010-04-18 17:57:06 UTC
Hi there,

Just to confirm that this package (2.4.21-2) works for me using the Wingman Force 3D (i can get force feedback), but not for a Wingman Force (older).

F-12, i686

Comment 8 Michal Ambroz 2010-04-18 18:03:40 UTC
I have done some cleanup of the macros.

SPEC URL: http://rebus.fedorapeople.org/fedora/12/SPECS/ff-utils.spec
SRPM URL:
http://rebus.fedorapeople.org/fedora/12/SRPMS/ff-utils-2.4.21-3.fc12.src.rpm

Rpmlint output:
$ rpmlint ff-utils-2.4.21-3.fc12.src.rpm ff-utils-2.4.21-3.fc12.i686.rpm
ff-utils-debuginfo-2.4.21-3.fc12.i686.rpm
ff-utils.i686: W: no-documentation
3 packages and 0 specfiles checked; 0 errors, 1 warnings.
- Project really doesn't contain any documentation.

Koji build for F-12: http://koji.fedoraproject.org/koji/taskinfo?taskID=2123776
Koji build for rawhide: http://koji.fedoraproject.org/koji/taskinfo?taskID=2123781

Comment 9 Miroslav Suchý 2010-11-01 20:02:29 UTC
ff-utils.src:43: W: macro-in-comment %doc
it is probably better to delete that coments entirely

ff-utils.i686: W: no-documentation
ff-utils.i686: W: no-manual-page-for-binary ffcfstress
ff-utils.i686: W: no-manual-page-for-binary ffmvforce
ff-utils.i686: W: no-manual-page-for-binary fftest
ff-utils.i686: W: no-manual-page-for-binary ffset

You should either create some documentation - something like:
http://sourceforge.net/apps/mediawiki/libff/index.php?title=CheckForceFeedback

Or you should write man page. If you are not fan of docbook, you can use http://www.methods.co.nz/asciidoc/
You create txt file like this 
http://www.methods.co.nz/asciidoc/asciidoc.1.txt
and in %build just call:
a2x -d manpage -f manpage fftest.8.asciidoc
and in install:
%{__gzip} -c fftest.8 > %{buildroot}/%{_mandir}/man8/fftest.8.gz

Your spec state license GPLv2+, but http://sourceforge.net/projects/libff/ state License:
GNU Library or Lesser General Public License (LGPL)

Comment 10 Didier 2010-12-02 18:57:54 UTC
ff-utils has not been updated since October 2003.

Could you please consider applying the submitted patch from http://sourceforge.net/tracker/index.php?func=detail&aid=2098907&group_id=44724&atid=440671 ?

This patch ports ff-utils to 64-bit (32-bit compatible), and adds kernel 2.6 compatibility.


The patch applies cleanly (when removing the cflags patch), and actually makes ff-utils usable on x64 architecture with modern kernels.

(tested with kernel-2.6.35.6-48.fc14.x86_64)

Comment 11 Michal Ambroz 2011-04-11 15:06:12 UTC
I am sorry guys - I totally forgot about this package.
Updated package can be found at:
SPEC: http://rebus.fedorapeople.org/SPECS/ff-utils.spec
SRPM: http://rebus.fedorapeople.org/SRPMS/ff-utils-2.4.21-4.fc14.src.rpm

- added manpages from debian joystick package
- added patch as suggested by Didier

> Your spec state license GPLv2+, 
> but http://sourceforge.net/projects/libff/ 
> state License: GNU Library or Lesser General Public License (LGPL)
In my opinion the license in distributed code really matters and there is GPLv2+
in all 4 source files.


Here is log from Koji scratch build for i686 and x86_64 for the rawhid - seems to be fine.
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=2993182
Watching tasks (this may be safely interrupted)...
2993182 build (dist-f16, ff-utils-2.4.21-4.fc14.src.rpm): open (ppc08.phx2.fedoraproject.org)
  2993184 buildArch (ff-utils-2.4.21-4.fc14.src.rpm, i686): free
  2993183 buildArch (ff-utils-2.4.21-4.fc14.src.rpm, x86_64): free
  2993184 buildArch (ff-utils-2.4.21-4.fc14.src.rpm, i686): free -> open (x86-10.phx2.fedoraproject.org)
  2993183 buildArch (ff-utils-2.4.21-4.fc14.src.rpm, x86_64): free -> open (x86-15.phx2.fedoraproject.org)
  2993183 buildArch (ff-utils-2.4.21-4.fc14.src.rpm, x86_64): open (x86-15.phx2.fedoraproject.org) -> closed
  0 free  2 open  1 done  0 failed
  2993184 buildArch (ff-utils-2.4.21-4.fc14.src.rpm, i686): open (x86-10.phx2.fedoraproject.org) -> closed
  0 free  1 open  2 done  0 failed
2993182 build (dist-f16, ff-utils-2.4.21-4.fc14.src.rpm): open (ppc08.phx2.fedoraproject.org) -> closed
  0 free  0 open  3 done  0 failed

Best regards
Michal Ambroz

Comment 12 Miroslav Suchý 2011-05-20 13:44:10 UTC
rpmlint errors:
ff-utils-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/ff-utils/ffmvforce.c
ff-utils-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/ff-utils/ffset.c
ff-utils-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/ff-utils/fftest.c

The Free Software Foundation address in this file seems to be outdated or
misspelled.  Ask upstream to update the address, or if this is a license file,
possibly the entire file with a new copy available from the FSF.


==============

Key:
 - = N/A
 x = Check
 ! = Problem
 ? = Not evaluated

=== REQUIRED ITEMS ===
 [x] Package is named according to the Package Naming Guidelines.
 [x] Spec file name must match the base package %{name}, in the format
%{name}.spec.
 [x] Package meets the Packaging Guidelines 
 [x] Package successfully compiles and builds into binary rpms on at least one
supported architecture.
     tested in: f16/koji
     http://koji.fedoraproject.org/koji/taskinfo?taskID=3083368
 [!] Rpmlint output:
see above
 [x] Package is not relocatable.
 [x] Buildroot is correct
      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 [x] Package is licensed with an open-source compatible license and meets other
legal requirements as defined in the legal section of Packaging Guidelines.
 [x] License field in the package spec file matches the actual license.
     License type: GPLv2+
 [x] If (and only if) the source package includes the text of the license(s) in
its own file, then that file, containing the text of the license(s) for the
package is included in %doc.
 [x] Spec file is legible and written in American English.
 [x] Sources used to build the package matches the upstream source, as provided
in the spec URL.
$ md5sum ff-utils.tar.bz2 ../SOURCES/ff-utils.tar.bz2
37f5197aa38362cac1364d3d9f409912  ff-utils.tar.bz2
37f5197aa38362cac1364d3d9f409912  ../SOURCES/ff-utils.tar.bz2
 [x] Package is not known to require ExcludeArch
 [x] All build dependencies are listed in BuildRequires, except for any that
are listed in the exceptions section of Packaging Guidelines.
 [-] The spec file handles locales properly.
 [-] ldconfig called in %post and %postun if required.
 [x] Package must own all directories that it creates.
 [x] Package requires other packages for directories it uses.
 [x] Package does not contain duplicates in %files.
 [x] Permissions on files are set properly.
 [x] Package has a %clean section, which contains rm -fR $RPM_BUILD_ROOT.
 [x] Package consistently uses macros.
 [x] Package contains code, or permissable content.
 [-] Large documentation files are in a -doc subpackage, if required.
 [x] Package uses nothing in %doc for runtime.
 [x] Header files in -devel subpackage, if present.
 [-] Static libraries in -devel subpackage, if present.
 [-] Package requires pkgconfig, if .pc files are present.
 [-] Development .so files in -devel subpackage, if present.
 [-] Fully versioned dependency in subpackages, if present.
 [-] Package does not contain any libtool archives (.la).
 [-] Package contains a properly installed %{name}.desktop file if it is a GUI
application.
 [x] Package does not own files or directories owned by other packages.

=== SUGGESTED ITEMS ===
 [x] Latest version is packaged.
 2.4.21
 [x] Package does not include license text files separate from upstream.
 [-] Description and summary sections in the package spec file contains
translations for supported Non-English languages, if available.
 [x] Reviewer should test that the package builds in mock.
     Tested on: koji scratch build
 [x] Package should compile and build into binary rpms on all supported
architectures.
     Tested on:koji scratch build
 [?] Package functions as described.
 [-] Scriptlets must be sane, if used.
 [-] The placement of pkgconfig(.pc) files is correct.
 [-] File based requires are sane.
 [-] %check is present and the tests pass

I would say that the rpmlint error is not blocking, but please contact upstream and fix the FSF address.

================
*** APPROVED  ***
================

Comment 13 Miroslav Suchý 2011-08-08 14:05:59 UTC
ping. any reason why did you did not request for branch in git?

Comment 14 Miroslav Suchý 2011-09-27 14:05:49 UTC
ping?

Comment 15 Tim Niemueller 2011-11-12 16:07:12 UTC
Just needed this and would like to see it included.

Comment 16 Michal Ambroz 2011-11-13 19:56:56 UTC
New Package SCM Request
=======================
Package Name: ff-utils
Short Description: Utilities to test force feedback of input device
Owners: rebus
Branches: rawhide F16 F15
InitialCC:

Comment 17 Gwyn Ciesla 2011-11-13 20:20:38 UTC
Git done (by process-git-requests).

Removed rawhide, ==devel.

Comment 18 Michal Ambroz 2011-11-14 00:28:36 UTC
Pushing to devel, F16, F15. 
Tested to be working on F16 with : 
Bus 008 Device 003: ID 046d:c218 Logitech, Inc. Logitech RumblePad 2 USB

FC16 build: http://koji.fedoraproject.org/koji/taskinfo?taskID=3511964
FC15 build: http://koji.fedoraproject.org/koji/taskinfo?taskID=3511972


(In reply to comment #15)
> Just needed this and would like to see it included.
Should be available soon in the updates-testing of F15 and F16 or you can download the package directly from the koji build system.
Please can you test ?
Best regards
Michal Ambroz

Comment 19 Miroslav Suchý 2011-11-14 08:44:29 UTC
Michal, if you put BZ number to Bodhi:
https://admin.fedoraproject.org/updates/ff-utils-2.4.21-4.fc16
then it will move this BZ automatically to ON_QA and when pushed to stable to CLOSED CURRENT RELEASE.
If you omit it you have to switch this BZ manually. 

Can you please update either the update or switch this BZ manually?

Comment 20 Michal Ambroz 2011-11-14 20:22:23 UTC
(In reply to comment #19)
> Michal, if you put BZ number to Bodhi:
> Can you please update either the update or switch this BZ manually?
Sure

Package was tagged for updates-testing, but is still in status pending - I assume that within days it should be available from the repositories.

Comment 21 Fedora Update System 2011-11-15 14:37:18 UTC
ff-utils-2.4.21-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/FEDORA-2011-15894

Comment 22 Fedora Update System 2011-11-15 14:39:57 UTC
ff-utils-2.4.21-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/FEDORA-2011-15884

Comment 23 Fedora Update System 2011-11-25 02:13:44 UTC
ff-utils-2.4.21-4.fc16 has been pushed to the Fedora 16 stable repository.

Comment 24 Fedora Update System 2011-12-16 19:58:46 UTC
ff-utils-2.4.21-4.fc15 has been pushed to the Fedora 15 stable repository.


Note You need to log in before you can comment on or make changes to this bug.