Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1674458lqs; Sat, 15 Jun 2024 22:35:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVu0YfkBq8/4kJIeD4PJOd4nk3YX/W088Szogl/68mVYZfjMJbc+ThWncMvZrTKVVCRDMxoXF3v23C4XOwEzlxZXl2Jym0jJ8GnhB8w1Q== X-Google-Smtp-Source: AGHT+IGz//kxbWOxqOylQViVDfliv72JLoqfk5DEgXsYS/SozbQOF97IqsjIjqR1A9M1hNBeu+zw X-Received: by 2002:a05:6808:1529:b0:3d2:15f8:b4e7 with SMTP id 5614622812f47-3d24e8ad163mr8911922b6e.5.1718516106556; Sat, 15 Jun 2024 22:35:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718516106; cv=pass; d=google.com; s=arc-20160816; b=JC5vYfg97Mya18tpQ4mQEx8/hv+ZjeOecWBVg71NI27DlbIOp46BMPTwa5XFuGilSJ PyLn4n/JEko/kPhkOMyy33RjcunNLf+zBQQZB5ghGh15cE/5MARZQWwtbVv9XgRRjQhg rWCImJPB5dNpzntI5u7YbgNM4zyF50kd7ghzkHnoiNE7EyOggVYcI+jZMd7kUX3A00CA wjnrL4QeCVlttuLHqcX7vAFknnHJfY50JZrlcnh8xwRZxibohticgL1dqWDfJCpVDsbs bBn99AGIpb6JkhYqalr3BYI0Fb4zUJA+wEuINiE5D7QMCMubyk3H47p3K/dMlIfTYStD sdNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:organization:date:cc:to :reply-to:from:subject:message-id; bh=/cswm2yqJ1Kkti5O0nuSfxvJCa/xjaasneoTc7kKdlw=; fh=xq3VXpP+fSgK5FyZMtXcgFt4TXJglNIoWD1ZLidcs2A=; b=qivaPnA5ysbEaWvD3S3VSm1mI2FhgxGDZn8j+SQVrVjYSocUesSbTJr25VsPak1Ex/ 2dnNi3JmQxpiniVzNQnRzFji2/jqxLtrV3IoINtOl8vCKv48csDdNA+zxvVu/l3yeUwC h0MPju1qPRK+QOFPJnqCgeOOHPm9rBaaE8GRhGIE4u+g7o2oEjH103dxzrsipc9StLGi Ym+X/QnR3L9KPZYkrUgMpJeUPd4YHTVi1vJy29+PSUr4+0lJ7CWx0D7K61dYD+Z9howc CLmVtPW05S3Mbb/2wKUSwX0mlY4DdWMa3KNgzEu0YgMaIpGmAzx0RSJH6+5zf7zLevZo 3THQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-216121-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216121-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee558b667si6587253a12.664.2024.06.15.22.35.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 22:35:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216121-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-216121-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216121-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2D793282F6F for ; Sun, 16 Jun 2024 05:35:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BEB116D4DF; Sun, 16 Jun 2024 05:34:59 +0000 (UTC) Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7270049631; Sun, 16 Jun 2024 05:34:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718516098; cv=none; b=fJaWRJP2XmecLjhBwYieoDa61PUMZpcbMwRwNJsBYSxvdtd+XQv8IxnQbI75Bz+Gaa32eSEumiQd2pY8TDm8BGiIn3zibXCvKu7Y0bcH+J+OCauvQm2Xwi+bfv2ZXDPUihhK7kvUx6otCIRwU6upUC+iJJKa0N19+LDoJRW9h3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718516098; c=relaxed/simple; bh=6T7Zgs2Fb67kihkAIlmvUw1gsgq+mHyGb3Rak3gAOyI=; h=Message-ID:Subject:From:To:Cc:Date:Content-Type:MIME-Version; b=LjuqL40l5ZCsX1P6GymyQ1W7xQIOckG72+I5roT6VpsLugTot7T3pbtxFL0yWU8OkcCB5Xsw0OsfSbhZwP++NJTg1x5R+cLoB2dBc5/lO5/UesPCEHE7tav2hOBez+7RZh6ZVfkq7diSFc99MsprA1/OEyDS1Iw5l4DPJaiTV8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mastodonlabs.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.219.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mastodonlabs.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-dfa4876a5bbso3241711276.2; Sat, 15 Jun 2024 22:34:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718516096; x=1719120896; h=mime-version:user-agent:content-transfer-encoding:organization:date :cc:to:reply-to:from:subject:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=/cswm2yqJ1Kkti5O0nuSfxvJCa/xjaasneoTc7kKdlw=; b=lq2fxUzFrSulEWQcSK9wmzb7lJnxVSHsHeB/K3h8YBgBLqj5LXp2YmT3BMxTs26pcU QmNvgYLQGbiymLfvG62L7iBCQ2CNcFgZIQ03Iyw7d3+Xse2wc9o1XMfEBIuA8rKZfUyq tFGhN7nFj5RTBYZc00CZmnpSJ8qB73jXdu5oTOeWR3LlgjyRiQTI4AuRiMdX4ef53uBc 8gkEYcDQyDbcniLjBEtHJbyj+2gRghtNN9mRYv8nZtbGyyAajXdFBUBipyp7SnCCcSMv 7vXzB9ggQJcAPX8aiq+7zcDWZ+H9bkHujhMjlxjzkqniHkHXZy4vr5QIR30e1Fpjjjjz dUkg== X-Gm-Message-State: AOJu0YwLBGWpgDxwW6kc+qWHn58r+xvb152yT9MLftgwtPEN1R0NuSUj By86UiGrcKaDprBfKx/rUYHe4uMx5PLS/tZC8FptpVIo6njFGs984FnBCtpm X-Received: by 2002:a25:c50c:0:b0:df4:8847:7876 with SMTP id 3f1490d57ef6-dff153cd047mr6394928276.31.1718516095715; Sat, 15 Jun 2024 22:34:55 -0700 (PDT) Received: from ?IPv6:2601:681:c00:66f::1500? ([2601:681:c00:66f::1500]) by smtp.googlemail.com with ESMTPSA id 3f1490d57ef6-dff04a4dc39sm1234560276.45.2024.06.15.22.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 22:34:55 -0700 (PDT) Message-ID: <9811ea10d647ff687e140976ec50c5ebbe5ecbe5.camel@mastodonlabs.com> Subject: [PATCH 1/1] kbuild: Fix build target deb-pkg: ln: failed to create hard link From: Thayne Harbaugh Reply-To: thayne@mastodonlabs.com To: linux-kernel@vger.kernel.org Cc: linux-kbuild@vger.kernel.org, Masahiro Yamada Date: Sat, 15 Jun 2024 23:34:54 -0600 Organization: Mastodon Labs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Thayne Harbaugh The make deb-pkg target calls debian-orig which attempts to either hard link the source .tar to the build-output location or copy the source .tar to the build-output location. The test to determine whether to ln or cp is incorrectly expanded by Make and consequently always attempts to ln the source .tar. This fix corrects the escaping of '$' so that the test is expanded by the shell rather than by Make and appropriately selects between ln and cp. Signed-off-by: Thayne Harbaugh --- scripts/Makefile.package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.package b/scripts/Makefile.package index 38653f3e8108..bf016af8bf8a 100644 --- a/scripts/Makefile.package +++ b/scripts/Makefile.package @@ -103,7 +103,7 @@ debian-orig: private version =3D $(shell dpkg-parsechan= gelog -S Version | sed 's/- debian-orig: private orig-name =3D $(source)_$(version).orig.tar$(debian-o= rig-suffix) debian-orig: mkdebian-opts =3D --need-source debian-orig: linux.tar$(debian-orig-suffix) debian - $(Q)if [ "$(df --output=3Dtarget .. 2>/dev/null)" =3D "$(df --output=3Dt= arget $< 2>/dev/null)" ]; then \ + $(Q)if [ "$$(df --output=3Dtarget .. 2>/dev/null)" =3D "$$(df --output= =3Dtarget $< 2>/dev/null)" ]; then \ ln -f $< ../$(orig-name); \ else \ cp $< ../$(orig-name); \ --=20 2.43.0