You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@corinthia.apache.org by "Dennis E. Hamilton" <de...@acm.org> on 2014/12/31 20:41:16 UTC
Building on Windows (was RE: Anybody who know how to write .cmd or .bat files for windows ?)
-- replying below to --
From: jan i [mailto:jani@apache.org]
Sent: Wednesday, December 31, 2014 09:22
To: dev@corinthia.incubator.apache.org; Dennis Hamilton
Subject: Re: Anybody who know how to write .cmd or .bat files for windows ?
On 31 December 2014 at 17:32, Dennis E. Hamilton <de...@acm.org>
wrote:
> -1 on using a prepackaged combination of the dependencies.
>
> It is only simpler locally, not globally.
>
> That is just moving the pea, and it means there is now an external
> activity that committers must understand and someone has to maintain when
> there are updates, security patches, etc., to the dependencies. It also
> raises provenance issues. (I note that none of the sources have hashes or
> signatures already, or else I missed them, and they include a variety of
> .exe files.)
>
> If we are concerned about obsolescence or inaccessibility of the sources,
> there might need to be a backup arrangement. That might be a better use of
> Apache Extras.
>
May I say in a positive tone, I really hope to meet you in person at ACNA.
You have a way of expressing the small undefinable worries in my stomach.
A -1 with a good reason, calls for a discussion !!! so let me try to break
this down into a couple of questions:
(feel free to flame me, it I got it wrong).
Assumption: we want windows developer to have an easy start with corinthia,
and we dont want people to install things like cygwin.
<orcmid>
I think it is more that we don't want Cygwin *required* to build on
Windows. I just used MSYS2 to run the batch script this way:
orcmid@Astraendo2 /d/Apache/corinthia/git/incubator-corinthia
$ ./external/fetch_downloads.bat
"zlib128-dll.zip"
"iconv-1.9.2.win32.zip"
"libxml2-2.7.8.win32.zip"
"SDL2-devel-2.0.3-VC.zip"
"SDL2_image-devel-2.0.0-VC.zip"
orcmid@Astraendo2 /d/Apache/corinthia/git/incubator-corinthia
$
I don't know if Cygwin will do the same. A shame if not.
Notice that differences in file-system path approaches are
avoided by no parameters into fetch_downloads.bat, and everything
internal to the batch file operates in the native Windows view.
</orcmid>
Questions:
- Dennis already made a .bat to download the original source (which I
clearly prefer), can we make the extraction as a .bat also (from what I
understand it is doable, but need to be adjusted if we upgrade) ?
<orcmid>
Yes, I believe the extraction can be done using batch scripts
too. I assume anything we have might need to be adjusted on
upgrades, even the fetch procedures.
I am investigating whether I can have the extraction done
without any new tool requirement. If not, it will be necessary
to have a Windows version of 7zip or unzip installed. Stay
tuned.
</orcmid>
- What is the back side of having to simple .bat scripts ?
- Products like Cygwin, have scared AOO developers, so I dont want we
depend on such products, do we agree on this ?
(Windows developers in general only like visual studio, and maybe a
couple of external libs)
<orcmid>
We haven't dealt with compiling and building yet. There is more
to figure out for that. I think it should be viewed as independent
of the fetching and extraction of external dependencies though.
</orcmid>
- Is this a temporary situation or will we always need external libraries ?
- Peter made a suggestion, can we somehow learn from that, if we cannot
make a .bat for extraction.
<orcmid>
Um, Peter's suggestion involves fetching a .zip, so we are back to the
previously-unsolved problem. My objection is not about downloading
Zips, but where they come from and who builds them.
</orcmid>
rgds
jan i
>
> - Dennis
>
> -- above in reply to --
> From: jan i [mailto:jani@apache.org]
> Sent: Tuesday, December 30, 2014 23:17
> To: dev@corinthia.incubator.apache.org
> Subject: Re: Anybody who know how to write .cmd or .bat files for windows ?
>
> On Wednesday, December 31, 2014, Peter Kelly <pm...@apache.org> wrote:
>
> [ ... ]
> > I propose a simpler solution ;)
> >
> >
> >
> http://downloads.uxproductivity.com/corinthia/corinthia-externals-20141231.zip
>
>
> @dennis thanks fir all your investigation work.
> +1 to having the prepared files at uxproductivity (and later apache extras)
> and then use the script from dennis to fetch is.
>
> [ ... ]
>
>
Re: Building on Windows (was RE: Anybody who know how to write .cmd or .bat files for windows ?)
Posted by Peter Kelly <pm...@apache.org>.
> On 1 Jan 2015, at 2:41 am, Dennis E. Hamilton <de...@acm.org> wrote:
>
> <orcmid>
> Um, Peter's suggestion involves fetching a .zip, so we are back to the
> previously-unsolved problem. My objection is not about downloading
> Zips, but where they come from and who builds them.
> </orcmid>
Anyone who wishes to get a “pure”, verified build of the source is free to do so. This is just me personally providing a convenience mechanism for those who want to take the short path to get started easily on development. I’m not against scripts to download/properly arrange the official distributions, just concerned that the complexity involved (at present) might turn away developers. We can keep both camps happy.
—
Dr Peter M. Kelly
pmkelly@apache.org
PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)
RE: Building on Windows (was RE: Anybody who know how to write .cmd or .bat files for windows ?)
Posted by "Dennis E. Hamilton" <de...@acm.org>.
-- replying below to --
From: Dennis E. Hamilton [mailto:dennis.hamilton@acm.org]
Sent: Wednesday, December 31, 2014 11:41
To: dev@corinthia.incubator.apache.org
Subject: Building on Windows (was RE: Anybody who know how to write .cmd or .bat files for windows ?)
-- replying below to --
From: jan i [mailto:jani@apache.org]
Sent: Wednesday, December 31, 2014 09:22
To: dev@corinthia.incubator.apache.org; Dennis Hamilton
Subject: Re: Anybody who know how to write .cmd or .bat files for windows ?
[ ... ]
Assumption: we want windows developer to have an easy start with corinthia,
and we dont want people to install things like cygwin.
<orcmid>
I think it is more that we don't want Cygwin *required* to build on
Windows. I just used MSYS2 to run the batch script this way:
orcmid@Astraendo2 /d/Apache/corinthia/git/incubator-corinthia
$ ./external/fetch_downloads.bat
"zlib128-dll.zip"
"iconv-1.9.2.win32.zip"
"libxml2-2.7.8.win32.zip"
"SDL2-devel-2.0.3-VC.zip"
"SDL2_image-devel-2.0.0-VC.zip"
orcmid@Astraendo2 /d/Apache/corinthia/git/incubator-corinthia
$
I don't know if Cygwin will do the same. A shame if not.
Notice that differences in file-system path approaches are
avoided by no parameters into fetch_downloads.bat, and everything
internal to the batch file operates in the native Windows view.
</orcmid>
<orcmid new-reply>
I just confirmed that fetch_downloads.bat works fine on Windows 10
Technical Preview, and it works fine under Cygwin too.
</orcmid>
Questions:
- Dennis already made a .bat to download the original source (which I
clearly prefer), can we make the extraction as a .bat also (from what I
understand it is doable, but need to be adjusted if we upgrade) ?
<orcmid>
Yes, I believe the extraction can be done using batch scripts
too. I assume anything we have might need to be adjusted on
upgrades, even the fetch procedures.
I am investigating whether I can have the extraction done
without any new tool requirement. If not, it will be necessary
to have a Windows version of 7zip or unzip installed. Stay
tuned.
</orcmid>
- What is the back side of having to simple .bat scripts ?
- Products like Cygwin, have scared AOO developers, so I dont want we
depend on such products, do we agree on this ?
(Windows developers in general only like visual studio, and maybe a
couple of external libs)
<orcmid>
We haven't dealt with compiling and building yet. There is more
to figure out for that. I think it should be viewed as independent
of the fetching and extraction of external dependencies though.
</orcmid>
- Is this a temporary situation or will we always need external libraries ?
- Peter made a suggestion, can we somehow learn from that, if we cannot
make a .bat for extraction.
<orcmid>
Um, Peter's suggestion involves fetching a .zip, so we are back to the
previously-unsolved problem. My objection is not about downloading
Zips, but where they come from and who builds them.
</orcmid>
rgds
jan i
>
> - Dennis
>
> -- above in reply to --
> From: jan i [mailto:jani@apache.org]
> Sent: Tuesday, December 30, 2014 23:17
> To: dev@corinthia.incubator.apache.org
> Subject: Re: Anybody who know how to write .cmd or .bat files for windows ?
>
> On Wednesday, December 31, 2014, Peter Kelly <pm...@apache.org> wrote:
>
> [ ... ]
> > I propose a simpler solution ;)
> >
> >
> >
> http://downloads.uxproductivity.com/corinthia/corinthia-externals-20141231.zip
>
>
> @dennis thanks fir all your investigation work.
> +1 to having the prepared files at uxproductivity (and later apache extras)
> and then use the script from dennis to fetch is.
>
> [ ... ]
>
>