Bug 1075774 - Review Request: nss-altfiles - NSS module to look up users in /usr/lib/passwd too
Summary: Review Request: nss-altfiles - NSS module to look up users in /usr/lib/passwd...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Christopher Meng
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-12 19:09 UTC by Colin Walters
Modified: 2014-04-03 21:39 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-04-03 21:39:01 UTC
Type: ---
Embargoed:
i: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Colin Walters 2014-03-12 19:09:01 UTC
Spec URL: http://fedorapeople.org/~walters/nss-altfiles.spec
SRPM URL: http://fedorapeople.org/~walters/nss-altfiles-2.18.0-1.git20140312gite2a8059.el7.src.rpm
Description: NSS module to look up users in /usr/lib/passwd too
Fedora Account System Username: walters

Comment 1 Christopher Meng 2014-03-13 05:42:36 UTC
1. Drop 

Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

2. env CFLAGS=%{_optflags}? 

$ rpm -E %{_optflags}
%{_optflags}

I guess you mean %{optflags}?

3. Does it support /usr/lib64/passwd|/usr/lib64/group? I've added my self to sw bugzilla and want to know more bits about it.

Comment 2 Colin Walters 2014-03-13 12:59:24 UTC
(In reply to Christopher Meng from comment #1)
> 1. Drop 
> 
> Requires(post): /sbin/ldconfig
> Requires(postun): /sbin/ldconfig

Ok, fixed.

> I guess you mean %{optflags}?

Fixed.

> 3. Does it support /usr/lib64/passwd|/usr/lib64/group? I've added my self to
> sw bugzilla and want to know more bits about it.

No, that'd make no sense - there is only one nss database regardless of the process' CPU architecture.

One could argue it should be /usr/share/passwd since it is machine-independent data, but I was mainly following systemd's lead on /usr/lib/systemd.

New version uploaded to the same URLs.

Comment 3 Christopher Meng 2014-03-21 10:03:57 UTC
Package Review
==============

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



Issues:
=======
- Package installs properly.
  Note: Installation errors (see attachment)
  See: https://fedoraproject.org/wiki/Packaging:Guidelines


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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: ldconfig called in %post and %postun if required.
[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]: 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:
     "LGPL (v2.1 or later) (with incorrect FSF address)", "Unknown or
     generated". 1 files have unknown license. Detailed output of licensecheck:

LGPL (v2.1 or later) (with incorrect FSF address)
-------------------------------------------------
nss-altfiles-e2a80593727e659af90db87a73ea2129fc52f499/files-XXX.c
nss-altfiles-e2a80593727e659af90db87a73ea2129fc52f499/files-grp.c
nss-altfiles-e2a80593727e659af90db87a73ea2129fc52f499/files-have_o_cloexec.c
nss-altfiles-e2a80593727e659af90db87a73ea2129fc52f499/files-parse.c
nss-altfiles-e2a80593727e659af90db87a73ea2129fc52f499/files-pwd.c

Unknown or generated
--------------------
nss-altfiles-e2a80593727e659af90db87a73ea2129fc52f499/compat.h

[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.
[-]: 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.
[-]: 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.
     Note: Documentation size is 10240 bytes in 1 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]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[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]: Permissions on files are set properly.
[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

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

Generic:
[x]: 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.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise justified.
[x]: Scriptlets must be sane, if used.
[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]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[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:
[!]: Rpmlint is run on all installed packages.
     Note: Mock build failed
     See: http://fedoraproject.org/wiki/Packaging/Guidelines#rpmlint
[x]: Large data in /usr/share should live in a noarch subpackage if package is
     arched.


Installation errors
-------------------
INFO: mock.py version 1.1.36 starting...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Mock Version: 1.1.36
INFO: Mock Version: 1.1.36
Start: lock buildroot
INFO: installing package(s): /home/rpmaker/Desktop/nss-altfiles/results/nss-altfiles-2.18.0-1.git20140312gite2a8059.fc21.i686.rpm
ERROR: Command failed: 
 # ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-rawhide-i386/root/', '--releasever', '21', 'install', '/home/rpmaker/Desktop/nss-altfiles/results/nss-altfiles-2.18.0-1.git20140312gite2a8059.fc21.i686.rpm', '--setopt=tsflags=nocontexts']
Error: Package: nss-altfiles-2.18.0-1.git20140312gite2a8059.fc21.i686 (/nss-altfiles-2.18.0-1.git20140312gite2a8059.fc21.i686)
           Requires: libc.so.6(GLIBC_PRIVATE)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest



Rpmlint
-------
Checking: nss-altfiles-2.18.0-1.git20140312gite2a8059.fc21.i686.rpm
          nss-altfiles-2.18.0-1.git20140312gite2a8059.fc21.src.rpm
nss-altfiles.i686: W: spelling-error Summary(en_US) passwd -> passed, password
nss-altfiles.i686: W: spelling-error %description -l en_US passwd -> passed, password
nss-altfiles.i686: W: incoherent-version-in-changelog 2.18.0-1.git20140312gite2a80593.el7 ['2.18.0-1.git20140312gite2a8059.fc21', '2.18.0-1.git20140312gite2a8059']
nss-altfiles.src: W: spelling-error Summary(en_US) usr -> use, us, user
nss-altfiles.src: W: spelling-error Summary(en_US) passwd -> passed, password
nss-altfiles.src: W: spelling-error %description -l en_US usr -> use, us, user
nss-altfiles.src: W: spelling-error %description -l en_US passwd -> passed, password
nss-altfiles.src:4: E: hardcoded-library-path in /usr/lib/passwd
nss-altfiles.src:21: E: hardcoded-library-path in /usr/lib/group.
2 packages and 0 specfiles checked; 2 errors, 7 warnings.




Requires
--------
nss-altfiles (rpmlib, GLIBC filtered):
    /sbin/ldconfig
    libc.so.6
    libpthread.so.0
    rtld(GNU_HASH)



Provides
--------
nss-altfiles:
    libnss_altfiles.so.2
    nss-altfiles
    nss-altfiles(x86-32)



Source checksums
----------------
https://github.com/aperezdc/nss-altfiles/archive/e2a80593727e659af90db87a73ea2129fc52f499/nss-altfiles-e2a80593727e659af90db87a73ea2129fc52f499.tar.gz :
  CHECKSUM(SHA256) this package     : 8c0a36c24e08c99fe3584a3e6ee5d89ea1fe3d56f726004091822ee00679f0f8
  CHECKSUM(SHA256) upstream package : 8c0a36c24e08c99fe3584a3e6ee5d89ea1fe3d56f726004091822ee00679f0f8


Generated by fedora-review 0.5.1 (bb9bf27) last change: 2013-12-13
Command line :/usr/bin/fedora-review -rvn nss-altfiles-2.18.0-1.git20140312gite2a8059.el7.src.rpm
Buildroot used: fedora-rawhide-i386
Active plugins: Generic, Shell-api, C/C++
Disabled plugins: Java, Python, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP, Ruby
Disabled flags: EXARCH, EPEL5, BATCH, DISTTAG

---------------------------------------
1. Installation failed.

2. nss-altfiles.i686: W: incoherent-version-in-changelog 2.18.0-1.git20140312gite2a80593.el7 ['2.18.0-1.git20140312gite2a8059.fc21', '2.18.0-1.git20140312gite2a8059']

3. No tests currently?

Comment 4 Colin Walters 2014-03-22 15:05:17 UTC
(In reply to Christopher Meng from comment #3)
> 
> Generic:
> [!]: Rpmlint is run on all installed packages.
>      Note: Mock build failed
>      See: http://fedoraproject.org/wiki/Packaging/Guidelines#rpmlint

Fixed now:

http://fedorapeople.org/~walters/nss-altfiles.spec
http://fedorapeople.org/~walters/nss-altfiles-2.18.1-1.el7.src.rpm

Comment 5 Christopher Meng 2014-03-25 10:29:16 UTC
Issues:

Rpmlint (installed packages)
----------------------------
# rpmlint nss-altfiles
nss-altfiles.i686: W: spelling-error Summary(en_US) passwd -> passed, password
nss-altfiles.i686: W: unexpanded-macro %description -l C %{prefix}
nss-altfiles.i686: W: unexpanded-macro %description -l C %{prefix}
nss-altfiles.i686: W: no-version-in-last-changelog
nss-altfiles.i686: E: library-not-linked-against-libc /usr/lib/libnss_altfiles.so.2
1 packages and 0 specfiles checked; 1 errors, 5 warnings.
# echo 'rpmlint-done:'

Suggestions:

1. %setup -q -n nss-altfiles-%{version} --> %setup -q

2. Source0: https://github.com/aperezdc/nss-altfiles/archive/v2.18.1.tar.gz

-->

Source0: https://github.com/aperezdc/nss-altfiles/archive/v%{version}.tar.gz

Comment 6 Colin Walters 2014-03-26 21:20:43 UTC
(In reply to Christopher Meng from comment #5)

> nss-altfiles.i686: E: library-not-linked-against-libc

Fixed by cherry-picking a patch from a pull request.

> 1. %setup -q -n nss-altfiles-%{version} --> %setup -q

I went one up on this and switched to %autosetup.

> Source0: https://github.com/aperezdc/nss-altfiles/archive/v%{version}.tar.gz

Sure, done.

New versions uploaded.

Comment 7 Colin Walters 2014-03-31 20:03:53 UTC
(In reply to Colin Walters from comment #6)

> New versions uploaded.

Hi Christopher, do you see any other issues?

Comment 8 Christopher Meng 2014-04-03 04:09:27 UTC
PACKAGE APPROVED.

Comment 9 Colin Walters 2014-04-03 18:56:42 UTC
New Package SCM Request
=======================
Package Name: nss-altfiles
Short Description: NSS module to look up users in /usr/lib/passwd too
Owners: walters mattdm
Branches: f20 epel7
InitialCC:

Comment 10 Gwyn Ciesla 2014-04-03 20:11:41 UTC
Git done (by process-git-requests).


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