[Bug 562330] Review Request: libnih - Lightweight application development library

bugzilla at redhat.com bugzilla at redhat.com
Sun Feb 7 04:32:26 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


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

Eric Smith <eric at brouhaha.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |eric at brouhaha.com
         AssignedTo|nobody at fedoraproject.org    |eric at brouhaha.com
               Flag|                            |fedora-review?

--- Comment #2 from Eric Smith <eric at brouhaha.com> 2010-02-06 23:32:23 EST ---
rpmlint output:
../SPECS/libnih.spec:52: E: hardcoded-library-path in
%{_prefix}/lib/pkgconfig/*
3 packages and 1 specfiles checked; 1 errors, 0 warnings.

See http://fedoraproject.org/wiki/Common_Rpmlint_issues#hardcoded-library-path

SHOULD: The package builds in mock. NEEDWORK

(I presume the "SHOULD" in the review guidelines means that this is a SHOULD
for the reviewer; presumably the package actually MUST build with mock, or it
most likely won't build with koji.)

tail of build.log says:

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mwUO9D
+ umask 022
+ cd /builddir/build/BUILD
+ cd libnih-1.0.1
+ LANG=C
+ export LANG
+ unset DISPLAY
+ autoreconf -i --force
Can't exec "autopoint": Permission denied at
/usr/share/autoconf/Autom4te/FileUtils.pm line 345.
autoreconf: failed to run autopoint: Permission denied
autoreconf: autopoint is needed because this package uses Gettext
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.mwUO9D (%build)
    Bad exit status from /var/tmp/rpm-tmp.mwUO9D (%build)
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps
builddir/build/SPECS/libnih.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/mock/trace_decorator.py", line 70, in
trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/site-packages/mock/util.py", line 324, in do
    raise mock.exception.Error, ("Command failed. See logs for output.\n # %s"
% (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps
builddir/build/SPECS/libnih.spec']
LEAVE do --> EXCEPTION RAISED

MUST: The package must be named according to the Package Naming Guidelines. OK
MUST: The spec file for the package is legible and macros are used
consistently. OK
MUST: The package must be licensed with a Fedora approved license and meet the 
Licensing Guidelines. NEEDSWORK

None of the source files in nih-dbus-tool/tests/expected have copyright and
license information, and I don't see a blanket statement that covers them.

MUST: The License field in the package spec file must match the actual license.
OK
MUST: 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 must be included in %doc. OK
MUST: The spec file must be written in American English. OK
MUST: The spec file for the package MUST be legible. OK
MUST: The sources used to build the package must match the upstream source, as
provided in the spec URL. OK
MUST: The package MUST successfully compile and build into binary rpms on at
least one primary architecture. OK
MUST: If the package does not successfully compile, build or work on an
architecture, then those architectures should be listed in the spec in
ExcludeArch. N/A
MUST: All build dependencies must be listed in BuildRequires, NEEDSWORK

I'm not sure about the build dependencies; that could be the reason it fails to
build with mock.

MUST: The spec file MUST handle locales properly. OK
MUST: Every binary RPM package (or subpackage) which stores shared library
files (not just symlinks) in any of the dynamic linker's default paths, must
call ldconfig in %post and %postun. OK
MUST: Packages must NOT bundle copies of system libraries. OK
MUST: If the package is designed to be relocatable, the packager must state
this fact in the request for review, along with the rationalization for
relocation of that specific package. Without this, use of Prefix: /usr is
considered a blocker. OK
MUST: A package must own all directories that it creates. If it does not create
a directory that it uses, then it should require a package which does create
that directory. OK
MUST: A Fedora package must not list a file more than once in the spec file's
%files listings. OK
MUST: Permissions on files must be set properly. Executables should be set with
executable permissions, for example. Every %files section must include a
%defattr(...) line. OK
MUST: Each package must have a %clean section, which contains rm -rf
%{buildroot} (or $RPM_BUILD_ROOT). OK
MUST: Each package must consistently use macros. OK
MUST: The package must contain code, or permissable content. OK
MUST: Large documentation files must go in a -doc subpackage. N/A
MUST: If a package includes something as %doc, it must not affect the runtime
of the application. OK
MUST: Header files must be in a -devel package. OK
MUST: Static libraries must be in a -static package. N/A
MUST: Packages containing pkgconfig(.pc) files must 'Requires: pkgconfig'
NEEDSWORK
MUST: If a package contains library files with a suffix (e.g. libfoo.so.1.1),
then library files that end in .so (without suffix) must go in a -devel
package. OK
MUST: In the vast majority of cases, devel packages must require the base
package using a fully versioned dependency OK
MUST: Packages must NOT contain any .la libtool archives, these must be removed
in the spec if they are built. OK
MUST: Packages containing GUI applications must include a %{name}.desktop file,
and that file must be properly installed with desktop-file-install in the
%install section N/A
MUST: Packages must not own files or directories already owned by other
packages. OK
MUST: At the beginning of %install, each package MUST run rm -rf %{buildroot}
(or $RPM_BUILD_ROOT). OK
MUST: All filenames in rpm packages must be valid UTF-8. OK

SHOULD: If the package does not include license text(s) as separate files from
upstream, the packager should query upstream to include it. OK
SHOULD: The description and summary sections in the package spec file should
contain translations for supported Non-English languages, if available. N/A
SHOULD: The reviewer should test that the package functions as described. A
package should not segfault instead of running, for example. NEEDSWORK

The RPM I built on a Fedora 12 x86_64 system fails to install, reporting:

$ rpm -Uvh ../RPMS/x86_64/libnih-*.rpm
error: Failed dependencies:
 libc.so.6(GLIBC_PRIVATE)(64bit) is needed by libnih-1.0.1-2.fc12.x86_64
$ ls /lib64/libc.so*
/lib64/libc.so.6

I'm not sure whether this indicates a build problem.

SHOULD: If scriptlets are used, those scriptlets must be sane. This is vague,
and left up to the reviewers judgement to determine sanity. OK
SHOULD: Usually, subpackages other than devel should require the base package
using a fully versioned dependency. OK
SHOULD: The placement of pkgconfig(.pc) files depends on their usecase, and
this is usually for development purposes, so should be placed in a -devel pkg.
A reasonable exception is that the main pkg itself is a devel tool not
installed in a user runtime, e.g. gcc or gdb. OK
SHOULD: If the package has file dependencies outside of /etc, /bin, /sbin,
/usr/bin, or /usr/sbin consider requiring the package which provides the file
instead of the file itself. N/A
SHOULD: your package should contain man pages for binaries/scripts. If it
doesn't, work with upstream to add them where they make sense. OK


Summary:
* Fails to build in mock.  Possible missing build dependency?
* Some source files missing licensing information, should be fixed upstream.
* Need "Requires: pkgconfig"
* Package won't install when built on Fedora 12 x86_64.  Should it?

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list