Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
Hi,

2016-01-17 15:11 GMT+01:00 Sebastiaan Couwenberg :
> Qt4 is EOL, and its WebKit component has been removed because its
> security issues cannot be fixed any more.

thanks for explanation. Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
Hi,

2016-01-17 17:33 GMT+01:00 Sebastiaan Couwenberg :
>> OK, but it means that orig.tar.gz will be uploaded several times for
>> every upload (wily, trusty, ...), right? Ma
>
> You only need to upload it the first time, but as long as the tarball is
> identical uploading it again isn't an issue.

OK, thanks for clarification, Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Sebastiaan Couwenberg
On 17-01-16 17:31, Martin Landa wrote:
> 2016-01-17 15:02 GMT+01:00 Sebastiaan Couwenberg :
>> Build with -sa to have the orig.tar.gz included in the upload.
> 
> OK, but it means that orig.tar.gz will be uploaded several times for
> every upload (wily, trusty, ...), right? Ma

You only need to upload it the first time, but as long as the tarball is
identical uploading it again isn't an issue.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
Hi,

2016-01-17 15:02 GMT+01:00 Sebastiaan Couwenberg :
> Build with -sa to have the orig.tar.gz included in the upload.

OK, but it means that orig.tar.gz will be uploaded several times for
every upload (wily, trusty, ...), right? Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Sebastiaan Couwenberg
On 17-01-16 14:59, Martin Landa wrote:
> 2016-01-17 13:09 GMT+01:00 Sebastiaan Couwenberg :
>> We only have to rebuild libgdal-grass since qgis will be removed
>> from the archive on the 26th, so we don't have much of a transition to
>> coordinate.
> 
> btw, why qgis is going to be removed from the archive? Thanks, Martin

This is documented on the package tracker:

 https://tracker.debian.org/pkg/qgis

Which lists:

 Marked for autoremoval on 26 January: 784514

Read the linked bugreport for details.

Qt4 is EOL, and its WebKit component has been removed because its
security issues cannot be fixed any more.

QGIS upstream doesn't support Qt5 builds completely yet, as they were
slow to move away from the EOL Qt4.

Hopefully next months 2.14 release will build successfully with Qt5 so
we still include qgis in stretch. If not, qgis will be reintroduced via
stretch-backports when we can build it successfully with Qt5.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Sebastiaan Couwenberg
On 17-01-16 14:58, Martin Landa wrote:
> I am getting rejection e-mail:
> 
> """
> Unable to find grass_7.0.3~rc2.orig.tar.gz in upload or distribution.
> Files specified in DSC are broken or missing, skipping package unpack
> verification.

Build with -sa to have the orig.tar.gz included in the upload.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
Hi,

2016-01-17 13:09 GMT+01:00 Sebastiaan Couwenberg :
> first. We only have to rebuild libgdal-grass since qgis will be removed
> from the archive on the 26th, so we don't have much of a transition to
> coordinate.

btw, why qgis is going to be removed from the archive? Thanks, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
Hi,

2016-01-17 13:49 GMT+01:00 Martin Landa :

hm, it's still not working, after uploading package by

$ dput ubuntugis-unstable ../grass_7.0.3~rc2-1~exp1~wily1_source.changes
...
Uploading to ubuntugis-unstable (via ftp to ppa.launchpad.net):
landa-mar...@ppa.launchpad.net password:
  Uploading grass_7.0.3~rc2-1~exp1~wily1.dsc: done.
  Uploading grass_7.0.3~rc2-1~exp1~wily1.debian.tar.xz: done.
  Uploading grass_7.0.3~rc2-1~exp1~wily1_source.changes: done.
Successfully uploaded packages.

I am getting rejection e-mail:

"""
Unable to find grass_7.0.3~rc2.orig.tar.gz in upload or distribution.
Files specified in DSC are broken or missing, skipping package unpack
verification.

grass (7.0.3~rc2-1~exp1~wily1) wily; urgency=medium

  * New upstream release candidate.
"""

I found `grass_7.0.3~rc2.orig.tar.gz` in my local dir:

-rw-r--r--  1 martin martin 120K Jan 17 14:45
grass_7.0.3~rc2-1~exp1~wily1_amd64.build
-rw-r--r--  1 martin martin  24K Jan 17 14:45
grass_7.0.3~rc2-1~exp1~wily1.debian.tar.xz
-rw-r--r--  1 martin martin 2.5K Jan 17 14:51 grass_7.0.3~rc2-1~exp1~wily1.dsc
-rw-r--r--  1 martin martin 1.9K Jan 17 14:52
grass_7.0.3~rc2-1~exp1~wily1_source.changes
-rw-r--r--  1 martin martin  321 Jan 17 14:53
grass_7.0.3~rc2-1~exp1~wily1_source.ubuntugis-unstable.upload
-rw-r--r--  1 martin martin  38M Jan 17 14:36 grass_7.0.3~rc2.orig.tar.gz

but the file hasn't been apparently uploaded. Any idea what could be
wrong? Thanks, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
2016-01-17 13:40 GMT+01:00 Martin Landa :
> hm, my PGP key is now validated, but I am still not able to upload
> source package to UbuntiuGIS PPA. I asked on Launchpad for help.

Ok, I solved myself, correct `dput.cf` is:

"""
[ubuntugis-unstable]
fqdn = ppa.launchpad.net
method = ftp
incoming = ~ubuntugis/ubuntugis-unstable/ubuntu/
login = landa-martin
allow_unsigned_uploads = 0
"""

Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
2016-01-17 13:30 GMT+01:00 Martin Landa :
>> Any idea what is wrong? I am team member [1] and having registered my
>> GPG key at http://keyserver.ubuntu.com and imported in my Launchpad
>> account.
>
> ah, I see, my PGP key is still waiting for validation. Sorry for the
> noise. Martin

hm, my PGP key is now validated, but I am still not able to upload
source package to UbuntiuGIS PPA. I asked on Launchpad for help.
Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
Hi,

2016-01-17 13:28 GMT+01:00 Martin Landa :
> Any idea what is wrong? I am team member [1] and having registered my
> GPG key at http://keyserver.ubuntu.com and imported in my Launchpad
> account.

ah, I see, my PGP key is still waiting for validation. Sorry for the
noise. Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
Hi,

2016-01-16 12:56 GMT+01:00 Martin Landa :

I am still unable to upload source package to UbuntuGIS PPA.

My dput.cf:

"""
[ppa:ubuntugis/ubuntugis-unstable]
fqdn = ppa.launchpad.net
method = sftp
incoming = ppa:ubuntugis/ubuntugis-unstable
login = landa-martin
"""

The command:

$ dput ppa:ubuntugis/ubuntugis-unstable
../grass_7.0.3~rc1-1~exp1~wily1_source.changes

fails with:

Checking signature on .changes
...
Good signature on ../grass_7.0.3~rc1-1~exp1~wily1_source.changes.
Checking signature on .dsc
...
Good signature on ../grass_7.0.3~rc1-1~exp1~wily1.dsc.
Uploading to ppa:ubuntugis/ubuntugis-unstable (via sftp to ppa.launchpad.net):
  grass_7.0.3~rc1-1~exp1~wily1.dsc: done.
  grass_7.0.3~rc1-1~exp1~wily1.debian.tar.xz: done.
  grass_7.0.3~rc1-1~exp1~wily1_source.changes: done.
Could not write
../grass_7.0.3~rc1-1~exp1~wily1_source.ppa:ubuntugis/ubuntugis-unstable.upload

Any idea what is wrong? I am team member [1] and having registered my
GPG key at http://keyserver.ubuntu.com and imported in my Launchpad
account.

Thanks in advance for any tips. Martin

[1] https://launchpad.net/~ubuntugis/+members

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
2016-01-17 13:09 GMT+01:00 Sebastiaan Couwenberg :
> When you're backporting an upload to the Debian archive for UbuntuGIS
> you append ~1 to the package version, always.
>
> So if you're backporting an experimental upload which includes ~expN in
> its version you keep that, and when you're backporting an upload to
> unstable which doesn't include ~expN in its version, you still append
> ~1 to the version.
>
> I may skip the experimental upload for 7.0.3 final, and upload 7.0.3-1
> to unstable directly instead of uploading 7.0.3-1~exp1 to experimental
> first. We only have to rebuild libgdal-grass since qgis will be removed
> from the archive on the 26th, so we don't have much of a transition to
> coordinate.

thanks for clarification, Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Sebastiaan Couwenberg
On 17-01-16 12:45, Martin Landa wrote:
> 2016-01-16 23:12 GMT+01:00 Martin Landa :
>>> And so the correct revision for the UbuntuGIS backport is
>>> 7.0.3~rc2-1~exp1~wily1.
>>
>> OK, thanks for explanation. Martin
> 
> I changed the GRASS how-to include `exp1` in tag names. What I do not
> understand when to use `exp` in tag/package names and when not. My
> work will be based on `exp` tags [1], so I should include `exp` in
> tag/package names always? Sorry, it's still not clear to me. So the
> next GRASS stable version in LTS will be `7.0.3-1~exp1~trusty1`? Ma
> 
> [1] 
> https://trac.osgeo.org/grass/wiki/DebianUbuntuPackaging#Mergechangesrelatedtogiventag

When you're backporting an upload to the Debian archive for UbuntuGIS
you append ~1 to the package version, always.

So if you're backporting an experimental upload which includes ~expN in
its version you keep that, and when you're backporting an upload to
unstable which doesn't include ~expN in its version, you still append
~1 to the version.

I may skip the experimental upload for 7.0.3 final, and upload 7.0.3-1
to unstable directly instead of uploading 7.0.3-1~exp1 to experimental
first. We only have to rebuild libgdal-grass since qgis will be removed
from the archive on the 26th, so we don't have much of a transition to
coordinate.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-17 Thread Martin Landa
Hi,

2016-01-16 23:12 GMT+01:00 Martin Landa :
>> And so the correct revision for the UbuntuGIS backport is
>> 7.0.3~rc2-1~exp1~wily1.
>
> OK, thanks for explanation. Martin

I changed the GRASS how-to include `exp1` in tag names. What I do not
understand when to use `exp` in tag/package names and when not. My
work will be based on `exp` tags [1], so I should include `exp` in
tag/package names always? Sorry, it's still not clear to me. So the
next GRASS stable version in LTS will be `7.0.3-1~exp1~trusty1`? Ma

[1] 
https://trac.osgeo.org/grass/wiki/DebianUbuntuPackaging#Mergechangesrelatedtogiventag

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Martin Landa
Hi,

2016-01-16 13:11 GMT+01:00 Sebastiaan Couwenberg :
>>> The -1~exp1 revision is used to have the experimental versions precede
>>> the -1 upload to unstable.
>>
>> yes, but it's valid for Debian, not for Ubuntu ASAIU.
> Ubuntu is a derivative of Debian, and so it applies to Ubuntu as well.

hm, but there is not experimental or unstable branch in Ubuntu. I
would expect that `exp` in package names are just related to
experimental branch (in Debian).

>> What is exactly wrong? Based on 2.12.0-1~natty1
>
> Because "~wily1" is appended to the version uploaded to the Debian
> archive: 7.0.3~rc2-1~exp1.
>
> And so the correct revision for the UbuntuGIS backport is
> 7.0.3~rc2-1~exp1~wily1.

OK, thanks for explanation. Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Sebastiaan Couwenberg
On 16-01-16 13:00, Martin Landa wrote:
> 2016-01-16 12:16 GMT+01:00 Sebastiaan Couwenberg :
>> On 16-01-16 11:55, Martin Landa wrote:
>>> 2016-01-16 11:27 GMT+01:00 Sebastiaan Couwenberg :
  dch -v 7.0.3~rc2-1~exp1~wily1
>>>
>>> btw, I started to use different format of tags (without `exp` - I
>>> thought that it's just related to experimental branch):
>>
>> The -1~exp1 revision is used to have the experimental versions precede
>> the -1 upload to unstable.
> 
> yes, but it's valid for Debian, not for Ubuntu ASAIU.

Ubuntu is a derivative of Debian, and so it applies to Ubuntu as well.

>>  Please keep in mind issues like the possibility to upgrade to the next
>>  Ubuntu stable release. Packages that are backports can be made
>>  inferior in version by using a tilde. If the package contains
>>  additional development, a version number without the tilde will make
>>  it higher, but not as high as the next Debian revision. For example:
>>
>> 2.12.0-1~natty1 (backport in PPA)
>>   < 2.12.0-1(from Debian in Ubuntu)
>>   < 2.12.0-1natty1  (in PPA, containing additions)
>>   < 2.12.0-2(from Debian in Ubuntu).
>> "
>>
>> https://pkg-grass.alioth.debian.org/policy/packaging.html#ubuntugis-ppa
>>
>>> dch -v 7.0.3~rc2-1~wily1
>>
>> This is wrong for backports.
> 
> What is exactly wrong? Based on 2.12.0-1~natty1

Because "~wily1" is appended to the version uploaded to the Debian
archive: 7.0.3~rc2-1~exp1.

And so the correct revision for the UbuntuGIS backport is
7.0.3~rc2-1~exp1~wily1.

> 7.0.3RC1 -> 7.0.3~rc1-1~willy1
> 7.0.3 -> 7.0.3-1~wily1
> 
> Sorry, I am getting lost from such complexity, Martin

Please do learn how to deal with package version histories properly,
your users will not be served well with broken upgrades.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Martin Landa
Hi.

2016-01-16 12:16 GMT+01:00 Sebastiaan Couwenberg :
> On 16-01-16 11:55, Martin Landa wrote:
>> 2016-01-16 11:27 GMT+01:00 Sebastiaan Couwenberg :
>>>  dch -v 7.0.3~rc2-1~exp1~wily1
>>
>> btw, I started to use different format of tags (without `exp` - I
>> thought that it's just related to experimental branch):
>
> The -1~exp1 revision is used to have the experimental versions precede
> the -1 upload to unstable.

yes, but it's valid for Debian, not for Ubuntu ASAIU.

>  Please keep in mind issues like the possibility to upgrade to the next
>  Ubuntu stable release. Packages that are backports can be made
>  inferior in version by using a tilde. If the package contains
>  additional development, a version number without the tilde will make
>  it higher, but not as high as the next Debian revision. For example:
>
> 2.12.0-1~natty1 (backport in PPA)
>   < 2.12.0-1(from Debian in Ubuntu)
>   < 2.12.0-1natty1  (in PPA, containing additions)
>   < 2.12.0-2(from Debian in Ubuntu).
> "
>
> https://pkg-grass.alioth.debian.org/policy/packaging.html#ubuntugis-ppa
>
>> dch -v 7.0.3~rc2-1~wily1
>
> This is wrong for backports.

What is exactly wrong? Based on 2.12.0-1~natty1

7.0.3RC1 -> 7.0.3~rc1-1~willy1
7.0.3 -> 7.0.3-1~wily1

Sorry, I am getting lost from such complexity, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Martin Landa
Hi,

2016-01-16 12:02 GMT+01:00 Martin Landa :
> ah, OK. Could someone from UbuntuGIS maintainers to add to the list?
> Thanks! Martin

thanks for adding me as new member. Unfortunately to dput command
still fails with

Could not write
../grass_7.0.3~rc1-1~wily1_source.ppa:ubuntugis/ubuntugis-unstable.upload

Any idea what could be (still) wrong? Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Sebastiaan Couwenberg
On 16-01-16 11:55, Martin Landa wrote:
> 2016-01-16 11:27 GMT+01:00 Sebastiaan Couwenberg :
>>  dch -v 7.0.3~rc2-1~exp1~wily1
> 
> btw, I started to use different format of tags (without `exp` - I
> thought that it's just related to experimental branch):

The -1~exp1 revision is used to have the experimental versions precede
the -1 upload to unstable.

Backports of uploads to the Debian archive should likewise precede the
version uploaded by appending a ~ revision. Otherwise you risk breaking
upgrades.

This is documented in the policy too:

"
 PPA for Ubuntu by UbuntuGIS

 The UbuntuGIS team maintains Personal Package Archives (PPA) on
 Launchpad, where packages are backported for Ubuntu.

 Please keep in mind issues like the possibility to upgrade to the next
 Ubuntu stable release. Packages that are backports can be made
 inferior in version by using a tilde. If the package contains
 additional development, a version number without the tilde will make
 it higher, but not as high as the next Debian revision. For example:

2.12.0-1~natty1 (backport in PPA)
  < 2.12.0-1(from Debian in Ubuntu)
  < 2.12.0-1natty1  (in PPA, containing additions)
  < 2.12.0-2(from Debian in Ubuntu).
"

https://pkg-grass.alioth.debian.org/policy/packaging.html#ubuntugis-ppa

> dch -v 7.0.3~rc2-1~wily1

This is wrong for backports.

> Is it OK, or I should follow `exp` syntax? Or this syntax is relevant
> only for RCs? So 7.0.3 become:
> 
> 7.0.3-1~wily1 or 7.0.3-1~exp1~wily1 in experimental branch?

UbuntuGIS backports append their distribution specific ~ revision to the
version they are backporting from Debian, just like backport do in Debian:

 http://backports.debian.org/Contribute/#index6h3

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Martin Landa
Hi,

2016-01-16 11:57 GMT+01:00 Sebastiaan Couwenberg :
> Correct, you're not on the list of members yet:
>
>  https://launchpad.net/~ubuntugis/+members

ah, OK. Could someone from UbuntuGIS maintainers to add to the list?
Thanks! Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Sebastiaan Couwenberg
On 16-01-16 11:45, Martin Landa wrote:
> I changed method to sftp (*) but the result is the same.

Oh dear.

> Probably missing privileges in UbuntuGIS PPA?

Correct, you're not on the list of members yet:

 https://launchpad.net/~ubuntugis/+members

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Martin Landa
Hi,

2016-01-16 11:27 GMT+01:00 Sebastiaan Couwenberg :

>  dch -v 7.0.3~rc2-1~exp1~wily1

btw, I started to use different format of tags (without `exp` - I
thought that it's just related to experimental branch):

dch -v 7.0.3~rc2-1~wily1

Is it OK, or I should follow `exp` syntax? Or this syntax is relevant
only for RCs? So 7.0.3 become:

7.0.3-1~wily1 or 7.0.3-1~exp1~wily1 in experimental branch?

Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Martin Landa
Hi,

2016-01-16 11:27 GMT+01:00 Sebastiaan Couwenberg :
> You need to merge the changes from the rc2 tag into the ubuntugis branch:
>
>  git checkout ubuntugis/wily
>  git merge debian/7.0.3.rc2-1.exp1
>  dch -v 7.0.3~rc2-1~exp1~wily1

thanks for the commands! Martin
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Martin Landa
Hi,

2016-01-16 11:24 GMT+01:00 Martin Landa :
> sorry, I didn't have such problem with GRASS PPA. Thanks for pointers, Martin

well, I still struggle with that (my `.dput.cf`), the command

$ dput ppa:ubuntugis/ubuntugis-unstable
../grass_7.0.3~rc1-1~wily1_source.changes
Checking signature on .changes
gpg: Signature made Thu 14 Jan 2016 05:52:12 PM CET using RSA key ID B8F8BBAB
gpg: Good signature from "Martin Landa "
Good signature on ../grass_7.0.3~rc1-1~wily1_source.changes.
Checking signature on .dsc
gpg: Signature made Thu 14 Jan 2016 05:52:10 PM CET using RSA key ID B8F8BBAB
gpg: Good signature from "Martin Landa "
Good signature on ../grass_7.0.3~rc1-1~wily1.dsc.
Uploading to ppa:ubuntugis/ubuntugis-unstable (via ftp to ppa.launchpad.net):
  Uploading grass_7.0.3~rc1-1~wily1.dsc: done.
  Uploading grass_7.0.3~rc1-1~wily1.debian.tar.xz: done.
  Uploading grass_7.0.3~rc1-1~wily1_source.changes: done.

fails with:

"""
Could not write
../grass_7.0.3~rc1-1~wily1_source.ppa:ubuntugis/ubuntugis-unstable.upload
"""

I changed method to sftp (*) but the result is the same. Probably
missing privileges in UbuntuGIS PPA? Thanks for feedback in advance,
Martin

(*) I needed to copy sftp.py from Ubuntu's dput package (Debian
package misses this file).

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Sebastiaan Couwenberg
On 16-01-16 11:12, Martin Landa wrote:
> at this point I am planning to merge changes done in `experimental`
> branch (7.0.3RC2) to branch `ubuntugis/wily`. I just wonder how to do
> it correctly? Thanks. Martin

Isn't that obvious?

You need to merge the changes from the rc2 tag into the ubuntugis branch:

 git checkout ubuntugis/wily
 git merge debian/7.0.3.rc2-1.exp1
 dch -v 7.0.3~rc2-1~exp1~wily1

 http://pkg-grass.alioth.debian.org/policy/packaging.html#git-package-branches
 https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging

If you consult the documentation, you don't have to wait for answers via
the list.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Martin Landa
2016-01-16 11:21 GMT+01:00 Sebastiaan Couwenberg :
> Could you not find this documentation yourself?

sorry, I didn't have such problem with GRASS PPA. Thanks for pointers, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Sebastiaan Couwenberg
On 16-01-16 10:55, Martin Landa wrote:
> No host ppa:ubuntugis/ubuntugis-unstable found in config

You don't have an entry to the PPA in dput.cf, add-apt-repository should
do that, if not add it manually.

https://help.launchpad.net/Packaging/PPA/Uploading

Could you not find this documentation yourself?

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Martin Landa
Hi Bas,

2016-01-14 18:37 GMT+01:00 Martin Landa :

at this point I am planning to merge changes done in `experimental`
branch (7.0.3RC2) to branch `ubuntugis/wily`. I just wonder how to do
it correctly? Thanks. Martin
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-16 Thread Martin Landa
Dear UbuntuGIS community,

2016-01-14 17:56 GMT+01:00 Martin Landa :

I have problem to upload source changes to your PPA

> dput ppa:ubuntugis/ubuntugis-unstable 
> ../grass_7.0.3~rc1-1~wily1_source.changes
>
> in my case fails
>
> No host ppa:ubuntugis/ubuntugis-unstable found in config

Any idea what is wrong or missing on my side? Thanks, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-14 18:33 GMT+01:00 Bas Couwenberg :
>> You need to replace the tilde (which is not a valid character in tags)
>> with a dot. Like the experimental tag:

ah, OK, I changed it to

git tag ubuntugis/7.0.3.rc1-1.wily1

Thanks, Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Bas Couwenberg

On 2016-01-14 18:28, Bas Couwenberg wrote:

On 2016-01-14 18:20, Martin Landa wrote:

2016-01-14 18:06 GMT+01:00 Bas Couwenberg :

 /

So in this case that's:

 ubuntugis/7.0.3~rc1-1~wily1


hm, `git tag ubuntugis/7.0.3~rc1-1~wily1`

says

fatal: 'ubuntugis/7.0.3~rc1-1~wily1' is not a valid tag name.

What I am doing wrong? Ma


You need to replace the tilde (which is not a valid character in tags)
with a dot. Like the experimental tag:

 debian/7.0.3.rc1-1.exp2

debcommit does this for you, but it doesn't handle prefixes and is
therefor not appropriate for non-Debian tags.


PS. Refer to the official git documentation for details about valid 
tags:


 https://git-scm.com/docs/git-check-ref-format

Kind Regards,

Bas
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Bas Couwenberg

On 2016-01-14 18:20, Martin Landa wrote:

2016-01-14 18:06 GMT+01:00 Bas Couwenberg :

 /

So in this case that's:

 ubuntugis/7.0.3~rc1-1~wily1


hm, `git tag ubuntugis/7.0.3~rc1-1~wily1`

says

fatal: 'ubuntugis/7.0.3~rc1-1~wily1' is not a valid tag name.

What I am doing wrong? Ma


You need to replace the tilde (which is not a valid character in tags) 
with a dot. Like the experimental tag:


 debian/7.0.3.rc1-1.exp2

debcommit does this for you, but it doesn't handle prefixes and is 
therefor not appropriate for non-Debian tags.


Kind Regards,

Bas
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-14 18:06 GMT+01:00 Bas Couwenberg :
>  /
>
> So in this case that's:
>
>  ubuntugis/7.0.3~rc1-1~wily1

hm, `git tag ubuntugis/7.0.3~rc1-1~wily1`

says

fatal: 'ubuntugis/7.0.3~rc1-1~wily1' is not a valid tag name.

What I am doing wrong? Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-14 18:06 GMT+01:00 Bas Couwenberg :

> You should use tags with the format:
>
>  /
>
> So in this case that's:
>
>  ubuntugis/7.0.3~rc1-1~wily1

Ok, thanks. Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Bas Couwenberg

On 2016-01-14 17:08, Martin Landa wrote:

I have question about tagging, what should be appropriate format

git tag ubuntugis-wily/7.0.3RC1

or

git tag ubuntugis-wily/7.0.3~rc1-1~wily1


None of the above.

You should use tags with the format:

 /

So in this case that's:

 ubuntugis/7.0.3~rc1-1~wily1

See also:

 https://pkg-grass.alioth.debian.org/policy/repositories.html#git-tags

The policy for tags is not very strict where it concerns non-Debian 
tags, the differences between the version you used now and what's 
documented is not a blocker.


Kind Regards,

Bas
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-14 17:08 GMT+01:00 Martin Landa :

hopefully one of last issue, uploading

dput ppa:ubuntugis/ubuntugis-unstable ../grass_7.0.3~rc1-1~wily1_source.changes

in my case fails

No host ppa:ubuntugis/ubuntugis-unstable found in config

Any idea what could be wrong? Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-14 17:03 GMT+01:00 Martin Landa :

I have question about tagging, what should be appropriate format

git tag ubuntugis-wily/7.0.3RC1

or

git tag ubuntugis-wily/7.0.3~rc1-1~wily1

? Thanks, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-14 14:43 GMT+01:00 Bas Couwenberg :
> You can just add -S to your git-buildpackage command, or use
> --git-pbuilder-options="--debbuildopts=-S".

thanks, I updated how-to on GRASS wiki accordingly. Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Bas Couwenberg

On 2016-01-14 14:52, Rashad Kanavath wrote:
Yes. And you need to use the -S option for debbuild/dpkg-buildpackage 
to

have it build a source-only upload.

You can just add -S to your git-buildpackage command, or use
--git-pbuilder-options="--debbuildopts=-S".



could this be included in packaging policy. Ubunutgis  section or 
somewhere?





Sure, especially when someone sends a patch. Don't wait for me to update 
the policy, that's a team effort too.


https://pkg-grass.alioth.debian.org/policy/index.html#policy-updates
https://pkg-grass.alioth.debian.org/policy/policy.html#contributing

Kind Regards,

Bas
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Rashad Kanavath
Hello Bas,

On Thu, Jan 14, 2016 at 2:43 PM, Bas Couwenberg  wrote:

> On 2016-01-14 14:23, Martin Landa wrote:
>
>> 2016-01-14 14:08 GMT+01:00 Martin Landa :
>>
>>> right, but the source contains in name in it's content marks about
>>> platform (amd64) [1]. The command
>>>
>>> dput ppa:ubuntugis/ubuntugis-unstable
>>> ../grass_7.0.3~rc1-1~wily1_amd64.changes
>>>
>>
>> there should be
>>
>> grass_7.0.3~rc1-1~wily1_source.changes
>>
>> right?
>>
>
> Yes. And you need to use the -S option for debbuild/dpkg-buildpackage to
> have it build a source-only upload.
>
> You can just add -S to your git-buildpackage command, or use
> --git-pbuilder-options="--debbuildopts=-S".
>

could this be included in packaging policy. Ubunutgis  section or somewhere?

http://pkg-grass.alioth.debian.org/policy/packaging.html#ubuntugis-ppa


>
> See also:
> - pbuilder(1)
>   http://manpages.debian.org/cgi-bin/man.cgi?query=pbuilder
> - dpkg-buildpackage(1)
>   http://manpages.debian.org/cgi-bin/man.cgi?query=dpkg-buildpackage
>
> Kind Regards,
>
> Bas
>
> ___
> UbuntuGIS mailing list
> Ubuntu@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/ubuntu
> http://trac.osgeo.org/ubuntugis/wiki
>



-- 
Regards,
   Rashad
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Bas Couwenberg

On 2016-01-14 14:23, Martin Landa wrote:

2016-01-14 14:08 GMT+01:00 Martin Landa :

right, but the source contains in name in it's content marks about
platform (amd64) [1]. The command

dput ppa:ubuntugis/ubuntugis-unstable 
../grass_7.0.3~rc1-1~wily1_amd64.changes


there should be

grass_7.0.3~rc1-1~wily1_source.changes

right?


Yes. And you need to use the -S option for debbuild/dpkg-buildpackage to 
have it build a source-only upload.


You can just add -S to your git-buildpackage command, or use 
--git-pbuilder-options="--debbuildopts=-S".


See also:
- pbuilder(1)
  http://manpages.debian.org/cgi-bin/man.cgi?query=pbuilder
- dpkg-buildpackage(1)
  http://manpages.debian.org/cgi-bin/man.cgi?query=dpkg-buildpackage

Kind Regards,

Bas
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-14 14:08 GMT+01:00 Martin Landa :
> right, but the source contains in name in it's content marks about
> platform (amd64) [1]. The command
>
> dput ppa:ubuntugis/ubuntugis-unstable ../grass_7.0.3~rc1-1~wily1_amd64.changes

there should be

grass_7.0.3~rc1-1~wily1_source.changes

right?

But I am getting just

ls ../*changes
../grass_7.0.3~rc1-1~wily1_amd64.changes

Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-14 14:05 GMT+01:00 Bas Couwenberg :
> Launchpad wants source only uploads (-S) and builds the binaries for the
> various platforms itself.

right, but the source contains in name in it's content marks about
platform (amd64) [1]. The command

dput ppa:ubuntugis/ubuntugis-unstable ../grass_7.0.3~rc1-1~wily1_amd64.changes

Martin

[1] http://geo102.fsv.cvut.cz/~landa/tmp/grass_7.0.3~rc1-1~wily1_amd64.changes

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Bas Couwenberg

On 2016-01-14 13:52, Martin Landa wrote:

there is one issue what I don't understand, the result what is to be
uploaded by `dput` (`changes` file) is architecture depended
(../grass_7.0.3~rc1-1~wily1_amd64.changes). Does it mean that I need
to create build environment for both i386 and amd64 platforms?


You should create those chroot to test the build for those 
architectures, for the upload to the PPA the binaries are not relevant.


Launchpad wants source only uploads (-S) and builds the binaries for the 
various platforms itself.


Kind Regards,

Bas
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-14 13:44 GMT+01:00 Martin Landa :

there is one issue what I don't understand, the result what is to be
uploaded by `dput` (`changes` file) is architecture depended
(../grass_7.0.3~rc1-1~wily1_amd64.changes). Does it mean that I need
to create build environment for both i386 and amd64 platforms?

Thanks for clarification. Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-14 13:02 GMT+01:00 Bas Couwenberg :

> No, `git commit` only commits in your local repository, to share the changes
> with the repository on Alioth used by others you need to push your local
> changes with `git push`, this is one of big distinctions between Subversion
> and Git. With SVN you commit to the shared repo, with git you commit
> locally. This allows you to rebase your local changes into coherent commits
> before pushing them to the shared repository to ease merging and review in
> the shared repo.

sure, the more I was surprised that after my first commit to the repo
(git commit) that it's automatically pushed to the origin. I will see
what happen next time.

[...]

Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Bas Couwenberg

On 2016-01-14 12:17, Martin Landa wrote:

2016-01-13 23:04 GMT+01:00 Bas Couwenberg :
When the packaging lives on a non-default branch (i.e. not master), 
you need
to document the branch in the Vcs-Git URL and gbp.conf. See this 
commit for

example:


https://anonscm.debian.org/cgit/pkg-grass/grass.git/commit/?h=experimental&id=a32ba58d0e41e41b3c4608a1ee4d926fecc96d18


OK, done for ubuntugis/wily in [1]. I was just surprised that `git
commit` also push changes to the origin. So `git push` is not needed,
right?


No, `git commit` only commits in your local repository, to share the 
changes with the repository on Alioth used by others you need to push 
your local changes with `git push`, this is one of big distinctions 
between Subversion and Git. With SVN you commit to the shared repo, with 
git you commit locally. This allows you to rebase your local changes 
into coherent commits before pushing them to the shared repository to 
ease merging and review in the shared repo.


You should always push your changes before or directly after uploading 
the package (and tagging the release).


https://pkg-grass.alioth.debian.org/policy/packaging.html#git-push-to-alioth


Did you notice the lintian warnings in your build log?


No, I checked for lintian and didn't find anything about warning? What
do you mean exactly?


Review the lintian tags in your log:

 cat log.packager | awk '/+++ lintian output +++/,/+++ end of lintian 
output +++/' | grep -v ^+++ | less


Optionally filter out the overrides and their comments by adding ' | 
egrep -v "^(N|O):" before the pipe to less.


You'll see this warning for the various binary packages:

 W: grass-core: possible-new-upstream-release-without-new-version

You can lookup the extended description online, which I linked in my 
previous mail.


All lintian issues of severity info (I:) and higher need to be reviewed 
and fixed before the upload (or overridden if it's a false positive, or 
purposely left unaddressed, a comment should always be added to explain 
the override).


Kind Regards,

Bas
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-14 Thread Martin Landa
Hi,

2016-01-13 23:04 GMT+01:00 Bas Couwenberg :
> I don't have time for an extensive review of the draft right now, but some
> initial comments follow.

first of all, thanks for useful comments!

> So instead of:
>
>  git checkout -b ubuntugis/wily experimental
>
> You should use:
>
>  git checkout -b ubuntugis/wily debian/7.0.3.rc1-1.exp2

OK, changed.

> Instead of using `dch -i` to create the new changelog entry, you should
> specify the version instead:
>
>  dch -v 7.0.3~rc1-1~wily1
>
> The default increment used by `dch -i` is not appropriate for UbuntuGIS
> backports.

OK, changed.

> When the packaging lives on a non-default branch (i.e. not master), you need
> to document the branch in the Vcs-Git URL and gbp.conf. See this commit for
> example:
>
>
> https://anonscm.debian.org/cgit/pkg-grass/grass.git/commit/?h=experimental&id=a32ba58d0e41e41b3c4608a1ee4d926fecc96d18

OK, done for ubuntugis/wily in [1]. I was just surprised that `git
commit` also push changes to the origin. So `git push` is not needed,
right?

> As mentioned before [0]:
>
> "
>  The Get lines for ppa.launchpad.net are for the othermirror you specified.
>
>  There is only ossim for wily, most UbuntuGIS packages are for the LTS
> releases.
>
>
> https://launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable/+packages
> "

Sorry, I overlooked this issue, thanks for patience.

> Did you notice the lintian warnings in your build log?

No, I checked for lintian and didn't find anything about warning? What
do you mean exactly?

Thanks! Martin

[1] 
http://anonscm.debian.org/cgit/pkg-grass/grass.git/commit/debian?h=ubuntugis%2Fwily
[2] http://geo102.fsv.cvut.cz/~landa/tmp/log.packager

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-13 Thread Bas Couwenberg

On 2016-01-13 10:19, Martin Landa wrote:
I put on GRASS trac wiki draft of how-to [1]. Any comments are very 
welcomed.


I don't have time for an extensive review of the draft right now, but 
some initial comments follow.



You should generally checkout release tags instead of branches.

The branches may contain additional changes that haven't been uploaded 
yet and may not be fit for release.


UbuntuGIS mostly contains backports (as indicated with the tilde version 
suffix) of package revisions uploaded to the Debian archive, which are 
just rebuilt for the Ubuntu LTS releases.


So instead of:

 git checkout -b ubuntugis/wily experimental

You should use:

 git checkout -b ubuntugis/wily debian/7.0.3.rc1-1.exp2

The above checkout is only appropriate to create the ubuntugis/wily 
branch, if the branch already exists you need to do a plain checkout 
(without -b and just the ubuntugis/wily branch name) and merge the 
changes from the debian tag you want to incorporate for UbuntuGIS.



Instead of using `dch -i` to create the new changelog entry, you should 
specify the version instead:


 dch -v 7.0.3~rc1-1~wily1

The default increment used by `dch -i` is not appropriate for UbuntuGIS 
backports.



git-buildpackage uses the debian/gbp.conf file in the source package to 
override its defaults, so you don't need to use 
--git-debian-branch=ubuntugis/$DIST when you've configured the gbp.conf 
properly.


When the packaging lives on a non-default branch (i.e. not master), you 
need to document the branch in the Vcs-Git URL and gbp.conf. See this 
commit for example:


 
https://anonscm.debian.org/cgit/pkg-grass/grass.git/commit/?h=experimental&id=a32ba58d0e41e41b3c4608a1ee4d926fecc96d18



I created building environment, see log [2] and build GRASS package
[3]. Unfortunately in logs I can't see any reference to UbuntuGIS PPA.
In pbuilde configuration I have

OTHERMIRROR="deb
http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu $DIST
main"

Any idea what could be wrong? Martin


As mentioned before [0]:

"
 The Get lines for ppa.launchpad.net are for the othermirror you 
specified.


 There is only ossim for wily, most UbuntuGIS packages are for the LTS 
releases.


 
https://launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable/+packages

"

[0] https://lists.debian.org/debian-gis/2016/01/msg00039.html

[1] 
https://trac.osgeo.org/grass/wiki/DebianUbuntuPackaging#GitworkflowusingtheGRASSspecificbranches

[2] http://geo102.fsv.cvut.cz/~landa/tmp/log.builder
[3] http://geo102.fsv.cvut.cz/~landa/tmp/log.packager


Did you notice the lintian warnings in your build log?

Specifically this one:

 
https://lintian.debian.org/tags/possible-new-upstream-release-without-new-version.html


You should not duplicate the changelog from the Debian package, you 
should mention that the revision is a rebuild for Ubuntu $DIST, i.e.:


 grass (7.0.3~rc1-1~wily1) wily; urgency=medium

   * Rebuild for wily.

  -- $DEBFULLNAME <$DEBEMAIL>  Tue, 12 Jan 2016 20:57:45 +0100

Kind Regards,

Bas
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-13 Thread Martin Landa
Hi,

2016-01-13 9:17 GMT+01:00 Martin Landa :

I put on GRASS trac wiki draft of how-to [1]. Any comments are very welcomed.

I created building environment, see log [2] and build GRASS package
[3]. Unfortunately in logs I can't see any reference to UbuntuGIS PPA.
In pbuilde configuration I have

OTHERMIRROR="deb
http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu $DIST
main"

Any idea what could be wrong? Martin

[1] 
https://trac.osgeo.org/grass/wiki/DebianUbuntuPackaging#GitworkflowusingtheGRASSspecificbranches
[2] http://geo102.fsv.cvut.cz/~landa/tmp/log.builder
[3] http://geo102.fsv.cvut.cz/~landa/tmp/log.packager

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-13 Thread Martin Landa
Hi,

2016-01-13 9:16 GMT+01:00 Martin Landa :
> Any idea what could be wrong? Thanks, Martin

ah, the reason is `--save-after-login --login`. When I omit these
parameters it works. Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-13 Thread Martin Landa
Hi,

2016-01-09 16:59 GMT+01:00 Sebastiaan Couwenberg :
> Because you're using a chroot for a non-standard distribution and this
> hasn't been configured in debian/gbp.conf, you need to specify the
> distribution with the -ubuntugis suffix to have git-buildpackage use the
> correct chroot (i.e. --git-dist=wily-ubuntugis). This is documented in
> the 'Building the package' section:
>
> http://pkg-grass.alioth.debian.org/policy/packaging.html#git-build-package

thanks I was able to create build environment by

export DIST=wily
sudo -E cowbuilder --create --distribution=$DIST
--basepath=/var/cache/pbuilder/base-${DIST}-ubuntugis.cow
--save-after-login --login

on Debian Unstable. On another machine (Ubuntu 14.04 LTS) the command fails by

 -> Copying COW directory
  forking: rm -rf /var/cache/pbuilder/build//cow.26267
  forking: cp -al /var/cache/pbuilder/base-wily-ubuntugis.cow
/var/cache/pbuilder/build//cow.26267
I: unlink for ilistfile /var/cache/pbuilder/build//cow.26267/.ilist
failed, it didn't exist?
 -> Invoking pbuilder
  forking: pbuilder login --buildplace
/var/cache/pbuilder/build//cow.26267 --no-targz --internal-chrootexec
chroot /var/cache/pbuilder/build//cow.26267 cow-shell
I: Running in no-targz mode
I: copying local configuration
cp: cannot create regular file
'/var/cache/pbuilder/build/cow.26267/etc/hosts': No such file or
directory
  forking: chroot /var/cache/pbuilder/build//cow.26267 apt-get clean
chroot: failed to run command ‘apt-get’: No such file or directory
 -> Moving work directory [/var/cache/pbuilder/build//cow.26267] to
final location [/var/cache/pbuilder/base-wily-ubuntugis.cow] and
cleaning up old copy
  forking: rm -rf /var/cache/pbuilder/build//cow.26267-26267-tmp

Any idea what could be wrong? Thanks, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-09 Thread Sebastiaan Couwenberg
On 09-01-16 16:44, Martin Landa wrote:
> 2016-01-08 14:30 GMT+01:00 Sebastiaan Couwenberg :
>> It's quite rare to have Ubuntu specific packaging in the git
>> repositories so there is not much chance of collision. If the 'ubuntu/'
>> prefix is already used for Ubuntu specific changes (like the freexl
>> security updates for example), it's a good idea to use the 'ubuntugis/'
>> prefix for the PPA packaging to differentiate them.
> 
> OK, I have build environment ready. I just don't see UbuntuGIS PPA
> even I have in RC file defined
> 
> OTHERMIRROR="deb
> http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu $DIST
> main"
> 
> $ sudo DIST=wily cowbuilder --create --distribution=$DIST
> --basepath=/var/cache/pbuilder/base-${DIST}-ubuntugis.cow
>  -> Invoking pbuilder
>   forking: pbuilder create --buildplace
> /var/cache/pbuilder/base-wily-ubuntugis.cow --mirror
> http://cz.archive.ubuntu.com/ubuntu/ --architecture amd64
> --distribution wily --no-targz --extrapackages cowdancer
> <- here --othermirror is missig
> ...
> I: installing dummy policy-rc.d
> Get:1 http://cz.archive.ubuntu.com wily InRelease [218 kB]
> Get:2 http://cz.archive.ubuntu.com wily/main amd64 Packages [1420 kB]
> Get:3 http://ppa.launchpad.net wily InRelease [15.5 kB]
> Get:4 http://cz.archive.ubuntu.com wily/restricted amd64 Packages [15.6 kB]
> Get:5 http://cz.archive.ubuntu.com wily/universe amd64 Packages [6704 kB]
> Ign http://ppa.launchpad.net wily InRelease
> Get:6 http://ppa.launchpad.net wily/main amd64 Packages [961 B]
> Get:7 http://ppa.launchpad.net wily/main Translation-en [1026 B]
> Get:8 http://cz.archive.ubuntu.com wily/multiverse amd64 Packages [138 kB]
> Get:9 http://cz.archive.ubuntu.com wily/main Translation-en [839 kB]
> Get:10 http://cz.archive.ubuntu.com wily/multiverse Translation-en [107 kB]
> Get:11 http://cz.archive.ubuntu.com wily/restricted Translation-en [4296 B]
> Get:12 http://cz.archive.ubuntu.com wily/universe Translation-en [4579 kB]
> ...
> 
> I don't see any UbuntuGIS PPA, I am not sure if it's OK.

The Get lines for ppa.launchpad.net are for the othermirror you specified.

There is only ossim for wily, most UbuntuGIS packages are for the LTS
releases.

https://launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable/+packages

>> You need to have a cowbuilder chroot for the Ubuntu distributions you
>> intend to build and upload the package for. In these chroots you need to
>> enable the ubuntugis-unstable PPA for the dependencies. Because
>> pbuilder/cowbuilder chroots reverts the changes after every run, you
>> need to use the --save-after-login option together with --login to
>> preserve the PPA changes.
>>
>> git-buildpackage uses the configuration in debian/gbp.conf to select the
>> appropriate branches and tags, you need to update these for the
>> UbuntuGIS packaging. As long as you use the same upstream tarball (from
>> the upstream branch) as the Debian package, you only need to change the
>> debian-branch option to ubuntugis/wily:
> 
> $ debcheckout --user martinl-guest --git-track '*' grass pkg-grass
> 
> Here I am lost, how to enter cowbuilder chroot and run git-buildpackage?

Start by reading the relevant sections of the git packaging walkthrough:

http://pkg-grass.alioth.debian.org/policy/packaging.html#git-walkthrough

Because you're using a chroot for a non-standard distribution and this
hasn't been configured in debian/gbp.conf, you need to specify the
distribution with the -ubuntugis suffix to have git-buildpackage use the
correct chroot (i.e. --git-dist=wily-ubuntugis). This is documented in
the 'Building the package' section:

http://pkg-grass.alioth.debian.org/policy/packaging.html#git-build-package

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-09 Thread Martin Landa
Hi,

2016-01-08 14:30 GMT+01:00 Sebastiaan Couwenberg :
> It's quite rare to have Ubuntu specific packaging in the git
> repositories so there is not much chance of collision. If the 'ubuntu/'
> prefix is already used for Ubuntu specific changes (like the freexl
> security updates for example), it's a good idea to use the 'ubuntugis/'
> prefix for the PPA packaging to differentiate them.

OK, I have build environment ready. I just don't see UbuntuGIS PPA
even I have in RC file defined

OTHERMIRROR="deb
http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu $DIST
main"

$ sudo DIST=wily cowbuilder --create --distribution=$DIST
--basepath=/var/cache/pbuilder/base-${DIST}-ubuntugis.cow
 -> Invoking pbuilder
  forking: pbuilder create --buildplace
/var/cache/pbuilder/base-wily-ubuntugis.cow --mirror
http://cz.archive.ubuntu.com/ubuntu/ --architecture amd64
--distribution wily --no-targz --extrapackages cowdancer
<- here --othermirror is missig
...
I: installing dummy policy-rc.d
Get:1 http://cz.archive.ubuntu.com wily InRelease [218 kB]
Get:2 http://cz.archive.ubuntu.com wily/main amd64 Packages [1420 kB]
Get:3 http://ppa.launchpad.net wily InRelease [15.5 kB]
Get:4 http://cz.archive.ubuntu.com wily/restricted amd64 Packages [15.6 kB]
Get:5 http://cz.archive.ubuntu.com wily/universe amd64 Packages [6704 kB]
Ign http://ppa.launchpad.net wily InRelease
Get:6 http://ppa.launchpad.net wily/main amd64 Packages [961 B]
Get:7 http://ppa.launchpad.net wily/main Translation-en [1026 B]
Get:8 http://cz.archive.ubuntu.com wily/multiverse amd64 Packages [138 kB]
Get:9 http://cz.archive.ubuntu.com wily/main Translation-en [839 kB]
Get:10 http://cz.archive.ubuntu.com wily/multiverse Translation-en [107 kB]
Get:11 http://cz.archive.ubuntu.com wily/restricted Translation-en [4296 B]
Get:12 http://cz.archive.ubuntu.com wily/universe Translation-en [4579 kB]
...

I don't see any UbuntuGIS PPA, I am not sure if it's OK.

> You need to have a cowbuilder chroot for the Ubuntu distributions you
> intend to build and upload the package for. In these chroots you need to
> enable the ubuntugis-unstable PPA for the dependencies. Because
> pbuilder/cowbuilder chroots reverts the changes after every run, you
> need to use the --save-after-login option together with --login to
> preserve the PPA changes.
>
> git-buildpackage uses the configuration in debian/gbp.conf to select the
> appropriate branches and tags, you need to update these for the
> UbuntuGIS packaging. As long as you use the same upstream tarball (from
> the upstream branch) as the Debian package, you only need to change the
> debian-branch option to ubuntugis/wily:

$ debcheckout --user martinl-guest --git-track '*' grass pkg-grass

Here I am lost, how to enter cowbuilder chroot and run git-buildpackage?

Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-09 Thread Martin Landa
Hi,

2016-01-09 15:14 GMT+01:00 Sebastiaan Couwenberg :
> Work around the buggy .pbuilderc by specifying the commandline options
> explicitly.

I minimized rc file [1] now it works, thanks. Ma

[1] http://geo102.fsv.cvut.cz/~landa/tmp/pbuilderrc

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-09 Thread Sebastiaan Couwenberg
On 09-01-16 15:10, Martin Landa wrote:
> 2016-01-09 15:05 GMT+01:00 Sebastiaan Couwenberg :
>> Your .pbuilderrc seems buggy. It treats wily as a Debian distribution.
> 
> seems like that, just cannot find it.

I'm not sure if the array syntax is valid for dash, it may be a bashism.

Work around the buggy .pbuilderc by specifying the commandline options
explicitly.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-09 Thread Martin Landa
Hi,

2016-01-09 15:05 GMT+01:00 Sebastiaan Couwenberg :
> Your .pbuilderrc seems buggy. It treats wily as a Debian distribution.

seems like that, just cannot find it. Relevant parts:

# List of Ubuntu suites. Update these when needed.
UBUNTU_SUITES=("wily" "vivid" "utopic" "trusty" "saucy" "raring"
"quantal" "precise" "oneiric" "natty" "lucid" "hardy")

if $(echo ${DEBIAN_SUITES[@]} | grep -q $DIST); then
# Debian configuration
MIRRORSITE="http://$DEBIAN_MIRROR/debian/";
COMPONENTS="main contrib non-free"
if $(echo "$STABLE_CODENAME stable" | grep -q $DIST); then
EXTRAPACKAGES="$EXTRAPACKAGES debian-backports-keyring"
OTHERMIRROR="$OTHERMIRROR | deb
http://backports.debian.org/debian $STABLE_BACKPORTS_SUITE
$COMPONENTS"
fi
elif $(echo ${UBUNTU_SUITES[@]} | grep -q $DIST); then
# Ubuntu configuration
MIRRORSITE="http://$UBUNTU_MIRROR/ubuntu/";
# add PPA 'ubuntugis'
OTHERMIRROR="$OTHERMIRROR | deb
http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu $DIST
main"
COMPONENTS="main restricted universe multiverse"
else
echo "Unknown distribution: $DIST"
exit 1
fi

The command:

export DIST=wily ; sudo cowbuilder --create --distribution=$DIST
--basepath=/var/cache/pbuilder/base-$DIST-ubuntugis.cow --mirror
http://cz.archive.ubuntu.com/ubuntu/ --debootstrapopts
"--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg"

I don't see anything wrong. Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-09 Thread Sebastiaan Couwenberg
On 09-01-16 14:46, Martin Landa wrote:
> export DIST=wily ; sudo cowbuilder --create --distribution=$DIST
> --basepath=/var/cache/pbuilder/base-$DIST-ubuntugis.cow --mirror
> http://cz.archive.ubuntu.com/ubuntu/ --debootstrapopts
> "--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg"
> 
> works but at end fails on Debian stuff which shouldn't be there.

The wheezy-backports stuff seems to gets picked by your .pbuilderrc.

> BTW, I thought that `--mirror` doesn't need to be defined since it's
> done in pbuilderrc file [1], see MIRRORSITE variable. Ma

Your .pbuilderrc seems buggy. It treats wily as a Debian distribution.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-09 Thread Martin Landa
Hi,

2016-01-09 14:34 GMT+01:00 Sebastiaan Couwenberg :
> You did not specify the pbuilder --mirror option with the URL to the
> Ubuntu mirror.
>
> http://manpages.debian.org/cgi-bin/man.cgi?query=pbuilder
>
> Since you're need to enable the ubuntugis-unstable PPA in the chroot,
> your should name it accordingly (e.g. base-wily-ubuntugis.cow) to
> differentiate it from the a plain Ubuntu wily chroot (without PPAs).

thanks, it helped a bit.

export DIST=wily ; sudo cowbuilder --create --distribution=$DIST
--basepath=/var/cache/pbuilder/base-$DIST-ubuntugis.cow --mirror
http://cz.archive.ubuntu.com/ubuntu/ --debootstrapopts
"--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg"

works but at end fails on Debian stuff which shouldn't be there.

I: copying local configuration
I: Installing apt-lines
W: no hooks of type G found -- ignoring
I: Refreshing the base.tgz
I: upgrading packages
I: mounting /proc filesystem
I: mounting /dev/pts filesystem
I: installing dummy policy-rc.d
Get:1 http://cz.archive.ubuntu.com wily InRelease [218 kB]
Get:2 http://cz.archive.ubuntu.com wily/main amd64 Packages [1420 kB]
Ign http://backports.debian.org wheezy-backports InRelease
Ign http://backports.debian.org wheezy-backports Release.gpg
Ign http://backports.debian.org wheezy-backports Release
Err http://backports.debian.org wheezy-backports/main amd64 Packages
  404  Not Found [IP: 2001:610:1908:b000::148:14 80]
Err http://backports.debian.org wheezy-backports/contrib amd64 Packages
  404  Not Found [IP: 2001:610:1908:b000::148:14 80]
Err http://backports.debian.org wheezy-backports/non-free amd64 Packages
  404  Not Found [IP: 2001:610:1908:b000::148:14 80]
Ign http://backports.debian.org wheezy-backports/contrib Translation-en
Ign http://backports.debian.org wheezy-backports/main Translation-en
Ign http://backports.debian.org wheezy-backports/non-free Translation-en

BTW, I thought that `--mirror` doesn't need to be defined since it's
done in pbuilderrc file [1], see MIRRORSITE variable. Ma

[1] http://geo102.fsv.cvut.cz/~landa/tmp/pbuilderrc

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-09 Thread Sebastiaan Couwenberg
On 09-01-16 14:10, Martin Landa wrote:
> 2016-01-08 14:30 GMT+01:00 Sebastiaan Couwenberg wrote:
>>  https://pkg-grass.alioth.debian.org/policy/packaging.html#git-packaging
>>
>> You need to have a cowbuilder chroot for the Ubuntu distributions you
>> intend to build and upload the package for. In these chroots you need to
>> enable the ubuntugis-unstable PPA for the dependencies. Because
> 
> I end up with
> 
> export DIST=wily ; sudo cowbuilder --create --distribution=$DIST
> --basepath=/var/cache/pbuilder/base-$DIST.cow
> [...]
> 
> The mirror points to debian instead of ubuntu. I don't know why. Here
> is my pbuilderrc file [2]. Do you have any idea what could be wrong?

You did not specify the pbuilder --mirror option with the URL to the
Ubuntu mirror.

http://manpages.debian.org/cgi-bin/man.cgi?query=pbuilder

Since you're need to enable the ubuntugis-unstable PPA in the chroot,
your should name it accordingly (e.g. base-wily-ubuntugis.cow) to
differentiate it from the a plain Ubuntu wily chroot (without PPAs).

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-09 Thread Martin Landa
Hi,

2016-01-08 14:30 GMT+01:00 Sebastiaan Couwenberg :

[...]

> The grass packaging already has branches with the 'ubuntugis/' prefix,
> so it's fine to keep using those.

OK, thanks for clarification.

>> At this point I am not sure how to continue (sorry, I have only little
>> experience with Launchpad packaging [1]). Thanks for any pointers in
>> advance!
>
> Will you only maintain GRASS 7.0 in UbuntuGIS?
> Or do you also intend to use this packaging for 7.1?

Only stable releases (currently 7.0). Development daily builds I would
keep on Launchpad [1]. BTW, I am planning to rename that package
(grass7-daily) to `grass-daily`.

>  https://pkg-grass.alioth.debian.org/policy/packaging.html#git-packaging
>
> You need to have a cowbuilder chroot for the Ubuntu distributions you
> intend to build and upload the package for. In these chroots you need to
> enable the ubuntugis-unstable PPA for the dependencies. Because

I end up with

export DIST=wily ; sudo cowbuilder --create --distribution=$DIST
--basepath=/var/cache/pbuilder/base-$DIST.cow
 -> Invoking pbuilder
  forking: pbuilder create --buildplace
/var/cache/pbuilder/base-wily.cow --mirror
http://ftp.cz.debian.org/debian/ --architecture amd64 --distribution
wily --no-targz --extrapackages cowdancer
I: Running in no-targz mode
I: Distribution is wily.
I: Current time: Sat Jan  9 13:41:47 CET 2016
I: pbuilder-time-stamp: 1452343307
I: Building the build environment
I: running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release
E: Failed getting release file
http://ftp.cz.debian.org/debian/dists/wily/Release

The mirror points to debian instead of ubuntu. I don't know why. Here
is my pbuilderrc file [2]. Do you have any idea what could be wrong?
Thanks in advance! Martin

[1] https://launchpad.net/~grass/+archive/ubuntu/grass-devel
[1] http://geo102.fsv.cvut.cz/~landa/tmp/pbuilderrc

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-08 Thread Sebastiaan Couwenberg
On 08-01-16 13:26, Martin Landa wrote:
> first of all, sorry for cross-posting. I would like to contribute to
> UbuntuGIS project and maintain up-to-date GRASS packages. Based on
> discussion with Sebastiaan Couwenberg (thanks), I started with cloning
> alioth.debian.org git repository. Afterwards I created new branch for
> `ubuntugis/wily` [1] (from `experimental` branch).

In general packaging for UbuntuGIS can use the 'ubuntu/' prefix instead
of 'ubuntugis/' as documented in the team policy:

 https://pkg-grass.alioth.debian.org/policy/repositories.html#git-branches

It's quite rare to have Ubuntu specific packaging in the git
repositories so there is not much chance of collision. If the 'ubuntu/'
prefix is already used for Ubuntu specific changes (like the freexl
security updates for example), it's a good idea to use the 'ubuntugis/'
prefix for the PPA packaging to differentiate them.

The grass packaging already has branches with the 'ubuntugis/' prefix,
so it's fine to keep using those.

> At this point I am not sure how to continue (sorry, I have only little
> experience with Launchpad packaging [1]). Thanks for any pointers in
> advance!

Will you only maintain GRASS 7.0 in UbuntuGIS?
Or do you also intend to use this packaging for 7.1?

If your packaging only concerns 7.0, you can start building the package
with git-buildpackage as documented in the Debian GIS Policy:

 https://pkg-grass.alioth.debian.org/policy/packaging.html#git-packaging

You need to have a cowbuilder chroot for the Ubuntu distributions you
intend to build and upload the package for. In these chroots you need to
enable the ubuntugis-unstable PPA for the dependencies. Because
pbuilder/cowbuilder chroots reverts the changes after every run, you
need to use the --save-after-login option together with --login to
preserve the PPA changes.

git-buildpackage uses the configuration in debian/gbp.conf to select the
appropriate branches and tags, you need to update these for the
UbuntuGIS packaging. As long as you use the same upstream tarball (from
the upstream branch) as the Debian package, you only need to change the
debian-branch option to ubuntugis/wily:

 # The default name for the Debian branch is "master".
 # Change it if the name is different (for instance, "debian/unstable").
 debian-branch = ubuntugis/wily

You should also update the Vcs-Git URL in debian/control{,.in} to
document the non-default branch:

 Vcs-Git: git://anonscm.debian.org/pkg-grass/grass.git -b ubuntugis/wily

In the debian/changelog you need to use the correct package revision for
backports in UbuntuGIS as documented in the team policy:

 https://pkg-grass.alioth.debian.org/policy/packaging.html#ubuntugis-ppa

This UbuntuGIS specific package revision needs be used along with the
ubuntugis/ prefix for the release tag:

 https://pkg-grass.alioth.debian.org/policy/packaging.html#git-tag-release

The above procedure should be used instead to what's documented in the
grass wiki.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Re: [Ubuntu] creating GRASS packages for UbuntuGIS

2016-01-08 Thread Johan Van de Wauw
Hello Martin,

Great news.

You page contains the necessary steps if all you have to do is just a
plain backport. In reality you will often have to add patches to
support older versions of ubuntu.

Perhaps you should tell where exactly you are stuck?

Kind Regards,
Johan

On Fri, Jan 8, 2016 at 1:26 PM, Martin Landa  wrote:
> Hi all,
>
> first of all, sorry for cross-posting. I would like to contribute to
> UbuntuGIS project and maintain up-to-date GRASS packages. Based on
> discussion with Sebastiaan Couwenberg (thanks), I started with cloning
> alioth.debian.org git repository. Afterwards I created new branch for
> `ubuntugis/wily` [1] (from `experimental` branch).
>
> At this point I am not sure how to continue (sorry, I have only little
> experience with Launchpad packaging [1]). Thanks for any pointers in
> advance!
>
> Martin
>
> [1] http://anonscm.debian.org/cgit/pkg-grass/grass.git/log/?h=ubuntugis/wily
> [2] 
> https://trac.osgeo.org/grass/wiki/DebianUbuntuPackaging#Buildpackagefromtarball
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
> ___
> UbuntuGIS mailing list
> Ubuntu@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/ubuntu
> http://trac.osgeo.org/ubuntugis/wiki
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki