Skip to content

Add Gentoo Support; migrate from zip+unzip+unrar-free to bsdtar - #659

Open
quisys wants to merge 17 commits into
CosmicScale:mainfrom
quisys:main
Open

Add Gentoo Support; migrate from zip+unzip+unrar-free to bsdtar#659
quisys wants to merge 17 commits into
CosmicScale:mainfrom
quisys:main

Conversation

@quisys

@quisys quisys commented Aug 26, 2026

Copy link
Copy Markdown

I switched out checks for zip, unzip, and unrar-free in the main script to only a bsdtar check

I switched the package lists for all distros to pull libarchive (contains bsdtar) instead of those three packages (including nix)

I added a Gentoo section that checks for device-mapper support in-kernel, and installs the required packages

I changed all calls for zip, unzip, and unrar-free in all scripts in the repo to the drop-in bsdtar equivalent.

I tested the new script on both Debian, and the Gentoo LiveCD.

I don't believe this requires extensive testing on all distros, as I have verified the package lists, and parity of functionality between the previous calls for zip, unzip, and unrar-free with new bsdtar commands. The Gentoo support does not affect other distros as the script never gets that far.

I also updated README.md to mention Gentoo support.

quisys added 15 commits August 26, 2026 10:16
Switch zip, unzip, and unrar-free to bsdtar. Add Gentoo support.
Switch zip and unzip commands to bsdtar
Switch zip and unzip to bsdtar
Switch unzip to bsdtar
Oh yeah, and switch unrar-free too
Remove zip and unzip and switch unrar-free to libarchive
Oh yeah, remove zip and unzip checks
Fix syntax error
Don't rebuild already built packages
@quisys
quisys marked this pull request as draft August 27, 2026 19:57
@quisys
quisys marked this pull request as ready for review August 27, 2026 19:58
@quisys
quisys marked this pull request as draft August 27, 2026 19:58
Clean up emerge command and ask before attempting to remove exfat-utils
@quisys
quisys marked this pull request as ready for review August 27, 2026 20:07
@CosmicScale

Copy link
Copy Markdown
Owner

That looks good. Good call changing everything over to bsdtar.

I'm currently working on an update and have a number of uncommitted changes. As soon as I release the next update, I'll merge this.

Makes it so the emerge command rebuilds packages if they need to be rebuilt with a new USE flag (i.e. lvm). --update is used instead of --noreplace to achieve this behaviour. --ask is used instead of --autounmask to avoid angering people by forcing changed to their configs, instead asking and allowing them to do it themselves if necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants