Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1775353rdf; Sun, 5 Nov 2023 13:56:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPctqWPPSbpetTx2MgXzZ7LY19ycQ2OJYr0RPyctHzB9vzrrh/0cQsaGVPgXdkU9PJsyrj X-Received: by 2002:a05:6a00:10d2:b0:68a:3ba3:e249 with SMTP id d18-20020a056a0010d200b0068a3ba3e249mr32229814pfu.16.1699221415259; Sun, 05 Nov 2023 13:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699221415; cv=none; d=google.com; s=arc-20160816; b=jw4utdfesnVDEHCO7BxYLkwY8kDSV2gspgC07G47WORLkNUB54x9OSTvvo8RzHUiDw foBIqQLfpF/A1v2hJ3AhB0CgkfdVoL/4V0XHeCpzJk8OtUpPGpH0/Yqo3BE8gpy1v63S 3QwPfBlNGnHyxrl+y2kfLTWFWgP9sVvVomRg+zxJHuOKtn3hdgCng6jT7S9GCk+++HUs tAACqEpt6RkxUgQqD8xoTiSgscwKHSyMUu2KMXtUlcC+vq2bZBYaYJRVUR9nQFS6VKZm Frd535yEG3EzoUS7CAtaAi/friCdOYtZKslDvNSwAAA1trYdQMXJ0cugrLPBOz7TNMyC CNnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=oZyK94BwxnPjiynzKWPcRjofBhXc5/t3fdP2O17Q1BE=; fh=26vFB1EiEfu+tdfnUYHeY6pZxRARhG9yfvtST2tbH48=; b=fMSX8dN4MV9rhpOsYjDXvekoklwn4JCoxrlOinu0GZack3jUpNJxiKTYHzQ1bbICJu WdbHJ6YUpvGk/pXxBRjL2/F/sMzzMs1xzAcrfGxiWA/LXvNTAplWHR9DzdJb2WSyyz2P 0aZ9NsowG/7jDwg2qOZVGltMnYQ1lsYzCZT0T0BxDfReyOueoeEYgZ6Ec83X7dRh6nev j63n4tkSuH4pWEr5muwoQFyNTb4ystl8rdMa9jcQBfourQ2z/0RscetuNrLHtvKzOwNV G06MzegE6itgx5wo35hdJ72b2is6y5qwR9u6KQCkpuP0SMRyaBR9qi4JOIqmZopXGMQS 8UhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WF3TB0nh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id c5-20020a6566c5000000b005bd85b32495si1237714pgw.685.2023.11.05.13.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 13:56:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WF3TB0nh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 19D998067E0B; Sun, 5 Nov 2023 13:56:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbjKEV4o (ORCPT + 99 others); Sun, 5 Nov 2023 16:56:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKEV4n (ORCPT ); Sun, 5 Nov 2023 16:56:43 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 847E0CC; Sun, 5 Nov 2023 13:56:40 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-32fc2720c47so412251f8f.0; Sun, 05 Nov 2023 13:56:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699221399; x=1699826199; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=oZyK94BwxnPjiynzKWPcRjofBhXc5/t3fdP2O17Q1BE=; b=WF3TB0nhvNBIxleGAK82wJPzwEBEL1cvkWzJEO6dWkQeSGAxWuWBmeFOV9Bkl3sR9t K8mFdHPTR2vVSZKoxSX/4Jq7ZwledBaTVTWyCSTLJJE78O7HLTw14nzu0UuyPTc7wtLc 05Et2MT5uFoDaQW7aEIIdUolUBVmGB9xE869iUax8rus4fHxNQamWOFKruVCGNEuMufE HWPZE/O82kX7z4V1sc0EdV8JoBtR8XYR1L4Brs03h3Pucd4OTyiN2Ruc59NB/++r7Ab8 Z6UW5LHUoTrp8dpwkAMdrE+VPpjqyUSXOD5yG6ZfaWyW88DcnIuvfQszV0NT97JvDS2Z t0qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699221399; x=1699826199; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oZyK94BwxnPjiynzKWPcRjofBhXc5/t3fdP2O17Q1BE=; b=j+N6d4MTMZT/bYIWQQt2Qf7+dtqYvvKGvHlXXFsTa+7oPJlfBlm+YLdPvFx6TAejWh qeE6e+uJ/oDbk94xPBAywgIIv4C5TdxQQILhfX2BKHxB/c9zwSbm1650TfSCHYiIQtZv HRCvF8ATCBwmAPteA7mHHVEtGSGUvnjqRO2iXLWlOLNbkGI+47ymcU0sEWiZbf2HaH1D iIfx6vR8m5bYG96xscf+51SKPeCg1EmdAibcvsW2+KXSErqvCzCvy/PKZq3TKgriH1hM neXdEkTXyZl8lHhiwC9FNAd3R6/Le4Aq+n+dCKDrYfD/ekhaDXMWK7xh104PWWvQGPkA xB8Q== X-Gm-Message-State: AOJu0YzAsq+72OuVHxodxksdUkvFNOpJYq+u54gghzvlUZ6L5mCuwOGa mlWEY8bO12ONERgJZvwkD3Y= X-Received: by 2002:a5d:414f:0:b0:32f:8372:dfe8 with SMTP id c15-20020a5d414f000000b0032f8372dfe8mr13518354wrq.1.1699221398680; Sun, 05 Nov 2023 13:56:38 -0800 (PST) Received: from localhost.localdomain ([94.203.174.192]) by smtp.gmail.com with ESMTPSA id o17-20020adfcf11000000b0032da319a27asm7728038wrj.9.2023.11.05.13.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 13:56:38 -0800 (PST) From: Dmitrii Bundin To: masahiroy@kernel.org Cc: dmitrii.bundin.a@gmail.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, nathan@kernel.org, ndesaulniers@google.com, nicolas@fjasle.eu Subject: [PATCH v2] kbuild: deb-pkg: apply short -R and -j options Date: Mon, 6 Nov 2023 00:56:22 +0300 Message-Id: <20231105215622.17493-1-dmitrii.bundin.a@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 05 Nov 2023 13:56:53 -0800 (PST) The long version --rules-file and --jobs are available since 1.18.8 while their short analogues -R and -j have been added since 1.14.7. The option --rules-file the way it works currently was introduced in the commit 5cd52673aabdf5eaa58181972119a41041fc85f2 of dpkg dated 23.07.18 with the following changelog entry: * Fix dpkg-buildpackage option --rules-file parsing. It was trying to parse it as --rules-target, which due to the ordering was a no-op. The current behavior of the long version --rules-file is guaranteed to be in use starting 1.19.1 and might cause build failures for some versions newer than 1.18.8 even in spite of being documented that way. Signed-off-by: Dmitrii Bundin --- scripts/Makefile.package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.package b/scripts/Makefile.package index 2bcab02da965..af96319be98e 100644 --- a/scripts/Makefile.package +++ b/scripts/Makefile.package @@ -148,7 +148,7 @@ deb-pkg srcdeb-pkg bindeb-pkg: $(if $(findstring source, $(build-type)), \ --unsigned-source --compression=$(KDEB_SOURCE_COMPRESS)) \ $(if $(findstring binary, $(build-type)), \ - --rules-file='$(MAKE) -f debian/rules' --jobs=1 -r$(KBUILD_PKG_ROOTCMD) -a$$(cat debian/arch), \ + -R'$(MAKE) -f debian/rules' -j1 -r$(KBUILD_PKG_ROOTCMD) -a$$(cat debian/arch), \ --no-check-builddeps) \ $(DPKG_FLAGS)) -- 2.17.1