Linux: add Gentoo dependency installation script #521

Closed
opened 2026-04-05 16:22:08 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @panther757 on 3/2/2026

Description

Add a dependency installation script for Gentoo Linux to the scripts/linux.d/ directory.

The script automates the installation of required development libraries using emerge and includes logic to:

  • Check for and install portage-utils (required for package querying).
  • Automatically detect and install the available/preferred version of webkit-gtk (4.x or 4.1).
  • Identify and skip packages that are already installed to avoid adding them to the package world file.
  • Set up necessary environment variables for GTK3 detection.

Motivation and Context

Gentoo users could not use the build_linux.sh script, until now.

How Has This Been Tested?

  • Verified on a Gentoo system.
  • Tested the package detection logic to ensure it correctly identifies installed vs. missing dependencies.
  • Verified that webkit-gtk version switching works as expected.

Screenshots (if appropriate):

N/A (CLI Script)

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the code style of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
*Originally created by @panther757 on 3/2/2026* ## Description Add a dependency installation script for Gentoo Linux to the scripts/linux.d/ directory. The script automates the installation of required development libraries using emerge and includes logic to: - Check for and install portage-utils (required for package querying). - Automatically detect and install the available/preferred version of webkit-gtk (4.x or 4.1). - Identify and skip packages that are already installed to avoid adding them to the package world file. - Set up necessary environment variables for GTK3 detection. ## Motivation and Context Gentoo users could not use the build_linux.sh script, until now. ## How Has This Been Tested? - Verified on a Gentoo system. - Tested the package detection logic to ensure it correctly identifies installed vs. missing dependencies. - Verified that webkit-gtk version switching works as expected. ## Screenshots (if appropriate): N/A (CLI Script) ## Types of changes - [x] New feature (non-breaking change which adds functionality) ## Checklist: - [x] My code follows the code style of this project. - [x] I have performed a self-review of my own code. - [x] I have commented my code, particularly in hard-to-understand areas.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#521