Skip to content

fix: add UOS build support and update dependencies#138

Merged
lzwind merged 2 commits intolinuxdeepin:masterfrom
dengzhongyuan365-dev:master
Mar 31, 2026
Merged

fix: add UOS build support and update dependencies#138
lzwind merged 2 commits intolinuxdeepin:masterfrom
dengzhongyuan365-dev:master

Conversation

@dengzhongyuan365-dev
Copy link
Copy Markdown
Contributor

@dengzhongyuan365-dev dengzhongyuan365-dev commented Mar 31, 2026

  • Introduced a new option to build for UOS, enabling Sogou IM integration.
  • Updated CMakeLists.txt to define UOS-specific configurations.
  • Modified debian/control to include lsb-release as a build dependency.
  • Enhanced debian/rules to conditionally set UOS build flags.
  • Updated relevant source files to handle UOS-specific identifiers.

Log: 添加UOS构建支持并更新依赖项

bug: https://pms.uniontech.com/bug-view-355273.html

Summary by Sourcery

Add optional UOS build support and adjust Sogou IM integration identifiers while keeping Deepin behavior as default.

New Features:

  • Introduce a BUILD_UOS CMake option to build with UOS-specific Sogou IM integration.

Enhancements:

  • Adjust Sogou IM and configuration application identifiers to switch between Deepin and UOS variants at build time.
  • Restructure the QML config option repeater so configuration items are registered directly under the container for proper management.

- Introduced a new option to build for UOS, enabling Sogou IM integration.
- Updated CMakeLists.txt to define UOS-specific configurations.
- Modified debian/control to include lsb-release as a build dependency.
- Enhanced debian/rules to conditionally set UOS build flags.
- Updated relevant source files to handle UOS-specific identifiers.

Log: 添加UOS构建支持并更新依赖项

bug: https://pms.uniontech.com/bug-view-355273.html
@github-actions
Copy link
Copy Markdown

  • 检测到debian目录文件有变更: debian/control,debian/rules

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Mar 31, 2026

Reviewer's Guide

Adds optional UOS build support (switchable via CMake and Debian rules), updates Sogou IM identifiers for UOS vs Deepin builds, fixes QML config item registration so options are direct children of the container, and adjusts Debian packaging to support conditional UOS builds.

Flow diagram for QML config option registration with DccRepeater

flowchart TD
    Root[DccObject root] --> Container[containerItem]
    Container --> Header[headerItem]

    Root -->|configOptions| Repeater[DccRepeater optionRepeater]
    Root -->|loading flag| Repeater

    Repeater -->|for each modelData| DccObjectItem[DccObject delegate]
    DccObjectItem -->|parentName = containerItem_name| ParentBinding[Parent-child relation under containerItem]
    DccObjectItem -->|visible = headerItem_expanded| Visibility[Option visibility]

    DccObjectItem --> LoaderPage[Loader page]

    LoaderPage -->|modelData_type Boolean| BooleanComp[booleanComponent D_Switch]
    LoaderPage -->|modelData_type Integer| IntegerComp[integerComponent D_SpinBox]
    LoaderPage -->|modelData_type String| StringComp[stringComponent D_TextField]
    LoaderPage -->|modelData_type List/Key| KeyComp[keyComponent KeySequenceDisplay]
    LoaderPage -->|modelData_type Enum| EnumComp[enumComponent D_ComboBox]

    BooleanComp -->|onCheckedChanged| ProxySet1[dccData_fcitx5ConfigProxy_setValue]
    IntegerComp -->|onValueChanged| ProxySet2[dccData_fcitx5ConfigProxy_setValue]
    StringComp -->|onTextChanged| ProxySet3[dccData_fcitx5ConfigProxy_setValue]
    KeyComp -->|onFocusChanged / onKeysChanged| ProxySet4[dccData_fcitx5ConfigProxy_setValue]
    EnumComp -->|onCurrentIndexChanged| ProxySet5[dccData_fcitx5ConfigProxy_setValue]

    ParentBinding --> Registration[DccManager registers options correctly]
Loading

File-Level Changes

