Skip to content

Switch to Filesystem Hierarchy Standard (FHS) compliant installation on Linux - #1477

Merged
awawa-dev merged 1 commit into
masterfrom
FHS
Mar 12, 2026
Merged

awawa-dev merged 1 commit into
masterfrom
FHS

Conversation

@awawa-dev

@awawa-dev awawa-dev commented Mar 10, 2026 •

Copy link
Copy Markdown
Owner

This PR migrates the Linux installation layout to fully comply with the Filesystem Hierarchy Standard (FHS):

  • Binaries → ${CMAKE_INSTALL_BINDIR}
  • Libraries & bundled dependencies → ${CMAKE_INSTALL_LIBDIR}/hyperhdr
  • Data files, icons, .desktop, web resources → ${CMAKE_INSTALL_DATADIR}/hyperhdr
  • Systemd service template → /usr/lib/systemd/system

The package can be build now without external lib dependencies:

  • ENABLE_DEPENDENCY_PACKAGING ON/OFF for CMAKE
  • or INCLUDE_DEP_LIB for build.sh script

Main changes:

  • Use GNUInstallDirs consistently
  • Replace hardcoded paths with relative ones
  • Install systemd service correct location
  • Remove support for sysV/upstart/initctl (systemd-only)
  • Drop deprecated Berryboot detection
  • Improve IP detection in install scripts
  • Clean up unnecessary files and old init scripts

No breaking changes for default /usr prefix. Custom prefixes (e.g. /opt) now work correctly without manual intervention.

Tested on: Debian, Fedora, Arch, Raspberry Pi.

@awawa-dev
awawa-dev force-pushed the FHS branch 30 times, most recently from 1f8a350 to acd5e55 Compare March 11, 2026 20:37
@awawa-dev
awawa-dev force-pushed the FHS branch 3 times, most recently from 09a9ed7 to 86a0467 Compare March 12, 2026 18:51
@awawa-dev
awawa-dev merged commit d5c4b0b into master Mar 12, 2026
40 checks passed
@awawa-dev
awawa-dev deleted the FHS branch March 12, 2026 19:41
asturel added a commit to asturel/HyperHDR that referenced this pull request Mar 18, 2026
Squashed commit of the following:

commit 78bb1f5
Author: Awawa <[email protected]>
Date:   Tue Mar 17 23:40:11 2026 +0100

    RGBW by Infinite Color Engine - avoid double SPI close

commit 27a2698
Author: Awawa <[email protected]>
Date:   Tue Mar 17 19:13:06 2026 +0100

    RGBW by Infinite Color Engine - user custom RGB order

commit 93c5202
Author: Awawa <[email protected]>
Date:   Tue Mar 17 01:15:07 2026 +0100

    RGBW by Infinite Color Engine - Temporal Dither (4)

commit 59930da
Author: Awawa <[email protected]>
Date:   Tue Mar 17 01:05:56 2026 +0100

    RGBW by Infinite Color Engine - Temporal Dither (3)

commit cb70674
Author: Awawa <[email protected]>
Date:   Mon Mar 16 23:12:52 2026 +0100

    RGBW by Infinite Color Engine - Temporal Dither (2)

commit 8760d81
Author: Awawa <[email protected]>
Date:   Mon Mar 16 03:56:50 2026 +0100

    RGBW by Infinite Color Engine - Temporal Dither

commit 4ff34b7
Author: Awawa <[email protected]>
Date:   Sun Mar 15 20:53:51 2026 +0100

    RGBW by Infinite Color Engine - update (1)

commit 5c23caa
Author: Awawa <[email protected]>
Date:   Sat Mar 14 18:24:28 2026 +0100

    RGBW by Infinite Color Engine

commit d5c4b0b
Author: Awawa <[email protected]>
Date:   Thu Mar 12 20:30:26 2026 +0100

    Use Filesystem Hierarchy Standard (FHS) for Linux (awawa-dev#1477)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant