[dev] Trouble with package.xml for Hermes
Ben Klang
bklang at horde.org
Thu Dec 13 13:42:55 UTC 2012
On Dec 12, 2012, at 6:13 AM, Ralf Lang <lang at b1-systems.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am 11.12.2012 22:26, schrieb Ralf Lang:
>> Am 11.12.2012 20:48, schrieb Michael M Slusarz:
>>> Quoting Ben Klang <bklang at horde.org>:
>>
>>>> By inspecting the error stack internal to the PEAR package.xml
>>>> parser I got it to emit some error messages. There are about
>>>> 200 errors, but they all boil down to basically this:
>>>>
>>>> File "saveimage.php" in directory "<dir name="/">" has invalid
>>>> role "horde", should be one of cfg, data, doc, php, script,
>>>> test, www
>>
>>> You haven't installed Horde_Role.
>>
>>> michael
>>
>>> ___________________________________ Michael Slusarz
>>> [slusarz at horde.org]
>>
>>
>> I ran into similar troubles. I can snapshot whups from master but
>> not passwd from master. The Role is installed.
>>
>
> OK, the snapshot for passwd builds again.
> What did I do?
>
> Remove the package.xml
> Rebuild the package.xml
> Add back changelog, leaders, license, versions and dependencies one by one
>
> I found that one dependency had a missing <channel> tag and that the
> usesrole part was missing.
>
> Does that help you with hermes?
>
Thanks Ralf and Michael.
In my case the package.xml wasn't actually invalid, though all indications were otherwise. As Michael Slusarz pointed out, the system was unable to find the Horde_Role package. That was because I was using a separate PEAR install (created with pear config-create) and it was not being detected, even though I had properly set up the include_path. I didn't figure out how to make horde-components use my PEAR install, so I just installed Horde_Role in the global PEAR installation and then it worked.
Note for the future: if we can find some sane way to expose package.xml parsing errors via horde-components, it would make troubleshooting this kind of thing many miles easier.
/BAK/
> - --
> Ralf Lang
> Linux Consultant / Developer
> Tel.: +49-170-6381563
> Mail: lang at b1-systems.de
> B1 Systems GmbH
> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.19 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
>
> iEYEARECAAYFAlDIZvQACgkQCs1dsHJ/X7Dc4QCfbK2L0UdrG2BRYbPSC8RNa4IO
> 4vwAn2mXJhVh2EWT5QbR8TyjYsLnt9+0
> =iwdg
> -----END PGP SIGNATURE-----
More information about the dev
mailing list