Skip to content

Conversation

@HaplessIdiot
Copy link

@HaplessIdiot HaplessIdiot commented Oct 20, 2025

While doing the first option with my build.sh. I also took it upon myself to add XLibre ati radeon driver and Ly login manager for better theming. I replaced VLC with MPV to better support the SVP 4 project vlc doesnt work great with 60fps anime

Summary by Sourcery

Fix the xlibre build script to prevent it from hanging, streamline its logic, and update default packages by adding ATI Radeon driver support, integrating the ly login manager, and replacing VLC with MPV for better performance.

New Features:

  • Add ATI Radeon driver package to XLibre build
  • Integrate ly login manager for enhanced theming

Bug Fixes:

  • Fix xlibre build option hanging by removing redundant testing branch in fetch_x_drivers_packages
  • Remove unused logging function and clean up build type error message formatting

Enhancements:

  • Switch default media player from VLC to MPV for smoother 60 fps playback

@HaplessIdiot HaplessIdiot requested review from a team as code owners October 20, 2025 05:56
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Oct 20, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR streamlines the build process by removing obsolete logging and fixing build-type option parsing in build.sh, and updates package manifests to add XLibre ATI Radeon driver, integrate Ly login manager for theming, and replace VLC with MPV for better 60 fps support.

Entity relationship diagram for updated package manifests

erDiagram
    COMMON_PACKAGES {
        string name
        string version
        string description
    }
    DRIVERS_PACKAGES {
        string name
        string version
        string description
    }
    COMMON_PACKAGES ||--o| DRIVERS_PACKAGES : includes

    MPV {
        string type
    }
    VLC {
        string type
    }
    Ly_LOGIN_MANAGER {
        string type
    }
    XLIBRE_ATI_RADEON_DRIVER {
        string type
    }

    COMMON_PACKAGES ||--o| MPV : has
    COMMON_PACKAGES ||--o| VLC : has
    COMMON_PACKAGES ||--o| Ly_LOGIN_MANAGER : has
    DRIVERS_PACKAGES ||--o| XLIBRE_ATI_RADEON_DRIVER : has
Loading

Class diagram for updated build.sh functions and structure

classDiagram
    class build.sh {
        - logging function removed
        + improved build-type option parsing
        + streamlined package URL selection
    }
    build.sh : set_ghostbsd_version()
    build.sh : fetch_x_drivers_packages()
    build.sh : main()
Loading

File-Level Changes

Change Details Files
Cleanup of build.sh logging and option handling
  • Removed custom log() function and its invocations
  • Fixed build-type usage printf by trimming trailing newline
  • Simplified fetch_x_drivers_packages logic by eliminating testing branch
build.sh
Added XLibre ATI Radeon driver package
  • Included package entry for XLibre ATI Radeon driver
packages/drivers
Integrated Ly login manager for theming
  • Added Ly login manager to package list
packages/common
Replaced VLC with MPV in package manifests
  • Removed VLC and added MPV for 60fps support
packages/common

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there - I've reviewed your changes - here's some feedback:

  • The case for build_type "testing" was removed from fetch_x_drivers_packages, so testing builds will now fall back to the unstable URL—please reintroduce or explicitly handle testing if it’s still supported.
  • You’ve removed the log() function entirely but the build script still uses log calls elsewhere—either replace them with echo or remove those calls to avoid undefined function errors.
  • The PR description mentions adding XLibre driver, Ly login manager, and MPV, but the diff only shows logging and build-type changes—please include the actual package changes or update the description to match.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The case for build_type "testing" was removed from fetch_x_drivers_packages, so testing builds will now fall back to the unstable URL—please reintroduce or explicitly handle testing if it’s still supported.
- You’ve removed the log() function entirely but the build script still uses log calls elsewhere—either replace them with echo or remove those calls to avoid undefined function errors.
- The PR description mentions adding XLibre driver, Ly login manager, and MPV, but the diff only shows logging and build-type changes—please include the actual package changes or update the description to match.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is fine in master. Please don't delete the code from it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was on a vm and my laptop and it fails to build inside of ghostbsd unless i remove the log commands. i needed this to build ISO files for my setup. you can verify in testing. It should work but it is missing from the distro contained on the ISO you would have to add the pkg to the list then it works.

Comment on lines +10 to +19
wifi-firmware-rtw88-kmod
xlibre-xf86-input-evdev
xlibre-xf86-input-joystick
xlibre-xf86-input-keyboard
xlibre-xf86-input-mouse
xlibre-xf86-input-synaptics
xlibre-xf86-input-vmmouse
xlibre-xf86-video-scfb
xlibre-xf86-video-vesa
xlibre-xf86-video-ati
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an xlibre branch for Xlibre.

Copy link
Author

@HaplessIdiot HaplessIdiot Oct 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could xf86-video-ati be added for my laptop and others to stay working? older AMD fare needs this or it crashes to prompt also adding some more rt88 or old wifi by their name would be excellent for further compat. amdgpu loads all radeonkms modules i found out but it still needs that to be added for that to work.

also is it possible to open the jenkins on the unstable xlibre branch instead of stable it works great so far and that branch has the latest KDE and XFCE for playing steam games

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wifi-firmware-rtw88-kmod is fine to add, and probably xf86-video-ati.

xorg-minimal
zip
ly
mpv
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing to MPV should be a request ticket for the community to vote on.

I do not want Ly to be part of the default installation.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ly is so pretty with colormix is it possible to add a build option to use ly if i do all the work? obviously not everyone wants textmode login like that but it should be an option for when drivers arent working for fun.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, the more packages that get added, the more RAM the system needs to run in live.

@github-project-automation github-project-automation bot moved this from In Review to In Progress in Development Management Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants