[Bug 844013] Review Request: openshift-origin-broker - OpenShift Origin broker components

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

 



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

--- Comment #13 from Michael Scherer <misc@xxxxxxxx> ---
So besides the previous comments ( and they can be fixed later ), there is just
various missing deps, like mod_passenger. So once they are in, I will approve
the package.

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

Key:
- = N/A
x = Pass
! = Fail
? = Not evaluated



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

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.
[-]: %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.
[x]: Sources contain only permissible code or content.
[x]: %config files are marked noreplace or the reason is justified.
[x]: Macros in Summary, %description expandable at SRPM build time.
[-]: Package contains desktop file if it is a GUI application.
[-]: 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.
[x]: Permissions on files are set properly.
[x]: Package does not contain duplicates in %files.
[x]: Package complies to the Packaging Guidelines
[x]: Spec file lacks Packager, Vendor, PreReq tags.
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
     Note: rm -rf would be needed if support for EPEL5 is required
[-]: Large documentation files are in a -doc subpackage, if required.
[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.
[x]: Package consistently uses macro is (instead of hard-coded directory
     names).
[x]: Package is named using only allowed ASCII characters.
[x]: Package is named according to the Package Naming Guidelines.
[x]: No %config files under /usr.
[x]: Package does not generate any conflict.
     Note: Package contains no Conflicts: tag(s)
[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]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[!]: Package installs properly.
     Note: Installation errors (see attachment)
[x]: Package is not relocatable.
[x]: Requires correct, justified where necessary.
[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.
[x]: Package contains systemd file(s) if in need.
[x]: File names are valid UTF-8.

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

Generic:
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
     Note: Unless packager wants to package for EPEL5 this is fine
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
     Note: Clean would be needed if support for EPEL5 is required
[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]: Each %files section contains %defattr if rpm < 4.4
     Note: %defattr macros not found. They would be needed for EPEL5
[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).
[-]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Scriptlets must be sane, if used.
[x]: SourceX tarball generation or download is documented.
[x]: SourceX / PatchY prefixed with %{name}.
[x]: SourceX is a working URL.
[-]: 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).

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

Installation errors
-------------------
INFO: mock.py version 1.1.23 starting...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Mock Version: 1.1.23
INFO: Mock Version: 1.1.23
Start: lock buildroot
INFO: installing package(s):
/home/misc/checkout/git/FedoraReview/844013-openshift-origin-broker/results/openshift-origin-broker-0.6.7-7.fc17.noarch.rpm
ERROR: Command failed: 
 # ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-17-x86_64/root/',
'install',
'/home/misc/checkout/git/FedoraReview/844013-openshift-origin-broker/results/openshift-origin-broker-0.6.7-7.fc17.noarch.rpm',
'--setopt=tsflags=nocontexts']
Erreur : Paquet : openshift-origin-broker-0.6.7-7.fc17.noarch
(/openshift-origin-broker-0.6.7-7.fc17.noarch)
             Requiert : rubygem(multimap)
Erreur : Paquet : openshift-origin-broker-0.6.7-7.fc17.noarch
(/openshift-origin-broker-0.6.7-7.fc17.noarch)
             Requiert : rubygem(passenger)
Erreur : Paquet : openshift-origin-broker-0.6.7-7.fc17.noarch
(/openshift-origin-broker-0.6.7-7.fc17.noarch)
             Requiert : rubygem(openshift-origin-controller)
Erreur : Paquet : openshift-origin-broker-0.6.7-7.fc17.noarch
(/openshift-origin-broker-0.6.7-7.fc17.noarch)
             Requiert : mod_passenger
Erreur : Paquet : openshift-origin-broker-0.6.7-7.fc17.noarch
(/openshift-origin-broker-0.6.7-7.fc17.noarch)
             Requiert : rubygem(passenger-native)
 Vous pouvez essayer d'utiliser --skip-broken pour contourner le problème
 Vous pouvez essayer d'exécuter : rpm -Va --nofiles --nodigest

Rpmlint
-------
Checking: openshift-origin-broker-0.6.7-7.fc17.src.rpm
          openshift-origin-broker-0.6.7-7.fc17.noarch.rpm
openshift-origin-broker.noarch: W: only-non-binary-in-usr-lib
openshift-origin-broker.noarch: W: dangling-symlink
/var/www/stickshift/broker/httpd/conf/magic /etc/httpd/conf/magic
openshift-origin-broker.noarch: W: cross-directory-hard-link
/var/www/stickshift/broker/httpd/logs/error_log
/var/www/stickshift/broker/log/development.log
openshift-origin-broker.noarch: W: dangling-symlink
/var/www/stickshift/broker/httpd/modules /usr/lib64/httpd/modules
openshift-origin-broker.noarch: W: cross-directory-hard-link
/var/www/stickshift/broker/log/production.log
/var/www/stickshift/broker/httpd/logs/access_log
2 packages and 0 specfiles checked; 0 errors, 5 warnings.


Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:
Diff spec file in url and in SRPM
---------------------------------
---
/home/misc/checkout/git/FedoraReview/844013-openshift-origin-broker/srpm/openshift-origin-broker.spec
   2012-08-17 17:01:20.730438830 +0200
