Appdata metainfo XML not in main pkg, breaking Appstream software install

Bug #2061664 reported by Boyuan Yang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fcitx5-chinese-addons (Debian)
Fix Released
Unknown
fcitx5-chinese-addons (Ubuntu)
New
Undecided
Unassigned

Bug Description

Upstream bug report: https://github.com/fcitx/fcitx5-chinese-addons/issues/165
Debian bug report: https://bugs.debian.org/1069070

In order to make sure that fcitx5-chinese-addons are correctly installed using
Appstream-based GUI software such as KDE Discover or GNOME Software, the Appdata
metainfo XML file shall not be placed in a separate package. It should be
installed in the main (meta)package.

Changed in fcitx5-chinese-addons (Debian):
status: Unknown → Fix Released
Revision history for this message
Boyuan Yang (hosiet) wrote :

I am now looking to fix LP: #2061664 in the Ubuntu 24.04 LTS release, ideally before its release.

I have prepared a source package for noble targeting the fix. You may find the source package at: https://launchpad.net/~hosiet/+archive/ubuntu/personal/+sourcefiles/fcitx5-chinese-addons/5.1.3-1ubuntu1/fcitx5-chinese-addons_5.1.3-1ubuntu1.dsc . Also see https://launchpad.net/~hosiet/+archive/ubuntu/personal/+packages for how this package builds in my PPA.

Now, I am looking for a sponsor (e.g., from ~ubuntu-sponsors) to review and upload my package to noble. Thanks!

Revision history for this message
Boyuan Yang (hosiet) wrote :
Download full text (3.3 KiB)

(resending info with ~ubuntu-sponsors notified)

I am now looking to fix LP: #2061664 in the Ubuntu 24.04 LTS release, ideally before its release. The patches for LP: #2061664 comes from Debian Sid.

I have prepared a source package for noble targeting the fix. You may find the source package at: https://launchpad.net/~hosiet/+archive/ubuntu/personal/+sourcefiles/fcitx5-chinese-addons/5.1.3-1ubuntu1/fcitx5-chinese-addons_5.1.3-1ubuntu1.dsc . Also see https://launchpad.net/~hosiet/+archive/ubuntu/personal/+packages for how this package builds in my PPA.

Full debdiff (for your convenience):

=====================

diff -Nru fcitx5-chinese-addons-5.1.3/debian/changelog fcitx5-chinese-addons-5.1.3/debian/changelog
--- fcitx5-chinese-addons-5.1.3/debian/changelog 2024-03-30 20:06:52.000000000 -0400
+++ fcitx5-chinese-addons-5.1.3/debian/changelog 2024-04-15 15:43:44.000000000 -0400
@@ -1,3 +1,17 @@
+fcitx5-chinese-addons (5.1.3-1ubuntu1) noble; urgency=medium
+
+ * debian/fcitx5-chinese-addons.install: Move the installation of
+ Appdata metainfo XML file from the separate fcitx5-chinese-addons-data
+ package to the main fcitx5-chinese-addons metapackage to help the
+ package handling via Appstream-based package management software
+ such as KDE Discover and GNOME Software.
+ (Closes: #1069070) (LP: #2061664)
+ * debian/control: Add fcitx5-chinese-addons Breaks+Replaces on
+ fcitx5-chinese-addons-data (<< ${binary:Version}) for a smooth
+ transition.
+
+ -- Boyuan Yang <email address hidden> Mon, 15 Apr 2024 15:43:44 -0400
+
 fcitx5-chinese-addons (5.1.3-1build3) noble; urgency=medium

   * No-change rebuild for CVE-2024-3094
diff -Nru fcitx5-chinese-addons-5.1.3/debian/control fcitx5-chinese-addons-5.1.3/debian/control
--- fcitx5-chinese-addons-5.1.3/debian/control 2024-03-15 00:20:58.000000000 -0400
+++ fcitx5-chinese-addons-5.1.3/debian/control 2024-04-15 15:43:44.000000000 -0400
@@ -46,6 +46,10 @@
 Recommends:
  fcitx5,
  fcitx5-module-lua,
+Breaks:
+ fcitx5-chinese-addons-data (<< ${binary:Version}),
+Replaces:
+ fcitx5-chinese-addons-data (<< ${binary:Version}),
 Enhances:
  fcitx5,
 Description: Chinese-related addon for fcitx5 (metapackage)
diff -Nru fcitx5-chinese-addons-5.1.3/debian/fcitx5-chinese-addons-data.install fcitx5-chinese-addons-5.1.3/debian/fcitx5-chinese-addons-data.install
--- fcitx5-chinese-addons-5.1.3/debian/fcitx5-chinese-addons-data.install 2023-11-03 18:16:26.000000000 -0400
+++ fcitx5-chinese-addons-5.1.3/debian/fcitx5-chinese-addons-data.install 2024-04-15 15:43:44.000000000 -0400
@@ -2,4 +2,3 @@
 usr/share/fcitx5/lua/imeapi/extensions/pinyin.lua
 usr/share/icons/hicolor/*/apps/fcitx-chn.png
 usr/share/icons/hicolor/*/apps/org.fcitx.Fcitx5.fcitx-chn.png
-usr/share/metainfo/org.fcitx.Fcitx5.Addon.ChineseAddons.metainfo.xml
diff -Nru fcitx5-chinese-addons-5.1.3/debian/fcitx5-chinese-addons.install fcitx5-chinese-addons-5.1.3/debian/fcitx5-chinese-addons.install
--- fcitx5-chinese-addons-5.1.3/debian/fcitx5-chinese-addons.install 1969-12-31 19:00:00.000000000 -0500
+++ fcitx5-chinese-addons-5.1.3/debian/fcitx5-chinese-addons.install 2024-04-15 15:43:44.000000000 -04...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.