Change Details Files
Fix QML config option registration so DccManager can discover option pages correctly while still supporting multiple editor types.
  • Replaced the Loader-wrapped DccRepeater with a DccRepeater that is a direct child of containerItem and controlled via visible: !root.loading.
  • Kept per-type editor components (Boolean, Integer, String, List
Key, Enum) as Components selected via a Loader’s sourceComponent switch, preserving existing behavior.
  • Ensured keybinding handling logic (focus handling, keyName synchronization, and value updates) remains intact within the new delegate structure.
  • Introduce UOS‑specific Sogou IM identifiers and wire them to a build-time switch.
    • Added a BUILD_UOS preprocessor switch around Sogou IM/addon/configurer identifiers, defining UOS-specific D-Bus/app IDs when enabled and keeping Deepin IDs as the default.
    • Updated the Deepin configure app ID to the new com.sogou.ime.ng.fcitx5.deepin.configurer form for non-UOS builds.
    • Mirrored the BUILD_UOS-based identifier selection in both the current fcitx5 config tool worker and the legacy imsettingwindow implementation.
    src/dcc-fcitx5configtool/operation/fcitx5configtool.cpp
    src-old/src/dcc-module/imsettingwindow.cpp
    Add a build-time option to target UOS and adjust packaging to drive it from Debian builds.
    • Introduced a BUILD_UOS CMake option (default Off) that defines -DBUILD_UOS and emits a diagnostic message indicating which Sogou IM flavor is being targeted.
    • Extended debian/rules to detect UOS builds and pass -DBUILD_UOS=ON (or equivalent) to CMake conditionally.
    • Updated debian/control to add lsb-release as a build dependency so the rules file can detect the target distribution at build time.
    CMakeLists.txt
    debian/control
    debian/rules

    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

    @github-actions
    Copy link
    Copy Markdown

    • 敏感词检查失败, 检测到1个文件存在敏感词
    详情
    {
        "debian/control": [
            {
                "line": "Homepage: https://github.com/fcitx/fcitx5-configtool",
                "line_number": 33,
                "rule": "S35",
                "reason": "Url link | a8f1620546"
            },
            {
                "line": "Vcs-Git: https://salsa.debian.org/input-method-team/fcitx5-configtool.git",
                "line_number": 34,
                "rule": "S35",
                "reason": "Url link | 0a7eeebf00"
            },
            {
                "line": "Vcs-Browser: https://salsa.debian.org/input-method-team/fcitx5-configtool",
                "line_number": 35,
                "rule": "S35",
                "reason": "Url link | aebea2f291"
            }
        ]
    }

    Copy link
    Copy Markdown

    @sourcery-ai sourcery-ai Bot left a comment

    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:

    • The Sogou IM identifiers and configure App IDs are now defined in multiple places (e.g., fcitx5configtool.cpp and imsettingwindow.cpp); consider centralizing these into a shared header or config to avoid future mismatches between Deepin and UOS builds.
    • In DetailConfigItem.qml, replacing the asynchronous Loader with a directly visible DccRepeater may change when delegates are instantiated and could affect perceived loading performance; it might be worth double‑checking that this doesn’t introduce UI lag or registration timing issues for large configOption sets.
    Prompt for AI Agents
    Please address the comments from this code review:
    
    ## Overall Comments
    - The Sogou IM identifiers and configure App IDs are now defined in multiple places (e.g., fcitx5configtool.cpp and imsettingwindow.cpp); consider centralizing these into a shared header or config to avoid future mismatches between Deepin and UOS builds.
    - In DetailConfigItem.qml, replacing the asynchronous Loader with a directly visible DccRepeater may change when delegates are instantiated and could affect perceived loading performance; it might be worth double‑checking that this doesn’t introduce UI lag or registration timing issues for large configOption sets.

    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.

    @github-actions
    Copy link
    Copy Markdown

    TAG Bot

    TAG: 6.0.28
    EXISTED: no
    DISTRIBUTION: unstable

    @github-actions
    Copy link
    Copy Markdown

    • 检测到debian目录文件有变更: debian/control,debian/rules

    lzwind
    lzwind previously approved these changes Mar 31, 2026
    @github-actions
    Copy link
    Copy Markdown

    • 敏感词检查失败, 检测到1个文件存在敏感词
    详情
    {
        "debian/control": [
            {
                "line": "Homepage: https://github.com/fcitx/fcitx5-configtool",
                "line_number": 33,
                "rule": "S35",
                "reason": "Url link | a8f1620546"
            },
            {
                "line": "Vcs-Git: https://salsa.debian.org/input-method-team/fcitx5-configtool.git",
                "line_number": 34,
                "rule": "S35",
                "reason": "Url link | 0a7eeebf00"
            },
            {
                "line": "Vcs-Browser: https://salsa.debian.org/input-method-team/fcitx5-configtool",
                "line_number": 35,
                "rule": "S35",
                "reason": "Url link | aebea2f291"
            }
        ]
    }

    - update version to 6.0.28
    
    log: update version to 6.0.28
    @github-actions
    Copy link
    Copy Markdown

    • 检测到debian目录文件有变更: debian/control,debian/rules

    @github-actions
    Copy link
    Copy Markdown

    • 敏感词检查失败, 检测到1个文件存在敏感词
    详情
    {
        "debian/control": [
            {
                "line": "Homepage: https://github.com/fcitx/fcitx5-configtool",
                "line_number": 33,
                "rule": "S35",
                "reason": "Url link | a8f1620546"
            },
            {
                "line": "Vcs-Git: https://salsa.debian.org/input-method-team/fcitx5-configtool.git",
                "line_number": 34,
                "rule": "S35",
                "reason": "Url link | 0a7eeebf00"
            },
            {
                "line": "Vcs-Browser: https://salsa.debian.org/input-method-team/fcitx5-configtool",
                "line_number": 35,
                "rule": "S35",
                "reason": "Url link | aebea2f291"
            }
        ]
    }

    @deepin-ci-robot
    Copy link
    Copy Markdown

    [APPROVALNOTIFIER] This PR is NOT APPROVED

    This pull-request has been approved by: dengzhongyuan365-dev, lzwind

    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

    @lzwind lzwind merged commit 3ae7d11 into linuxdeepin:master Mar 31, 2026
    12 of 15 checks passed
    @deepin-bot
    Copy link
    Copy Markdown

    deepin-bot Bot commented Mar 31, 2026

    TAG Bot

    Tag created successfully

    📋 Tag Details
    • Tag Name: 6.0.28
    • Tag SHA: 1af9a36aed3c271a1dd5157b651efb0e3a4bfac4
    • Commit SHA: c3fb040b359fb8049e73c6f74b8009c4ea0ca562
    • Tag Message:
      Release deepin-fcitx5configtool-plugin 6.0.28
      
      
    • Tagger:
      • Name: dengzhongyuan365-dev
    • Distribution: unstable

    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