From patchwork Mon Nov 30 00:52:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106327 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23236.1795999969345138265 for ; Sun, 29 Nov 2026 16:52:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=nh6zLiey; spf=pass (domain: konsulko.com, ip: 209.85.160.170, mailfrom: scott.murray@konsulko.com) Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-55d03bfd477so112398081cf.1 for ; Sun, 29 Nov 2026 16:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999968; x=1796604768; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=GDC6k3i9BmW5UKUsV3R+VUoZFHhlGEnxzfpT5nWiUkc=; b=nh6zLieyrX5FHvH/6E/s/jdHqGgsvsea3SO3dMPgejizSpGxjQxutFiA+SdxIt4/bf tdcGJLJgk27NksubdvjEXKyYAkO59rRoHDufmDXkGv89fO0F3USk3W0zy7zvX+F4XWli 3aD+i4ppKOn0VubRNFnvMKnwsd6vdBrSVZuvU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999968; x=1796604768; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=GDC6k3i9BmW5UKUsV3R+VUoZFHhlGEnxzfpT5nWiUkc=; b=m/V0JRqYAXvI6/7tRiqb4Wch7f8o3A/3aNw3TYC/7FUO1Y7lexqGl6tSxy3quHB1/4 Jz0fgqlroWCPJBQe6Bi0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3NsN2XwMbpRCL6pmZtn4LSu w9nlFRk4NTuIbKEzcdRdw2d7tWExFrWgkyaov9gOdcyZvP1wsoXIuxebK+6CayzRspQ== X-Received: by 2002:ac8:6101:0:b0:55d:32ed:38be with SMTP id d75a77b69052e-55d76aad556mr612169841cf.56.1795999968184; Sun, 29 Nov 2026 16:52:48 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:47 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 09/10] librsvg: make ptest symlink creation idempotent Date: Sun, 29 Nov 2026 19:52:27 -0500 Message-ID: <784732215a0ed33c322499df2446492e80a934ba.1795997683.git.scott.murray@konsulko.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:52 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5596 From: Trevor Gamblin do_install_ptest:append() for librsvg was creating a link for 'ptest' outside of PTEST_PATH, so it wasn't being removed during cleanup and would remain present on rebuild. This created a self-referencing link, leading to errors like: | 1509: follow_symlinks=follow_symlinks) | 1510: | 1511:def get_terminal_size(fallback=(80, 24)): | 1512: """Get the size of the terminal window. |Exception: OSError: [Errno 40] Too many levels of symbolic links: '/home/tgamblin/workspace/ypbuilds/riscv-maint/build/tmp/work/x86-64-v3-oe-linux/librsvg/2.63.4/image/usr/lib/librsvg/ptest/ptest' | |ERROR: Logfile of failure stored in: /home/tgamblin/workspace/ypbuilds/riscv-maint/build/tmp/work/x86-64-v3-oe-linux/librsvg/2.63.4/temp/log.do_install_ptest_base.2703564 |ERROR: Task (/home/tgamblin/workspace/ypbuilds/riscv-maint/layers/openembedded-core/recipes-gnome/librsvg/librsvg_2.63.4.bb:do_install_ptest_base) failed with exit code '1' Treat the link name as a normal file if it's a directory ('-n'; i.e. don't follow the link) and force-overwrite it ('-f') so that the link gets recreated on subsequent runs. AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Trevor Gamblin Signed-off-by: Mathieu Dubois-Briand (adapted from oe-core commit ae48606b96535839faa919765721b0de3a22a7d9) Signed-off-by: Scott Murray --- recipes-gnome/librsvg/librsvg_2.63.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-gnome/librsvg/librsvg_2.63.4.bb b/recipes-gnome/librsvg/librsvg_2.63.4.bb index 6e88270..a6fd4ce 100644 --- a/recipes-gnome/librsvg/librsvg_2.63.4.bb +++ b/recipes-gnome/librsvg/librsvg_2.63.4.bb @@ -87,7 +87,7 @@ do_install_ptest:append() { # the api tests look for the required files in rsvg folder, so simulate it # with a symlink that points to the current folder ln -s . ${D}${PTEST_PATH}/rsvg - ln -s ptest ${D}${PTEST_PATH}/../rsvg + ln -snf ptest ${D}${PTEST_PATH}/../rsvg } PACKAGES =+ "librsvg-gtk rsvg"