Package: pkg-php-tools
Version: 1.11
Severity: normal
Tags: patch

Hi,

The fix for #729452 (handle alpha and other WIP releases) introduced a
regression, that breaks the use of wildcard for WIP releases.

In php-opencloud, composer.json contains:

    "require": {
        "php" : ">=5.3.3",
        "guzzle/http" : "3.8.*@dev"
    },

The build fails with:

[pear_error: message="Overriding:'guzzle' 'http' -> 'php-guzzle'" code=0 
mode=return level=notice prefix="" info=""]
[pear_error: message="Version with wildcard not at the end is forbidden 
(3.8.*~)" code=0 mode=return level=notice prefix="" info=""]

The attached patch fixes the issue.

Regards

David

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-rt-amd64 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pkg-php-tools depends on:
ii  debhelper  9.20131227
ii  php-pear   5.5.9+dfsg-1
ii  php5-cli   5.5.9+dfsg-1
ii  php5-json  1.3.2-2

pkg-php-tools recommends no packages.

Versions of packages pkg-php-tools suggests:
ii  dh-make  0.63

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/pkg-php-tools/scripts/phppkginfo (from 
pkg-php-tools package)
From b2f8df615428709f46d0df75ccd28f74580c3642 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Pr=C3=A9vot?= <[email protected]>
Date: Sat, 8 Feb 2014 17:40:44 -0400
Subject: [PATCH] Composer: Allow wildcard for WIP releases

---
 lib/scripts/phppkginfo | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/scripts/phppkginfo b/lib/scripts/phppkginfo
index ddd730c..59cad76 100755
--- a/lib/scripts/phppkginfo
+++ b/lib/scripts/phppkginfo
@@ -372,7 +372,9 @@ function composerDebianVersion($pkg, $version, $link) {
 	) {
 		$operator = isset($match[1]) ? $match[1] : NULL;
 		$short_version = isset($match[2]) ? $match[2] : NULL;
-		$short_version .= isset($match[7]) ? '~'.$match[7] : NULL;
+		if (strpos($short_version, '*') === false) {
+			$short_version .= isset($match[7]) ? '~'.$match[7] : NULL;
+		}
 		$short_version_array = explode('.', $short_version);
 		$stability = isset($match[8]) ? $match[8] : NULL;
 		$as = isset($match[10]) ? $match[10] : NULL;
-- 
1.9.0.rc3

Attachment: signature.asc
Description: Digital signature

Reply via email to