[Bug 756321] Review Request: csmith - Tool to generate random C programs for compiler testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=756321

Jerry James <loganjerry@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |loganjerry@xxxxxxxxx
           Assignee|nobody@xxxxxxxxxxxxxxxxx    |loganjerry@xxxxxxxxx
         Whiteboard|NotReady                    |
              Flags|                            |fedora-review?

--- Comment #18 from Jerry James <loganjerry@xxxxxxxxx> ---
I will take this review.  The duplicate file warning is because %files contains
this:
%{_docdir}/%{name}/probabilities.txt
%{_docdir}/%{name}/compiler_test.in
%{_docdir}/csmith

You probably need only the last of these.  Also, COPYING needs to be included
in the documentation.

If you change "%configure" to "%configure --disable-static", that should both
shorten the build time and make this line in %install unnecessary:

find %{buildroot} -name *.a  -exec rm -f {} \;

Please see all of the boxes marked [!] below.  Ignore the one in the "Perl"
section, though; that is for perl modules, and this package just contains perl
scripts.

Package Review
==============

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


Issues:
=======
[!]: Package does not contain duplicates in %files.
     Note: warning: File listed twice: /usr/share/doc/csmith/compiler_test.in
See: http://fedoraproject.org/wiki/Packaging/Guidelines#DuplicateFiles


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

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

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]: Package successfully compiles and builds into binary rpms on at least one
     supported primary architecture.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: All build dependencies are listed in BuildRequires, except for any that
     are listed in the exceptions section of Packaging Guidelines.
[x]: Package contains no bundled libraries.
[x]: Changelog in prescribed format.
[!]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
     Note: rm -rf %{buildroot} present but not required
[x]: Sources contain only permissible code or content.
[!]: Each %files section contains %defattr if rpm < 4.4
     Note: %defattr present but not needed
[x]: Macros in Summary, %description expandable at SRPM build time.
[-]: Package contains desktop file if it is a GUI application.
[x]: Development files must be in a -devel package
[x]: Package requires other packages for directories it uses.
[x]: Package uses nothing in %doc for runtime.
[x]: Package is not known to require ExcludeArch.
[!]: Package does not contain duplicates in %files.
     Note: warning: File listed twice: /usr/share/doc/csmith/compiler_test.in
[x]: Permissions on files are set properly.
[x]: Fully versioned dependency in subpackages, if present.
[x]: Package complies to the Packaging Guidelines
[x]: Spec file lacks Packager, Vendor, PreReq tags.
[-]: Large documentation files are in a -doc subpackage, if required.
[!]: 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]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses found:
     "BSD (2 clause)", "LGPL (v2.1 or later) (with incorrect FSF address)",
     "GPL (v2 or later)", "Unknown or generated". 4 files have unknown
     license. Detailed output of licensecheck in
     /home/jamesjer/756321-csmith/licensecheck.txt
[!]: License file installed when any subpackage combination is installed.
[x]: Package consistently uses macro is (instead of hard-coded directory
     names).
[!]: If the package is under multiple licenses, the licensing breakdown must
     be documented in the spec.
[x]: Package is named using only allowed ASCII characters.
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
     Note: Package contains no Conflicts: tag(s)
[x]: Package do not use a name that already exist
[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]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: Package installs properly.
[x]: Package is not relocatable.
[x]: Requires correct, justified where necessary.
[x]: CheckResultdir
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: Sources used to build the package match the upstream source, as provided
     in the spec URL.
[x]: Spec file is legible and written in American English.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[-]: Package contains systemd file(s) if in need.
[x]: File names are valid UTF-8.
[x]: Useful -debuginfo package or justification otherwise.

Perl:
[!]: Package contains the mandatory BuildRequires and Reguires:.
     Note: Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
     $version)) missing?

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

Generic:
[x]: Reviewer should test that the package builds in mock.
[!]: 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
[-]: 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]: Dist tag is present.
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Final provides and requires are sane (rpm -q --provides and rpm -q
     --requires).
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise justified.
[x]: The placement of pkgconfig(.pc) files are correct.
[x]: Scriptlets must be sane, if used.
[x]: SourceX tarball generation or download is documented.
[!]: SourceX / PatchY prefixed with %{name}.
     Note: Source0 (csmith-2.1.0.tar.gz)
[x]: SourceX is a working URL.
[x]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[!]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed files.
[x]: Spec use %global instead of %define.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[!]: Spec file according to URL is the same as in SRPM.
     Note: Spec file as given by url is not the same as in SRPM (see attached
     diff).


Rpmlint
-------
Checking: csmith-2.1.0-3.i686.rpm
      csmith-debuginfo-2.1.0-3.i686.rpm
      csmith-devel-2.1.0-3.i686.rpm
      csmith-2.1.0-3.src.rpm
