Skip to content

Commit

Permalink
Update and pin RAR for Linux for more reproducibility
Browse files Browse the repository at this point in the history
(Update to match the WinRAR version, pin for reproducibility)
  • Loading branch information
Stephan Sokolow authored and Stephan Sokolow committed Sep 25, 2021
1 parent 5e271c4 commit 86e5bad
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 6 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Makefile to regenerate test RAR files if you have a valid RAR/WinRAR license
#
# Setup:
# 1. Make sure `rar` and `dosbox` are installed on your POSIX-compliant OS
# 1. Unpack https://www.rarlab.com/rar/rarlinux-x64-6.0.2.tar.gz to ~/bin
# (So `~/bin/rar/rar` and `~/bin/rar/default.sfx` exist)
# 2. Copy your RAR/WinRAR registration key to ~/.rarreg.key
# 3. Unpack http://www.rarlab.com/rar/rarx393.exe to ./dosbox/rar
# (If you ran it inside DOSBox, rename the `RAR` folder to `rar`)
# 4. Copy your RAR/WinRAR registration key to ./dosbox/RAR/rarreg.key
# 5. Install https://www.rarlab.com/rar/wrar601b1.exe into the default Wine
# 5. Install https://www.rarlab.com/rar/wrar602.exe into the default Wine
# prefix at C:\Program Files (x86)\WinRAR\Rar.exe
# 6. Install http://www.rarlab.com/rar/wrar393.exe into the default Wine prefix
# at C:\Program Files (x86)\WinRAR393\Rar.exe
Expand All @@ -16,7 +17,9 @@
# invocations all share the same virtual drive and temporary 8.3
# filenames.

RAR := rar
RAR := $(HOME)/bin/rar/rar
LIN_SFX_PATH := $(HOME)/bin/rar/default.sfx

DOSBOX := dosbox
DOS_RAR := C:\RAR\RAR32.EXE
DOS_ROOT := ./dosbox
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ vulnerability.

## Future Plans

- Switch to a pinned build of RAR for Linux from RARLab to make the process more
reliably reproducible.
- Add test files for
[multi-volume RAR archives](https://documentation.help/WinRAR/HELPArcVolumes.htm)
with and without the `-vn` naming scheme
Expand Down Expand Up @@ -195,7 +193,8 @@ dedication.
<p xmlns:dct="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
<a rel="license"
href="http://creativecommons.org/publicdomain/zero/1.0/">
<img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" />
<img src="http://i.creativecommons.org/p/zero/1.0/88x31.png"
style="border-style: none;" alt="CC0" />
</a>
<br />
To the extent possible under law,
Expand Down
Binary file modified build/testfile.rar5.cbr
Binary file not shown.
Binary file modified build/testfile.rar5.locked.cbr
Binary file not shown.
Binary file modified build/testfile.rar5.locked.rar
Binary file not shown.
Binary file modified build/testfile.rar5.rar
Binary file not shown.
Binary file modified build/testfile.rar5.rr.cbr
Binary file not shown.
Binary file modified build/testfile.rar5.rr.rar
Binary file not shown.
Binary file modified build/testfile.rar5.solid.cbr
Binary file not shown.

0 comments on commit 86e5bad

Please sign in to comment.