* [PATCH] Windows: update dobuild.cmd to run the configure/make
@ 2020-11-03 2:47 Rebecca Cran
2020-11-04 23:43 ` Jens Axboe
0 siblings, 1 reply; 6+ messages in thread
From: Rebecca Cran @ 2020-11-03 2:47 UTC (permalink / raw)
To: fio; +Cc: Rebecca Cran, Jens Axboe
Add a new shell script, _domake.sh which runs under Cygwin. This
is invoked via dobuild.cmd to run the configure and make steps of
the build. In this way, a single command, run from a Developer Command
Prompt, can be used to go from a clean workspace to a final installer
binary.
Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
---
os/windows/_domake.sh | 17 +++++++++++++++++
os/windows/dobuild.cmd | 23 +++++++++++++----------
2 files changed, 30 insertions(+), 10 deletions(-)
create mode 100755 os/windows/_domake.sh
diff --git a/os/windows/_domake.sh b/os/windows/_domake.sh
new file mode 100755
index 00000000..05625ff4
--- /dev/null
+++ b/os/windows/_domake.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+set -e
+
+cd "$2"
+cd ../..
+if [ -e "fio.exe" ]; then
+ make clean
+fi
+
+if [ "$1" = "x86" ]; then
+ ./configure --disable-native --build-32bit-win
+else
+ ./configure --disable-native
+fi
+
+make -j
diff --git a/os/windows/dobuild.cmd b/os/windows/dobuild.cmd
index 08df3e87..ea79dd03 100644
--- a/os/windows/dobuild.cmd
+++ b/os/windows/dobuild.cmd
@@ -1,5 +1,18 @@
@echo off
setlocal enabledelayedexpansion
+
+if "%1"=="x86" set FIO_ARCH=x86
+if "%1"=="x64" set FIO_ARCH=x64
+
+if not defined FIO_ARCH (
+ echo Error: must specify the architecture.
+ echo Usage: dobuild x86
+ echo Usage: dobuild x64
+ goto end
+)
+
+C:\Cygwin64\bin\bash -l %cd%/_domake.sh %FIO_ARCH% %cd%
+
set /a counter=1
for /f "tokens=3" %%i in (..\..\FIO-VERSION-FILE) do (
if "!counter!"=="1" set FIO_VERSION=%%i
@@ -16,16 +29,6 @@ if not defined FIO_VERSION_NUMBERS (
goto end
)
-if "%1"=="x86" set FIO_ARCH=x86
-if "%1"=="x64" set FIO_ARCH=x64
-
-if not defined FIO_ARCH (
- echo Error: must specify the architecture.
- echo Usage: dobuild x86
- echo Usage: dobuild x64
- goto end
-)
-
if defined SIGN_FIO (
signtool sign /n "%SIGNING_CN%" /t http://timestamp.digicert.com ..\..\fio.exe
signtool sign /as /n "%SIGNING_CN%" /tr http://timestamp.digicert.com /td sha256 /fd sha256 ..\..\fio.exe
--
2.29.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] Windows: update dobuild.cmd to run the configure/make
2020-11-03 2:47 [PATCH] Windows: update dobuild.cmd to run the configure/make Rebecca Cran
@ 2020-11-04 23:43 ` Jens Axboe
2020-11-05 5:51 ` Sitsofe Wheeler
0 siblings, 1 reply; 6+ messages in thread
From: Jens Axboe @ 2020-11-04 23:43 UTC (permalink / raw)
To: Rebecca Cran, fio
On 11/2/20 7:47 PM, Rebecca Cran wrote:
> Add a new shell script, _domake.sh which runs under Cygwin. This
> is invoked via dobuild.cmd to run the configure and make steps of
> the build. In this way, a single command, run from a Developer Command
> Prompt, can be used to go from a clean workspace to a final installer
> binary.
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Windows: update dobuild.cmd to run the configure/make
2020-11-04 23:43 ` Jens Axboe
@ 2020-11-05 5:51 ` Sitsofe Wheeler
2020-11-05 17:59 ` Rebecca Cran
0 siblings, 1 reply; 6+ messages in thread
From: Sitsofe Wheeler @ 2020-11-05 5:51 UTC (permalink / raw)
To: Rebecca Cran; +Cc: fio, Jens Axboe
On Wed, 4 Nov 2020 at 23:47, Jens Axboe <axboe@kernel.dk> wrote:
>
> On 11/2/20 7:47 PM, Rebecca Cran wrote:
> > Add a new shell script, _domake.sh which runs under Cygwin. This
> > is invoked via dobuild.cmd to run the configure and make steps of
> > the build. In this way, a single command, run from a Developer Command
> > Prompt, can be used to go from a clean workspace to a final installer
> > binary.
>
> Applied, thanks.
Has this one broken CI -
https://ci.appveyor.com/project/axboe/fio/builds/36143673/job/4omj3bylpdxyhga5
?
--
Sitsofe | http://sucs.org/~sits/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Windows: update dobuild.cmd to run the configure/make
2020-11-05 5:51 ` Sitsofe Wheeler
@ 2020-11-05 17:59 ` Rebecca Cran
2020-11-05 22:29 ` Sitsofe Wheeler
0 siblings, 1 reply; 6+ messages in thread
From: Rebecca Cran @ 2020-11-05 17:59 UTC (permalink / raw)
To: Sitsofe Wheeler; +Cc: fio, Jens Axboe
On 11/4/20 10:51 PM, Sitsofe Wheeler wrote:
> Has this one broken CI -
> https://ci.appveyor.com/project/axboe/fio/builds/36143673/job/4omj3bylpdxyhga5
> ?
It does seem like it. I'll look into it.
--
Rebecca Cran
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Windows: update dobuild.cmd to run the configure/make
2020-11-05 17:59 ` Rebecca Cran
@ 2020-11-05 22:29 ` Sitsofe Wheeler
2020-11-05 23:18 ` Rebecca Cran
0 siblings, 1 reply; 6+ messages in thread
From: Sitsofe Wheeler @ 2020-11-05 22:29 UTC (permalink / raw)
To: Rebecca Cran; +Cc: fio, Jens Axboe
On Thu, 5 Nov 2020 at 17:59, Rebecca Cran <rebecca@bsdio.com> wrote:
>
> On 11/4/20 10:51 PM, Sitsofe Wheeler wrote:
>
> > Has this one broken CI -
> > https://ci.appveyor.com/project/axboe/fio/builds/36143673/job/4omj3bylpdxyhga5
> > ?
>
> It does seem like it. I'll look into it.
I think the main issue is that the CI was using dobuild.cmd to just do
the packaging bits. Now it does (as its name originally suggested) and
it actually does a build AND does packaging. CI really needs packaging
to be seperate because it wants to control what's passed to configure.
I wonder if this change could be reverted and:
The original script be renamed to dopkg.cmd while updating the CI
scripts to call that and fixing up the documentation.
A new script called dobuildandpkg.cmd (or similar) be introduced that
does the lot. Perhaps there should be some documentation updates for
it too.
Thoughts?
--
Sitsofe | http://sucs.org/~sits/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Windows: update dobuild.cmd to run the configure/make
2020-11-05 22:29 ` Sitsofe Wheeler
@ 2020-11-05 23:18 ` Rebecca Cran
0 siblings, 0 replies; 6+ messages in thread
From: Rebecca Cran @ 2020-11-05 23:18 UTC (permalink / raw)
To: Sitsofe Wheeler; +Cc: fio, Jens Axboe
On 11/5/20 3:29 PM, Sitsofe Wheeler wrote:
> The original script be renamed to dopkg.cmd while updating the CI
> scripts to call that and fixing up the documentation.
> A new script called dobuildandpkg.cmd (or similar) be introduced that
> does the lot. Perhaps there should be some documentation updates for
> it too.
>
> Thoughts?
That makes a lot of sense. dobuild.cmd was really only written for my
use in building the installers, and as a result was poorly thought out.
I'll submit a patch to rename it and make improvements.
--
Rebecca Cran
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-11-05 23:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03 2:47 [PATCH] Windows: update dobuild.cmd to run the configure/make Rebecca Cran
2020-11-04 23:43 ` Jens Axboe
2020-11-05 5:51 ` Sitsofe Wheeler
2020-11-05 17:59 ` Rebecca Cran
2020-11-05 22:29 ` Sitsofe Wheeler
2020-11-05 23:18 ` Rebecca Cran
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.