Skip to content

fix: migrate treeland output protocol v1 to v2 - #1729

Merged
18202781743 merged 1 commit into
linuxdeepin:masterfrom
deepin-wm:agent/bot/9cda2caa2af3
Dec 2, 2026
Merged

18202781743 merged 1 commit into
linuxdeepin:masterfrom
deepin-wm:agent/bot/9cda2caa2af3

Conversation

@deepin-wm

@deepin-wm deepin-wm commented Sep 9, 2026 •

Copy link
Copy Markdown

Treeland output 协议 v2 适配

将 dde-shell 中两处 treeland output v1 协议消费者迁移到 v2(纯协议消费者迁移,无逻辑变更)。

改动文件(6 个)

文件 改动
shell/CMakeLists.txt find_package(TreelandProtocols 0.6 REQUIRED);XML 引用 → treeland-output-manager-unstable-v2.xml
shell/treelandoutputwatcher.h include → qwayland-treeland-output-manager-unstable-v2.h;基类 → treeland_output_manager_v2;override 签名 QString → struct ::wl_output*;新增 struct wl_output; 前置声明
shell/treelandoutputwatcher.cpp include → …-unstable-v2-client-protocol.h;接口版本 → treeland_output_manager_v2_interface.version;primary_output 改为 null 早返回 + 遍历 qApp->screens() 通过 QNativeInterface::QWaylandScreen::output() 反查 QScreen
panels/notification/osd/brightness/CMakeLists.txt 同上版本约束 + XML 引用(保留 NO_INCLUDE_CORE_ONLY)
panels/notification/osd/brightness/treelandbrightness.h 全部符号 color_control_v1 → picture_control_v2;treeland_output_manager_v1 → v2;本地类名 TreelandColorControl 保留不变
panels/notification/osd/brightness/treelandbrightness.cpp 全部符号更名;get_color_control → get_picture_control;接口版本更新

关键说明

  • 构建依赖:treeland-protocols ≥ 0.6(v2 XML 由 master 提供,尚未发 tag)
  • 无 #include <QNativeInterface>:Qt6 不为该命名空间生成转发头文件,QWaylandScreen 通过 <QScreen> 传递性引入
  • null 处理:v2 primary_output 事件 allow-null="true",实现中 null 早返回
  • 顺带修复:v1 代码 qApp->primaryScreen()->name() 在 primaryScreen() 返回 null 时会崩溃;v2 版本增加了 null 防护

Ref: DDE-232
Multica Issue: DDE-541

Summary by Sourcery

Migrate Treeland display management and brightness monitoring to the v2 output protocol with UUID-based output identification.

New Features:

  • Add output UUID lookup to identify displays for primary-output switching and brightness monitoring.

Bug Fixes:

  • Handle primary-output changes with an empty UUID and clear pending state when the compositor reports a failure.
  • Avoid retaining stale screen mappings and brightness controls when displays are removed or an output control rejects its UUID.

Enhancements:

  • Migrate shell output watching and brightness monitoring from Treeland output protocol v1 to v2, using UUID-based output identification.

Build:

  • Require TreelandProtocols 0.9 and generate client bindings for the v2 output-manager and v1 output-UUID protocols in both targets.

Chores:

  • Add shared output-UUID client source files to the shell and brightness OSD builds.

@deepin-ci-robot

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@sourcery-ai

sourcery-ai Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

API

Migrate the output UUID protocol wrapper and watcher interface to support resolving compositor output UUIDs to Qt screens.

  • shell/treelandoutputuuid.h L1-41
  • shell/treelandoutputwatcher.h L7-16, L24-37

Expose the v2 picture-control and output-manager interfaces used by the brightness provider, including result notifications.

  • panels/notification/osd/brightness/treelandbrightness.h L15-22, L34-38, L65-72 (+3 small edits)

Uses of the API

Request output UUIDs for watched screens, apply primary-output changes by UUID, and maintain mappings across screen lifecycle events.

  • shell/treelandoutputwatcher.cpp L6-18, L23-27, L34-136

