Re: Sourceforge changes causing problems. Where the wild Tcl extensions are.

2018-02-27 Thread Stuart Cassoff
I had a conversation with the person who runs chiselapp, re tarballs. Excerpt:
"Is this something I should be concerned about with chiselapp?"
"No -- as you may recall that was one of my complaints about various git places,
and my compliment to Fossil as it does deliver stable tarballs."

Unless there are objections I'm going to be using chiselapp like this:
https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus.tar.gz?uuid=92d71c1d63

Newer Fossils can use 'r=' but I think it's worth the extra 3 chars to use 
'uuid=' as it's slightly more descriptive.


Stu


> -- Original Message --
> From: Sebastien Marie 
> Date: February 26, 2018 at 7:32 AM
> 
> 
> On Mon, Feb 26, 2018 at 12:31:05PM +0100, Marc Espie wrote:
> > On Sat, Feb 24, 2018 at 02:32:27PM +0200, Svyatoslav Mishyn wrote:
> > > Hi,
> > > 
> > > (Sat, 24 Feb 10:10) Stuart Henderson:
> > > > On 2018/02/24 00:05, Stuart Cassoff wrote:
> > > > > Chiselapp is Fossil.
> > > > > I'm just starting to look into this and so far I can get what seems 
> > > > > to be a tarball from this very pretty url:
> > > > > 
> > > > > https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
> > > > > 
> > > > > These two extensions are now on Chiselapp and I know there will be 
> > > > > others.
> > > > > (most?) Tcler's prefer Chiselapp over GitHub.
> > > > > Maybe there's a way to fit this nicely into the ports system, like is 
> > > > > currently done with GitHub?
> > > > 
> > > > It works ok without the uuid parameter, I would try
> > > > 
> > > > MASTER_SITES=   
> > > > https://chiselapp.com/user/schelte/repository/dbus/tarball/
> > > > DISTNAME=   dbus-92d71c1d63
> > > 
> > > if without uuid, then default will be "trunk" branch.
> > > see: https://chiselapp.com/user/schelte/repository/dbus/help?cmd=/tarball
> > > 
> > > So, in that case DISTNAME should be "dbus-trunk".
> > 
> > I fail to see how being required to specify a full uid in non ambiguous
> > cases is a win...
> > 
> > Maybe talk to the people a chiselapp ? there's a reason most modern version
> > systems allow shortened uuid...
> > 
> 
> chiselapp is based on fossil repository (same as devel/fossil in port
> tree).
> 
> the /tarball URL manual page is at
> http://fossil-scm.org/index.html/help?cmd=/tarball
> 
> "r=" (or "uuid=" which is kept for backwards compatibility) is mandatory
> for querying a specific version (if omit, the default value is "trunk").
> It could be a full uid *or* a shorten one.
> 
> The name (passed as "name=" query parameter or directly in the URL) is
> whatever you want (no need to include the revision in the name).
> 
> The following are the same (modulo the filename, which is present in the
> tarball, resulting different checksum):
> 
> - 
> https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
> - 
> https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
> - 
> https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus.tar.gz?uuid=92d71c1d63
> - 
> https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus.tar.gz?r=92d71c1d63
> 
> Thanks.
> -- 
> Sebastien Marie



Re: Sourceforge changes causing problems. Where the wild Tcl extensions are.

