Bug 1079589

Summary: Review Request: piglit - Collection of automated tests for OpenGL implementations
Product: [Fedora] Fedora Reporter: Matěj Cepl <mcepl>
Component: Package ReviewAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: airlied, mcepl, mcepl, package-review
Target Milestone: ---Flags: ajax: fedora-review+
gwync: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: piglit-1-0.14.20140414GIT8775223.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-30 22:30:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matěj Cepl 2014-03-21 22:04:37 UTC
Spec URL: http://mcepl.fedorapeople.org/tmp/piglit.spec
SRPM URL: http://mcepl.fedorapeople.org/tmp/piglit-1-0.13.20140320GITb561c3c.el7.src.rpm
Description:
Piglit is a collection of automated tests for OpenGL implementations.

The goal of Piglit is to help improve the quality of open source
OpenGL drivers by providing developers with a simple means to
perform regression tests.

Fedora Account System Username: mcepl

Comment 1 Matěj Cepl 2014-03-21 22:09:39 UTC
Result of rpmlint:

matej@wycliff: piglit (master *%)$ rpmlint *.src.rpm x86_64/*.rpm
piglit.src: W: invalid-url Source0: piglit.tar.bz2
piglit.x86_64: E: invalid-soname /usr/lib64/piglit/lib/libhiz-util.so libhiz-util.so
piglit.x86_64: E: invalid-soname /usr/lib64/piglit/lib/libpiglitglxutil.so libpiglitglxutil.so
piglit.x86_64: W: shared-lib-calls-exit /usr/lib64/piglit/lib/libpiglitglxutil.so exit.5
piglit.x86_64: E: invalid-soname /usr/lib64/piglit/lib/libpiglitutil_gl.so libpiglitutil_gl.so
piglit.x86_64: W: shared-lib-calls-exit /usr/lib64/piglit/lib/libpiglitutil_gl.so exit.5
piglit.x86_64: E: invalid-soname /usr/lib64/piglit/lib/libpiglitutil.so libpiglitutil.so
piglit.x86_64: W: shared-lib-calls-exit /usr/lib64/piglit/lib/libpiglitutil.so exit.5
piglit.x86_64: W: no-manual-page-for-binary piglit-summary-junit
piglit.x86_64: W: no-manual-page-for-binary piglit-resume
piglit.x86_64: W: no-manual-page-for-binary piglit-summary-html
piglit.x86_64: W: no-manual-page-for-binary piglit-summary
piglit.x86_64: W: no-manual-page-for-binary piglit-print-commands
piglit.x86_64: W: no-manual-page-for-binary piglit-merge-results
piglit.x86_64: W: no-manual-page-for-binary piglit-run
3 packages and 0 specfiles checked; 4 errors, 11 warnings.

I don't care about manual pages at the moment, and invalid-url Source is correct (the package is checkout from git repo). However, I don’t know much what to do with those invalid-soname and shared-lib-calls-exit.

Comment 2 Matěj Cepl 2014-03-26 11:47:35 UTC
(In reply to Matěj Cepl from comment #1)
> I don't care about manual pages at the moment, and invalid-url Source is
> correct (the package is checkout from git repo). However, I don’t know much
> what to do with those invalid-soname and shared-lib-calls-exit.

Apparently this is just a false positive ... these are not shared by private libraries not used by anything else than piglit.

Comment 3 Christopher Meng 2014-03-26 12:07:38 UTC
(In reply to Matěj Cepl from comment #2)
> (In reply to Matěj Cepl from comment #1)
> > I don't care about manual pages at the moment, and invalid-url Source is
> > correct (the package is checkout from git repo). However, I don’t know much
> > what to do with those invalid-soname and shared-lib-calls-exit.
> 
> Apparently this is just a false positive ... these are not shared by private
> libraries not used by anything else than piglit.

Yes, you finally get it ;)

Will you push it to EPEL5?

Comment 4 Matěj Cepl 2014-03-26 12:10:16 UTC
(In reply to Christopher Meng from comment #3)
> Will you push it to EPEL5?

If you make me patches so it works :). I don’t need it myself and it is hard for me to see why it could be useful there.

Comment 5 Dave Airlie 2014-04-14 21:23:31 UTC
https://fedoraproject.org/wiki/Packaging:SourceURL#Using_Revision_Control

So you should include in the spec a brief summary of how to recreate the exact .tar.bz2 included,

and version the tar.bz2 with a git sha.

Comment 7 Matěj Cepl 2014-04-14 23:06:54 UTC
Builds in Koji http://koji.fedoraproject.org/koji/taskinfo?taskID=6737677

Comment 8 Dave Airlie 2014-04-14 23:35:27 UTC
any reason for the ExcludeArch in Fedora? afaik we should build on ppc, not so sure about s390.

Comment 9 Matěj Cepl 2014-04-15 16:45:18 UTC
(In reply to Dave Airlie from comment #8)
> any reason for the ExcludeArch in Fedora? afaik we should build on ppc, not
> so sure about s390.

ppc? That’s ppc32 not ppc64. Are you sure anybody ever builds Fedora packages on THAT? I can see on https://fedoraproject.org/wiki/Architectures/PowerPC that it is possible to build ppc package, but do you really care that much about testing piglit on that?

According to https://fedoraproject.org/wiki/Architectures Fedora officially supports only i686, x86_64, and armv7hl; all mentioned in that ExcludeArch are either secondary (s390x, ppc34) or non-existent at all (s390, ppc). Is it really worthy? Does s390x has any video card at all? I always believed it is run via remote connections.

Comment 10 Matěj Cepl 2014-04-15 16:47:31 UTC
Or is it actually about EPEL-{6,7} packages?

Comment 12 Adam Jackson 2014-04-30 14:51:55 UTC
yoink

Comment 13 Adam Jackson 2014-04-30 15:29:43 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed

Issues:
=======
- Permissions on files are set properly.
  Note: See rpmlint output
  See: http://fedoraproject.org/wiki/Packaging/Guidelines#FilePermissions
- Package contains BR: python2-devel or python3-devel
- 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.
  Note: Cannot find 3Dlabs-license.txt in rpm(s)

Fine, text of that file is included in COPYING

===== MUST items =====

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Development (unversioned) .so files in -devel subpackage, if present.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

Generic:
[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.
[x]: If the package is under multiple licenses, the licensing breakdown must
     be documented in the spec.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[x]: Each %files section contains %defattr if rpm < 4.4
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[x]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least one
     supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).

Yeah, I'll get to those...

[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: All build dependencies are listed in BuildRequires, except for any that
     are listed in the exceptions section of Packaging Guidelines.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Package does not contain duplicates in %files.
[x]: Package use %makeinstall only when make install' ' DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package do not use a name that already exist
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as provided
     in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Packages must not store files under /srv, /opt or /usr/local
[x]: Packages must not store files under /srv, /opt or /usr/local

Python:
[-]: Python eggs must not download any dependencies during the build process.
[-]: A package which is used by another package via an egg interface should
     provide egg info.
[x]: Package meets the Packaging Guidelines::Python
[x]: Binary eggs must be removed in %prep

===== SHOULD items =====

Generic:
[ ]: Buildroot is not present
     Note: Buildroot: present but not needed
[ ]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
     Note: %clean present but not required

Not going to punish you for things rpmdev-newspec still emits wrong...

[-]: If the source package does not include license text(s) as a separate file
     from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[x]: Package functions as described.
[x]: Latest version is packaged.

Near enough, it's running git snaps anyway.

[x]: Package does not include license text files separate from upstream.
[x]: SourceX tarball generation or download is documented.
     Note: Package contains tarball without URL, check comments
[ ]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[ ]: Package should compile and build into binary rpms on all supported
     architectures.
[ ]: %check is present and all tests pass.
[ ]: Packages should try to preserve timestamps of original installed files.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Reviewer should test that the package builds in mock.
[x]: Dist tag is present (not strictly required in GL).
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Uses parallel make %{?_smp_mflags} macro.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====
Generic:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package is
     arched.

This passes because the data's not in /usr/share, it could be but it's not important for now.

[x]: Spec file according to URL is the same as in SRPM.

rpmlint results are of the form:

piglit.x86_64: E: invalid-soname /usr/lib64/piglit/lib/libhiz-util.so libhiz-util.so
piglit.x86_64: W: shared-lib-calls-exit /usr/lib64/piglit/lib/libpiglitglxutil.so exit.5

Don't care, internal library.

piglit.x86_64: E: non-standard-executable-perm /usr/lib64/piglit/bin/glx-import-context-has-same-context-id 0775L

whatever, nobody besides root is in the root group normally.

piglit.x86_64: W: no-manual-page-for-binary piglit-summary-junit

True, but true of upstream too.

piglit.src: W: invalid-url Source0: piglit.tar.bz2

No kidding.

piglit.x86_64: W: undefined-non-weak-symbol /usr/lib64/piglit/lib/libhiz-util.so piglit_dispatch_glGetFramebufferAttachmentParameteriv
piglit.x86_64: W: unused-direct-shlib-dependency /usr/lib64/piglit/lib/libhiz-util.so /lib64/libglut.so.3

Not a problem, just how piglit is.

Looks good to me, r+

Comment 14 Matěj Cepl 2014-04-30 18:01:51 UTC
New Package SCM Request
=======================
Package Name: piglit
Short Description: Collection of automated tests for OpenGL implementations
Owners: mcepl
Branches: f20 el6 epel7
InitialCC:

Comment 15 Gwyn Ciesla 2014-04-30 18:13:42 UTC
Git done (by process-git-requests).

Comment 16 Matěj Cepl 2014-04-30 22:30:29 UTC
Built in Rawhide http://koji.fedoraproject.org/koji/taskinfo?taskID=6800450

Comment 17 Fedora Update System 2014-05-01 06:13:11 UTC
piglit-1-0.14.20140414GIT8775223.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/piglit-1-0.14.20140414GIT8775223.fc20

Comment 18 Fedora Update System 2014-05-16 10:05:17 UTC
piglit-1-0.14.20140414GIT8775223.fc20 has been pushed to the Fedora 20 stable repository.