Resolve the primary screen UUID before creating a v2 picture control, and handle brightness updates and invalid-output results.

  • panels/notification/osd/brightness/treelandbrightness.cpp L40-53, L70-81, L87-146 (+6 small edits)

Implement the shared UUID manager and per-output UUID request wrappers consumed by the watcher and brightness provider.

  • shell/treelandoutputuuid.cpp L1-36

Configuration

Require TreelandProtocols 0.9 and generate v2 output-manager and UUID client bindings for the shell and brightness module.

  • panels/notification/osd/brightness/CMakeLists.txt L5, L14-15, L20-25
  • shell/CMakeLists.txt L7, L26-27, L35-36

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

@deepin-bot

deepin-bot Bot commented Sep 10, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 2.0.54
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1733

@deepin-bot

deepin-bot Bot commented Sep 22, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 2.0.55
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1752

@deepin-bot

deepin-bot Bot commented Sep 23, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 2.0.56
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1753

@deepin-bot

deepin-bot Bot commented Oct 12, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 2.0.57
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1758

@deepin-bot

deepin-bot Bot commented Oct 15, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 2.0.58
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1765

@deepin-bot

deepin-bot Bot commented Oct 16, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 2.0.59
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1766

@deepin-bot

deepin-bot Bot commented Oct 20, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 2.0.60
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1773

@deepin-bot

deepin-bot Bot commented Oct 28, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 2.0.61
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1786

@deepin-wm
deepin-wm force-pushed the agent/bot/9cda2caa2af3 branch 2 times, most recently from 4009139 to 6c5c101 Compare November 3, 2026 06:08
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@deepin-wm
deepin-wm force-pushed the agent/bot/9cda2caa2af3 branch 5 times, most recently from 86f4a5f to 6422835 Compare November 3, 2026 08:16
@wineee
wineee marked this pull request as ready for review November 3, 2026 08:52

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="panels/notification/osd/brightness/treelandbrightness.cpp" line_range="90-91" />
<code_context>
+    m_currentUuid.clear();

