From patchwork Mon Sep 14 12:08:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 98185 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6FDBC88E50 for ; Mon, 14 Sep 2026 12:08:24 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.18492.1789387695044150545 for ; Mon, 14 Sep 2026 05:08:15 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=ksFYMFZm; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EF3321576 for ; Mon, 14 Sep 2026 05:08:10 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 39DA83F86F for ; Mon, 14 Sep 2026 05:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1789387694; bh=MgjXOlIuqwvKD4X7/SSXSGVf37KgW7PTW8e432vB9To=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ksFYMFZmEcZuWqHWdv5hvZeI8iIiqOy5IGe9Lz5zLDNhv+EWZDD2Yc39gybf1oFWG JM5g5eQP1W5+iD6QdDKtrh1Dpl6Hm7ksA4xZPk4V5FnisDshrp2uuYNQFbH1cQzBiE UEqIzrsgOLEDTUkPkZrlNvj0jSU3xJq3q/cJN978= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 4/4] xdg-utils: upgrade 1.1.3 -> 1.2.1 Date: Mon, 14 Sep 2026 13:08:06 +0100 Message-ID: <20260914120807.2162673-4-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260914120807.2162673-1-ross.burton@arm.com> References: <20260914120807.2162673-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 14 Sep 2026 12:08:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245769 Upstream release notes: * xdg-icon-resource: Fix for incorrect syntax * better support for Plasma6, Deepin, LXQt * partial support for WSL / flatpak's * Numerous other fixes and improvements Signed-off-by: Ross Burton --- .../xdg-utils/xdg-utils/CVE-2022-4055.patch | 76 ++++++++++--------- ...{xdg-utils_1.1.3.bb => xdg-utils_1.2.1.bb} | 4 +- 2 files changed, 41 insertions(+), 39 deletions(-) rename meta/recipes-extended/xdg-utils/{xdg-utils_1.1.3.bb => xdg-utils_1.2.1.bb} (90%) diff --git a/meta/recipes-extended/xdg-utils/xdg-utils/CVE-2022-4055.patch b/meta/recipes-extended/xdg-utils/xdg-utils/CVE-2022-4055.patch index 85f32035fcd..6adce1fa40b 100644 --- a/meta/recipes-extended/xdg-utils/xdg-utils/CVE-2022-4055.patch +++ b/meta/recipes-extended/xdg-utils/xdg-utils/CVE-2022-4055.patch @@ -15,12 +15,14 @@ Upstream-Status: Submitted [https://gitlab.freedesktop.org/xdg/xdg-utils/-/issue Signed-off-by: Richard Purdie CVE: CVE-2022-4055 +--- + scripts/xdg-email.in | 89 -------------------------------------------- + 1 file changed, 89 deletions(-) - -diff --git c/scripts/xdg-email.in w/scripts/xdg-email.in -index 3614776..8bdb5a9 100644 ---- c/scripts/xdg-email.in -+++ w/scripts/xdg-email.in +diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in +index 73898a4..4fe901e 100644 +--- a/scripts/xdg-email.in ++++ b/scripts/xdg-email.in @@ -30,58 +30,6 @@ _USAGE #@xdg-utils-common@ @@ -29,21 +31,21 @@ index 3614776..8bdb5a9 100644 -{ - local THUNDERBIRD MAILTO NEWMAILTO TO CC BCC SUBJECT BODY ATTACH - THUNDERBIRD="$1" -- MAILTO=$(echo "$2" | sed 's/^mailto://') +- MAILTO="$(echo "$2" | sed 's/^mailto://')" - echo "$MAILTO" | grep -qs "^?" - if [ "$?" = "0" ] ; then -- MAILTO=$(echo "$MAILTO" | sed 's/^?//') +- MAILTO="$(echo "$MAILTO" | sed 's/^?//')" - else -- MAILTO=$(echo "$MAILTO" | sed 's/^/to=/' | sed 's/?/\&/') +- MAILTO="$(echo "$MAILTO" | sed 's/^/to=/' | sed 's/?/\&/')" - fi - -- MAILTO=$(echo "$MAILTO" | sed 's/&/\n/g') -- TO=$(/bin/echo -e $(echo "$MAILTO" | grep '^to=' | sed 's/^to=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }')) -- CC=$(/bin/echo -e $(echo "$MAILTO" | grep '^cc=' | sed 's/^cc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }')) -- BCC=$(/bin/echo -e $(echo "$MAILTO" | grep '^bcc=' | sed 's/^bcc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }')) -- SUBJECT=$(echo "$MAILTO" | grep '^subject=' | tail -n 1) -- BODY=$(echo "$MAILTO" | grep '^body=' | tail -n 1) -- ATTACH=$(/bin/echo -e $(echo "$MAILTO" | grep '^attach=' | sed 's/^attach=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }' | sed 's/,$//')) +- MAILTO="$(echo "$MAILTO" | sed 's/&/\n/g')" +- TO="$(/bin/echo -e "$(echo "$MAILTO" | grep '^to=' | sed 's/^to=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }')")" +- CC="$(/bin/echo -e "$(echo "$MAILTO" | grep '^cc=' | sed 's/^cc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }')")" +- BCC="$(/bin/echo -e "$(echo "$MAILTO" | grep '^bcc=' | sed 's/^bcc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }')")" +- SUBJECT="$(echo "$MAILTO" | grep '^subject=' | tail -n 1)" +- BODY="$(echo "$MAILTO" | grep '^body=' | tail -n 1)" +- ATTACH="$(/bin/echo -e "$(echo "$MAILTO" | grep '^attach=' | sed 's/^attach=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }' | sed 's/,$//')")" - - if [ -z "$TO" ] ; then - NEWMAILTO= @@ -79,54 +81,51 @@ index 3614776..8bdb5a9 100644 - open_kde() { - if [ -n "$KDE_SESSION_VERSION" ] && [ "$KDE_SESSION_VERSION" -ge 5 ]; then -@@ -135,15 +83,6 @@ open_kde() + local kreadconfig profile client +@@ -139,14 +87,6 @@ open_kde() open_gnome3() { - local client - local desktop -- desktop=`xdg-mime query default "x-scheme-handler/mailto"` -- client=`desktop_file_to_binary "$desktop"` -- echo $client | grep -E 'thunderbird|icedove' > /dev/null 2>&1 -- if [ $? -eq 0 ] ; then +- desktop="$(xdg-mime query default "x-scheme-handler/mailto")" +- client="$(desktop_file_to_binary "$desktop")" +- case "$client" in *thunderbird*|*icedove*) - run_thunderbird "$client" "$1" -- fi +- esac - if gio help open 2>/dev/null 1>&2; then DEBUG 1 "Running gio open \"$1\"" gio open "$1" -@@ -164,13 +103,6 @@ open_gnome3() +@@ -167,12 +107,6 @@ open_gnome3() open_gnome() { - local client -- client=`gconftool-2 --get /desktop/gnome/url-handlers/mailto/command | cut -d ' ' -f 1` || "" -- echo $client | grep -E 'thunderbird|icedove' > /dev/null 2>&1 -- if [ $? -eq 0 ] ; then +- client="$(gconftool-2 --get /desktop/gnome/url-handlers/mailto/command | cut -d ' ' -f 1)" +- case "$client" in *thunderbird*|*icedove*) - run_thunderbird "$client" "$1" -- fi +- esac - if gio help open 2>/dev/null 1>&2; then DEBUG 1 "Running gio open \"$1\"" gio open "$1" -@@ -236,15 +168,6 @@ open_flatpak() +@@ -263,14 +197,6 @@ open_flatpak() open_generic() { - local client - local desktop -- desktop=`xdg-mime query default "x-scheme-handler/mailto"` -- client=`desktop_file_to_binary "$desktop"` -- echo $client | grep -E 'thunderbird|icedove' > /dev/null 2>&1 -- if [ $? -eq 0 ] ; then +- desktop="$(xdg-mime query default "x-scheme-handler/mailto")" +- client="$(desktop_file_to_binary "$desktop")" +- case "$client" in *thunderbird*|*icedove*) - run_thunderbird "$client" "$1" -- fi +- esac - xdg-open "$1" - local ret=$? - -@@ -369,21 +292,6 @@ while [ $# -gt 0 ] ; do + exit $? + } +@@ -372,21 +298,6 @@ while [ $# -gt 0 ] ; do shift ;; @@ -135,7 +134,7 @@ index 3614776..8bdb5a9 100644 - exit_failure_syntax "file argument missing for --attach option" - fi - check_input_file "$1" -- file=`readlink -f "$1"` # Normalize path +- file="$(xdg_realpath "$1")" # Normalize path - if [ -z "$file" ] || [ ! -f "$file" ] ; then - exit_failure_file_missing "file '$1' does not exist" - fi @@ -148,3 +147,6 @@ index 3614776..8bdb5a9 100644 -*) exit_failure_syntax "unexpected option '$parm'" ;; +-- +2.43.0 + diff --git a/meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb b/meta/recipes-extended/xdg-utils/xdg-utils_1.2.1.bb similarity index 90% rename from meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb rename to meta/recipes-extended/xdg-utils/xdg-utils_1.2.1.bb index 7141a72dd53..f76735a91ba 100644 --- a/meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb +++ b/meta/recipes-extended/xdg-utils/xdg-utils_1.2.1.bb @@ -7,13 +7,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a5367a90934098d6b05af3b746405014" DEPENDS = "xmlto-native libxslt-native" -SRC_URI = "git://gitlab.freedesktop.org/xdg/xdg-utils.git;protocol=https;branch=master;tag=v${PV} \ +SRC_URI = "git://gitlab.freedesktop.org/xdg/xdg-utils.git;protocol=https;branch=v1.2.X;tag=v${PV} \ file://0001-Reinstate-xdg-terminal.patch \ file://0001-Don-t-build-the-in-script-manual.patch \ file://CVE-2022-4055.patch \ " -SRCREV = "159fc37075db2decf446f453fe1a796da6921aad" +SRCREV = "356c380ad6fecc9ce6bea1f6a77986ba67402c80" # Needs brokensep as this doesn't use automake inherit autotools-brokensep