[pkg-php-pear] Crypt_Blowfish conflict between PEAR and phpseclib

Mathieu Parent math.parent at gmail.com
Tue Jul 2 15:40:50 UTC 2013


2013/7/1 David Prévot <david at tilapin.org>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hi,
>
> Correcting myself while Alioth is busy (not) distributing emails.
>
> Le 30/06/2013 12:11, David Prévot a écrit :
>> Le 30/06/2013 11:00, Mathieu Parent a écrit :
>>> 2013/6/29 David Prévot <david at tilapin.org>:
>
>>> Also, for the binary package name, ask pkg-php-tools. This will probably be:
>>> php-phpseclib-sourceforge-crypt-blowfish.
>>
>> Wouldn’t that contradict the naming scheme?
>
> Ho, after a bit of trial and error, and code reading, I now begin to get
> your point, and realize I’ve probably misnamed my recent packages (aws
> should have been amazonwebservices in pear-aws-channel and php-aws-sdk,
> pear-guzzle-channel should have been pear-guzzlephp-channel and
> php-guzzle should have been php-guzzlephp-guzzle — which is pretty ugly
> and looks like a double copy and paste error. Too bad the suggestedalias
> is only available in channel.xml and respective pear- package, and thus
> can’t reliably be used to automatically generate dependencies from third
> parties), I believe we can live with that (the current names looks nicer
> than the names that should have been IMHO), but I can fix my mess if you
> feel strongly about it (they have never been in a stable release anyway).

There is no rule for Debian channel packages (as pkg-php-tools can't
generate builddeps). So, you can keep pear-aws-channel and
pear-guzzle-channel.

For PEAR packages: Override can be used to remove this ugglyness (as
done with phpunit). Some solutions here:
- use debian/pkg-php-tools-overrides: this will only work the package itself
- install it as
/usr/share/pkg-php-tools/scripts/overrides/pear-guzzle-channel (from
the channel package): this will only work when this package is
installed. So this is ok for all packages coming from guzzle (as they
already builddep on the channel), but we should not forget to add the
pear-guzzle-channel to *every* package having a dependency on a guzzle
package
- add it to pkg-php-tools and make pear-guzzle-channel on the
corresponding version (or higher): this will handle all case, but
/usr/share/pkg-php-tools/scripts/overrides/common will bloat

Also, currenly pkg-php-tools doesn't support more generic way to
override. Something that can be done is to accept lines like this:
pear.example.org /^Example_(.*)$/ php-example-$1

NB: current common override:
http://anonscm.debian.org/gitweb/?p=pkg-php/pkg-php-tools.git;a=blob;f=lib/overrides/common;hb=HEAD


>>> Which is not very good (read dh_pear manpage about overrides).
>
> Looks like you meant dh_phppear(1), thanks for the pointer, I’ll use
> that in the upcoming php-aws-sdk version that sĥould depend on
> php-guzzle (instead of php-guzzlephp-guzzle).
>
> Regards
>
> David
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iQEcBAEBCAAGBQJR0M+2AAoJEAWMHPlE9r08GgoIAIGgrUgiYeIjY/4FFSkS9wis
> 9EPpQnp5/2A5AbdKjCunF9kWUpLSGdxCYjDsGLzuMY7l+n1LAUiAlLJDkoCV0k6/
> 0o/LamVsiEz8duc3obn4iioAmoHcJ96eNINBAlwoainpg97kgvZy6xtWxO+dKhtK
> Cj36Q94YzajAAXxx2CqyXM+ZdeNfTFuryo/YTdTH84krzjt8L+g0yI5HbZy5E5gt
> hTSwXbp4iyKX8j200s2ehsD/FNF+EODSCmcxbhwhfTsgjAS8cXROEsJfaOX8rohX
> ar4q3TqEsecsno7rFiITTNzCMvlTCkUeSGOlyGE922KuiPNjz0O6Rav+2qRoT+4=
> =DwYY
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> pkg-php-pear mailing list
> pkg-php-pear at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-pear



--
Mathieu



More information about the pkg-php-pear mailing list