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

David Prévot david at tilapin.org
Wed Dec 18 22:38:03 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Le 18/12/2013 04:58, Prach Pongpanich a écrit :

> I've problem with the php-date.
> 
> http://anonscm.debian.org/gitweb/?p=pkg-php/php-date.git
> 
> 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

Regards

David


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBCAAGBQJSsiPKAAoJEAWMHPlE9r084VMH/1dTOXA3009Z/7O5ycZUe6Jk
vYwMhJkjDqDG/hz6r21ZwXILmhT1n9tnd0Ndd/kND4xSOogbt32lNh8/q2pETNgF
z3BWFHeF4VcufisAUZ+N/uqaeIQ3Hprf5in8IXqPpspDWrShCCmsX0SO0AtJKj0t
Mpf8MtZVuZGFgUL4pmN9Qo3IH7srcqQNLBOY1QScQSyJsWCMOBDOtxelisbRvqSb
4d7OCsGuxZZXKUcQrtwld9ir5NhIZsvvT9bFGu7FQrdembtjv9M4I3ne7nrog8L8
dY6hBMDjwoFrfwWzYCXLimxle9YtWWdR4oQmxZtX+x2EVhGSWgSyp5E+PFDXyjk=
=2nvR
-----END PGP SIGNATURE-----



More information about the pkg-php-pear mailing list