From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 08 Jan 2025 21:32:08 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oo1-f62.google.com (mail-oo1-f62.google.com [209.85.161.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 508KW6hi023485 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 8 Jan 2025 21:32:07 +0100 Received: by mail-oo1-f62.google.com with SMTP id 006d021491bc7-5f33beef685sf165527eaf.0 for ; Wed, 08 Jan 2025 12:32:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1736368321; cv=pass; d=google.com; s=arc-20240605; b=eD9rR5XwPkzlUq6z3u3OIatzkAeSQZ/awYv9NfmF81hiRPFCZmD5q43oI8xngOyLrX qYrp/E+rjw8FivdO6hcvD0/Xj0IHngiSHU4mmk2zB+kN/N97lvNUMm+wYyJ2cpPeoNdV JtF2x4tWL+E77IC6b57ByLbVjkWlh8J5ESFOeyjXBiZI8eYfgRCUnHpTu7eOMKg8y4Yv RYEqS3JZxJ9y+6hWEs5ihC03Xxn+92rdtvlV2IiJGML1BkGseEemNlKhGu801lOjZeaH fGbmD8XwC3cnqvNHWC3a6EvBrTo++EZCXe2OcMvsChCm3o26g3ljDFGzZXzTNhq+wgHI SpGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature :dkim-signature; bh=ln/IRc43s3mVCCWocVdhi8yc4C9lddJCJlN5v+iqkWE=; fh=Aq4z8RdplPoNl9DmeCqcYPRm6widJtAKGX555UcmjpA=; b=aAtDFRJBXMCXYWLJ/ir9zq3aBgrZbrAjVZiz2FdPAz1YLtQr1EuMSrPVOtSjAPGasS Tc32vI2hyR0pXSy5RV5E8dhFSn08day1aVQYxsyZpI1PIP/C3NIyMKxieDsQXTDFf76r bLAJmwu0YWKalfjYY3oS2N20bTqsQdhcMti3NXNKdMHFcXYou/O4ZqlqQSiUSIZOIbZB mfX0Xe4ToiopU7+busx1OHQF+GOhmd+rIDNAruLSkR9qyATwL15CS5Hq3Guutphjoudq lIQJJg1xlBzXsbJQaPAPLsC73XnZ8GpYNFZ2ZkRXkFyXZSU1dU9q6Pogy+sbykBdU6km LNjQ==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NG8tenEV; spf=pass (google.com: domain of amy.fong.3142@gmail.com designates 2607:f8b0:4864:20::136 as permitted sender) smtp.mailfrom=amy.fong.3142@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1736368321; x=1736973121; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=ln/IRc43s3mVCCWocVdhi8yc4C9lddJCJlN5v+iqkWE=; b=XmZJox+de7ycVRpQkitJWV841aefZnppA0yPH53YbN6BGIe1GTCkwYEksPNILfjIQH zt7m3F+s8FLj9Dd3viWcGDYhJ02CFLYGgB2YQlQBuE0rVRHwQHjrcxRNI49oO1BJNQ0Y 5zkj78HbKfjAIfiaglVKc0QHdAIAgbRQ3eSCb6TeWaepdUR+zj9Pru0OYzEgUYyyLmD1 HqSYEBnghbqW5sd8Hk5Wz3XlCTpt7XcwnbiyuL9lZAHZ9WeyQ+vH8cRJj6g1xgubQeak e4/M26E6pZQpLabXIO9UfJYE+CBZJUF8NmXuFxdelJqVMJW5ODmCXINJFVk4GZjZotE8 xoMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736368321; x=1736973121; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ln/IRc43s3mVCCWocVdhi8yc4C9lddJCJlN5v+iqkWE=; b=C6kOiROrebLKTkUKD/1GM+koaiZIPwpl1Dl9pTOjzHhW4JHbZfG0zhTREHL8hFgUkN fpeHc+l7sP0gPV6S2ON7NFX7IudQN2ANUSB+GexDhRq7CAzPW/QqFxxEXIQJLAdZtHJr 8qWialrXsVszTiziQWiFm0a+UbETHkBbD7TcuPfVz5FiTJX9vgRFfqeBKQsP5VUlkp1V 1lB0NstZwLcBP4xJZIx+OQtnY2auCEz5sKteWna3OtvfibbhKF130LUpYkxHF7UyH7DK kp6FbjMY5PaRE9i9dzkDQYL/pT5zVui/5iYoQKHrnnQ0yXcH+c/Ihsd3caZwmzvptXzZ UpNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736368321; x=1736973121; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=ln/IRc43s3mVCCWocVdhi8yc4C9lddJCJlN5v+iqkWE=; b=qzRA+dnHLSAmyQ6clvkQ1bi4vXU7zJLe45hCQr0RYfM6BAr2SRik13RWcwHeNSOvi0 ntuRerk2vXa51e5rNMoJxC71WRVFofB3pKhsDNyL67P4sRPRVnXEcYh8O14GQ5kKxM7w 6a2+pmJ6gAGfG9SWU/GRJlt/R8N4wC+OJC7PXv6cG0b83EKZ6iMUtwQ42NvWSWG57pBZ mpSnOY5jWZHxtcKYF5ta1V8pf+ReKF47A32SFby2/fhkL006kVgdMm+aRcwxiXaSsYi5 /vto1+UfhJO2LgvTy72oMLY0UcBLlpSvEGKiBszGG9ry+a86aw+U2T0VNjT5qHebOH+x Tglg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUmy4Tj4o6Rk/W5A32VGSFTXhecfsWUfeRc+kIayFGlh7v+CCulZ4R1z8OCSM8AJFWYcDYT@ilbers.de X-Gm-Message-State: AOJu0YxLB25VAlUmwIyPsOv8dBGclaN+SKI3v/Q2muKV0yA2ynSC8T1J iqEh9SaUM8VA9HYvP6gj8Bt4w1ICOl6rGCxlTL7wwLZjIPfeqZUD X-Google-Smtp-Source: AGHT+IG9iJvGrQiToKsvLBr/iZ9zTpr8FADlm0ei9jBG4ybpCqIPB46wFus+wmdid0hXIE5UMXy+tQ== X-Received: by 2002:a05:6820:4b05:b0:5ee:db2e:9f76 with SMTP id 006d021491bc7-5f730714472mr1983629eaf.0.1736368321102; Wed, 08 Jan 2025 12:32:01 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a4a:d0b7:0:b0:5f2:c466:6c54 with SMTP id 006d021491bc7-5f88055ba37ls85223eaf.0.-pod-prod-01-us; Wed, 08 Jan 2025 12:32:00 -0800 (PST) X-Received: by 2002:a05:6808:130f:b0:3e7:b2b4:ee7a with SMTP id 5614622812f47-3ef2edd334bmr2622274b6e.26.1736368320524; Wed, 08 Jan 2025 12:32:00 -0800 (PST) Received: by 2002:a05:6808:2908:b0:3eb:31af:367e with SMTP id 5614622812f47-3ef2e309d33msb6e; Wed, 8 Jan 2025 07:58:03 -0800 (PST) X-Received: by 2002:a05:6808:3c8d:b0:3eb:6bf8:800a with SMTP id 5614622812f47-3ef2ec432c2mr1824986b6e.3.1736351883324; Wed, 08 Jan 2025 07:58:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736351883; cv=none; d=google.com; s=arc-20240605; b=eTdBcCxpj9b+hKdcJpcKxC8CptOyC0KMiPKxujQrTN6kignYSx7jNJlF5JeKum0uvl VU50gJvhDnyaBJRD/+ET9TS8jvYol2waZtsumQC0XyxIB/1sdHWsTT1I1/4RpX26DPlp zaaqO0yxjzuyoPiFF0l5RhkPg7uYRXxCcIYBqKDZs5XoUHXTC6O+PTy2qHrDKe9tNT4B 9AYBThLXShnjMy0LTGB6yuF1BEpAJFz4FNlFGyN1FVdfBxveDlXybqe6a5//eZDxAZ+p QFXpq265iPd+h7Eh57vcM8cpIaC23DQ0dN11JIC/BfKh5No1ltb2HH8aUsg6hv6Kh0Zn xgAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=VBG1BVR+O6SugMQ2L3/5gkc0YRgi63+MXWAcdzkN6bM=; fh=6eKlLgnlKQ4ILN0acbSKKd4RVnzWmr/MVaRMEap718s=; b=CTiiCJZ6s+e8oyPy78j6gmul8eCcXihA0E18d+LUoRf6R+EOSTZENjeDOEW3skmrwa QppVvgNImsRusD7xZbNiHiNJisPAdXwoYgiwrge4qCFExV1ekzF1MVBVoIo2BInQGxW0 XekkSCmbXWd+iyXdcVf72bjZb8bJ83rDrvNH5PKFSSs7fpE7wjmsC3gNyVklnQbd5w4G syzUoEKtgtrxmLTbHptH3BkCJotY9BonHZQvk4rvxDNi9+4t3HFybhzoMuVQxfoYjEEL g/Qk4PyoIdIXyD8rRg0robVNOSBNO0Wuv0maVMjyMYFL9gzT1j83fix5wzsL435g29A+ CTVg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NG8tenEV; spf=pass (google.com: domain of amy.fong.3142@gmail.com designates 2607:f8b0:4864:20::136 as permitted sender) smtp.mailfrom=amy.fong.3142@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Received: from mail-il1-x136.google.com (mail-il1-x136.google.com. [2607:f8b0:4864:20::136]) by gmr-mx.google.com with ESMTPS id 5614622812f47-3ece2171134si1555773b6e.0.2025.01.08.07.58.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jan 2025 07:58:03 -0800 (PST) Received-SPF: pass (google.com: domain of amy.fong.3142@gmail.com designates 2607:f8b0:4864:20::136 as permitted sender) client-ip=2607:f8b0:4864:20::136; Received: by mail-il1-x136.google.com with SMTP id e9e14a558f8ab-3c6b0be237cso127819915ab.2 for ; Wed, 08 Jan 2025 07:58:03 -0800 (PST) X-Gm-Gg: ASbGncsH+4U4Ww7YiRW/8omY3jWWn+LOUtxyH2B6awBqbGwLsKxW4IJlVxDsM6Z13Ru tZk9Pch5UDc2pXplI39IiVgxHtd2JBSnuyHRa6ALFE9nSgdkHH+e4RdzeqRsqH84fxpt8GH5+oS +232BoLtTheBz3E+VGNoOOOFHi3STX6+2ib4I5kRPr1Dfy8gZga16B2jgtLlrLl7bEvIQeVITrw EX0iTal36yoCQ4QsfPL9jeHgtn5fd6G+7KzgnLZUvKCrWP6Gw5GGucHh+6kbw110JA4DcMPUYHM ltQtV3ZWGowRDYNSKaZs1wjeMzqnzd60Vp94 X-Received: by 2002:a05:6e02:b44:b0:3a7:15aa:3fcc with SMTP id e9e14a558f8ab-3ce3a86a440mr32566295ab.1.1736351882716; Wed, 08 Jan 2025 07:58:02 -0800 (PST) Received: from cat.. (198-84-204-84.cpe.teksavvy.com. [198.84.204.84]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3c0e47d6cdcsm108196255ab.71.2025.01.08.07.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2025 07:58:02 -0800 (PST) From: Amy Fong To: isar-users@googlegroups.com Cc: Amy Fong Subject: [PATCH 2/2] error directory creation Date: Wed, 8 Jan 2025 10:57:04 -0500 Message-Id: <20250108155703.10376-2-amy.fong.3142@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250108155703.10376-1-amy.fong.3142@gmail.com> References: <20250108155703.10376-1-amy.fong.3142@gmail.com> MIME-Version: 1.0 X-Original-Sender: amy.fong.3142@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NG8tenEV; spf=pass (google.com: domain of amy.fong.3142@gmail.com designates 2607:f8b0:4864:20::136 as permitted sender) smtp.mailfrom=amy.fong.3142@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: fziLh6PiEMkK From: Amy Fong On a build, create a directory that gets populated with temp directories of recipes that fail to build. The variable ERROR_DIR defines this directory, defaults to ${TOPDIR}/errorLogs Signed-off-by: Amy Fong --- bitbake/lib/bb/build.py | 10 ++++++++++ bitbake/lib/bb/runqueue.py | 6 ++++++ meta/conf/bitbake.conf | 2 ++ 3 files changed, 18 insertions(+) diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 44d08f5c..1c8ad032 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -25,6 +25,7 @@ import bb import bb.msg import bb.process import bb.progress +import shutil from io import StringIO from bb import data, event, utils @@ -103,6 +104,15 @@ class TaskFailed(TaskBase): def __init__(self, task, fn, logfile, metadata, errprinted = False): self.errprinted = errprinted super(TaskFailed, self).__init__(task, fn, logfile, metadata) + d = metadata + errorDir = d.getVar('ERROR_DIR') + if errorDir is not None: + pkg = d.getVar("PF") + newtmp = os.path.join(errorDir, pkg) + if os.path.exists(newtmp): + shutil.rmtree(newtmp) + tempdir = d.getVar('T') + shutil.copytree(tempdir, newtmp) class TaskFailedSilent(TaskBase): """Task execution failed (silently)""" diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index bc7e1817..a77749c3 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -25,6 +25,7 @@ from multiprocessing import Process import shlex import pprint import time +import shutil bblogger = logging.getLogger("BitBake") logger = logging.getLogger("BitBake.RunQueue") @@ -1334,6 +1335,11 @@ class RunQueue: self.rqexe = None self.worker = {} self.fakeworker = {} + errorDir = self.cfgData.getVar('ERROR_DIR') + if errorDir is not None: + if os.path.exists(errorDir): + shutil.rmtree(errorDir) + os.mkdir(errorDir) @staticmethod def send_pickled_data(worker, data, name): diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index ef408faa..f345b9cb 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -200,3 +200,5 @@ PATCHRESOLVE ?= "noop" PREFERRED_PROVIDER_bootstrap-host ??= "isar-mmdebstrap-host" PREFERRED_PROVIDER_bootstrap-target ??= "isar-mmdebstrap-target" + +ERROR_DIR ?= "${TOPDIR}/errorLogs" -- 2.39.5 -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250108155703.10376-2-amy.fong.3142%40gmail.com.