Bug 907027

Summary: Review Request: rapidxml - Fast XML parser
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: Package ReviewAssignee: T.C. Hollingsworth <tchollingsworth>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: notting, package-review, pmachata, praiskup, tchollingsworth, volker27
Target Milestone: ---Flags: tchollingsworth: fedora-review+
gwync: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-28 03:48:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 907032    

Description Miro Hrončok 2013-02-02 19:05:48 UTC
Spec URL: https://raw.github.com/hroncok/SPECS/master/rapidxml.spec
SRPM URL: https://github.com/downloads/hroncok/SPECS/rapidxml-1.13-1.fc18.src.rpm

Description:

RapidXml is an attempt to create the fastest XML parser possible, while
retaining usability, portability and reasonable W3C compatibility. It is an
in-situ parser written in modern C++, with parsing speed approaching that of
strlen function executed on the same data.

Fedora Account System Username: churchyard

Comment 1 Volker Fröhlich 2013-02-25 22:39:58 UTC
Hm, that file is actually part of boost-devel already, as mentioned on http://rapidxml.sourceforge.net.

It could be considered a bundle there. I'd suggest to discuss that with the boost maintainers, in case you haven't already.

Comment 2 Miro Hrončok 2013-02-25 23:41:22 UTC
Thnaks for letting me know, will talk to them.

Comment 3 Petr Machata 2013-02-26 01:09:36 UTC
This indeed does look like bundling.  RapidXML is not a part of Boost API, it seems to be an implementation detail, much like e.g. ICU is.  I'll look into what the motivation was for doing it this way, and whether decoupling the two would be reasonable.

Comment 4 T.C. Hollingsworth 2013-04-19 06:17:27 UTC
This doesn't install the library, just the headers?

Comment 5 Miro Hrončok 2013-04-19 08:24:58 UTC
It is implemented in headers (silly).

Comment 6 T.C. Hollingsworth 2013-04-19 22:35:39 UTC
Ah, the completely empty main package confused me.  Please at least make that package depend on the -devel package.  Packages in the repo that do absolutely nothing aren't very nice.

It seems to me this is effectively a static library (albeit one that is compiled every time it's included).  You'd want to track it in the same way for all the same reasons (e.g. if a security flaw is found in it you'd want to rebuild everything that uses it).

So please follow the guidelines for static libraries:
http://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries

(Basically, just add "Provides: rapidxml-static = %{version}-%{release}" to -devel.)

Comment 7 Miro Hrončok 2013-04-20 18:08:18 UTC
(In reply to comment #6)
> Ah, the completely empty main package confused me.  Please at least make
> that package depend on the -devel package.  Packages in the repo that do
> absolutely nothing aren't very nice.
There is no empty "main" package produced, only -devel.

> (Basically, just add "Provides: rapidxml-static = %{version}-%{release}" to
> -devel.)
Done.

Spec URL: https://raw.github.com/hroncok/SPECS/master/rapidxml.spec
SRPM URL: https://github.com/downloads/hroncok/SPECS/rapidxml-1.13-2.fc18.src.rpm

Peter, how you see the (de)bundling issue now? Any news?

Comment 8 T.C. Hollingsworth 2013-04-20 18:29:55 UTC
Package APPROVED

Comment 9 Petr Machata 2013-04-22 10:37:32 UTC
> Peter, how you see the (de)bundling issue now? Any news?

I haven't had time to look into it yet.

Comment 10 Miro Hrončok 2013-04-22 10:48:57 UTC
Anyway, this package should not interact or conflicts with boost-devel:

$ rpm -q -l boost-devel | grep rapidxml
/usr/include/boost/property_tree/detail/rapidxml.hpp
/usr/include/boost/property_tree/detail/xml_parser_read_rapidxml.hpp
$ rpm -q -l rapidxml-devel
/usr/include/rapidxml.h
/usr/include/rapidxml_iterators.h
/usr/include/rapidxml_print.h
/usr/include/rapidxml_utils.h
/usr/share/doc/rapidxml-devel-1.13
/usr/share/doc/rapidxml-devel-1.13/license.txt
/usr/share/doc/rapidxml-devel-1.13/manual.html

Comment 11 Miro Hrončok 2013-04-22 10:49:49 UTC
New Package SCM Request
=======================
Package Name: rapidxml
Short Description: Fast XML parser
Owners: churchyard
Branches: f17 f18 f19

Comment 12 Gwyn Ciesla 2013-04-22 13:17:45 UTC
Git done (by process-git-requests).

Comment 13 Petr Machata 2013-04-22 23:10:59 UTC
(In reply to comment #10)
> Anyway, this package should not interact or conflicts with boost-devel:

It wouldn't.  It's renamed and in a separate namespace.

It would still be worth it to unbundle it though.  I looked now, and it doesn't seem to be awfully different.  There's a bunch of renames (s/assert/BOOST_ASSERT/ must be like half of the changes) and a couple of what seems to be backport-worthy changes.  Some changes might be instances of RapidXML getting fixed and Boost not picking up that change.  It seems the header could be reworked into a little shim that just translates RapidXML names to what the rest of Boost expects.

Comment 14 Fedora Update System 2013-04-23 09:51:24 UTC
rapidxml-1.13-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/rapidxml-1.13-2.fc19

Comment 15 Fedora Update System 2013-04-23 09:52:00 UTC
rapidxml-1.13-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/rapidxml-1.13-2.fc18

Comment 16 Fedora Update System 2013-04-23 09:52:37 UTC
rapidxml-1.13-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/rapidxml-1.13-2.fc17

Comment 17 Fedora Update System 2013-04-23 16:45:06 UTC
rapidxml-1.13-2.fc19 has been pushed to the Fedora 19 testing repository.

Comment 18 Fedora Update System 2013-04-28 03:48:29 UTC
rapidxml-1.13-2.fc19 has been pushed to the Fedora 19 stable repository.

Comment 19 Fedora Update System 2013-05-02 03:52:11 UTC
rapidxml-1.13-2.fc17 has been pushed to the Fedora 17 stable repository.

Comment 20 Fedora Update System 2013-05-02 03:52:35 UTC
rapidxml-1.13-2.fc18 has been pushed to the Fedora 18 stable repository.