I'm hoping someone can help me with building the windows-tools:
https://github.com/QubesOS/qubes-builder-windows
I'm using Windows 7 x64.
Originally ran the get-be.ps1 script which I found to be broken (then noticed this was mentioned in readme.md). I was able to adapt the script for it to obtain packages (gpg, ming32). Found that ming32 was out of date, then followed manual install instructions as below:
Qubes-Builder installed at C:\Qubes\qubes-builder. Appears cloned from:
https://github.com/QubesOS/qubes-builder
Installed wix. Created a junction to the installation folder at C:\wix
Installed python37 in c:\py
Installed visual studio pro 2013. Created a junction to the installation folder at C:\vs2013
I've downloaded msys64 and installed at: C:\Qubes\qubes-builder\cache\windows-prereqs\msys64
I'm using ming32.exe from that directory.
I've installed some ming32.exe prerequesites (pacman -S git make p7zip diffutils tar).
I've created the file C:\Qubes\qubes-builder\chroot-win7x64\.be-prepared - contents below:
/c/Qubes/qubes-builder/cache/windows-prereqs/msys64/mingw32
/c/windows
/c/py
/c/wix
/c/windows/py
I've adapted the builder.conf file from the repo (
https://github.com/QubesOS/qubes-builder-windows - windows-tools.conf) with:
NO_SIGN = 1
VERBOSE = 2
I can download the sources with 'make get-sources', however 'make qubes' throws the following:
------
# make qubes
================================================================================
B U I L D I N F O
Items in red indicate it was automatically generated by configuration file(s)
Items in white indicate it was automatically removed by configuration file(s)
================================================================================
DISTS_VM:
win7x64,
DISTS_ALL:
win7x64,
DIST_DOM0:
win7x64,
BUILDER_PLUGINS:
builder-windows,
COMPONENTS:
builder-windows, vmm-xen-windows-pvdrivers, core-vchan-xen, windows-utils, core-qubesdb, core-agent-windows,
gui-common, gui-agent-windows, installer-qubes-os-windows-tools,
GIT_REPOS:
qubes-src/builder-windows, qubes-src/vmm-xen-windows-pvdrivers, qubes-src/core-vchan-xen,
qubes-src/windows-utils, qubes-src/core-qubesdb, qubes-src/core-agent-windows, qubes-src/gui-common,
qubes-src/gui-agent-windows, qubes-src/installer-qubes-os-windows-tools, .,
TEMPLATE:
TEMPLATE_FLAVOR_DIR:
TEMPLATE_ALIAS:
TEMPLATE_LABEL:
make[1]: Entering directory '/c/Qubes/qubes-builder'
-> Nothing to be done in builder-windows for win7x64 dom0
make[1]: Leaving directory '/c/Qubes/qubes-builder'
-> Nothing to be done in builder-windows for win7x64 vm
make[1]: Entering directory '/c/Qubes/qubes-builder'
-> Nothing to be done in vmm-xen-windows-pvdrivers for win7x64 dom0
make[1]: Leaving directory '/c/Qubes/qubes-builder'
Error: WriteFile failed => 0x3 (3)
Failed
PrivateCertStore
CertUtil: -exportPFX command FAILED: 0x80070002 (WIN32: 2)
CertUtil: The system cannot find the file specified.
make[1]: *** [/c/Qubes/qubes-builder/qubes-src/builder-windows/Makefile.windows:165: dist-prepare-chroot] Error 2
make: *** [Makefile:216: vmm-xen-windows-pvdrivers-vm] Error 1
---------
Appears to do with a path, likely related to .be-prepared.
Makefile.windows:165 code is: $(eval WIX := $(shell sed -n '4p' $(BE_MARKER)))
Unfortunately not enough detail to a specific file in the message, or what the code is looking for with a file (could even be a red herring).
Anybody have any clues?
FYI: I've never built qubes before, or worked with msys / ming32. I have general technical capabilities and dev experience however. Learning as I go and having a lot of fun.