Skip to content

fix: adapt to treeland wallpaper protocol changes#387

Merged
18202781743 merged 1 commit into
linuxdeepin:masterfrom
18202781743:master
Jun 16, 2026
Merged

fix: adapt to treeland wallpaper protocol changes#387
18202781743 merged 1 commit into
linuxdeepin:masterfrom
18202781743:master

Conversation

@18202781743

@18202781743 18202781743 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor
  1. Update treeland-protocols build dependency to require version > 0.5.8
  2. This fixes compatibility with the broken wallpaper protocol interface
  3. The protocol breaking change in treeland requires updated protocol
    headers

Log: Fixed wallpaper display issue with treeland environment

Influence:

  1. Verify wallpaper displays correctly in treeland environment
  2. Test wallpaper switching functionality
  3. Ensure no regression in other desktop environments
  4. Confirm build succeeds with new dependency version

fix: 适配 treeland 壁纸协议变更

  1. 将 treeland-protocols 构建依赖更新至 0.5.8 以上版本
  2. 修复与损坏的壁纸协议接口的兼容性问题
  3. treeland 协议的破坏性变更需要更新协议头文件

Log: 修复treeland环境下壁纸显示问题

Influence:

  1. 验证treeland环境下壁纸是否正确显示
  2. 测试壁纸切换功能
  3. 确保其他桌面环境无回归问题
  4. 确认使用新依赖版本构建成功

Summary by Sourcery

Build:

  • Bump treeland-protocols build dependency in Debian packaging to a version newer than 0.5.8 to match updated protocol headers.

1. Update treeland-protocols build dependency to require version > 0.5.8
2. This fixes compatibility with the broken wallpaper protocol interface
3. The protocol breaking change in treeland requires updated protocol
headers

Log: Fixed wallpaper display issue with treeland environment

Influence:
1. Verify wallpaper displays correctly in treeland environment
2. Test wallpaper switching functionality
3. Ensure no regression in other desktop environments
4. Confirm build succeeds with new dependency version

fix: 适配 treeland 壁纸协议变更

1. 将 treeland-protocols 构建依赖更新至 0.5.8 以上版本
2. 修复与损坏的壁纸协议接口的兼容性问题
3. treeland 协议的破坏性变更需要更新协议头文件

Log: 修复treeland环境下壁纸显示问题

Influence:
1. 验证treeland环境下壁纸是否正确显示
2. 测试壁纸切换功能
3. 确保其他桌面环境无回归问题
4. 确认使用新依赖版本构建成功
@18202781743 18202781743 requested review from BLumia and mhduiy June 16, 2026 06:08
@github-actions

Copy link
Copy Markdown
Contributor
  • 检测到debian目录文件有变更: debian/control

@sourcery-ai

sourcery-ai Bot commented Jun 16, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR updates the Debian packaging dependency on treeland-protocols to require a newer version compatible with the updated/breaking wallpaper protocol, ensuring builds use headers that match the treeland wallpaper interface changes.

File-Level Changes

Change Details Files
Tighten Debian build dependency on treeland-protocols to a version compatible with the new wallpaper protocol.
  • Adjust the treeland-protocols build-dependency version constraint to require > 0.5.8 so builds use updated protocol headers
  • Align packaging metadata with upstream treeland wallpaper protocol changes to avoid interface mismatches during build and runtime
debian/control

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

@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 left some high level feedback:

  • If the wallpaper protocol change affects runtime behavior and not just code generation, consider whether the corresponding runtime dependency (not only Build-Depends) also needs its minimum version bumped in debian/control to avoid mismatched headers vs. library at install time.
  • Double-check that the version constraint syntax you’re using for treeland-protocols in debian/control is valid for all targeted Debian/Ubuntu releases (e.g., using the correct comparison operator and package name as recognized by their archives).
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- If the wallpaper protocol change affects runtime behavior and not just code generation, consider whether the corresponding runtime dependency (not only Build-Depends) also needs its minimum version bumped in debian/control to avoid mismatched headers vs. library at install time.
- Double-check that the version constraint syntax you’re using for treeland-protocols in debian/control is valid for all targeted Debian/Ubuntu releases (e.g., using the correct comparison operator and package name as recognized by their archives).

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

deepin pr auto review

★ 总体评分:100分

■ 【总体评价】

代码准确声明了构建依赖的最低版本要求,有效防止了编译和运行时异常
语法完全正确且符合包管理规范,无任何扣分项

■ 【详细分析】

  • 1.语法逻辑(完全正确)✓

debian/control文件中的版本约束语法(>>0.5.8)完全符合Debian打包规范,表示严格大于0.5.8版本,准确表达了引入新协议接口后的最低依赖要求

建议:保持当前写法,无需修改

  • 2.代码质量(符合规范)✓

针对主干代码引入了0.5.8及以后版本才提供的新协议接口,通过在Build-Depends中增加强版本限制,避免了低版本环境下的编译失败或运行时异常,符合依赖管理的最佳实践

建议:若后续有更精确的最低版本需求,可继续调整版本号

  • 3.代码性能(无性能问题)✓

构建依赖声明仅在软件包构建打包阶段由构建系统解析并拉取依赖,不涉及任何运行时的算法复杂度或系统调用开销

建议:无需优化

  • 4.代码安全(存在0个安全漏洞)✓

漏洞对比统计:新增漏洞 0 个,减少漏洞 0 个,持平 0 个
本次变更为纯配置层面的版本号声明更新,不涉及任何可执行代码、命令解析、内存操作或网络通信,不存在任何攻击面和安全风险

  • 建议:维持现有的安全状态即可

■ 【改进建议代码示例】

--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Build-Depends: debhelper-compat (= 12),
     librsvg2-dev,
     libfreeimage-dev,
     libraw-dev,
-    treeland-protocols,
+    treeland-protocols (>>0.5.8),
     extra-cmake-modules,
     libdtkdata,
     libdtkcore-dev <!nodtk5>,

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, BLumia

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

@18202781743 18202781743 merged commit 7d0a63d into linuxdeepin:master Jun 16, 2026
24 of 28 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.

3 participants