head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.04.26.14.48.56; author vins; state Exp; branches; next ; commitid moBFc13VJVMNKtDG; desc @@ 1.1 log @graphics/colord: update to 1.4.8 # pkgsrc changes * Switch to meson. * Enable gusb and gudev support, among others. * Install bash completions and man pages. * Move some stuff to options.mk to make it optional. * Patch to allow build on systems without libudev support. * Use SUBST instead of patching to replace hard-coded paths. # upstream changes (since 1.3.5) Version 1.4.8 ~~~~~~~~~~~~~ Released: 2025-06-23 New Features: - Add AppStream metainfo XML with hardware provide info (Petter Reinholdtsen) - Add support for -Dsystemd_root_prefix to make local building easier (Richard Hughes) - Install sysusers.d config file if configured user is not root (Luca Boccassi) Bugfixes: - Add the source attribute for each man page (Xi Ruoyao) - Drop component type from AppStream metadata XML to avoid parsing error (Petter Reinholdtsen) - Fix a critical warning when running the self tests (Richard Hughes) - Fix USB scanners not working with RestrictAddressFamilies (Ferdinand Bachmann) - Fix writing to the database with ProtectSystem=strict (Richard Hughes) - Properly set the status to CD_SESSION_STATUS_RUNNING (Laurent Bigonville) - Use g_ascii_strtod instead of atof() (Laurent Bigonville) - Use sqlite3_errmsg() to avoid getting a mutable error message (psykose, Richard Hughes) Version 1.4.7 ~~~~~~~~~~~~~ Released: 2024-01-22 Bugfixes: - Add various hardenings to the systemd service (Johannes Segitz) - Always close the ICC profile when loading fails (Jonas Ådahl) - Avoid destructing LCMS plugin twice with lcms 2.14 (Sam James) - Do not make state files executable in tmpfiles.d/colord.conf (Roshan Shariff) - Fix a double free spotted by Coverity (Richard Hughes) - Fix an error check when parsing the DTP94 data (Richard Hughes) - Fix a -Wincompatible-pointer-types warning (Richard Hughes) - Fix potential crash when reading from broken Huey hardware (Richard Hughes) - Set FILE_OFFSET_BITS explicitly (Sam James) - Use a 64-bit time_t (Sam James) - Use thread context for Gamut Alarm codes (Martin Owens) Version 1.4.6 ~~~~~~~~~~~~~ Released: 2022-02-16 Bugfixes: - Add missing copyright notices (Aaron Plattner) - Add Spyder X entry (Misha Gusarov) - Document where to send patches (Misha Gusarov) - Don't use exact floating point comparisons (Christopher James Halse Rogers) - Drop option for removed reverse engineering tools (Mingcong Bai) - Drop references to hughski.com (Paul Wise) - Fix a small memory leak in sqlite3_exec() (Zero0one1) - Fix typo in device-removed signal documentation (Jeremy Cline) - Make introspection optional in meson (David Michael) Version 1.4.5 ~~~~~~~~~~~~~ Released: 2020-11-02 New Features: - Add cd_icc_create_default_full (Aaron Plattner) - Add cd_icc_utils_get_adaptation_matrix (Aaron Plattner) - Add cd_mat33_is_finite (Aaron Plattner) - Add support for datacolor SpyderX (Richard Brown) Bugfixes: - Check for errors from more sqlite calls (Ross Burton) - Fix cd_icc_load_data() annotation for the data array (Elmar Hoffmann) - Fix cd-sensor-dummy (Christopher James Halse Rogers) - Fix more annotation for data arrays (Elmar Hoffmann) - Fix owner and permissions on existing state files (Will Thompson) - Fix segfault due to dereferencing NULL pointer (Simon Munton) - Make the build reproductible (Laurent Bigonville) - Refactor opening of mapping database and try again if fails (Ross Burton) Version 1.4.4 ~~~~~~~~~~~~~ Released: 2019-03-08 New Features: - Actually install the installed tests (Richard Hughes) - Allow building without the daemon (Richard Hughes) Bugfixes: - Consistently search for spotread in $PATH (Christopher James Halse Rogers) - Don't hard-require spotread to build argyll sensor (Christopher James Halse Rogers) - Fix linker argument checks (Ting-Wei Lan) - Include C header in Colorhug-1.0.gir (Tomasz Miąsko) - Pass -DCD_COMPILATION to gir compiler (maxice8) - Port manpages to xsltproc and DocBook 5 (Jan Tojnar) Version 1.4.3 ~~~~~~~~~~~~~ Released: 2018-04-18 Bugfixes: - Make cd_color_get_blackbody_rgb_full safer (Jan Alexander Steffens) - Update style of Meson build options (Soapux) - Update warning about running daemon as root (Soapux) Version 1.4.2 ~~~~~~~~~~~~~ Released: 2018-03-12 New Features: - Add cd_icc_set_created (Christopher James Halse Rogers) - Add --enable-timestamps option for CREATED header (Jérémy Bobbio) Bugfixes: - Avoid buffer overflow when reading profile_id (Richard Hughes) - Fix the detection of duplicate EDIDs (Richard Hughes) - Make udev hwdb optional by using pnp.ids as fallback (Ting-Wei Lan) - Raise _XOPEN_SOURCE to 700 to enable C99 on FreeBSD (Ting-Wei Lan) - Refactor build directory selection (Jan Tojnar) - Set cd-create-profile date to SOURCE_DATE_EPOCH (Christopher James Halse Rogers) Version 1.4.1 ~~~~~~~~~~~~~ Released: 2017-08-21 Bugfixes: - Add back the meson -Denable-systemd=false configure argument (Richard Hughes) - Add the fallback rules for older PolicyKit versions (Richard Hughes) - Define PATH_MAX if not available (Emmanuele Bassi) - Enable C99 support in meson.build (Philip Withnall) - Include all the files in the GIR target (Richard Hughes) - Include the correct file when using Colord-1.0.gir (Richard Hughes) - Use appropriate feature macro for realpath() (Emmanuele Bassi, Philip Withnall) - Use gio-2.0 when generating the VAPI (Ernestas Kulik) Version 1.4.0 ~~~~~~~~~~~~~ Released: 2017-08-09 New Features: - Port to the Meson build system (Richard Hughes) - Enable Travis CI for Fedora 25 and Debian Stretch (Richard Hughes) - Make PolicyKit, gusb and udev a hard requirement (Richard Hughes) Bugfixes: - Add some experimental tools for the HueyCOLOR sensor as found in the P70 (Richard Hughes) - Conditionally build documentation and man pages (Emmanuele Bassi) - Correctly build the ICC transfer curve for Rec709 (Richard Hughes) - Do not build the examples as part of the regular build (Richard Hughes) - Do not spin the Huey LEDs when the sensor is embedded (Richard Hughes) - Do not use /tmp to create profiles (Richard Hughes) - Fix the version numbers in cd-version.h to reflect reality (Ben Iofel, Emmanuele Bassi) - Get the Huey status before trying to unlock (Richard Hughes) - Use a different Huey unlock code on the W700 laptop (Richard Hughes) @ text @$NetBSD$ Make udev support optional. --- src/cd-sensor.c.orig 2025-06-23 14:06:37.000000000 +0000 +++ src/cd-sensor.c @@@@ -89,7 +89,9 @@@@ typedef struct gchar *serial; gchar *model; gchar *vendor; +#ifdef HAVE_UDEV GUdevDevice *device; +#endif gboolean native; gboolean embedded; gboolean locked; @@@@ -1229,8 +1231,12 @@@@ cd_sensor_register_object (CdSensor *sen const gchar * cd_sensor_get_device_path (CdSensor *sensor) { +#ifdef HAVE_UDEV CdSensorPrivate *priv = GET_PRIVATE (sensor); return g_udev_device_get_sysfs_path (priv->device); +#else + return NULL; +#endif } const gchar * @@@@ -1246,6 +1252,7 @@@@ cd_sensor_open_usb_device (CdSensor *sen gint interface, GError **error) { +#ifdef HAVE_UDEV CdSensorPrivate *priv = GET_PRIVATE (sensor); guint8 busnum; guint8 devnum; @@@@ -1270,6 +1277,10 @@@@ cd_sensor_open_usb_device (CdSensor *sen return NULL; } return g_object_ref (device); +#else + g_set_error_literal (error, 1, 0, "failed: no gudev support"); + return NULL; +#endif } void @@@@ -1283,6 +1294,7 @@@@ cd_sensor_add_cap (CdSensor *sensor, CdS } +#ifdef HAVE_UDEV GUdevDevice * cd_sensor_get_device (CdSensor *sensor) { @@@@ -1411,6 +1423,7 @@@@ cd_sensor_set_from_device (CdSensor *sen /* success */ return TRUE; } +#endif void cd_sensor_set_index (CdSensor *sensor, @@@@ -1656,8 +1669,10 @@@@ cd_sensor_finalize (GObject *object) g_hash_table_unref (priv->options); g_hash_table_unref (priv->metadata); g_object_unref (priv->usb_ctx); +#ifdef HAVE_UDEV if (priv->device != NULL) g_object_unref (priv->device); +#endif G_OBJECT_CLASS (cd_sensor_parent_class)->finalize (object); } @