jlj-qmk/util
Peter K. Cawley 3bef186ea6 adjust install_avr function to use unzip for broader compatibility (#4596)
On a laptop with god knows what mandatory security software (Cylance?), running up-to-date Windows 10 with msys2 mingw-64, attempting to install the AVR toolkit results in the following error:

```
1 [main] 7z (13316) C:\msys32\usr\lib\p7zip\7z.exe: *** fatal error - cygheap base mismatch detected - 0x612A5410/0x2375410.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
```

This appears to be related in some way, based on my research, to ASLR functionality in security software. Since I'm unable to override whatever is enforcing ASLR on my system, after trying several other approaches (removing other copies of msys-2.0.dll, which is what this is apparently actually referencing, rebasing that file in Windows to address 0x61000000, a few other things) I simply edited the installation shell script to use `unzip` instead of 7zip; `unzip`'s binary does not provoke a mismatch error and the installation proceeds as it should.

I'm not aware of the reason why some parts of the install script use `unzip` (e.g. `install_arm`) and others use 7zip, but it seems that for broader compatibility and sparing users on locked down machines the 120 minutes or so of futzing this took me to fix, it might be better to just use `unzip` in all cases.

Note: There is another function that uses 7zip, `extract_flip`. The line is `7z -oflip x FlipInstaller.exe`. I'm not sure what this is doing, or whether it's possible to do it with `unzip`, but it produces the same error. I haven't attempted to fix that in this PR, but it might be good to fix it for the same reason.
2018-12-10 16:15:15 -08:00
..
1-setup-path-win.bat
2-setup-environment-win.bat Fix avoid certificate errors that occur during '2-setup-environment-win.bat' 2017-08-22 09:09:51 -04:00
activate_msys2.sh Set the executable bit for sh scripts under util. 2018-11-02 13:42:05 -04:00
activate_wsl.sh Set the executable bit for sh scripts under util. 2018-11-02 13:42:05 -04:00
add-paths.bat
atmega32a_program.py Updated personal keymaps, fixed Let's Split default keymap, updated JJ40 README (#2704) 2018-04-19 09:28:55 -07:00
bootloader_at90usb128x_1_0_1.hex
bootloader_atmega16u4_1_0_1.hex
bootloader_atmega32u4_1_0_0.hex convert to unix line-endings [skip ci] 2018-11-12 20:51:24 +00:00
docker_build.sh Add a better Docker build script + update Dockerfile (#4222) 2018-12-08 09:42:46 -08:00
drivers.txt Add stm32 to drivers.txt 2018-02-05 08:54:49 -08:00
ELEVATE_LICENSE.md
elevate.exe
freebsd_install.sh Set the executable bit for sh scripts under util. 2018-11-02 13:42:05 -04:00
generate_internal_docs.sh Set the executable bit for sh scripts under util. 2018-11-02 13:42:05 -04:00
linux_install.sh fix diffutils arch package name (#4470) 2018-11-24 08:48:42 -08:00
macos_install.sh Make sure that avr-gcc@7 gets linked into the path on MacOS. 2018-11-12 12:16:43 -08:00
msys2_install.sh adjust install_avr function to use unzip for broader compatibility (#4596) 2018-12-10 16:15:15 -08:00
new_keymap.sh Bug: Users had to be in the /util directory to run the script (#4228) 2018-10-24 08:57:08 -07:00
new_project.sh Improve new_project script (#4373) 2018-11-11 19:54:10 -08:00
pro_micro_ISP_B6_10.hex Update ISP flashing guide with pre-compiled binary (#3217) 2018-08-02 23:07:33 -04:00
qmk_install.sh Fold install_dependencies.sh into linux_install.sh and freebsd_install.sh 2018-10-22 13:24:43 -07:00
teensy_2.0_ISP_B0.hex convert to unix line-endings [skip ci] 2017-11-02 00:51:41 +00:00
travis_build.sh Set the executable bit for sh scripts under util. 2018-11-02 13:42:05 -04:00
travis_compiled_push.sh Set the executable bit for sh scripts under util. 2018-11-02 13:42:05 -04:00
travis_docs.sh Set the executable bit for sh scripts under util. 2018-11-02 13:42:05 -04:00
travis_push.sh Set the executable bit for sh scripts under util. 2018-11-02 13:42:05 -04:00
Win_Check.bat
win_shared_install.sh Set the executable bit for sh scripts under util. 2018-11-02 13:42:05 -04:00
wsl_install.sh Set the executable bit for sh scripts under util. 2018-11-02 13:42:05 -04:00