[pkg-php-pear] ITP: php-json-schema -- PHP implementation of JSON schema

Prach Pongpanich prachpub at gmail.com
Thu Jun 27 07:01:06 UTC 2013

On Thu, Jun 27, 2013 at 5:08 AM, andrea rota <a at xelera.eu> wrote:
> i have pushed an initial version of the package to
> http://anonscm.debian.org/gitweb/?p=pkg-php/php-json-schema.git
> i had trouble with git-buildpackage on the first build attempt: invoking
> git-buildpackage only would fail with a git error:
> gbp:debug: ['git', 'ls-tree', 'upstream/1.3.2']
> gbp:error: upstream/1.3.2 is not a valid treeish
> (in fact, the ref was listed correctly via git ls-tree 1.3.2, not via
> git ls-tree upstream/1.3.2 in my working dir)
> however, after building the package once with
> git-buildpackage --git-upstream-tree=1.3.2
> i can now build the package with
> git-buildpackage
> only, on the same machine (couldn't try on a different VM yet) - i'm not
> sure why this is and how to correctly inform git-buildpackage of which
> ref to look for initially.

Hi Andrea,

I hope this help for creating a new git repository.

## Initial package and repository (pkg-php)

$ wget https://github.com/justinrainbow/json-schema/archive/1.3.2.tar.gz

$ ln -s 1.3.2.tar.gz php-json-schema_1.3.2.orig.tar.gz

$ mkdir php-json-schema; cd php-json-schema; git init

$ git-import-orig --pristine-tar ../php-json-schema_2.3.1.orig.tar.gz

## Rename branch

$ git branch -m master debian-sid
$ git branch -m upstream upstream-sid

## Add debian/gbp.conf in debian-sid branch

upstream-branch = upstream-sid
debian-branch = debian-sid
pristine-tar = True

export-dir = ../build-area/
tarball-dir = ../tarballs/

## Edit  your ~/.ssh/config: (non-DD)

Host alioth.debian.org svn.debian.org git.debian.org
User alioth-username

## Upload your repository (git.debian.org)

$ ../alioth-new-git.sh pkg-php

(edit /git/pkg-php/php-json-schema.git/description on git.debian.org)

## Initial debian directory
$ git clone ssh://git.debian.org/git/pkg-php/php-json-schema.git
$ cd php-json-schema

<edit & commit>

$ git-buildpackage

## Testing with lintian

$ lintian -EvIL +pedantic ../build-area/php-json-schema_2.3.1-1_amd64.changes


More information about the pkg-php-pear mailing list