Bug 176658
| Summary: | "pear makerpm" generates flawed RPMs (%post/%postun scripts) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Greg Swallow <greg> |
| Component: | php-pear | Assignee: | Joe Orton <jorton> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | rpm |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-03-14 14:52:38 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: | 176725 | ||
| Bug Blocks: | |||
|
Description
Greg Swallow
2005-12-28 19:42:08 UTC
Nice. That's a really neat idea. Just to clarify, have you used this:
%post
pear install --nodeps --soft --force --register-only /var/lib/pear/[Package].xml
%postun
if [ "$1" -eq "0" ]; then
pear uninstall --nodeps --ignore-errors -r [Package]
fi
I just tried that myself with a variety of scenarios (pre-existing non-RPM
packages etc.) and it handled all situations gracefully. I like it. It's simpler
and it handles more cases. I think you should file a bug upstream (in the PEAR
bug system, bearing in mind my recent bugs 6373 and 6375 over there) and
meantime I will modify some of my roll-up fixes over in bug #176725. I'm going
to mark this bug as depending on bug #176725 in the hope that 176725 is the
"grand fix" of all "pear makerpm" issues.
I've used this method on my request for a php-pear-DB package for Fedora Extras (or maybe Fedora Core). Check it out over in bug #176733; any feedback appreciated. Thanks for the hint Greg. I've submitted a bug and patch for this upstream: http://pear.php.net/bugs/bug.php?id=6377 Thanks Tim, that was exactly what I had. I think this is going to be a WONTFIX, or is this done upstream for PEAR-1.4.7? With Tim's new PEAR_Command_Packaging it's going to be possible to create proper Fedora-standard RPMs can be produced which use all the correct paths etc. PEAR 1.4.7 has a frozen (old) version of the "makerpm" command, which will remain for the forseeable future. However, the fork of this code which is now in PEAR_Command_Packaging fixes this bug. Additionally, PEAR 1.4.7 has code to auto-detect the presence of PEAR_Command_Packaging and transparently (well, with a notice) switches to use the newer "make-rpm-spec" code if available. So yes Joe I would mark this WONTFIX, and/or assign it to the "php-pear-PEAR-Command-Packaging" component of the Fedora Extras product when I get round to making it (which itself is dependent on bug #183359). |