Skip to content

[Deepin-Kernel-SIG] [linux 6.18.y] [Deepin] scripts: adapt to UOS/deepin scripting#1517

Open
opsiff wants to merge 1 commit intodeepin-community:linux-6.18.yfrom
opsiff:linux-6.18.y-2025-02-28-package
Open

[Deepin-Kernel-SIG] [linux 6.18.y] [Deepin] scripts: adapt to UOS/deepin scripting#1517
opsiff wants to merge 1 commit intodeepin-community:linux-6.18.yfrom
opsiff:linux-6.18.y-2025-02-28-package

Conversation

@opsiff
Copy link
Member

@opsiff opsiff commented Feb 28, 2026

Update scripts for use with build_kernel.sh.

[ Port to v6.18: remove useless logic and only remove such linux-{headers/image/libc}-dev_"-gx12x-xx.xx.xx.xx to -xx.xx.xx.xx".deb ] (cherry picked from commit 83e7cdc)

Summary by Sourcery

Update Debian packaging script mkdebian to adapt kernel build scripts for Deepin/UOS integration and simplify handling of generated linux-* dev .deb packages.

Enhancements:

  • Adjust Debian packaging logic in mkdebian for compatibility with build_kernel.sh and Deepin/UOS-specific package naming.
  • Remove obsolete logic around filtering linux-{headers,image,libc}-dev Debian packages, keeping only the minimal handling needed for the new naming scheme.

Update scripts for use with build_kernel.sh.

Signed-off-by: Lugang He <helugang@uniontech.com>
Signed-off-by: Mingcong Bai <baimingcong@uniontech.com>
[ Port to v6.18: remove useless logic and only remove
such linux-{headers/image/libc}-dev_"-gx12x-xx.xx.xx.xx to -xx.xx.xx.xx".deb ]
(cherry picked from commit 83e7cdc)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
@sourcery-ai
Copy link

sourcery-ai bot commented Feb 28, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the Debian packaging helper script mkdebian to better integrate with Deepin/UOS build_kernel.sh workflow and simplify version-mangling logic for linux-* dev packages when porting to v6.18.

File-Level Changes

Change Details Files
Align mkdebian packaging script with Deepin/UOS build_kernel.sh usage and simplify removal/renaming logic for linux-{headers,image,libc}-dev .deb packages for v6.18.
  • Adjust version or suffix handling to drop Deepin-specific "-gx12x-xx.xx.xx.xx" style segments from linux-{headers,image,libc}-dev package names, normalizing them to "-xx.xx.xx.xx".
  • Remove now-unnecessary conditional or legacy logic around package name/script handling that is not needed for the v6.18 Deepin build flow.
  • Wire script behavior to match expectations of build_kernel.sh (e.g., argument parsing, output paths, or artifact naming) in the Deepin kernel build system.
scripts/package/mkdebian

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-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from opsiff. For more information see the Code Review Process.

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

Copy link

@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 reviewed your changes and they look great!


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.

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