给AOSC提交代码

给AOSC提交代码

方式

  1. 纯手工提交, 即无法使用AOSC自动化流程提交代码的方式

  2. 自动化提交, 即借助AOSC自动化流程提交的方式

纯手工提交

refer to: https://blog.hanlin.press/2025/08/AOSC-Newbie-Contribution-Guide/

自动化提交

实际上是半自动化

首先自行修改代码, 比如我已完成如下修改:

commit 8af820e5482e74e01458903607b7d3743c61b493
Author: Ayden Meng <aydenmeng@yeah.net>
Date:   Wed Jan 28 20:50:21 2026 +0800

    keepassxc: update to v2.7.11

    rename dep botan-3 to botan, yubikey-personalization to yubikey-manager

    Signed-off-by: Ayden Meng <aydenmeng@yeah.net>

diff --git a/app-utils/keepassxc/autobuild/defines b/app-utils/keepassxc/autobuild/defines
index e7e7aa1d94..c9b3c1f24d 100644
--- a/app-utils/keepassxc/autobuild/defines
+++ b/app-utils/keepassxc/autobuild/defines
@@ -2,7 +2,7 @@ PKGNAME=keepassxc
 PKGSEC=utils
 PKGDES="A cross-platform community-driven port for Keepass"
 PKGDEP="argon2 libgcrypt libsodium qrencode qt-5 quazip x11-lib \
-        yubikey-personalization zlib botan"
+        yubikey-manager zlib botan"
 BUILDDEP="asciidoctor minizip"

 CMAKE_AFTER="-DWITH_XC_ALL=ON \
diff --git a/app-utils/keepassxc/autobuild/patches/0001-Fedora-fix-GNOME-quirks-on-Wayland-sessions.patch b/app-utils/keepassxc/autobuild/patches/0001-Fedora-fix-GNOME-quirks-on-Wayland-sessions.patch
index 0a7b59c873..09a1e774c8 100644
--- a/app-utils/keepassxc/autobuild/patches/0001-Fedora-fix-GNOME-quirks-on-Wayland-sessions.patch
+++ b/app-utils/keepassxc/autobuild/patches/0001-Fedora-fix-GNOME-quirks-on-Wayland-sessions.patch
@@ -1,6 +1,6 @@
 --- a/src/main.cpp
 +++ b/src/main.cpp
-@@ -48,8 +48,26 @@ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
+@@ -49,8 +49,26 @@ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
  #include <windows.h>
  #endif

@@ -26,4 +26,4 @@
 +
      QT_REQUIRE_VERSION(argc, argv, QT_VERSION_STR)

- #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
+     QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
diff --git a/app-utils/keepassxc/spec b/app-utils/keepassxc/spec
index 6115c7a3af..1d1dc13cb4 100644
--- a/app-utils/keepassxc/spec
+++ b/app-utils/keepassxc/spec
@@ -1,4 +1,4 @@
-VER=2.7.10
+VER=2.7.11
 SRCS="https://github.com/keepassxreboot/keepassxc/releases/download/${VER}/keepassxc-${VER}-src.tar.xz"
-CHKSUMS="sha256::5ce76d6440986c24842585f019d5f3cadc166fa71fc911a4fe97b8bbc4819dfa"
+CHKSUMS="sha256::ce76b02d396369726aaf695bb46b79c0cc41a0c4f9ec806bde1233cb22e6ef62"
 CHKUPDATE="anitya::id=15656"

此时补丁完成, 我需要按照https://wiki.aosc.io/developer/packaging/topic-based-maintenance-guideline/提交分支, 将本地修改作为topic提交至其他分支:

git push origin HEAD:keepassxc-2.7.11

并填写pr信息:https://github.com/AOSC-Dev/aosc-os-abbs/pull/14645

然后在buildit机器人https://t.me/aosc_buildit_bot发送自动化命令:

/login
/start
# update to v2.7.11是pr的标题
# keepassxc-2.7.11是远程topic分支名
# keepassxc是包名
/openpr keepassxc: update to v2.7.11;keepassxc-2.7.11;keepassxc
# 14645是pr链接中最后的数字, 即pr编号
/pr 14645

如此,即可等待机器人编译测试, 及maintainer/reviewer们审核, 通过后补丁将会自动合入

最后更新于