From 84d73eb5df7355de2cb761602b0f69ab2c1a5bb9 Mon Sep 17 00:00:00 2001 From: Yogesh Tyagi Date: Thu, 23 Jul 2026 15:36:22 +0800 Subject: [PATCH] xdotool: fix do_install failure due to missing pc.sh The 4.20251130.1 upgrade switched SRC_URI from a git snapshot to the GitHub release tarball. That tarball ships a prebuilt libxdo.pc but does not include pc.sh, even though the Makefile still carries the rule: libxdo.pc: VERSION sh pc.sh $(VERSION) $(INSTALLLIB) $(INSTALLINCLUDE) > libxdo.pc do_install runs "make install", which pulls in the installpc target. Because libxdo.pc depends on VERSION, whenever a fresh unpack leaves VERSION with an mtime newer than or equal to libxdo.pc, make considers the shipped libxdo.pc stale and re-runs pc.sh, failing with: sh: 0: cannot open pc.sh: No such file make: *** [Makefile:153: libxdo.pc] Error 2 The mtime ordering after unpack is not deterministic, so the failure is intermittent and typically shows up after a re-fetch. On top of that, the prebuilt libxdo.pc in the tarball hard-codes /usr/local paths, so even when the race does not trigger, an incorrect .pc gets installed. Ship the upstream pc.sh alongside the recipe and place it in ${S} so the installpc rule regenerates libxdo.pc with the correct libdir/includedir from EXTRA_OEMAKE. This fixes both the build failure and the wrong paths. Signed-off-by: Yogesh Tyagi Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/xdotool/xdotool/pc.sh | 17 +++++++++++++++++ .../xdotool/xdotool_4.20251130.1.bb | 12 +++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-graphics/xdotool/xdotool/pc.sh diff --git a/meta-oe/recipes-graphics/xdotool/xdotool/pc.sh b/meta-oe/recipes-graphics/xdotool/xdotool/pc.sh new file mode 100644 index 0000000000..da7c81d75d --- /dev/null +++ b/meta-oe/recipes-graphics/xdotool/xdotool/pc.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +VERSION=$1 +LIBDIR=$2 +INCLUDEDIR=$3 + +cat <