Home » PEAR » PEAR » Bug #1163
pear makerpm fails with packages that provide role="doc"
Details
| Submitted | 2004-04-08 13:15 UTC |
|---|---|
| From | dseg at shield dot jp |
| Assigned | cellog |
| Status | Closed |
| Package | PEAR |
| PHP Version | 4.3.4 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-04-08 13:15 UTC] dseg at shield dot jp
Description:
------------
http://news.php.net/article.php?group=php.pear.dev&article=27134
** Patches for template.spec, PEAR/Command/Package.phpincluded **
o When trying to build rpms from pear packages(.tgz) by issuing command
'/usr/bin/pear makerpm <package.tgz>',
document files listed in packages.xml was not added to rpm
as expected in some packages.
o Due to other reason, documentations of DB-1.6.1.tgz also not added
to rpm.
From packages.xml of DB-1.6.1:
(...)
<file role="doc" name="doc\IDEAS"/>
<file role="doc" name="doc\MAINTAINERS"/>
<file role="doc" name="doc\STATUS"/>
<file role="doc" name="doc\TESTERS"/>
(...)
'\' used for directory separator, but no translation was done when
generating the spec file so resulting spec file contains '\' as
directory separator. This is not good on unix platform.
I think '\' should be replaced to php constant DIRECTORY_SEPARATOR
in PEAR/Command/Package.php.
o When trying to uninstall rpms, error occurred.
Reproduce code:
---------------
http://news.php.net/article.php?group=php.pear.dev&article=27134
Expected result:
----------------
<package_root>/docs/* should be added to rpm.
<package_root>/examples/* should be added to rpm.
Documentations listed in package.xml as 'doc\foo'
should be treated as 'doc/foo' on *nix platform.
(rpm run on *nix)
rpm -e <package-name> should be exit without errors.
Actual result:
--------------
http://news.php.net/article.php?group=php.pear.dev&article=27134
[2004-04-08 13:17 UTC] dseg at shield dot jp
Description:
------------
http://news.php.net/article.php?group=php.pear.dev&article=27134
** Patches for template.spec, PEAR/Command/Package.php are included **
o When trying to build rpms from pear packages(.tgz) by issuing command
'/usr/bin/pear makerpm <package.tgz>',
document files listed in packages.xml was not added to rpm
as expected in some packages.
o Due to other reason, documentations of DB-1.6.1.tgz also not added
to rpm.
From packages.xml of DB-1.6.1:
(...)
<file role="doc" name="doc\IDEAS"/>
<file role="doc" name="doc\MAINTAINERS"/>
<file role="doc" name="doc\STATUS"/>
<file role="doc" name="doc\TESTERS"/>
(...)
'\' used for directory separator, but no translation was done when
generating the spec file so resulting spec file contains '\' as
directory separator. This is not good on unix platform.
I think '\' should be replaced to php constant DIRECTORY_SEPARATOR
in PEAR/Command/Package.php.
o When trying to uninstall rpms, error occurred.
Reproduce code:
---------------
http://news.php.net/article.php?group=php.pear.dev&article=27134
Expected result:
----------------
<package_root>/docs/* should be added to rpm.
<package_root>/examples/* should be added to rpm.
Documentations listed in package.xml as 'doc\foo'
should be treated as 'doc/foo' on *nix platform.
(rpm run on *nix)
rpm -e <package-name> should be exit without errors.
Actual result:
--------------
http://news.php.net/article.php?group=php.pear.dev&article=27134
[2004-04-08 13:24 UTC] dseg at shield dot jp
Description:
------------
http://news.php.net/article.php?group=php.pear.dev&article=27134
** Patches for template.spec, PEAR/Command/Package.php are included **
o When trying to build rpms from pear packages(.tgz) by issuing command
'/usr/bin/pear makerpm <package.tgz>',
document files listed in packages.xml was not added to rpm
as expected in some packages.
o Due to other reason, documentations of DB-1.6.1.tgz also not added
to rpm.
From packages.xml of DB-1.6.1:
(...)
<file role="doc" name="doc\IDEAS"/>
<file role="doc" name="doc\MAINTAINERS"/>
<file role="doc" name="doc\STATUS"/>
<file role="doc" name="doc\TESTERS"/>
(...)
'\' used for directory separator, but no translation was done when
generating the spec file so resulting spec file contains '\' as
directory separator. This is not good on unix platform.
I think '\' should be replaced to php constant DIRECTORY_SEPARATOR
in PEAR/Command/Package.php.
o When trying to uninstall rpms, error occurred.
Reproduce code:
---------------
http://news.php.net/article.php?group=php.pear.dev&article=27134
Expected result:
----------------
<package_root>/docs/* should be added to rpm.
<package_root>/examples/* should be added to rpm.
Documentations listed in package.xml as 'doc\foo'
should be treated as 'doc/foo' on *nix platform.
(rpm run on *nix)
rpm -e <package-name> should be exit without errors.
Actual result:
--------------
http://news.php.net/article.php?group=php.pear.dev&article=27134
--
Sorry about duplicate posts.
[2004-07-12 11:06 UTC] wtatam at premierit dot com
What is happening about this bug ? We are now on 4.3.7 and it still has not been fixed.
What is causing the delay ?
[2004-08-04 15:03 UTC] jellybob at gmail dot com
Attempting to run pear makerpm on a package now results in the following output.
jon@georgie:~/pear/Auth_PrefManager2$ pear makerpm package.xml
Invalid checksum for file "<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/packa" : 44623 calculated, 0 expected