-    if (!output) {
+    if (!screen) {
         return;
     }

</code_context>
<issue_to_address>
**Brightness stays bound to old output**

When the primary screen changes or disappears while a UUID request is outstanding and the new screen has no usable Wayland output, `refresh()` and `requestPrimaryUuid()` return without cancelling the old request, so its callback passes the sender check and installs a picture control for the previous output; the OSD then reports stale brightness.

Cancel or invalidate the outstanding UUID request before returning when the primary screen has no usable Wayland output.

Also at `panels/notification/osd/brightness/treelandbrightness.cpp:102-118`, `panels/notification/osd/brightness/treelandbrightness.cpp:120-122`.
</issue_to_address>

### Comment 2
<location path="panels/notification/osd/brightness/treelandbrightness.cpp" line_range="124-125" />
<code_context>
+        if (sender() != m_uuidRequest)
+            return;
+
+        if (uuid.isEmpty())
+            return;
+
+        m_currentUuid = uuid;
</code_context>
<issue_to_address>
**Brightness monitoring stops after lookup failures**

When the UUID is empty, `get_picture_control()` returns null, or the picture control reports `commit_result_invalid_output`, `TreelandBrightness` returns or clears its control without retrying UUID/control resolution or notifying brightness consumers, so `brightness()` returns zero or the OSD retains stale brightness until an unrelated refresh.

Retry UUID/control resolution and notify brightness consumers on each failed resolution path.

Also at `panels/notification/osd/brightness/treelandbrightness.cpp:132-133`, `panels/notification/osd/brightness/treelandbrightness.cpp:139-144`.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment on lines +90 to 91
if (!screen) {
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Brightness stays bound to old output

When the primary screen changes or disappears while a UUID request is outstanding and the new screen has no usable Wayland output, refresh() and requestPrimaryUuid() return without cancelling the old request, so its callback passes the sender check and installs a picture control for the previous output; the OSD then reports stale brightness.

Cancel or invalidate the outstanding UUID request before returning when the primary screen has no usable Wayland output.

Also at panels/notification/osd/brightness/treelandbrightness.cpp:102-118, panels/notification/osd/brightness/treelandbrightness.cpp:120-122.

Prompt for AI agents
In `panels/notification/osd/brightness/treelandbrightness.cpp` at lines 90-91:

**Brightness stays bound to old output**

When the primary screen changes or disappears while a UUID request is outstanding and the new screen has no usable Wayland output, `refresh()` and `requestPrimaryUuid()` return without cancelling the old request, so its callback passes the sender check and installs a picture control for the previous output; the OSD then reports stale brightness.

Cancel or invalidate the outstanding UUID request before returning when the primary screen has no usable Wayland output.

Also at `panels/notification/osd/brightness/treelandbrightness.cpp:102-118`, `panels/notification/osd/brightness/treelandbrightness.cpp:120-122`.

Comment on lines +124 to +125
if (uuid.isEmpty())
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Brightness monitoring stops after lookup failures

When the UUID is empty, get_picture_control() returns null, or the picture control reports commit_result_invalid_output, TreelandBrightness returns or clears its control without retrying UUID/control resolution or notifying brightness consumers, so brightness() returns zero or the OSD retains stale brightness until an unrelated refresh.

Retry UUID/control resolution and notify brightness consumers on each failed resolution path.

Also at panels/notification/osd/brightness/treelandbrightness.cpp:132-133, panels/notification/osd/brightness/treelandbrightness.cpp:139-144.

Prompt for AI agents
In `panels/notification/osd/brightness/treelandbrightness.cpp` at lines 124-125:

**Brightness monitoring stops after lookup failures**

When the UUID is empty, `get_picture_control()` returns null, or the picture control reports `commit_result_invalid_output`, `TreelandBrightness` returns or clears its control without retrying UUID/control resolution or notifying brightness consumers, so `brightness()` returns zero or the OSD retains stale brightness until an unrelated refresh.

Retry UUID/control resolution and notify brightness consumers on each failed resolution path.

Also at `panels/notification/osd/brightness/treelandbrightness.cpp:132-133`, `panels/notification/osd/brightness/treelandbrightness.cpp:139-144`.

@deepin-ci-robot

Copy link
Copy Markdown

deepin pr auto review

🤖 AI 代码审查报告

总体评分: 99 分 (通过阈值: 70分)

Pass


📊 总体评价

项目 结果
审查结论 代码审查通过
评分详情 本次提交将 treeland output 协议从 v1 迁移至 v2,引入基于 UUID 的输出标识机制替代直接 wl_output 引用。 整体实现逻辑清晰,内存管理规范(全面使用 QPointer 防止悬垂指针),无安全漏洞。 仅存在少量代码质量方面的轻微改进空间(变量遮蔽、新类缺少文档注释、删除方式不一致),不影响功能正确性。

🔍 详细分析

1. 语法逻辑 ✅

评价: 语法正确,逻辑清晰 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: ['requestPrimaryUuid() 中 lambda 内部变量 raw(第187行)与外部作用域 raw(第169行)同名构成变量遮蔽,建议将内部变量重命名为 picRaw 以提高可读性。']


2. 代码质量 ✅

评价: 代码结构清晰,注释完整 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: ['为 TreelandOutputUuidManager 和 TreelandOutputUuid 添加简短的类级别注释说明其用途', '将 requestPrimaryUuid() lambda 内的 raw 重命名为 picRaw 或 controlRaw 以消除变量遮蔽', '统一对象删除方式,建议 onScreenRemoved() 中也使用 deleteLater()']


3. 代码性能 ✅

评价: 性能良好,资源使用合理 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: []


4. 代码安全 🔒

评价: 存在0个安全漏洞 ✅ 通过

🔐 发现 0 个安全漏洞

安全漏洞详情:
✅ 未发现安全漏洞

建议: []


💡 改进建议代码示例

// 建议:消除变量遮蔽并统一删除方式
void TreelandBrightness::requestPrimaryUuid()
{
    // ... 前置检查不变 ...
    auto *raw = m_uuidManager->get_uuid(output);
    if (!raw)
        return;

    m_uuidRequest = new ::TreelandOutputUuid(raw, this);

    connect(m_uuidRequest, &::TreelandOutputUuid::uuidReceived, this, [this](const QString &uuid) {
        if (sender() != m_uuidRequest)
            return;

        if (uuid.isEmpty())
            return;

        m_currentUuid = uuid;

        delete m_uuidRequest;
        m_uuidRequest = nullptr;

        // 重命名 raw -> picRaw,消除与外部 raw 的变量遮蔽
        auto *picRaw = get_picture_control(uuid);
        if (!picRaw)
            return;

        m_control = new TreelandPictureControl(picRaw, this);
        connect(m_control, &TreelandPictureControl::brightnessChanged,
                this, &TreelandBrightness::brightnessChanged);
        connect(m_control, &TreelandPictureControl::resultReceived, this, [this](uint32_t result) {
            if (result == TreelandPictureControl::commit_result_invalid_output) {
                delete m_control;
                m_control = nullptr;
                m_currentUuid.clear();
            }
        });
    });
}

// 建议:onScreenRemoved 中统一使用 deleteLater()
void TreelandOutputWatcher::onScreenRemoved(QScreen *screen)
{
    for (auto it = m_uuidToScreen.begin(); it != m_uuidToScreen.end();) {
        if (it.value() == screen)
            it = m_uuidToScreen.erase(it);
        else
            ++it;
    }
    if (auto obj = m_uuidRequests.take(screen))
        obj->deleteLater();  // 统一使用 deleteLater()
}

本报告由 AI 代码审查工具自动生成

Comment thread shell/CMakeLists.txt
shell.cpp
treelandoutputwatcher.h
treelandoutputwatcher.cpp
treelandoutputuuid.h

@18202781743 18202781743 Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

先放osd插件或者搞个库吧,不放在shell里,

@deepin-ci-robot

deepin-ci-robot commented Nov 12, 2026 •

Copy link
Copy Markdown

⚠️ OBS CI 构建警告日志 (Commit: 8de80e08)

提示:以下为 OBS CI 构建中 Lintian 检测到的警告信息,默认折叠,点击展开查看详情。完整日志请参阅对应构建状态链接。

deepin_develop / aarch64 (Lintian 警告: 15 条)
[  998s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  998s] N: 
[  998s] N:   The desktop entry specifies a Command that does not match any of the
[  998s] N:   executables shipped in the package.
[  998s] N:   
[  998s] N:   This condition is often caused by a typo, or the desktop file was not
[  998s] N:   updated after the installed path of the executable was modified.
[  998s] N:   
[  998s] N:   Packages should ship executables that are used as commands in desktop
[  998s] N:   files.
[  998s] N: 
[  998s] N:   Visibility: warning
[  998s] N:   Show-Always: no
[  998s] N:   Check: menu-format
[  998s] N: 
[  998s] N:
[  998s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/aarch64-linux-gnu/libds-notification-shared.so.2.0.61 [usr/lib/aarch64-linux-gnu/libds-notification-shared.so]
[  998s] N: 
[  998s] N:   Although this package is not a "-dev" package, it installs a
[  998s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  998s] N:   library. When the link doesn't include the version number, it is used by
[  998s] N:   the linker when other programs are built against this shared library.
[  998s] N:   
[  998s] N:   Shared libraries are supposed to place such symbolic links in their
[  998s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  998s] N:   library package.
[  998s] N:   
[  998s] N:   However, if this is a small package which includes the runtime and the
[  998s] N:   development libraries, this is not a bug. In the latter case, please
[  998s] N:   override this warning.
[  998s] N: 
[  998s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  998s] N:   Manual for details.
[  998s] N: 
[  998s] N:   Visibility: warning
[  998s] N:   Show-Always: no
[  998s] N:   Check: libraries/shared/links
[  998s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  998s] N: 
[  998s] N:
[  998s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  998s] N: 
[  998s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  998s] N:   a manual page
[  998s] N:   
[  998s] N:   Note that though the man program has the capability to check for several
[  998s] N:   program names in the NAMES section, each of these programs should have its
[  998s] N:   own manual page (a symbolic link to the appropriate manual page is
[  998s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  998s] N:   support this.
[  998s] N:   
[  998s] N:   If the name of the manual page differs from the binary by case, man may be
[  998s] N:   able to find it anyway; however, it is still best practice to match the
[  998s] N:   exact capitalization of the executable in the manual page.
[  998s] N:   
[  998s] N:   If the manual pages are provided by another package on which this package
[  998s] N:   depends, Lintian may not be able to determine that manual pages are
[  998s] N:   available. In this case, after confirming that all binaries do have manual
[  998s] N:   pages after this package and its dependencies are installed, please add a
[  998s] N:   Lintian override.
[  998s] N: 
[  998s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  998s] N:   for details.
[  998s] N: 
[  998s] N:   Visibility: warning
[  998s] N:   Show-Always: no
[  998s] N:   Check: documentation/manual
[  998s] N:   Renamed from: binary-without-manpage
[  998s] N: 
[  998s] N:
[  998s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  998s] N: 
[  998s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  998s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  998s] N:   insensitive).
[  998s] N:   
[  998s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  998s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  998s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  998s] N:   package (not intended for Debian), you can suppress this warning by
[  998s] N:   putting "local" in the version number or "local package" on the first line
[  998s] N:   of the changelog entry.
[  998s] N: 
[  998s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  998s] N:   Developer's Reference for details.
[  998s] N: 
[  998s] N:   Visibility: warning
[  998s] N:   Show-Always: no
[  998s] N:   Check: nmu
[  998s] N:   Renamed from: changelog-should-mention-nmu
[  998s] N: 
[  998s] N:
[  998s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  998s] N: 
[  998s] N:   The package name of a library package should usually reflect the soname of
[  998s] N:   the included library. The package name can determined from the library
[  998s] N:   file name with the following code snippet:
[  998s] N:   
[  998s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  998s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  998s] N: 
[  998s] N:   Visibility: warning
[  998s] N:   Show-Always: no
[  998s] N:   Check: libraries/shared/soname
[  998s] N: 
[  998s] N:
[  998s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  998s] N:
[  998s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  998s] N:
[  998s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61+u064 [debian/changelog:1]
[  998s] N: 
[  998s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  998s] N:   native package). This is to prevent stealing version numbers from the
[  998s] N:   maintainer.
[  998s] N:   
[  998s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  998s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  998s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  998s] N:   package (not intended for Debian), you can suppress this warning by
[  998s] N:   putting "local" in the version number or "local package" on the first line
[  998s] N:   of the changelog entry.
[  998s] N: 
[  998s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  998s] N:   Developer's Reference for details.
[  998s] N: 
[  998s] N:   Visibility: warning
[  998s] N:   Show-Always: no
[  998s] N:   Check: nmu
[  998s] N: 
[  998s] N:
[  998s] W: dde-shell: unknown-section DDE
[  998s] N: 
[  998s] N:   The "Section:" field in this package's control file is not one of the
[  998s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  998s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  998s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  998s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  998s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  998s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  998s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  998s] N:   
[  998s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  998s] N:   "non-free-firmware/" if the package is in the according archive area.
[  998s] N: 
[  998s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  998s] N:   details.
[  998s] N: 
[  998s] N:   Visibility: warning
[  998s] N:   Show-Always: no
[  998s] N:   Check: fields/section
[  998s] N: 
[  998s] N:
[  998s] W: dde-shell-example: unknown-section DDE
[  998s] N:
[  998s] W: libdde-shell: unknown-section DDE
[  998s] N:
[  998s] W: libdde-shell-dev: unknown-section DDE
[  998s] N:
[  998s] W: libdde-shell-dock: unknown-section DDE
[  998s] N:
[  998s] W: libdde-shell-dock-dev: unknown-section DDE
[  998s] Warning: mkbaselibs missing in build root, skipping baselibs
deepin_develop / x86_64 (Lintian 警告: 15 条)
[  606s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  606s] N: 
[  606s] N:   The desktop entry specifies a Command that does not match any of the
[  606s] N:   executables shipped in the package.
[  606s] N:   
[  606s] N:   This condition is often caused by a typo, or the desktop file was not
[  606s] N:   updated after the installed path of the executable was modified.
[  606s] N:   
[  606s] N:   Packages should ship executables that are used as commands in desktop
[  606s] N:   files.
[  606s] N: 
[  606s] N:   Visibility: warning
[  606s] N:   Show-Always: no
[  606s] N:   Check: menu-format
[  606s] N: 
[  606s] N:
[  606s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/x86_64-linux-gnu/libds-notification-shared.so.2.0.61 [usr/lib/x86_64-linux-gnu/libds-notification-shared.so]
[  606s] N: 
[  606s] N:   Although this package is not a "-dev" package, it installs a
[  606s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  606s] N:   library. When the link doesn't include the version number, it is used by
[  606s] N:   the linker when other programs are built against this shared library.
[  606s] N:   
[  606s] N:   Shared libraries are supposed to place such symbolic links in their
[  606s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  606s] N:   library package.
[  606s] N:   
[  606s] N:   However, if this is a small package which includes the runtime and the
[  606s] N:   development libraries, this is not a bug. In the latter case, please
[  606s] N:   override this warning.
[  606s] N: 
[  606s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  606s] N:   Manual for details.
[  606s] N: 
[  606s] N:   Visibility: warning
[  606s] N:   Show-Always: no
[  606s] N:   Check: libraries/shared/links
[  606s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  606s] N: 
[  606s] N:
[  606s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  606s] N: 
[  606s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  606s] N:   a manual page
[  606s] N:   
[  606s] N:   Note that though the man program has the capability to check for several
[  606s] N:   program names in the NAMES section, each of these programs should have its
[  606s] N:   own manual page (a symbolic link to the appropriate manual page is
[  606s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  606s] N:   support this.
[  606s] N:   
[  606s] N:   If the name of the manual page differs from the binary by case, man may be
[  606s] N:   able to find it anyway; however, it is still best practice to match the
[  606s] N:   exact capitalization of the executable in the manual page.
[  606s] N:   
[  606s] N:   If the manual pages are provided by another package on which this package
[  606s] N:   depends, Lintian may not be able to determine that manual pages are
[  606s] N:   available. In this case, after confirming that all binaries do have manual
[  606s] N:   pages after this package and its dependencies are installed, please add a
[  606s] N:   Lintian override.
[  606s] N: 
[  606s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  606s] N:   for details.
[  606s] N: 
[  606s] N:   Visibility: warning
[  606s] N:   Show-Always: no
[  606s] N:   Check: documentation/manual
[  606s] N:   Renamed from: binary-without-manpage
[  606s] N: 
[  606s] N:
[  606s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  606s] N: 
[  606s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  606s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  606s] N:   insensitive).
[  606s] N:   
[  606s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  606s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  606s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  606s] N:   package (not intended for Debian), you can suppress this warning by
[  606s] N:   putting "local" in the version number or "local package" on the first line
[  606s] N:   of the changelog entry.
[  606s] N: 
[  606s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  606s] N:   Developer's Reference for details.
[  606s] N: 
[  606s] N:   Visibility: warning
[  606s] N:   Show-Always: no
[  606s] N:   Check: nmu
[  606s] N:   Renamed from: changelog-should-mention-nmu
[  606s] N: 
[  606s] N:
[  606s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  606s] N: 
[  606s] N:   The package name of a library package should usually reflect the soname of
[  606s] N:   the included library. The package name can determined from the library
[  606s] N:   file name with the following code snippet:
[  606s] N:   
[  606s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  606s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  606s] N: 
[  606s] N:   Visibility: warning
[  606s] N:   Show-Always: no
[  606s] N:   Check: libraries/shared/soname
[  606s] N: 
[  606s] N:
[  606s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  606s] N:
[  606s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  606s] N:
[  606s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61+u064 [debian/changelog:1]
[  606s] N: 
[  606s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  606s] N:   native package). This is to prevent stealing version numbers from the
[  606s] N:   maintainer.
[  606s] N:   
[  606s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  606s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  606s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  606s] N:   package (not intended for Debian), you can suppress this warning by
[  606s] N:   putting "local" in the version number or "local package" on the first line
[  606s] N:   of the changelog entry.
[  606s] N: 
[  606s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  606s] N:   Developer's Reference for details.
[  606s] N: 
[  606s] N:   Visibility: warning
[  606s] N:   Show-Always: no
[  606s] N:   Check: nmu
[  606s] N: 
[  606s] N:
[  606s] W: dde-shell: unknown-section DDE
[  606s] N: 
[  606s] N:   The "Section:" field in this package's control file is not one of the
[  606s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  606s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  606s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  606s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  606s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  606s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  606s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  606s] N:   
[  606s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  606s] N:   "non-free-firmware/" if the package is in the according archive area.
[  606s] N: 
[  606s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  606s] N:   details.
[  606s] N: 
[  606s] N:   Visibility: warning
[  606s] N:   Show-Always: no
[  606s] N:   Check: fields/section
[  606s] N: 
[  606s] N:
[  606s] W: dde-shell-example: unknown-section DDE
[  606s] N:
[  606s] W: libdde-shell: unknown-section DDE
[  606s] N:
[  606s] W: libdde-shell-dev: unknown-section DDE
[  606s] N:
[  606s] W: libdde-shell-dock: unknown-section DDE
[  606s] N:
[  606s] W: libdde-shell-dock-dev: unknown-section DDE
[  607s] Warning: mkbaselibs missing in build root, skipping baselibs

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, deepin-wm

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1. 更新 CMakeLists 的 find_package 要求 TreelandProtocols 0.9
2. 迁移 treelandoutputwatcher 至 treeland_output_manager_v2
3. 迁移 treelandbrightness 从 color_control_v1 到 picture_control_v2
4. primary_output 事件回调从 wl_output* 改为 const QString &uuid
5. get_picture_control 请求从 wl_output* 改为 const QString &uuid
6. 新增 TreelandOutputUuidManager 和 TreelandOutputUuid 建立 wl_output→uuid 映射
7. 主屏匹配方式从指针比较改为 UUID 映射表查找
8. 补充 result 事件处理,含 commit_result 枚举(invalid_output=3)
9. 补充 primary_output_failed 事件处理
10. 缓存 pending primary uuid 处理时序问题
11. 处理屏幕移除并修复 TreelandOutputUuid 生命周期
12. 修复重复的 SPDX-FileCopyrightText 行
13. 更新 debian/control 构建依赖为 treeland-protocols (>= 0.9.0)
14. 提取 TreelandOutputUuidManager/TreelandOutputUuid 到共享头文件 shell/treelandoutputuuid.h,消除 shell 与 osd/brightness 模块间的重复定义

Log: 迁移 treeland output 协议消费者从 v1 到 v2 并适配 UUID 标识,提取共享 UUID 类消除重复代码
Influence: 多屏环境下主屏切换、OSD 亮度显示、屏幕热插拔
Ref: DDE-541
@18202781743
18202781743 force-pushed the agent/bot/9cda2caa2af3 branch from 6422835 to 8de80e0 Compare December 2, 2026 02:27
@18202781743
18202781743 merged commit f6363aa into linuxdeepin:master Dec 2, 2026
10 of 13 checks passed
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.

4 participants