2018-02-26 Thread Sebastien Marie
On Mon, Feb 26, 2018 at 12:31:05PM +0100, Marc Espie wrote:
> On Sat, Feb 24, 2018 at 02:32:27PM +0200, Svyatoslav Mishyn wrote:
> > Hi,
> > 
> > (Sat, 24 Feb 10:10) Stuart Henderson:
> > > On 2018/02/24 00:05, Stuart Cassoff wrote:
> > > > Chiselapp is Fossil.
> > > > I'm just starting to look into this and so far I can get what seems to 
> > > > be a tarball from this very pretty url:
> > > > 
> > > > https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
> > > > 
> > > > These two extensions are now on Chiselapp and I know there will be 
> > > > others.
> > > > (most?) Tcler's prefer Chiselapp over GitHub.
> > > > Maybe there's a way to fit this nicely into the ports system, like is 
> > > > currently done with GitHub?
> > > 
> > > It works ok without the uuid parameter, I would try
> > > 
> > > MASTER_SITES= 
> > > https://chiselapp.com/user/schelte/repository/dbus/tarball/
> > > DISTNAME= dbus-92d71c1d63
> > 
> > if without uuid, then default will be "trunk" branch.
> > see: https://chiselapp.com/user/schelte/repository/dbus/help?cmd=/tarball
> > 
> > So, in that case DISTNAME should be "dbus-trunk".
> 
> I fail to see how being required to specify a full uid in non ambiguous
> cases is a win...
> 
> Maybe talk to the people a chiselapp ? there's a reason most modern version
> systems allow shortened uuid...
> 

chiselapp is based on fossil repository (same as devel/fossil in port
tree).

the /tarball URL manual page is at
http://fossil-scm.org/index.html/help?cmd=/tarball

"r=" (or "uuid=" which is kept for backwards compatibility) is mandatory
for querying a specific version (if omit, the default value is "trunk").
It could be a full uid *or* a shorten one.

The name (passed as "name=" query parameter or directly in the URL) is
whatever you want (no need to include the revision in the name).

The following are the same (modulo the filename, which is present in the
tarball, resulting different checksum):

- 
https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
- 
https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
- 
https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus.tar.gz?uuid=92d71c1d63
- 
https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus.tar.gz?r=92d71c1d63

Thanks.
-- 
Sebastien Marie



Re: Sourceforge changes causing problems. Where the wild Tcl extensions are.

2018-02-26 Thread Marc Espie
On Sat, Feb 24, 2018 at 02:32:27PM +0200, Svyatoslav Mishyn wrote:
> Hi,
> 
> (Sat, 24 Feb 10:10) Stuart Henderson:
> > On 2018/02/24 00:05, Stuart Cassoff wrote:
> > > Chiselapp is Fossil.
> > > I'm just starting to look into this and so far I can get what seems to be 
> > > a tarball from this very pretty url:
> > > 
> > > https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
> > > 
> > > These two extensions are now on Chiselapp and I know there will be others.
> > > (most?) Tcler's prefer Chiselapp over GitHub.
> > > Maybe there's a way to fit this nicely into the ports system, like is 
> > > currently done with GitHub?
> > 
> > It works ok without the uuid parameter, I would try
> > 
> > MASTER_SITES=   
> > https://chiselapp.com/user/schelte/repository/dbus/tarball/
> > DISTNAME=   dbus-92d71c1d63
> 
> if without uuid, then default will be "trunk" branch.
> see: https://chiselapp.com/user/schelte/repository/dbus/help?cmd=/tarball
> 
> So, in that case DISTNAME should be "dbus-trunk".

I fail to see how being required to specify a full uid in non ambiguous
cases is a win...

Maybe talk to the people a chiselapp ? there's a reason most modern version
systems allow shortened uuid...



Re: Sourceforge changes causing problems. Where the wild Tcl extensions are.

2018-02-24 Thread Stuart Cassoff
Great, thanks you two!
I'll have some fun with this today.


Stu


