Skip to content

Commit 92505c9

Browse files
authored
Fixed Hyprland v0.56.2 build issues and trixie backports detection issue (#66)
## 📅 **Updated: Aug 6th, 2026** - Fixed: - Build issues for HL v0.56.2 - Duplicate trixie-backports warning errors The check for existing backport repo only checked `http://debian.org` Improved check code Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: install.sh --------- Signed-off-by: Don Williams <don.e.williams@gmail.com>
1 parent c5afc11 commit 92505c9

8 files changed

Lines changed: 25 additions & 56 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## CHANGELOG
22

3+
## Aug 2026
4+
5+
- Fixed:
6+
- Build issues for HL v0.56.2
7+
- Duplicate trixie-backports warning errors
8+
39
## Jul 2026
410

511
- Updated:

hypr-tags.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ HYPRLAND_GUIUTILS_TAG=v0.2.2
66
HYPRLAND_PROTOCOLS_TAG=v0.7.0
77
HYPRLAND_QT_SUPPORT_TAG=v0.1.0
88
HYPRLAND_QTUTILS_TAG=v0.1.5
9-
HYPRLAND_TAG=v0.56.1
9+
HYPRLAND_TAG=v0.56.2
1010
HYPRLANG_TAG=v0.6.8
1111
HYPRLAUNCHER_TAG=v0.1.6
1212
HYPRLOCK_TAG=v0.9.6

install-scripts/hyprland-guiutils.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ guiutils=(
2424
qt6-5compat-dev
2525
libqt6waylandclient6
2626
qml6-module-qtwayland-client-texturesharing
27-
libhyprlang-dev
2827
)
2928

3029
#specific branch or release

install-scripts/hyprland-qt-support.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ qt_support=(
1818
qt6-tools-dev
1919
qt6-tools-dev-tools
2020
qt6-charts-dev
21-
libhyprutils-dev
22-
libhyprlang-dev
23-
libhyprtoolkit-dev
2421
)
2522

2623
#specific branch or release

install-scripts/hyprland.sh

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -81,45 +81,28 @@ ensure_hypr_link_libs() {
8181
hl_link=""
8282
aq_link=""
8383

84-
for p in /usr/lib/x86_64-linux-gnu/libhyprutils.so /usr/local/lib/libhyprutils.so /usr/local/lib64/libhyprutils.so; do
84+
for p in /usr/local/lib/libhyprutils.so /usr/local/lib64/libhyprutils.so /usr/lib/x86_64-linux-gnu/libhyprutils.so; do
8585
[ -e "$p" ] && hu_link="$p" && break
8686
done
87-
for p in /usr/lib/x86_64-linux-gnu/libhyprwire.so /usr/local/lib/libhyprwire.so /usr/local/lib64/libhyprwire.so; do
87+
for p in /usr/local/lib/libhyprwire.so /usr/local/lib64/libhyprwire.so /usr/lib/x86_64-linux-gnu/libhyprwire.so; do
8888
[ -e "$p" ] && hw_link="$p" && break
8989
done
90-
for p in /usr/lib/x86_64-linux-gnu/libhyprlang.so /usr/local/lib/libhyprlang.so /usr/local/lib64/libhyprlang.so; do
90+
for p in /usr/local/lib/libhyprlang.so /usr/local/lib64/libhyprlang.so /usr/lib/x86_64-linux-gnu/libhyprlang.so; do
9191
[ -e "$p" ] && hl_link="$p" && break
9292
done
93-
for p in /usr/lib/x86_64-linux-gnu/libaquamarine.so /usr/local/lib/libaquamarine.so /usr/local/lib64/libaquamarine.so; do
93+
for p in /usr/local/lib/libaquamarine.so /usr/local/lib64/libaquamarine.so /usr/lib/x86_64-linux-gnu/libaquamarine.so; do
9494
[ -e "$p" ] && aq_link="$p" && break
9595
done
9696

9797
hu_script="$PARENT_DIR/install-scripts/hyprutils.sh"
9898
hw_script="$PARENT_DIR/install-scripts/hyprwire.sh"
9999

100-
if [ -z "$hu_link" ]; then
101-
echo "${NOTE} libhyprutils linker symlink not found. Installing libhyprutils-dev..." | tee -a "$LOG"
102-
install_package libhyprutils-dev 2>&1 | tee -a "$LOG" || true
103-
fi
104-
if [ -z "$hw_link" ]; then
105-
echo "${NOTE} libhyprwire linker symlink not found. Installing libhyprwire-dev..." | tee -a "$LOG"
106-
install_package libhyprwire-dev 2>&1 | tee -a "$LOG" || true
107-
fi
108-
if [ -z "$hl_link" ]; then
109-
echo "${NOTE} libhyprlang linker symlink not found. Installing libhyprlang-dev..." | tee -a "$LOG"
110-
install_package libhyprlang-dev 2>&1 | tee -a "$LOG" || true
111-
fi
112-
if [ -z "$aq_link" ]; then
113-
echo "${NOTE} libaquamarine linker symlink not found. Installing libaquamarine-dev..." | tee -a "$LOG"
114-
install_package libaquamarine-dev 2>&1 | tee -a "$LOG" || true
115-
fi
116-
117100
if [ -z "$hu_link" ] && [ -x "$hu_script" ]; then
118-
echo "${NOTE} Falling back to source build for hyprutils..." | tee -a "$LOG"
101+
echo "${NOTE} Building hyprutils from source..." | tee -a "$LOG"
119102
"$hu_script" 2>&1 | tee -a "$LOG" || true
120103
fi
121104
if [ -z "$hw_link" ] && [ -x "$hw_script" ]; then
122-
echo "${NOTE} Falling back to source build for hyprwire..." | tee -a "$LOG"
105+
echo "${NOTE} Building hyprwire from source..." | tee -a "$LOG"
123106
"$hw_script" 2>&1 | tee -a "$LOG" || true
124107
fi
125108
}
@@ -229,6 +212,10 @@ EOF
229212
if [ -f "$CONFIG_ACTIONS_CPP" ]; then
230213
sed -ri 's/const[[:space:]]+bool[[:space:]]+ISWINDOWGROUP[[:space:]]*=[[:space:]]*window->m_group[[:space:]]*;/const bool ISWINDOWGROUP = static_cast<bool>(window->m_group);/g' "$CONFIG_ACTIONS_CPP" || true
231214
fi
215+
CONFIG_VALUES_CPP="src/config/values/ConfigValues.cpp"
216+
if [ -f "$CONFIG_VALUES_CPP" ]; then
217+
perl -0777 -i -pe 's@,\s*\.deprecationNotice\s*=\s*"[^"]*"@@g' "$CONFIG_VALUES_CPP" || true
218+
fi
232219
SESSION_LOCK_CPP="src/desktop/view/SessionLock.cpp"
233220
if [ -f "$SESSION_LOCK_CPP" ]; then
234221
perl -0777 -i -pe 's@return e == m_self;@return e == m_self.lock();@g' "$SESSION_LOCK_CPP" || true

install-scripts/hyprtoolkit.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
# Hypr Ecosystem #
1010
# hyprtoolkit #
1111
hyprtoolkit_deps=(
12-
libhyprutils-dev
13-
libhyprlang-dev
14-
libaquamarine-dev
15-
libhyprgraphics-dev
1612
)
1713

1814
#specific branch or release

install.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,18 @@ ensure_trixie_backports_repo() {
321321
local suite="$1"
322322
[ "$suite" = "trixie" ] || return 0
323323
local file="/etc/apt/sources.list.d/99-debian-trixie-backports.list"
324-
local desired="deb http://deb.debian.org/debian trixie-backports main contrib non-free non-free-firmware"
325-
if sudo grep -RhsE '^[[:space:]]*deb[[:space:]]+http://deb\.debian\.org/debian/?[[:space:]]+trixie-backports([[:space:]]|$)' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null | grep -q .; then
326-
# If we previously created an overlay but backports exists elsewhere, remove overlay to avoid duplicate targets.
324+
# Check old-style .list format: match trixie-backports as the suite regardless of URL or mirror
325+
if sudo grep -RhsE '^[[:space:]]*deb[[:space:]]+\S+[[:space:]]+trixie-backports([[:space:]]|$)' \
326+
/etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null | grep -q .; then
327+
# Backports found elsewhere — remove our overlay if previously created
327328
if sudo test -f "$file"; then
328329
sudo rm -f "$file" 2>/dev/null || true
329330
fi
330331
return 0
331332
fi
332-
if sudo grep -RhsE '^[[:space:]]*Suites:[[:space:]].*\btrixie-backports\b' /etc/apt/sources.list.d/*.sources 2>/dev/null | grep -q .; then
333+
# Check DEB822 .sources format: match trixie-backports in the Suites: field
334+
if sudo grep -RhsE '^[[:space:]]*Suites:[[:space:]].*\btrixie-backports\b' \
335+
/etc/apt/sources.list.d/*.sources 2>/dev/null | grep -q .; then
333336
if sudo test -f "$file"; then
334337
sudo rm -f "$file" 2>/dev/null || true
335338
fi

update-hyprland.sh

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -428,27 +428,8 @@ offer_debian_packages_if_source_detected() {
428428
}
429429
# Remove Debian-provided Hyprland stack packages before source builds (install only)
430430
remove_deb_hypr_packages() {
431-
local pkgs=(
432-
hyprland hyprland-plugins hyprland-session
433-
hyprland-protocols hyprland-guiutils hyprland-qt-support hyprland-qtutils qml6-module-org-hyprland-style
434-
hyprutils libhyprutils0 libhyprutils-dev
435-
hyprlang libhyprlang0 libhyprlang-dev
436-
hyprgraphics libhyprgraphics0 libhyprgraphics-dev
437-
hyprcursor libhyprcursor0 libhyprcursor-dev
438-
hyprwayland-scanner
439-
hyprtoolkit
440-
hyprwire hyprwire-protocols libhyprwire0 libhyprwire-dev
441-
aquamarine libaquamarine0 libaquamarine-dev
442-
hypridle hyprlock hyprpicker hyprpaper hyprsunset hyprlauncher hyprsysteminfo
443-
hyprpolkitagent hyprpm hyprctl
444-
xdg-desktop-portal-hyprland
445-
)
446431
local found=()
447-
for p in "${pkgs[@]}"; do
448-
if dpkg -s "$p" >/dev/null 2>&1; then
449-
found+=("$p")
450-
fi
451-
done
432+
mapfile -t found < <(dpkg-query -W -f='${Package}\n' 'hypr*' 'libhypr*' 'aquamarine*' 'libaquamarine*' 2>/dev/null | grep -v 'hyprland-backgrounds' || true)
452433
if [[ ${#found[@]} -eq 0 ]]; then
453434
echo "[INFO] No Debian Hyprland packages detected." | tee -a "$SUMMARY_LOG"
454435
return 0

0 commit comments

Comments
 (0)