#837985 argyll: Please announce supported hardware using AppStream

Package:
argyll
Source:
argyll
Description:
Color Management System, calibrator and profiler
Submitter:
Petter Reinholdtsen
Date:
2025-01-18 06:27:01 UTC
Severity:
wishlist
Tags:
#837985#5
Date:
2016-09-16 07:02:04 UTC
From:
To:
Hi.

The argyll package is one of the packages in the Debian archive that
should be proposed for installation when a given hardware dongle is
inserted or available.  Thanks to the appstream system, this can now be
announced in a way other tools can use and act on.  I've written the
isenkram system to ask the current user if hardware specific packages
should be installed when a new dongle is installed or already present on
a machine, and isenkram now uses appstream as one source for hardware to
package mappings.

You can read more about this on my blog,
<URL: http://people.skolelinux.org/pere/blog/Using_appstream_with_isenkram_to_install_hardware_related_packages_in_Debian.html >.

Instructions on how to create the metadata XML file can be found in
<URL: https://wiki.debian.org/AppStream/Guidelines >.

It would be great if you could add an appstream metainfo file to the
argyll package, with content similar to this:

  <?xml version="1.0" encoding="UTF-8"?>
  <component>
   [...]
   <provides>
	<modalias>usb:v0403pF208d*</modalias>
	<modalias>usb:v0670p0001d*</modalias>
	<modalias>usb:v0765pD020d*</modalias>
	<modalias>usb:v0765pD092d*</modalias>
	<modalias>usb:v0765pD094d*</modalias>
	<modalias>usb:v085Cp0200d*</modalias>
	<modalias>usb:v085Cp0300d*</modalias>
	<modalias>usb:v0971p2000d*</modalias>
	<modalias>usb:v0971p2001d*</modalias>
	<modalias>usb:v0971p2003d*</modalias>
	<modalias>usb:v0971p2005d*</modalias>
	<modalias>usb:v0971p2007d*</modalias>
        <modalias>usb:v04DBp005Bd*</modalias>
   </provides>
  </component>

If there are other USB ids also supposed by the package, please add
those too. :)

#837985#10
Date:
2016-09-17 05:39:37 UTC
From:
To:
tags 837985 + upstream
thanks


Hello Petter, 


thank you for spending your time helping to make Debian better with
this bug report. 

Please ask the upstream author for a complete list of all supported
devices. 

Many thanks

CU
Jörg

#837985#17
Date:
2016-09-17 08:13:42 UTC
From:
To:
[Jörg Frings-Fürst]

Waiting for me to contact upstream might take a while, as I need to help
more than 60 packages in Debian missing modalias info to provide such
information.  My first priority is to report it to the Debian
maintainers.  After that I will try to find time to track down upstream
for individual packages.

#837985#22
Date:
2024-05-26 07:01:20 UTC
From:
To:
Here is a patch adding Appstream metainfo XML to the package, based on
the GIT repository master branch.  I have not been in touch with
upstream to verify if this is the complete list of USB IDs.  It is
probably a good idea to pass the com.argyllcms.metainfo.xml upstream for
use by every Linux distribution.

diff --git a/debian/argyll.install b/debian/argyll.install
index 621cf78..00060d5 100644
--- a/debian/argyll.install
+++ b/debian/argyll.install
@@ -1,2 +1,3 @@
 usb/55-Argyll.rules usr/lib/udev/rules.d/
 usr/bin/*
+debian/com.argyllcms.metainfo.xml usr/share/metainfo
diff --git a/debian/com.argyllcms.metainfo.xml b/debian/com.argyllcms.metainfo.xml
new file mode 100644
index 0000000..3b38fca
--- /dev/null
+++ b/debian/com.argyllcms.metainfo.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+  <id>com.argyllcms</id>
+  <metadata_license>MIT</metadata_license>
+  <name>argyll</name>
+  <summary>Color Management System, calibrator and profiler</summary>
+  <description>
+    <p>Argyll is an experimental, open source, ICC compatible color
+    management system. It supports accurate ICC profile creation for
+    scanners, CMYK printers, film recorders and calibration and
+    profiling of displays.  Spectral sample data is supported,
+    allowing a selection of illuminants observer types, and paper
+    fluorescent whitener additive compensation.  Profiles can also
+    incorporate source specific gamut mappings for perceptual and
+    saturation intents. Gamut mapping and profile linking uses the
+    CIECAM02 appearance model, a unique gamut mapping algorithm, and a
+    wide selection of rendering intents. It also includes code for the
+    fastest portable 8 bit raster color conversion engine available
+    anywhere, as well as support for fast, fully accurate 16 bit
+    conversion. Device color gamuts can also be viewed and compared
+    using a VRML viewer.</p>
+  </description>
+  <provides>
+    <modalias>usb:v0403pF208d*</modalias>
+    <modalias>usb:v0670p0001d*</modalias>
+    <modalias>usb:v0765pD020d*</modalias>
+    <modalias>usb:v0765pD092d*</modalias>
+    <modalias>usb:v0765pD094d*</modalias>
+    <modalias>usb:v085Cp0200d*</modalias>
+    <modalias>usb:v085Cp0300d*</modalias>
+    <modalias>usb:v0971p2000d*</modalias>
+    <modalias>usb:v0971p2001d*</modalias>
+    <modalias>usb:v0971p2003d*</modalias>
+    <modalias>usb:v0971p2005d*</modalias>
+    <modalias>usb:v0971p2007d*</modalias>
+    <modalias>usb:v04DBp005Bd*</modalias>
+  </provides>
+</component>
diff --git a/debian/copyright b/debian/copyright
index 833c7e8..cfe16a6 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -147,6 +147,10 @@ Copyright:
     2021-2023 Dmitry Smirnov <onlyjob@debian.org>
 License: GPL-3+

+Files: debian/com.argyllcms.metainfo.xml
+Copyright: 2024 Petter Reinholdtsen <pere@debian.org>
+License: MIT
+
 License: AGPL-3
                      GNU AFFERO GENERAL PUBLIC LICENSE
                         Version 3, 19 November 2007

#837985#29
Date:
2025-01-14 08:02:42 UTC
From:
To:
[Petter Reinholdtsen]

I have been in touch with upstream, and he is adding the XML there.

#837985#34
Date:
2025-01-18 06:28:59 UTC
From:
To:
Dear Dmitry,

Given that the developer is adding the XML file to the upstream source,
is there any chance to have my patch applied to an unstable upload any
time soon?

I am trying to get rid of the hardcoded list of hardware mappings from
the isenkram package, and argyll is one of the few listed that is still
missing AppStream metadata XML with hardware information.