Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

busybox: Upload working Windows executable as 7zip #878

Closed
wants to merge 1 commit into from

Conversation

TinCanTech
Copy link
Collaborator

busybox.exe: BusyBox v1.37.0.git (2023-02-07 21:41:11 GMT)

easyrsa-windows-conf: make configuration file to build busybox.

README.txt: Further details.

Signed-off-by: Richard T Bonhomme [email protected]

@TinCanTech TinCanTech self-assigned this Feb 7, 2023
@TinCanTech TinCanTech linked an issue Feb 7, 2023 that may be closed by this pull request
@TinCanTech
Copy link
Collaborator Author

TinCanTech commented Feb 7, 2023

Source: https://github.com/rmyorston/busybox-w32

Built on Fedora.

make config file for building busybox for use with EasyRSA included.

This binary is less than 50% of the size of the complete binary because all non-essential applets have been removed.

  • EasyRSA 280KB verses busybox full 640KB.

Removed:

  • Network and administration tools.
  • Unicode support.
  • All non-essential tools.

The list of supported applets can be found in busybox.txt, included in the archive.

For testing, the archive can be found here:
v3 https://github.com/OpenVPN/easy-rsa/blob/f1911468a3bd2340baa1ffd9357caee047eadff3/distro/dev/busybox-v3.7z
v4 https://github.com/OpenVPN/easy-rsa/blob/80f6f837099414ff618adc21d53d8cf5b2d4d503/distro/dev/busybox-v4.7z

Notes:

  • busybox appears to be POSIX compliant.
  • 7z format was chosen for maximum compression.
    Any preferred format is acceptable.
  • This PR will not be merged, it is only for discussion.

@rmyorston
Copy link

You can save 30K (uncompressed) if you omit the embedded icons.

Yes, "pretty is a feature", but in this case it's probably not worth >10% the size of the binary.

--- ./configs/easyrsa_defconfig.orig	2023-02-08 09:24:50.000000000 +0000
+++ ./configs/easyrsa_defconfig	2023-02-08 09:29:14.000000000 +0000
@@ -47,10 +47,10 @@ CONFIG_FEATURE_PRNG_SHELL=y
 # CONFIG_FEATURE_PRNG_ISAAC is not set
 CONFIG_FEATURE_RESOURCES=y
 CONFIG_FEATURE_VERSIONINFO=y
-CONFIG_FEATURE_ICON=y
+# CONFIG_FEATURE_ICON is not set
 # CONFIG_FEATURE_ICON_ATERM is not set
 # CONFIG_FEATURE_ICON_STERM is not set
-CONFIG_FEATURE_ICON_ALL=y
+# CONFIG_FEATURE_ICON_ALL is not set
 # CONFIG_FEATURE_EURO is not set
 CONFIG_SKIP_ANSI_EMULATION_DEFAULT=2
 CONFIG_FEATURE_IMPROVED_COLOUR_MAPPING=y

@TinCanTech
Copy link
Collaborator Author

@rmyorston Thank you for the tip!

I have been experimenting with menuconfig, I'll try this too.

busybox.exe: BusyBox v1.37.0.git (EasyRSA v4)

easyrsa-windows-conf: make configuration file to build busybox.

README.txt: Further details.

Signed-off-by: Richard T Bonhomme <[email protected]>
@TinCanTech
Copy link
Collaborator Author

TinCanTech commented Feb 8, 2023

Force push: v4, remove embedded icons, and [ and test.

Full unit-test using busybox.exe completed locally.

@TinCanTech
Copy link
Collaborator Author

Closing this, possibly move to a feature branch.

@TinCanTech
Copy link
Collaborator Author

Re-opening as a possible follow-up to: #1075

@TinCanTech
Copy link
Collaborator Author

TinCanTech commented Feb 12, 2024

Follow-up set-to: #1076 #1077 #1080

@TinCanTech TinCanTech closed this Feb 12, 2024
@TinCanTech
Copy link
Collaborator Author

TinCanTech commented Feb 13, 2024

@rmyorston #1077 , just a polite ping to put you on the radar.

I would like to credit your work.

@rmyorston
Copy link

Thanks for the heads up.

I would like to credit your work.

That would be appreciated. A mention in README-Windows.txt would be sufficient.

I suggest you also publicise the BusyBox configuration file you used and the version or commit of the source. This will in useful in case any bugs are identified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ten year [Tin] anniversary for MIRBSD KSH
2 participants