Official build instructions for Linux packagers (Arch/CachyOS)

(#4807) Feature Closed: Shipped packaging

2 votes Locked

Current problem

The current fluxer-bin AUR package for Linux installs a pre-compiled generic x86_64 binary. Because it is pre-compiled by the publisher, users cannot benefit from modern CPU optimizations (like x86-64-v3, v4, or Zen architectures). Rebuilding this package does nothing, as it only repackages the same binary. Furthermore, the fluxer-git AUR package is currently broken because there are no clear, official build instructions for compiling Fluxer from source on Linux.

Proposed change

Please provide official build instructions for Linux (dependencies, required tools, build commands, environment variables). This would allow the Arch Linux/CachyOS community to maintain a proper source-based package (e.g., on the AUR) and compile it locally with optimizations for the user's specific CPU architecture.

Platform

Linux

Additional information

CachyOS is an Arch-based Linux distribution that recompiles packages for x86-64-v3, x86-64-v4, and Zen 4/5 to optimize performance (gaining 5–20% depending on the workload). To achieve this, the application must be compiled locally from source. Providing these build instructions would enable us to create a fluxer (no-bin) package that takes full advantage of modern hardware. Thank you!
  1. Pierre changed the status from Shipped to Under consideration
  2. Hampus changed the status from Under consideration to Shipped
  1. The pull request fluxer#3989 mentions this post Merged

3 comments

Comment by Rex
RexSystem 1 vote
Status changed from Under consideration to Shipped
Instructions for building the desktop app from source are now in the repository at fluxer_desktop/PACKAGING.md, and the README links to them. They list the toolchain, the system libraries each native module needs, the environment variables and the commands that build the app with no network access. They apply to stable desktop 2026.1111.152810 and later. Build from the fluxer-desktop-stable tag of the version in the stable feed, as the page explains. If anything is missing for a source package on Arch or CachyOS, please tell us here.
Comment by Pierre
Pierre OP1 vote Not resolved 1 reply
The document makes no mention of the x64v3, x64v4, or Zen microarchitectures. It focuses on the base x64 architecture, without addressing compilation optimizations (such as the -C target-cpu=x86-64-v3 flag for Rust, or specific GCC/Clang flags) that are generally required to target these levels.
Comment by Hampus
HampusStaff 1 vote
I believe those who uses those microarchitectures can PR anything extra.