csmith.i686: W: no-manual-page-for-binary csmith
csmith.i686: W: no-manual-page-for-binary compiler_test.pl
csmith.i686: W: no-manual-page-for-binary launchn.pl
csmith-devel.i686: W: no-documentation
csmith-devel.i686: E: incorrect-fsf-address
/usr/include/csmith-2.1.0/stdint_ia32.h
csmith-devel.i686: E: incorrect-fsf-address
/usr/include/csmith-2.1.0/stdint_avr.h
csmith-devel.i686: E: incorrect-fsf-address
/usr/include/csmith-2.1.0/stdint_msp430.h
csmith-devel.i686: E: incorrect-fsf-address
/usr/include/csmith-2.1.0/custom_limits.h
csmith-devel.i686: E: incorrect-fsf-address
/usr/include/csmith-2.1.0/stdint_ia64.h
4 packages and 0 specfiles checked; 5 errors, 4 warnings.




Rpmlint (installed packages)
----------------------------
# rpmlint csmith csmith-devel csmith-debuginfo
csmith.i686: W: no-manual-page-for-binary csmith
csmith.i686: W: no-manual-page-for-binary compiler_test.pl
csmith.i686: W: no-manual-page-for-binary launchn.pl
csmith-devel.i686: W: no-documentation
csmith-devel.i686: E: incorrect-fsf-address
/usr/include/csmith-2.1.0/stdint_ia32.h
csmith-devel.i686: E: incorrect-fsf-address
/usr/include/csmith-2.1.0/stdint_avr.h
csmith-devel.i686: E: incorrect-fsf-address
/usr/include/csmith-2.1.0/stdint_msp430.h
csmith-devel.i686: E: incorrect-fsf-address
/usr/include/csmith-2.1.0/custom_limits.h
csmith-devel.i686: E: incorrect-fsf-address
/usr/include/csmith-2.1.0/stdint_ia64.h
3 packages and 0 specfiles checked; 5 errors, 4 warnings.
# echo 'rpmlint-done:'



Diff spec file in url and in SRPM
---------------------------------
--- /home/jamesjer/756321-csmith/srpm/csmith.spec    2012-10-25
10:29:43.026566351 -0600
+++ /home/jamesjer/756321-csmith/srpm-unpacked/csmith.spec    2012-10-25
10:29:44.933582680 -0600
@@ -1,5 +1,5 @@
 Name:    csmith
 Version: 2.1.0
-Release: 4%{?dist}
+Release: 3
 Summary: Tool to generate random C programs for compiler testing

@@ -9,5 +9,4 @@
 Source0: http://embed.cs.utah.edu/csmith/%{name}-%{version}.tar.gz
 Patch0:  csmith-2.1.0-fix-powerpc64-build.patch
-Patch1:  csmith-2.1.0-remove-custom-headers.patch

 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -33,5 +32,4 @@
 %setup -q
 %patch0 -p1 -b .ppc64
-%patch1 -p1 -b .fix

 %build
@@ -45,5 +43,4 @@
 find %{buildroot} -name *.la -exec rm -f {} \;
 find %{buildroot} -name test_csmith.pl -exec rm -f {} \;
-
 mv %{buildroot}%{_bindir}/compiler_test.in %{buildroot}%{_docdir}/%{name}
 chmod -x %{buildroot}%{_docdir}/%{name}/compiler_test.in
@@ -73,7 +70,4 @@

 %changelog
-* Sat Jun 02 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org>
2.1.0-4
-- Use system header files.
-
 * Thu Dec 01 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org>
2.1.0-3
 - Removed test_csmith.pl from the package.


Requires
--------
csmith-2.1.0-3.i686.rpm (rpmlib, GLIBC filtered):

    /sbin/ldconfig
    /usr/bin/perl
    libc.so.6
    libgcc_s.so.1
    libgcc_s.so.1(GCC_3.0)
    libm.so.6
    libstdc++.so.6
    libstdc++.so.6(CXXABI_1.3)
    perl(File::stat)
    perl(Sys::CPU)
    perl(strict)
    perl(warnings)
    rtld(GNU_HASH)

csmith-debuginfo-2.1.0-3.i686.rpm (rpmlib, GLIBC filtered):


csmith-devel-2.1.0-3.i686.rpm (rpmlib, GLIBC filtered):

    csmith = 2.1.0-3
    libcsmith.so.0
    pkgconfig



Provides
--------
csmith-2.1.0-3.i686.rpm:

    csmith = 2.1.0-3
    csmith(x86-32) = 2.1.0-3
    libcsmith.so.0

csmith-debuginfo-2.1.0-3.i686.rpm:

    csmith-debuginfo = 2.1.0-3
    csmith-debuginfo(x86-32) = 2.1.0-3

csmith-devel-2.1.0-3.i686.rpm:

    csmith-devel = 2.1.0-3
    csmith-devel(x86-32) = 2.1.0-3



MD5-sum check
-------------
http://embed.cs.utah.edu/csmith/csmith-2.1.0.tar.gz :
  CHECKSUM(SHA256) this package     :
d5f626044dbe93bfadd867385dc03b111b91ead1e394793a4203dd7de4f50192
  CHECKSUM(SHA256) upstream package :
d5f626044dbe93bfadd867385dc03b111b91ead1e394793a4203dd7de4f50192


Generated by fedora-review 0.3.0 (c78e275) last change: 2012-09-24
Buildroot used: fedora-rawhide-i386
Command line :/usr/bin/fedora-review -b 756321 -m fedora-rawhide-i386

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]