+++
/home/misc/checkout/git/FedoraReview/844013-openshift-origin-broker/srpm-unpacked/openshift-origin-broker.spec
   2012-08-17 17:01:21.534444878 +0200
@@ -1,4 +1,5 @@
 %global htmldir %{_localstatedir}/www/html
 %global brokerdir %{_localstatedir}/www/stickshift/broker
+%global appdir %{_localstatedir}/lib/stickshift

 %if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
@@ -11,5 +12,5 @@
 Name:      openshift-origin-broker
 Version:   0.6.7
-Release:   8%{?dist}
+Release:   7%{?dist}
 License:   ASL 2.0
 URL:       http://openshift.redhat.com
@@ -59,5 +60,7 @@
 mkdir -p %{buildroot}%{_initddir}
 %endif
+mkdir -p %{buildroot}%{_bindir}
 mkdir -p %{buildroot}%{htmldir}
+mkdir -p %{buildroot}%{brokerdir}
 mkdir -p %{buildroot}%{brokerdir}/httpd/root
 mkdir -p %{buildroot}%{brokerdir}/httpd/run
@@ -70,5 +73,9 @@
 mkdir -p %{buildroot}%{brokerdir}/tmp/sessions
 mkdir -p %{buildroot}%{brokerdir}/tmp/sockets
+mkdir -p %{buildroot}%{appdir}
 mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/stickshift
+mkdir -p %{buildroot}%{_sysconfdir}/oddjobd.conf.d
+mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
+mkdir -p %{buildroot}%{_bindir}
 mkdir -p %{buildroot}%{_var}/lib/stickshift
 mkdir -p %{buildroot}/usr/share/selinux/packages/%{name}
@@ -78,8 +85,9 @@
 cp -rp . %{buildroot}%{brokerdir}
 %if %{with_systemd}
-cp -p %{SOURCE2} %{buildroot}%{_unitdir}
-cp -p %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
+cp %{SOURCE2} %{buildroot}%{_unitdir}
+cp %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
 %else
-mv %{buildroot}%{brokerdir}/init.d/stickshift-broker
%{buildroot}%{_initddir}/%{name}
+mv %{buildroot}%{brokerdir}/init.d/* %{buildroot}%{_initddir}
+mv -f %{buildroot}%{_initddir}/stickshift-broker
%{buildroot}%{_initddir}/%{name}
 %endif
 ln -s %{brokerdir}/public %{buildroot}%{htmldir}/broker
@@ -96,5 +104,5 @@
 rm -f %{buildroot}%{brokerdir}/openshift-origin-broker.spec
 rm -rf %{buildroot}%{brokerdir}/init.d
-cp -p %{SOURCE1} %{buildroot}%{brokerdir}/public/favicon.ico
+cp %{SOURCE1} %{buildroot}%{brokerdir}/public/favicon.ico
 chmod 644 %{buildroot}%{brokerdir}/Gemfile
 chmod 644 %{buildroot}%{brokerdir}/config/environments/production.rb
@@ -104,17 +112,10 @@

 %post
-%if %{with_systemd}
-%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
-%systemd_post %{name}.service
-%else
-if [ $1 -eq 1 ] ; then 
-    # Initial installation --
-    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-fi
-%endif
-%endif
+chkconfig %{name} on

 #selinux updated
-pushd /usr/share/selinux/packages/%{name}
+systemctl --system daemon-reload
+
+pushd /usr/share/selinux/packages/stickshift-broker
 make -f /usr/share/selinux/devel/Makefile
 popd
@@ -129,5 +130,5 @@
 fcontext -a -t httpd_log_t '%{brokerdir}/log(/.*)?'
 _EOF
-semodule -i /usr/share/selinux/packages/%{name}/stickshift-broker.pp
+semodule -i /usr/share/selinux/packages/stickshift-broker/stickshift-broker.pp
-d passenger -i
/usr/share/selinux/packages/rubygem-passenger/rubygem-passenger.pp

 /sbin/restorecon -R -v %{brokerdir}/httpd
@@ -135,50 +136,31 @@

 %preun
-%if %{with_systemd}
-%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
-%systemd_preun %{name}.service
-%else
-if [ $1 -eq 0 ] ; then
-    # Package removal, not upgrade --
-    /bin/systemctl --no-reload disable %{name}.service > /dev/null 2>&1 || :
-    /bin/systemctl stop %{name}.service > /dev/null 2>&1 || :
-fi
-%endif
-%else
-if [ "$1" -eq 0 ] ; then
+if [ "$1" = 0 ] ; then
   service %{name} stop > /dev/null 2>&1
   chkconfig %{name} off || :
 fi
-%endif

 %postun
-if [ "$1" -eq 0 ] ; then
-    # Package uninstall, not upgrade
-  /usr/sbin/semodule -r stickshift-broker
-fi
-%if %{with_systemd}
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
-%systemd_postun_with_restart %{name}.service
-%else
-if [ $1 -ge 1 ] ; then
-    # Package upgrade, not uninstall --
-    /bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
-fi
-%endif
-%endif
+/usr/sbin/semodule -e passenger -r stickshift-broker
+/sbin/fixfiles -R rubygem-passenger restore
+/sbin/fixfiles -R mod_passenger restore

 %files
 %doc LICENSE COPYRIGHT
 %if %{with_systemd}
-%{_unitdir}/%{name}.service
-%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
+%attr(0644,-,-) %{_unitdir}/%{name}.service
+%attr(0644,-,-) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
 %else
 %{_initddir}/%{name}
 %endif
 /usr/share/selinux/packages/%{name}/
-%attr(0664,-,-) %ghost
/usr/share/selinux/packages/%{name}/stickshift-broker.pp
 %{_var}/lib/stickshift
 %config(noreplace) %{_sysconfdir}/httpd/conf.d/000000_stickshift_proxy.conf
+%attr(0664,-,-) %ghost %{brokerdir}/log/production.log
+%attr(0664,-,-) %ghost %{brokerdir}/log/development.log
+%attr(0664,-,-) %ghost %{brokerdir}/httpd/logs/error_log
+%attr(0664,-,-) %ghost %{brokerdir}/httpd/logs/access_log
+
+%defattr(-,apache,apache,-)
 %dir %{brokerdir}
 %{brokerdir}/Gemfile
@@ -202,10 +184,6 @@
 %{brokerdir}/doc
 %{brokerdir}/httpd
-%attr(0664,-,-) %ghost %{brokerdir}/httpd/logs/error_log
-%attr(0664,-,-) %ghost %{brokerdir}/httpd/logs/access_log
 %{brokerdir}/lib
 %{brokerdir}/log
-%attr(0664,-,-) %ghost %{brokerdir}/log/production.log
-%attr(0664,-,-) %ghost %{brokerdir}/log/development.log
 %{brokerdir}/public
 %{brokerdir}/run
@@ -217,11 +195,4 @@

 %changelog
-* Thu Aug 16 2012 Troy Dawson <tdawson@xxxxxxxxxx> 0.6.7-8
-- Remove apache ownership of the directories and files
-- removed instances where we messed with passenger selinux stuff
-- cleaned up alot of spec stuff
-- added stickshift-broker.pp as a ghost file
-- Used official systemd scripts/templates for post,preun,postun
-
 * Wed Aug 15 2012 Troy Dawson <tdawson@xxxxxxxxxx> 0.6.7-7
 - Removed "/sbin/restorecon -R -v /var/run" we have no files there
Requires
--------
openshift-origin-broker-0.6.7-7.fc17.noarch.rpm (rpmlib, GLIBC filtered):

    /bin/bash  
    /bin/sh  
    /usr/bin/env  
    config(openshift-origin-broker) = 0.6.7-7.fc17
    httpd  
    mod_passenger  
    mod_ssl  
    mongodb-server  
    policycoreutils-python  
    rubygem(bson_ext)  
    rubygem(json)  
    rubygem(multimap)  
    rubygem(open4)  
    rubygem(openshift-origin-controller)  
    rubygem(parseconfig)  
    rubygem(passenger)  
    rubygem(passenger-native)  
    rubygem(rack)  
    rubygem(rails)  
    rubygem(rest-client)  
    rubygem(xml-simple)  
    selinux-policy-targeted  
    systemd-units  

Provides
--------
openshift-origin-broker-0.6.7-7.fc17.noarch.rpm:

    config(openshift-origin-broker) = 0.6.7-7.fc17
    openshift-origin-broker = 0.6.7-7.fc17

MD5-sum check
-------------
http://mirror.openshift.com/pub/openshift-origin/source/openshift-origin-broker/openshift-origin-broker-0.6.7.tar.gz
:
  CHECKSUM(SHA256) this package     :
d5e894e1dc84b26e577d7fdacd5a90c72bb5c226fb92e90943bdbcb445a44d03
  CHECKSUM(SHA256) upstream package :
d5e894e1dc84b26e577d7fdacd5a90c72bb5c226fb92e90943bdbcb445a44d03


Generated by fedora-review 0.2.0 (a5c4ced) last change: 2012-07-22
Command line :./try-fedora-review -b 844013
External plugins:

-- 
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]