plasma-nm 6.3.4 + upstream fixes (KDE bug 500674, unused horizontal scrollbar) as a Debian source package

This commit is contained in:
lukrop committed 2026-11-26 01:09:49 +01:00
commit 86ce7fc5e6
5 files changed
+148

No files matched your search

+90
View File
@@ -0,0 +1,90 @@
# plasma-nm 6.3.4 backports for Debian trixie
Modified Debian source package of `plasma-nm` (Plasma 6.3.4) backporting two
upstream fixes for the Networks applet (system tray widget), plus a prebuilt
amd64 `.deb` attached to the [release](https://git.kropa.tech/lukrop/plasma-nm-backports/releases).
## Fixes included
1. **Intermittent large blank gap in the Networks widget while activating a
connection** — [KDE bug 500674](https://bugs.kde.org/show_bug.cgi?id=500674).
Upstream: [`63a9d544`](https://github.com/KDE/plasma-nm/commit/63a9d544dc4f5160f28e5f3203a2c0a5e639e5ac)
"applet: use standard section headers" (Nate Graham, 2025-06-13). Replaces the
hacky `showSeparator` / `onDeactivatedChanged` separator logic with
`PlasmaExtras.ListSectionHeader`. (Section headings now read "Connected" /
"Available" — that is the intended upstream change, not a regression.)
2. **Horizontal scrollbar shown although never needed** (and a binding loop when
the popup is closed).
Upstream: [`20f73e95`](https://github.com/KDE/plasma-nm/commit/20f73e95c304abc814092a367a37278a8439262b)
"applet/ConnectionListPage: disable unused scrollbar" (Christoph Wolk,
2025-03-12) — sets the horizontal ScrollBar policy to `AlwaysOff`.
Both fixes ship in newer Plasma (6.4.0 / 6.5.0) and are absent from trixie's
6.3.x series.
## Install (easiest)
Download `plasma-nm_6.3.4-2+lukrop1_amd64.deb` from the
[release](https://git.kropa.tech/lukrop/plasma-nm-backports/releases) and:
```sh
sudo apt install ./plasma-nm_6.3.4-2+lukrop1_amd64.deb
systemctl --user restart plasma-plasmashell
```
Rollback:
```sh
sudo apt-get install --allow-downgrades plasma-nm=4:6.3.4-2
systemctl --user restart plasma-plasmashell
```
Notes:
- Built against Debian trixie (13). amd64 only.
- Version `4:6.3.4-2+lukrop1` sorts above stock `-2` and below a future Debian
`-3`: when Debian ships a newer plasma-nm, `apt` will upgrade away from this
build automatically (and the fixes will already be included).
## Build from source (Debian way)
```sh
sudo apt install devscripts quilt
dpkg-source -x plasma-nm_6.3.4-2+lukrop1.dsc
cd plasma-nm-6.3.4
sudo apt build-dep -y plasma-nm
dpkg-buildpackage -us -uc -b -j"$(nproc)"
```
The resulting `plasma-nm_6.3.4-2+lukrop1_amd64.deb` in the parent directory
reproduces the release asset.
Source-level regression check for fix #1 (fails on the pristine 6.3.4 tree,
passes once patched):
```sh
python3 tests/check_bug500674_fix.py plasma-nm-6.3.4
```
## Files
| File | What it is |
|---|---|
| `plasma-nm_6.3.4-2+lukrop1.dsc` | Debian source package manifest (3.0 quilt) |
| `plasma-nm_6.3.4.orig.tar.xz` | Pristine upstream 6.3.4 (identical to Debian's) |
| `plasma-nm_6.3.4-2+lukrop1.debian.tar.xz` | `debian/` with the two backported patches and changelog |
| `tests/check_bug500674_fix.py` | source-level red/green check for fix #1 |
## Patch provenance
- `fix-bug-500674-section-headers.patch` — upstream `63a9d544`. One hunk was
re-preimaged for 6.3.4: the `ListItem.qml` deletion, because 6.3.4 carries an
older textual variant of that file (7 lines of implicit vs explicit
`listItem.` id scoping, functionally identical). See the `Description:`
header inside the patch.
- `disable-unnecessary-horizontal-scrollbar.patch` — upstream `20f73e95`,
applies to 6.3.4 unchanged.
Canonical upstream diffs can be re-fetched from the GitHub commit `.patch` URLs
above; the adapted patches live in `debian/patches/` inside the
`debian.tar.xz`.
Binary file not shown.
+23
View File
@@ -0,0 +1,23 @@
Format: 3.0 (quilt)
Source: plasma-nm
Binary: plasma-nm
Architecture: linux-any
Version: 4:6.3.4-2+lukrop1
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Uploaders: Aurélien COUDERC <coucouf@debian.org>, Patrick Franz <deltaone@debian.org>, Scarlett Moore <sgmoore@kde.org>,
Homepage: https://invent.kde.org/plasma/plasma-nm
Standards-Version: 4.7.2
Vcs-Browser: https://salsa.debian.org/qt-kde-team/kde/plasma-nm
Vcs-Git: https://salsa.debian.org/qt-kde-team/kde/plasma-nm.git
Build-Depends: debhelper-compat (= 13), dh-sequence-kf6, dh-sequence-pkgkde-symbolshelper, cmake (>= 3.16~), extra-cmake-modules (>= 6.10.0~), gettext, libkf6colorscheme-dev (>= 6.10.0~), libkf6completion-dev (>= 6.10.0~), libkf6coreaddons-dev (>= 6.10.0~), libkf6dbusaddons-dev (>= 6.10.0~), libkf6i18n-dev (>= 6.10.0~), libkf6kcmutils-dev (>= 6.10.0~), libkf6kio-dev (>= 6.10.0~), libkf6modemmanagerqt-dev (>= 6.10.0~), libkf6networkmanagerqt-dev (>= 6.10.0~), libkf6notifications-dev (>= 6.10.0~), libkf6prison-dev (>= 6.10.0~), libkf6service-dev (>= 6.10.0~), libkf6solid-dev (>= 6.10.0~), libkf6svg-dev (>= 6.10.0~), libkf6wallet-dev (>= 6.10.0~), libkf6widgetsaddons-dev (>= 6.10.0~), libkf6windowsystem-dev (>= 6.10.0~), libkirigami-dev (>= 6.10.0~), libnm-dev (>= 1.4.0~), libopenconnect-dev (>= 3.99~), libplasma-dev (>= 6.3.4~), libqca-qt6-dev (>= 2.1.0~), mobile-broadband-provider-info, modemmanager-dev (>= 1.0.0~), pkgconf, qcoro-qt6-dev, qt6-base-dev (>= 6.7.0~), qt6-declarative-dev (>= 6.7.0~), qt6-webengine-dev (>= 6.7.0~) [amd64 arm64 armhf i386]
Package-List:
plasma-nm deb kde optional arch=linux-any
Checksums-Sha1:
86586f2ba76368f8f864f2abd1d13136ad22d1c7 1318620 plasma-nm_6.3.4.orig.tar.xz
6d9e7c6ab8947939ea3a224f1efa19e662cda502 22968 plasma-nm_6.3.4-2+lukrop1.debian.tar.xz
Checksums-Sha256:
fdcae645be226927225aaca71b4fda11a43adca169982b69c9ad8016c69da0bd 1318620 plasma-nm_6.3.4.orig.tar.xz
6dc51f4f2a9d521698953b7da79b8a6aa94c965ea42061d66408f08b4b0ba551 22968 plasma-nm_6.3.4-2+lukrop1.debian.tar.xz
Files:
4c81802f44244d0729fa7635f6bef271 1318620 plasma-nm_6.3.4.orig.tar.xz
b9bc5b317c9fd4c9e9b192c6145f62c7 22968 plasma-nm_6.3.4-2+lukrop1.debian.tar.xz
Binary file not shown.
+35
View File
@@ -0,0 +1,35 @@
#!/usr/bin/env python3
"""Source-level regression check for KDE bug 500674 in plasma-nm."""
from pathlib import Path
import sys
root = Path(sys.argv[1] if len(sys.argv) > 1 else ".")
list_page = (root / "applet/contents/ui/ConnectionListPage.qml").read_text()
item_page = (root / "applet/contents/ui/ConnectionItem.qml").read_text()
model = (root / "libs/models/networkmodelitem.cpp").read_text()
i = model.find("QString NetworkModelItem::sectionType() const")
section_fn = model[i:i + 700] if i >= 0 else ""
checks = {
"ConnectionListPage uses PlasmaExtras.ListSectionHeader":
"section.delegate: PlasmaExtras.ListSectionHeader" in list_page,
'section.property is always "Section"':
'section.property: "Section"' in list_page,
"showSeparator hack removed from ConnectionListPage":
"showSeparator" not in list_page,
"ListItem.qml deleted":
not (root / "applet/contents/ui/ListItem.qml").exists(),
"onDeactivatedChanged separator hack removed from ConnectionItem":
"onDeactivatedChanged" not in item_page,
"sectionType() labels activating/active/deactivating as Connected":
all(s in section_fn for s in (
"Activating", "Activated", "Deactivating", '"Connected"',
)) and "Available connections" not in section_fn,
}
failed = [name for name, ok in checks.items() if not ok]
for name, ok in checks.items():
print(("PASS: " if ok else "FAIL: ") + name)
if failed:
print(f"\n{len(failed)} of {len(checks)} checks FAILED (bug is present)")
sys.exit(1)
print(f"\nAll {len(checks)} checks passed (bug 500674 fix present)")