> -- Original Message --
> From: Stuart Henderson 
> Date: February 24, 2018 at 7:51 AM
> 
> 
> On 2018/02/24 14:32, Svyatoslav Mishyn wrote:
> > Hi,
> > 
> > (Sat, 24 Feb 10:10) Stuart Henderson:
> > > On 2018/02/24 00:05, Stuart Cassoff wrote:
> > > > Chiselapp is Fossil.
> > > > I'm just starting to look into this and so far I can get what seems to 
> > > > be a tarball from this very pretty url:
> > > > 
> > > > https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
> > > > 
> > > > These two extensions are now on Chiselapp and I know there will be 
> > > > others.
> > > > (most?) Tcler's prefer Chiselapp over GitHub.
> > > > Maybe there's a way to fit this nicely into the ports system, like is 
> > > > currently done with GitHub?
> > > 
> > > It works ok without the uuid parameter, I would try
> > > 
> > > MASTER_SITES= 
> > > https://chiselapp.com/user/schelte/repository/dbus/tarball/
> > > DISTNAME= dbus-92d71c1d63
> > 
> > if without uuid, then default will be "trunk" branch.
> > see: https://chiselapp.com/user/schelte/repository/dbus/help?cmd=/tarball
> > 
> > So, in that case DISTNAME should be "dbus-trunk".
> > 
> > 
> > -- 
> > https://www.juef.space/
> 
> 
> Ah, in that case it probably does make sense to have some smarter handling.
> Adding to tcl.port.mk is probably good for starters, then it could be moved
> to bsd.port.mk if it becomes popular elsewhere.
> 
> Try playing with something like this ...
> 
> MASTER_SITES_CHISELAPP += \
> 
> https://chiselapp.com/user/${CHISEL_USER}/repository/${CHISEL_PROJECT}/tarball/
> 
> MASTER_SITES ?= ${MASTER_SITES_CHISELAPP}
> 
> DISTNAME ?= ${CHISEL_PROJECT}-${CHISEL_UUID:C/(..).*/\1/}
> DISTFILES ?= 
> ${DISTNAME}${EXTRACT_SUFX}{${DISTNAME}${EXTRACT_SUFX}?uuid=${CHISEL_UUID}}
>



Re: Sourceforge changes causing problems. Where the wild Tcl extensions are.

2018-02-24 Thread Stuart Henderson
On 2018/02/24 14:32, Svyatoslav Mishyn wrote:
> Hi,
> 
> (Sat, 24 Feb 10:10) Stuart Henderson:
> > On 2018/02/24 00:05, Stuart Cassoff wrote:
> > > Chiselapp is Fossil.
> > > I'm just starting to look into this and so far I can get what seems to be 
> > > a tarball from this very pretty url:
> > > 
> > > https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
> > > 
> > > These two extensions are now on Chiselapp and I know there will be others.
> > > (most?) Tcler's prefer Chiselapp over GitHub.
> > > Maybe there's a way to fit this nicely into the ports system, like is 
> > > currently done with GitHub?
> > 
> > It works ok without the uuid parameter, I would try
> > 
> > MASTER_SITES=   
> > https://chiselapp.com/user/schelte/repository/dbus/tarball/
> > DISTNAME=   dbus-92d71c1d63
> 
> if without uuid, then default will be "trunk" branch.
> see: https://chiselapp.com/user/schelte/repository/dbus/help?cmd=/tarball
> 
> So, in that case DISTNAME should be "dbus-trunk".
> 
> 
> -- 
> https://www.juef.space/


Ah, in that case it probably does make sense to have some smarter handling.
Adding to tcl.port.mk is probably good for starters, then it could be moved
to bsd.port.mk if it becomes popular elsewhere.

Try playing with something like this ...

MASTER_SITES_CHISELAPP += \

https://chiselapp.com/user/${CHISEL_USER}/repository/${CHISEL_PROJECT}/tarball/

MASTER_SITES ?= ${MASTER_SITES_CHISELAPP}

DISTNAME ?= ${CHISEL_PROJECT}-${CHISEL_UUID:C/(..).*/\1/}
DISTFILES ?= 
${DISTNAME}${EXTRACT_SUFX}{${DISTNAME}${EXTRACT_SUFX}?uuid=${CHISEL_UUID}}



Re: Sourceforge changes causing problems. Where the wild Tcl extensions are.

2018-02-24 Thread Svyatoslav Mishyn
Hi,

(Sat, 24 Feb 10:10) Stuart Henderson:
> On 2018/02/24 00:05, Stuart Cassoff wrote:
> > Chiselapp is Fossil.
> > I'm just starting to look into this and so far I can get what seems to be a 
> > tarball from this very pretty url:
> > 
> > https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
> > 
> > These two extensions are now on Chiselapp and I know there will be others.
> > (most?) Tcler's prefer Chiselapp over GitHub.
> > Maybe there's a way to fit this nicely into the ports system, like is 
> > currently done with GitHub?
> 
> It works ok without the uuid parameter, I would try
> 
> MASTER_SITES= https://chiselapp.com/user/schelte/repository/dbus/tarball/
> DISTNAME= dbus-92d71c1d63

if without uuid, then default will be "trunk" branch.
see: https://chiselapp.com/user/schelte/repository/dbus/help?cmd=/tarball

So, in that case DISTNAME should be "dbus-trunk".


-- 
https://www.juef.space/


signature.asc
Description: PGP signature


Re: Sourceforge changes causing problems. Where the wild Tcl extensions are.

2018-02-24 Thread Stuart Henderson
On 2018/02/24 00:05, Stuart Cassoff wrote:
> x11/dbus-tcl and x11/dbus-intf have moved from SourceForge to Chiselapp.
> 
> Ports system's looking for dbus-2.1.tar.gz whereas the distfile is on the 
> obsd servers as dbus-tcl-2.1.tar.gz.
> DISTFILES = dbus-tcl{dbus}-${V}.tar.gz
> 
> ===>  Checking files for dbus-tcl-2.1p0
> >> Fetch 
> >> https://downloads.sourceforge.net/sourceforge/dbus-tcl/dbus-2.1.tar.gz
> ftp: Error retrieving file: 404 Not Found
> >> Fetch https://ftp.openbsd.org/pub/OpenBSD/distfiles//dbus-2.1.tar.gz
> ftp: Error retrieving file: 404 Not Found
> ...

This is missing support in bsd.port.mk, really it needs to change the
filename used when fetching from MASTER_SITE_BACKUP in the case of
DISTFILES using "foo{bar}.ext" format.

> Chiselapp is Fossil.
> I'm just starting to look into this and so far I can get what seems to be a 
> tarball from this very pretty url:
> 
> https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
> 
> These two extensions are now on Chiselapp and I know there will be others.
> (most?) Tcler's prefer Chiselapp over GitHub.
> Maybe there's a way to fit this nicely into the ports system, like is 
> currently done with GitHub?

It works ok without the uuid parameter, I would try

MASTER_SITES=   https://chiselapp.com/user/schelte/repository/dbus/tarball/
DISTNAME=   dbus-92d71c1d63

and cross fingers that these on-demand generated files don't change too
often if chiselapp updates their infrastructure.



Sourceforge changes causing problems. Where the wild Tcl extensions are.

2018-02-23 Thread Stuart Cassoff
x11/dbus-tcl and x11/dbus-intf have moved from SourceForge to Chiselapp.

Ports system's looking for dbus-2.1.tar.gz whereas the distfile is on the obsd 
servers as dbus-tcl-2.1.tar.gz.
DISTFILES = dbus-tcl{dbus}-${V}.tar.gz

===>  Checking files for dbus-tcl-2.1p0
>> Fetch https://downloads.sourceforge.net/sourceforge/dbus-tcl/dbus-2.1.tar.gz
ftp: Error retrieving file: 404 Not Found
>> Fetch https://ftp.openbsd.org/pub/OpenBSD/distfiles//dbus-2.1.tar.gz
ftp: Error retrieving file: 404 Not Found
...

Chiselapp is Fossil.
I'm just starting to look into this and so far I can get what seems to be a 
tarball from this very pretty url:

https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3

These two extensions are now on Chiselapp and I know there will be others.
(most?) Tcler's prefer Chiselapp over GitHub.
Maybe there's a way to fit this nicely into the ports system, like is currently 
done with GitHub?


Pointers, suggestions, sandwiches welcome,


Stu