Add Gentoo Support; migrate from zip+unzip+unrar-free to bsdtar - #659
Open
quisys wants to merge 17 commits into
Open
Add Gentoo Support; migrate from zip+unzip+unrar-free to bsdtar#659quisys wants to merge 17 commits into
quisys wants to merge 17 commits into
Conversation
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
Debugged using Gentoo LiveCD
Don't rebuild already built packages
quisys
marked this pull request as draft
August 27, 2026 19:57
quisys
marked this pull request as ready for review
August 27, 2026 19:58
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
marked this pull request as ready for review
August 27, 2026 20:07
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I switched out checks for
zip,unzip, andunrar-freein the main script to only a bsdtar checkI switched the package lists for all distros to pull
libarchive(containsbsdtar) instead of those three packages (including nix)I added a Gentoo section that checks for
device-mappersupport in-kernel, and installs the required packagesI changed all calls for
zip,unzip, andunrar-freein all scripts in the repo to the drop-inbsdtarequivalent.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, andunrar-freewith newbsdtarcommands. The Gentoo support does not affect other distros as the script never gets that far.I also updated README.md to mention Gentoo support.