Gentoo user-packages: fix eza category (sys-apps/eza, not app-misc/eza)
eza lives in sys-apps/ on Gentoo, not app-misc/. The previous template used 'app-misc/eza' which made emerge fail with: !!! Error: 'app-misc/eza' not found Also updated the USE flag block (sys-apps/eza git instead of app-misc/eza git) so the file written to /etc/portage/package.use is correct.
This commit is contained in:
parent
4556813e78
commit
579d4ac952
1 changed files with 8 additions and 7 deletions
|
|
@ -37,18 +37,19 @@ ZSH_CUSTOM="${ZSH_CUSTOM:-$USER_HOME/.oh-my-zsh/custom}"
|
||||||
log "checking user packages (gentoo)"
|
log "checking user packages (gentoo)"
|
||||||
|
|
||||||
# Step 1: USE flags + accept_keywords for packages that need them
|
# Step 1: USE flags + accept_keywords for packages that need them
|
||||||
# Some packages (eza, lazygit) need explicit USE flags or keyword unmask.
|
# Some packages need explicit USE flags or keyword unmask. Set them in
|
||||||
# Set them in package.use/package.accept_keywords so emerge sees them.
|
# package.use/package.accept_keywords so emerge sees them.
|
||||||
|
# eza is at sys-apps/eza (not app-misc/eza — that's a common typo).
|
||||||
USE_DIR="/etc/portage/package.use"
|
USE_DIR="/etc/portage/package.use"
|
||||||
ACCEPT_DIR="/etc/portage/package.accept_keywords"
|
ACCEPT_DIR="/etc/portage/package.accept_keywords"
|
||||||
mkdir -p "$USE_DIR" "$ACCEPT_DIR" 2>/dev/null || true
|
mkdir -p "$USE_DIR" "$ACCEPT_DIR" 2>/dev/null || true
|
||||||
sudo mkdir -p "$USE_DIR" "$ACCEPT_DIR"
|
sudo mkdir -p "$USE_DIR" "$ACCEPT_DIR"
|
||||||
|
|
||||||
# eza: needs explicit accept_keywords (was masked), USE=git enables git status column
|
# eza: USE=git enables git status column
|
||||||
# Skip if already set
|
# Skip if already set
|
||||||
if ! grep -q "^app-misc/eza" "$USE_DIR/zz-gentoo-bootstrap" 2>/dev/null; then
|
if ! grep -q "^sys-apps/eza" "$USE_DIR/zz-gentoo-bootstrap" 2>/dev/null; then
|
||||||
log "writing USE flags: app-misc/eza git"
|
log "writing USE flags: sys-apps/eza git"
|
||||||
echo "app-misc/eza git" | sudo tee "$USE_DIR/zz-gentoo-bootstrap" >/dev/null
|
echo "sys-apps/eza git" | sudo tee "$USE_DIR/zz-gentoo-bootstrap" >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fzf-tab, zsh-autosuggestions: gentoo has them in app-shells/ but newer
|
# fzf-tab, zsh-autosuggestions: gentoo has them in app-shells/ but newer
|
||||||
|
|
@ -70,7 +71,7 @@ GENTOO_PKGS=(
|
||||||
sys-process/btop
|
sys-process/btop
|
||||||
sys-process/htop
|
sys-process/htop
|
||||||
app-text/fastfetch
|
app-text/fastfetch
|
||||||
app-misc/eza
|
sys-apps/eza # in main, sys-apps category (not app-misc!)
|
||||||
app-shells/fzf
|
app-shells/fzf
|
||||||
app-misc/fd
|
app-misc/fd
|
||||||
sys-apps/ripgrep
|
sys-apps/ripgrep
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue