Re: manpages.debian.org has been modernized!

2017-01-20 Thread Javier Fernandez-Sanguino
On 20 January 2017 at 06:01, Kushal Kumaran  wrote:

> Ian Jackson  writes:
>
> > Michael Stapelberg writes ("Re: manpages.debian.org has been
> modernized!"):
> >> On Thu, Jan 19, 2017 at 4:43 PM, Ian Jackson
> >>  wrote:
> >> > mariner:~> curl -s 'https://manpages.debian.org/
> cgi-bin/man.cgi?query=make&apropos=0&sektion=0&manpath=
> Debian+8+jessie&format=html&locale=en' | grep debiman
> >> > mariner:~>
> >>
> >> You’re querying the old software of manpages.debian.org which will be
> >> turned down soon.
> >
> > I got that page as follows:
> >
> > Type into my browser address bar
> >   https://manpages.debian.org/
> > This redirects to
> >   https://manpages.debian.org/cgi-bin/man.cgi
> > and then if I type in details I get a url like the above.
> >
> > Hrm.
> >
> > I just looked with HEAD(1) and I don't get the redirect.
> >
> > Is it possible that there was previously a permanent redirect issued
> > from the toplevel URL to this cgi-bin one ?  I'm not sure how to
> > bypass such a thing.
> >
>
> What web browser are you using?  A few ways to clear out old
> 301-redirects in Firefox are discussed here:
> https://superuser.com/questions/467999/clear-301-redirect-cache-in-firefox


This weekend I will modify the CGI so that it redirects to the new (static)
content for users that at some point still go to the old one. It seems that
the redirects get cached in the browser permanently because I (wrongly)
used 301 redirects instead of 302 in the previous configuration. It also
happens to me in my Android phone.

The current way to avoid is:

- Acces http://manpages.debian.org/? (notice the '?' at the end)
- Clear the browser's cache.


Best regards

Javier


What is exactly the "canonical URI" for Vcs-{Git,Browser}?

2017-01-20 Thread Boyuan Yang
Hello all,

I want to make sure what is the canonical URI for Vcs-Git and Vcs-Browser used 
in git-managed packages.

I have seen lots of examples. Here is my understanding so far:

# Anything not using "anonscm.debian.org" (e.g., git.debian.org) domain is not 
canonical

# This one looks obsoleted; I heard that git protocol is no longer recommended
Vcs-Git: git://anonscm.debian.org/pkg-foo/bar.git

# I heard that this one is obsoleted too; QUERY_STRING looks ugly.
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-foo/bar.git

# This one seem acceptable
Vcs-Git: https://anonscm.debian.org/cgit/pkg-foo/bar.git

# This one seems acceptable, too
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git

# This one is also acceptable
Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git

# And this one
Vcs-Browser: https://anonscm.debian.org/git/pkg-foo/bar.git

So here are my questions:

1. Is my understanding correct?

2. Lintian has a tag "vcs-field-not-canonical" [0] which referred one previous 
email [1]. However, I couldn't find anything about the "cgit" word.

My thought is that we may not stick with cgit forever (for example, someone is 
pushing GitLab AFAIK). Why not just replace "cgit" with "git"? Then we won't 
need to change the uri if we are to move away from cgit.

3. Could we write such rules somewhere? I couldn't find any document on the 
Internet besides [0] and [1].

[0] https://lintian.debian.org/tags/vcs-field-not-canonical.html
[1] https://lists.debian.org/debian-devel-announce/2011/05/msg9.html

--
Sincerely,
Boyuan Yang

signature.asc
Description: This is a digitally signed message part.


Bug#851958: ITP: r-cran-worrms -- GNU R client of World Register of Marine Species (WoRMS)

2017-01-20 Thread Andreas Tille
Package: wnpp
Severity: wishlist
Owner: Andreas Tille 

* Package name: r-cran-worrms
  Version : 0.1.0
  Upstream Author : Scott Chamberlain 
* URL : https://cran.r-project.org/package=worrms
* License : MIT
  Programming Lang: GNU R
  Description : GNU R client of World Register of Marine Species (WoRMS)
 Client for World Register of Marine Species
 (). Includes functions for each
 of the API methods, including searching for names by name, date and
 common names, searching using external identifiers, fetching
 synonyms, as well as fetching taxonomic children and
 taxonomic classification.


Remark: This is a dependency of the new version of r-cran-taxize.  It
will be maintained by the Debian Med team at
svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-worrms/trunk/



Bug#851957: ITP: r-cran-natserv -- GNU R 'NatureServe' Interface

2017-01-20 Thread Andreas Tille
Package: wnpp
Severity: wishlist
Owner: Andreas Tille 

* Package name: r-cran-natserv
  Version : 0.1.4
  Upstream Author : Scott Chamberlain 
* URL : https://cran.r-project.org/package=natserv
* License : MIT
  Programming Lang: GNU R
  Description : GNU R 'NatureServe' Interface
 Interface to 'NatureServe' ().
 Includes methods to get data, image metadata, search taxonomic names,
 and make maps.


Remark: This is a dependency of the new version of r-cran-taxize.  It
will be maintained by the Debian Med team at
svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-natserv/trunk/



Re: What is exactly the "canonical URI" for Vcs-{Git,Browser}?

2017-01-20 Thread Sebastiaan Couwenberg
On 01/20/2017 11:56 AM, Boyuan Yang wrote:
> # This one seems acceptable, too
> Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
> 
> # This one is also acceptable
> Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git

These are the ones you should use, because both use encryption for the
connection and contrary to git+ssh URLs, and account on Alioth is not
required to checkout.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



signature.asc
Description: OpenPGP digital signature


Re: What is exactly the "canonical URI" for Vcs-{Git,Browser}?

2017-01-20 Thread Ondrej Novy
Hi,

2017-01-20 12:45 GMT+01:00 Sebastiaan Couwenberg :

> > Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
> > Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
>
> These are the ones you should use, because both use encryption for the
> connection and contrary to git+ssh URLs, and account on Alioth is not
> required to checkout.
>

ack, this is what i'm using too.

-- 
Best regards
 Ondřej Nový

Email: n...@ondrej.org
PGP: 3D98 3C52 EB85 980C 46A5  6090 3573 1255 9D1E 064B


Re: What is exactly the "canonical URI" for Vcs-{Git,Browser}?

2017-01-20 Thread Boyuan Yang
在 2017年1月20日星期五 SGT 下午12:45:53,Sebastiaan Couwenberg 写道:
> On 01/20/2017 11:56 AM, Boyuan Yang wrote:
> > # This one seems acceptable, too
> > Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
> > 
> > # This one is also acceptable
> > Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> 
> These are the ones you should use, because both use encryption for the
> connection and contrary to git+ssh URLs, and account on Alioth is not
> required to checkout.

Well... this is not exactly what I mean. When we compare

Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git

with

Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
Vcs-Browser: https://anonscm.debian.org/git/pkg-foo/bar.git

I would use the latter one. Would that be better?

--
Sincerely,
Boyuan Yang

signature.asc
Description: This is a digitally signed message part.


Re: What is exactly the "canonical URI" for Vcs-{Git,Browser}?

2017-01-20 Thread Jonas Smedegaard
Quoting Boyuan Yang (2017-01-20 13:19:44)
> 在 2017年1月20日星期五 SGT 下午12:45:53,Sebastiaan Couwenberg 写道:
> > On 01/20/2017 11:56 AM, Boyuan Yang wrote:
> > > # This one seems acceptable, too
> > > Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
> > > 
> > > # This one is also acceptable
> > > Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> > 
> > These are the ones you should use, because both use encryption for the
> > connection and contrary to git+ssh URLs, and account on Alioth is not
> > required to checkout.
> 
> Well... this is not exactly what I mean. When we compare
> 
> Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
> 
> with
> 
> Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> Vcs-Browser: https://anonscm.debian.org/git/pkg-foo/bar.git
> 
> I would use the latter one. Would that be better?

No: The latter one does not serve content usable in a browser.

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature


Re: What is exactly the "canonical URI" for Vcs-{Git,Browser}?

2017-01-20 Thread Emilio Pozuelo Monfort
On 20/01/17 13:43, Jonas Smedegaard wrote:
> Quoting Boyuan Yang (2017-01-20 13:19:44)
>> 在 2017年1月20日星期五 SGT 下午12:45:53,Sebastiaan Couwenberg 写道:
>>> On 01/20/2017 11:56 AM, Boyuan Yang wrote:
 # This one seems acceptable, too
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git

 # This one is also acceptable
 Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
>>>
>>> These are the ones you should use, because both use encryption for the
>>> connection and contrary to git+ssh URLs, and account on Alioth is not
>>> required to checkout.
>>
>> Well... this is not exactly what I mean. When we compare
>>
>> Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
>> Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
>>
>> with
>>
>> Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
>> Vcs-Browser: https://anonscm.debian.org/git/pkg-foo/bar.git
>>
>> I would use the latter one. Would that be better?
> 
> No: The latter one does not serve content usable in a browser.

Because pkg-foo doesn't exist.

But see e.g.:

https://anonscm.debian.org/cgit/pkg-freedesktop/poppler.git
https://anonscm.debian.org/git/pkg-freedesktop/poppler.git

Emilio



Re: What is exactly the "canonical URI" for Vcs-{Git,Browser}?

2017-01-20 Thread Roger Shimizu
On Fri, Jan 20, 2017 at 9:19 PM, Boyuan Yang <073p...@gmail.com> wrote:
> 在 2017年1月20日星期五 SGT 下午12:45:53,Sebastiaan Couwenberg 写道:
>> On 01/20/2017 11:56 AM, Boyuan Yang wrote:
>> > # This one seems acceptable, too
>> > Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
>> >
>> > # This one is also acceptable
>> > Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
>>
>> These are the ones you should use, because both use encryption for the
>> connection and contrary to git+ssh URLs, and account on Alioth is not
>> required to checkout.
>
> Well... this is not exactly what I mean. When we compare
>
> Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
>
> with
>
> Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> Vcs-Browser: https://anonscm.debian.org/git/pkg-foo/bar.git
>
> I would use the latter one. Would that be better?

The former one is better.
But latter one also works. It wasn't OK, but after the thread I posted
[0], admin add rewrite rules to make "git" the same as "cgit".

[0] https://lists.debian.org/debian-devel/2016/01/threads.html#00309

Originally, "cgit" is for web browser to see, and "git" is for "git
clone" or "git remote add" to checkout the source tree.
Rewrite rules of web server makes them equivalent.

Cheers,
-- 
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 4096R/6C6ACD6417B3ACB1



Re: What is exactly the "canonical URI" for Vcs-{Git,Browser}?

2017-01-20 Thread Jonas Smedegaard
Quoting Roger Shimizu (2017-01-20 14:40:06)
> On Fri, Jan 20, 2017 at 9:19 PM, Boyuan Yang <073p...@gmail.com> wrote:
> > 在 2017年1月20日星期五 SGT 下午12:45:53,Sebastiaan Couwenberg 写道:
> >> On 01/20/2017 11:56 AM, Boyuan Yang wrote:
> >> > # This one seems acceptable, too
> >> > Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
> >> >
> >> > # This one is also acceptable
> >> > Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> >>
> >> These are the ones you should use, because both use encryption for the
> >> connection and contrary to git+ssh URLs, and account on Alioth is not
> >> required to checkout.
> >
> > Well... this is not exactly what I mean. When we compare
> >
> > Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> > Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
> >
> > with
> >
> > Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> > Vcs-Browser: https://anonscm.debian.org/git/pkg-foo/bar.git
> >
> > I would use the latter one. Would that be better?
> 
> The former one is better.
> But latter one also works. It wasn't OK, but after the thread I posted
> [0], admin add rewrite rules to make "git" the same as "cgit".
> 
> [0] https://lists.debian.org/debian-devel/2016/01/threads.html#00309
> 
> Originally, "cgit" is for web browser to see, and "git" is for "git
> clone" or "git remote add" to checkout the source tree.
> Rewrite rules of web server makes them equivalent.

Oh, that change making them equivalent interesting.  Thanks!

Now that the latter is supported, I would agree with Boyuan that a 
single generic URL is preferred.

What makes the former (still) a better choice?


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature


Re: What is exactly the "canonical URI" for Vcs-{Git,Browser}?

2017-01-20 Thread Alexander Wirt
On Fri, 20 Jan 2017, Jonas Smedegaard wrote:

> Quoting Roger Shimizu (2017-01-20 14:40:06)
> > On Fri, Jan 20, 2017 at 9:19 PM, Boyuan Yang <073p...@gmail.com> wrote:
> > > 在 2017年1月20日星期五 SGT 下午12:45:53,Sebastiaan Couwenberg 写道:
> > >> On 01/20/2017 11:56 AM, Boyuan Yang wrote:
> > >> > # This one seems acceptable, too
> > >> > Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
> > >> >
> > >> > # This one is also acceptable
> > >> > Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> > >>
> > >> These are the ones you should use, because both use encryption for the
> > >> connection and contrary to git+ssh URLs, and account on Alioth is not
> > >> required to checkout.
> > >
> > > Well... this is not exactly what I mean. When we compare
> > >
> > > Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> > > Vcs-Browser: https://anonscm.debian.org/cgit/pkg-foo/bar.git
> > >
> > > with
> > >
> > > Vcs-Git: https://anonscm.debian.org/git/pkg-foo/bar.git
> > > Vcs-Browser: https://anonscm.debian.org/git/pkg-foo/bar.git
I (as the one that set it up), prefer the git variant. It doesn't include
the software (cgit) used. 

Alex



signature.asc
Description: PGP signature


Re: What is exactly the "canonical URI" for Vcs-{Git,Browser}?

2017-01-20 Thread Jeremy Stanley
On 2017-01-20 22:40:06 +0900 (+0900), Roger Shimizu wrote:
[...]
> Originally, "cgit" is for web browser to see, and "git" is for "git
> clone" or "git remote add" to checkout the source tree.
> Rewrite rules of web server makes them equivalent.

As someone responsible for a similar high-volume git server farm for
another free software community, we have exactly the same behavior
anonscm did before the rewrites got implemented. Closest I can find
published by DSA is
https://anonscm.debian.org/cgit/mirror/dsa-puppet.git/tree/modules/roles/files/dgit/git.dgit.debian.org
 >
so I'm assuming something like that was done for the anonscm service
as well. Am I looking in the wrong place for the configuration
management covering the anonscm.d.o service, or is that not actually
published anywhere?
-- 
Jeremy Stanley