xmake icon indicating copy to clipboard operation
xmake copied to clipboard

get.sh: support dnf

Open black-desk opened this issue 5 months ago • 4 comments

Signed-off-by: Chen Linxuan [email protected]

black-desk avatar Sep 23 '25 09:09 black-desk

Summary of Changes

Hello @black-desk, I'm Gemini Code Assist[^1]! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the get.sh script by integrating support for the dnf package manager. This change broadens the script's compatibility, allowing users on Fedora, RHEL 8+, and CentOS Stream 8+ systems to seamlessly install necessary development dependencies. The update ensures a smoother setup experience across a wider array of Linux distributions.

Highlights

  • DNF Package Manager Support: The get.sh script now includes support for the dnf package manager, enabling automatic installation of development tools on systems using it.
  • Dependency Installation Logic: The install_tools function has been updated to detect dnf and use it to install git, readline-devel, bzip2, and the @development-tools group.
  • Improved Error Messaging: The dependency installation failure message has been updated to explicitly list dnf among the supported package managers, providing clearer guidance to users.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with :thumbsup: and :thumbsdown: on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

[^1]: Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

gemini-code-assist[bot] avatar Sep 23 '25 09:09 gemini-code-assist[bot]

Does it ready now?

waruqi avatar Sep 26 '25 14:09 waruqi

Does it ready now?

It seems to work on my machine.

But I am not sure about whether we actually install all dependencies we need here or not.

black-desk avatar Sep 27 '25 12:09 black-desk

Does it ready now?

It seems to work on my machine.

But I am not sure about whether we actually install all dependencies we need here or not.

git, @development-tools is required, readline-devel is optional and is only needed for REPL, and bzip2 is also optional and is needed for package management.

waruqi avatar Oct 01 '25 14:10 waruqi