Bug 823066 - Review Request: php-symfony2-Validator - Symfony2 Validator Component
Summary: Review Request: php-symfony2-Validator - Symfony2 Validator Component
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: php-channel-symfony2 817303 823054
Blocks: 823071
TreeView+ depends on / blocked
 
Reported: 2012-05-18 21:51 UTC by Shawn Iwinski
Modified: 2012-07-19 22:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-12 18:56:29 UTC
Type: ---
Embargoed:
fedora: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)
php-symfony2-Validator-review.txt (6.54 KB, text/plain)
2012-06-24 07:24 UTC, Remi Collet
no flags Details

Comment 1 Shawn Iwinski 2012-05-20 18:14:29 UTC
Updates per comments in bug 823043

- Removed BuildRoot
- Changed php require to php-common
- Added the following requires based on phpci results:
  php-ctype, php-date, php-libxml, php-mbstring, php-pcre,
  php-simplexml, php-spl, php-pecl-apc
- Removed %defattr from %files section

SPEC URL:
http://people.redhat.com/siwinski/rpmbuild/SPECS/php-symfony2-Validator.spec

SRPM URL:
http://people.redhat.com/siwinski/rpmbuild/SRPMS/php-symfony2-Validator-2.0.14-2.fc16.src.rpm

Comment 4 Shawn Iwinski 2012-05-31 17:39:08 UTC
Updated to upstream version 2.0.15 & updates per bug #817303

- Removed "BuildRequires: php-pear >= 1:1.4.9-1.2"
- Updated %prep section
- Removed cleaning buildroot from %install section
- Removed documentation move from %install section (fixed upstream)
- Removed %clean section
- Updated %doc in %files section

SPEC URL: http://people.redhat.com/siwinski/rpmbuild/SPECS/php-symfony2-Validator.spec

SRPM URL: http://people.redhat.com/siwinski/rpmbuild/SRPMS/php-symfony2-Validator-2.0.15-1.fc16.src.rpm

Comment 5 Shawn Iwinski 2012-06-10 23:58:33 UTC
Issue: XSD file installed as doc, but referenced by code.

-- XSD file --
Symfony/Component/Validator/Mapping/Loader/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd

-- Code (from Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php) --
    protected function parseFile($file)
    {
        $dom = new \DOMDocument();
        libxml_use_internal_errors(true);
        if (!$dom->load($file, defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0)) {
            throw new MappingException(implode("\n", $this->getXmlErrors()));
        }
	if (!$dom->schemaValidate(__DIR__.'/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd$
            throw new MappingException(implode("\n", $this->getXmlErrors()));
        }
        $dom->validateOnParse = true;
        $dom->normalizeDocument();
        libxml_use_internal_errors(false);

        return simplexml_import_dom($dom);
    }



See original finding of this issue at https://bugzilla.redhat.com/show_bug.cgi?id=823046#c8

Comment 6 Shawn Iwinski 2012-06-13 06:09:48 UTC
Added optional requires

- Added php-pear(%{pear_channel}/HttpFoundation) require
- Added php-pear(%{pear_channel}/Yaml) require
- Removed ownership for directories already owned by required packages

Update per comment #5

- Fix package.xml for *.xsd file issue

SPEC URL: http://people.redhat.com/~siwinski/rpmbuild/SPECS/php-symfony2-Validator.spec

SRPM URL: http://people.redhat.com/~siwinski/rpmbuild/SRPMS/php-symfony2-Validator-2.0.15-3.fc17.src.rpm

Comment 7 Remi Collet 2012-06-24 07:24:55 UTC
Created attachment 593976 [details]
php-symfony2-Validator-review.txt

Generated by fedora-review 0.1.3

Comment 8 Remi Collet 2012-06-24 07:32:12 UTC
Just need to fix the apc requirement.

Note: this is not a minor dependency, as it can change the web server user experience. Of couse, it should improved perf. But could also breaks some code.

For exemple, APC 3.1.10 breaks symfony2 framework ;)
Of course, such issue will have to be fixed ;)
=> https://admin.fedoraproject.org/updates/php-pecl-apc-3.1.10-2.fc17

Of course, this still your choice, I just want you to be aware of this.



In all case, if you keep it, please change to 
Requires: php-pecl(APC)

Comment 9 Shawn Iwinski 2012-06-25 03:45:54 UTC
(In reply to comment #8)

Agreed.  I will remove the dependency and re-post SPEC and SRPM.

Comment 10 Remi Collet 2012-06-25 18:34:59 UTC
Sorry, but I have miss that one

/usr/share/pear/Symfony/Component/Validator/ValidatorFactory.php and
/usr/share/pear/Symfony/Component/Validator/Mapping/Loader/AnnotationLoader.php
use Doctrine\Common\Annotations\Reader

So you probably need php-doctrine-DoctrineCommon (not yet packaged).

So please
1/ assure this is an optionnal dep
2/ consider submitting a review for this package.

Comment 11 Shawn Iwinski 2012-06-30 05:26:13 UTC
(In reply to comment #10)
> Sorry, but I have miss that one
> 
> /usr/share/pear/Symfony/Component/Validator/ValidatorFactory.php and
> /usr/share/pear/Symfony/Component/Validator/Mapping/Loader/AnnotationLoader.
> php
> use Doctrine\Common\Annotations\Reader
> 
> So you probably need php-doctrine-DoctrineCommon (not yet packaged).
> 
> So please
> 1/ assure this is an optionnal dep
> 2/ consider submitting a review for this package.

Almost the same response as https://bugzilla.redhat.com/show_bug.cgi?id=823075#c6.  However, v2.0.15 composer lists "DoctrineCommon" as "require" but it moved to "suggest" in v2.1.0BETA1.  No change in PEAR dependencies between those versions.  It still appears that this dependency is optional though.  I plan on packaging DoctrineCommon soon.  If you feel this is a blocker, we can wait on this package (and Form package and therefore Security package because of their dependencies).

Comment 12 Remi Collet 2012-06-30 05:48:25 UTC
AS this is only an optional dep., just fix the APC dependency, I will approve this package. Optional could be added later.

Comment 13 Remi Collet 2012-06-30 05:48:55 UTC
Sorry for the noise...

Comment 15 Remi Collet 2012-07-01 06:57:46 UTC
== APPROVED ==

Comment 16 Shawn Iwinski 2012-07-02 01:38:06 UTC
New Package SCM Request
=======================
Package Name: php-symfony2-Validator
Short Description: Symfony2 Validator Component
Owners: siwinski
Branches: f16 f17 el6
InitialCC:

Comment 17 Gwyn Ciesla 2012-07-02 02:39:51 UTC
Git done (by process-git-requests).

Comment 18 Fedora Update System 2012-07-02 20:29:40 UTC
php-symfony2-Validator-2.0.15-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/php-symfony2-Validator-2.0.15-4.fc17

Comment 19 Fedora Update System 2012-07-02 20:29:50 UTC
php-symfony2-Validator-2.0.15-4.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/php-symfony2-Validator-2.0.15-4.el6

Comment 20 Fedora Update System 2012-07-02 20:29:59 UTC
php-symfony2-Validator-2.0.15-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/php-symfony2-Validator-2.0.15-4.fc16

Comment 21 Fedora Update System 2012-07-03 15:48:33 UTC
php-symfony2-Validator-2.0.15-4.fc17 has been pushed to the Fedora 17 testing repository.

Comment 22 Fedora Update System 2012-07-12 18:56:29 UTC
php-symfony2-Validator-2.0.15-4.fc17 has been pushed to the Fedora 17 stable repository.

Comment 23 Fedora Update System 2012-07-12 19:00:25 UTC
php-symfony2-Validator-2.0.15-4.fc16 has been pushed to the Fedora 16 stable repository.

Comment 24 Fedora Update System 2012-07-19 22:37:14 UTC
php-symfony2-Validator-2.0.15-4.el6 has been pushed to the Fedora EPEL 6 stable repository.


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