From patchwork Sun Oct 9 00:25:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allan McRae X-Patchwork-Id: 2088 Return-Path: Delivered-To: patchwork@archlinux.org Received: from mail.archlinux.org [2a01:4f9:c010:3052::1] by patchwork.archlinux.org with IMAP (fetchmail-6.4.33) for (single-drop); Sun, 09 Oct 2022 00:26:19 +0000 (UTC) Received: from mail.archlinux.org by mail.archlinux.org with LMTP id eBvLCisVQmMjsgEAK+/4rw (envelope-from ) for ; Sun, 09 Oct 2022 00:26:19 +0000 Received: from lists.archlinux.org (lists.archlinux.org [IPv6:2a01:4f9:c010:9eb4::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.archlinux.org (Postfix) with ESMTPS id 07AFE1554C82; Sun, 9 Oct 2022 00:26:17 +0000 (UTC) Authentication-Results: mail.archlinux.org; dkim=pass header.d=archlinux.org header.s=dkim-rsa header.b=u8ltHUBo; dkim=pass header.d=archlinux.org header.s=dkim-ed25519 header.b=02leR38N; dmarc=pass (policy=none) header.from=archlinux.org; spf=pass (mail.archlinux.org: domain of pacman-dev-bounces@lists.archlinux.org designates 2a01:4f9:c010:9eb4::1 as permitted sender) smtp.mailfrom=pacman-dev-bounces@lists.archlinux.org Received: from lists.archlinux.org (localhost [IPv6:::1]) by lists.archlinux.org (Postfix) with ESMTP id B7225533B9B; Sun, 9 Oct 2022 00:26:12 +0000 (UTC) Received: from mail.archlinux.org (mail.archlinux.org [IPv6:2a01:4f9:c010:3052::1]) by lists.archlinux.org (Postfix) with ESMTPS id 47044533B92 for ; Sun, 9 Oct 2022 00:26:09 +0000 (UTC) From: Allan McRae DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=archlinux.org; s=dkim-rsa; t=1665275168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Dq51oKlLO9QMW79xAe7XdD8rNTIdwTgkrbh+jL9lMW8=; b=u8ltHUBo0IQUhXbwAhEi33wkQ7PGvM/D3ajv41QSAW6Rh3YlhcKNpXAif4lU6XwfGxOkXZ y1z4nIwkLSrWZapP/RcXBnTXYfHJPJY+tobU4cC3RgxbjHLHWG4nYkozxVT6yP8YW4hZNy st0yN1plOjFeSOSAxkUBTWGsLSxUufAprleSrbcOKgvslh0z+3tkUWAvsWPt/kzKJMZobl Fz9UEXO/eMKeIOGvGsNdthjj4L5VFyT6Aylj7AeofuO88ejzHJv1MkFCPaTFVfV03t1JNV dnhymGPw8+kTR83bTzidK9nEMsIpe04MIIhU27KjD8i/+/qHQYCUEyAf6pK00ABHF0xQN7 MBC8FDjehayWjvybYwwW+4BeWPEYVatW6Ce0tvkuJcO3m5ETzdUBNLMfqZjahaNkS28BG/ OCSl31zwvQ6+xIQ8Xvig9XHDKY+bR3LFv/9lLTdZHhngkhJUnztVTnKHAtQ8j73jm7Onyc HQMFmbdGQg2U+RKVkqeb7HEy8vyCSq3VS86RlI9+2gS9EJsNO7bxImIjmNy1shXRq7Uv+x iZFp6FrCJ6me5SV2ky+wqOro2F++Kdv48RwelARhbJmnSVtT4Z0hQuJ1B9rVP8kMJ1N5to iA0DEo6q0CZyXY6SOEyKBZilJ6JO7O5e1uIwyochsoMHYeneOhWPg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=archlinux.org; s=dkim-ed25519; t=1665275168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Dq51oKlLO9QMW79xAe7XdD8rNTIdwTgkrbh+jL9lMW8=; b=02leR38NaFjA+WxkT7XqJSafQgt6FST0VKEg7Gv6cjZuxipffxFFtHTDtsT2hs3F0cWbyT zllKBEvQuSHE7LCQ== To: pacman-dev@lists.archlinux.org Subject: [PATCH] Always create directories outputted from debugedit in debug packages Date: Sun, 9 Oct 2022 10:25:52 +1000 Message-Id: <20221009002552.2301186-1-allan@archlinux.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Message-ID-Hash: QT2EQCV4SGAKRVVRK37UX2SIVI5YT4SM X-Message-ID-Hash: QT2EQCV4SGAKRVVRK37UX2SIVI5YT4SM X-MailFrom: allan@archlinux.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.5 Precedence: list List-Id: Discussion list for pacman development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Rspamd-Queue-Id: 07AFE1554C82 X-Rspamd-Server: mail.archlinux.org X-Spamd-Result: default: False [-1.61 / 15.00]; DWL_DNSWL_LOW(-1.00)[archlinux.org:dkim]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[archlinux.org,none]; RCVD_IN_DNSWL_MED(-0.40)[2a01:4f9:c010:9eb4::1:from,2a01:4f9:c010:3052::1:received]; R_DKIM_ALLOW(-0.20)[archlinux.org:s=dkim-rsa,archlinux.org:s=dkim-ed25519]; MAILLIST(-0.20)[mailman]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f9:c010:9eb4::1:c]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[pacman-dev@lists.archlinux.org]; ARC_NA(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f9::/32, country:DE]; NEURAL_HAM(-0.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FROM_NEQ_ENVFROM(0.00)[allan@archlinux.org,pacman-dev-bounces@lists.archlinux.org]; DKIM_TRACE(0.00)[archlinux.org:+]; MIME_TRACE(0.00)[0:+]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[] The debugedit call to list all source files may include things like build/<...>. We have been filtering out these <> files, but they can point to the build directory which is important to be available for relative source paths stored in the .debug files. Signed-off-by: Allan McRae --- scripts/libmakepkg/tidy/strip.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in index 91c66f13..17526a34 100644 --- a/scripts/libmakepkg/tidy/strip.sh.in +++ b/scripts/libmakepkg/tidy/strip.sh.in @@ -72,8 +72,8 @@ strip_file() { while IFS= read -r t; do file="${srcdir}/${t}" dest="${dbgsrc}/${t}" - if [[ -f "$file" ]] && ! [[ -f $dest ]]; then - mkdir -p "${dest%/*}" + mkdir -p "${dest%/*}" + [[ -f "$file" ]]; then cp -- "$file" "$dest" fi done < <(source_files "$binary")