[pkg-php-pear] sed rule for removing tests in php-date (was: RFS: php-auth/1.6.4-1)

Prach Pongpanich prachpub at gmail.com
Thu Dec 19 03:51:00 UTC 2013


On Thu, Dec 19, 2013 at 5:38 AM, David Prévot <david at tilapin.org> wrote:
>
> Hi,
>
> Le 18/12/2013 04:58, Prach Pongpanich a écrit :
>
>> Build failed:
>>>  dh_auto_build -O--buildsystem=phppear
>>> [pear_error: message="XML Error: 'Mismatched tag' on line '88'" code=2 mode=return level=notice prefix="" info=""]
>>> dh_auto_build: /usr/share/pkg-php-tools/scripts/phppkginfo -d package . returned exit code 1
>
> A quick look around the line 88 of the package.xml file shows it’s
> inside a three-line <file> field:
>
>> <file baseinstalldir="/" md5sum="…" name="…" role="test">
>>  <tasks:replace from="@package_version@" to="version" type="package-info" />
>> </file>
>
> http://anonscm.debian.org/gitweb/?p=pkg-php/php-date.git;a=blob;f=package.xml#l88
>
> Another quick look at the rules shows a sed script that will only match
> a line containing “role="test"”:
>
> http://anonscm.debian.org/gitweb/?p=pkg-php/php-date.git;a=blob;f=debian/rules
>
> You have to make sure to remove the whole three-line <file […] </file>
> entries matching “role="test"”, if you only remove the first one, it
> will just break the XML file.
>
> Something like the following (borrowed to php-xml-rpc) should do the trick:
>
>         sed -i '/role="test"/,/<\/file>/d' */package.xml
>

Thanks for your help, I forgot it has been done in the php-xml-rpc.

http://anonscm.debian.org/gitweb/?p=pkg-php/php-date.git;a=commit;h=2bc8de7

I will update my patch for removing tests in pkg-php-tools too.


Regards,
 Prach



More information about the pkg-php-pear mailing list