<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in rules</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>62604063 - kbuild: deb-pkg: don&apos;t set KBUILD_BUILD_VERSION unconditionally</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#62604063</link>
        <description>kbuild: deb-pkg: don&apos;t set KBUILD_BUILD_VERSION unconditionallyIn ThinPro, we use the convention &lt;upstream_ver&gt;+hp&lt;patchlevel&gt; forthe kernel package. This does not have a dash in the name or version.This is built by editing &quot;.version&quot; before a build, and settingEXTRAVERSION=&quot;+hp&quot; and KDEB_PKGVERSION make variables:    echo 68 &gt; .version    make -j&lt;n&gt; EXTRAVERSION=&quot;+hp&quot; bindeb-pkg KDEB_PKGVERSION=6.12.2+hp69    .deb name: linux-image-6.12.2+hp_6.12.2+hp69_amd64.debSince commit 7d4f07d5cb71 (&quot;kbuild: deb-pkg: squashscripts/package/deb-build-option to debian/rules&quot;), this no longerworks. The deb build logic changed, even though, the commit messageimplies that the logic should be unmodified.Before, KBUILD_BUILD_VERSION was not set if the KDEB_PKGVERSION didnot contain a dash. After the change KBUILD_BUILD_VERSION is alwaysset to KDEB_PKGVERSION. Since this determines UTS_VERSION, the unameoutput to look off:    (now)      uname -a: version 6.12.2+hp ... #6.12.2+hp69    (expected) uname -a: version 6.12.2+hp ... #69Update the debian/rules logic to restore the original behavior.Fixes: 7d4f07d5cb71 (&quot;kbuild: deb-pkg: squash scripts/package/deb-build-option to debian/rules&quot;)Signed-off-by: Alexandru Gagniuc &lt;alexandru.gagniuc@hp.com&gt;Reviewed-by: Nicolas Schier &lt;nicolas@fjasle.eu&gt;Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Fri, 14 Mar 2025 13:10:53 +0000</pubDate>
        <dc:creator>Alexandru Gagniuc &lt;alexandru.gagniuc@hp.com&gt;</dc:creator>
    </item>
<item>
        <title>a7a05b1b - kbuild: deb-pkg: add comment about future removal of KDEB_COMPRESS</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#a7a05b1b</link>
        <description>kbuild: deb-pkg: add comment about future removal of KDEB_COMPRESS&apos;man dpkg-deb&apos; describes as follows:    DPKG_DEB_COMPRESSOR_TYPE        Sets the compressor type to use (since dpkg 1.21.10).        The -Z option overrides this value.When commit 1a7f0a34ea7d (&quot;builddeb: allow selection of .deb compressor&quot;)was applied, dpkg-deb did not support this environment variable.Later, dpkg commit c10aeffc6d71 (&quot;dpkg-deb: Add support forDPKG_DEB_COMPRESSOR_TYPE/LEVEL&quot;) introduced support forDPKG_DEB_COMPRESSOR_TYPE, which provides the same functionality asKDEB_COMPRESS.KDEB_COMPRESS is still useful for users of older dpkg versions, but Iwould like to remove this redundant functionality in the future.This commit adds comments to notify users of the planned removal and toencourage migration to DPKG_DEB_COMPRESSOR_TYPE where possible.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Fri, 14 Mar 2025 09:53:35 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>f96beb84 - kbuild: deb-pkg: call more misc debhelper commands</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#f96beb84</link>
        <description>kbuild: deb-pkg: call more misc debhelper commandsUse dh_prep instead of removing old build directories manually.Use dh_clean instead of removing build directories and debian/filesmanually.Call dh_testdir and dh_testroot for preliminary checks.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Sat, 13 Jan 2024 10:43:39 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>1d7bae8f - kbuild: deb-pkg: build binary-arch in parallel</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#1d7bae8f</link>
        <description>kbuild: deb-pkg: build binary-arch in parallel&apos;make deb-pkg&apos; builds build-arch in parallel, but binary-arch serially.Given that all binary packages are independent of one another, they canbe built in parallel.I am uncertain whether debian/files is robust against a race condition.Just in case, make dh_gencontrol (dpkg-gencontrol) output to separatedebian/*.files, which are then concatenated into debian/files.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Sat, 13 Jan 2024 10:43:38 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>caf400c8 - kbuild: deb-pkg: make debian/rules quiet for &apos;make deb-pkg&apos;</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#caf400c8</link>
        <description>kbuild: deb-pkg: make debian/rules quiet for &apos;make deb-pkg&apos;Add $(Q) to the commands in debian/rules to make them quiet when thepackage built is initiated by &apos;make deb-pkg&apos; or when the &apos;terse&apos; tagis set to DEB_BUILD_OPTIONS.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Sat, 13 Jan 2024 10:43:37 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>cc3df32c - kbuild: deb-pkg: show verbose log for direct package builds</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#cc3df32c</link>
        <description>kbuild: deb-pkg: show verbose log for direct package buildsWhen the Debian package build is initiated by Kbuild (&apos;make deb-pkg&apos;or &apos;make bindeb-pkg&apos;), the log messages are displayed in the shortform, which is the Kbuild default.Otherwise, let&apos;s show verbose messages (unless the &apos;terse&apos; tag is setin DEB_BUILD_OPTION), as suggested by Debian Policy: &quot;The package buildshould be as verbose as reasonably possible, except where the terse tagis included in DEB_BUILD_OPTIONS.&quot; [1]This is what the Debian kernel also does. [2][1]: https://www.debian.org/doc/debian-policy/ch-source.html#main-building-script-debian-rules[2]: https://salsa.debian.org/kernel-team/linux/-/blob/debian/6.7-1_exp1/debian/rules.real#L36Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Sat, 13 Jan 2024 10:43:36 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>1b5e9465 - kbuild: deb-pkg: move &apos;make headers&apos; to build-arch</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#1b5e9465</link>
        <description>kbuild: deb-pkg: move &apos;make headers&apos; to build-archStrictly speaking, &apos;make headers&apos; should be a part of build-archinstead of binary-arch.&apos;make headers&apos; constructs ready-to-copy UAPI headers in the kerneldirectory.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Sat, 30 Dec 2023 13:51:56 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>5e73758b - kbuild: deb-pkg: use more debhelper commands in builddeb</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#5e73758b</link>
        <description>kbuild: deb-pkg: use more debhelper commands in builddebCommit 36862e14e316 (&quot;kbuild: deb-pkg: use dh_listpackages to knowenabled packages&quot;) started to require the debhelper tool suite.Use more dh_* commands in create_package(): - dh_installdocs to install copyright - dh_installchangelogs to install changelog - dh_compress to compress changelog - dh_fixperms to replace the raw chmod command - dh_gencontrol to replace the raw dpkg-gencontrol command - dh_md5sums to record the md5sum of included files - dh_builddeb to replace the raw dpkg-deb commandSet DEB_RULES_REQUIRES_ROOT to &apos;no&apos; in case debian/rules is executeddirectly.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Tue, 26 Dec 2023 13:52:43 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>68e262f8 - kbuild: deb-pkg: remove unneeded &apos;-f $srctree/Makefile&apos; in debian/rules</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#68e262f8</link>
        <description>kbuild: deb-pkg: remove unneeded &apos;-f $srctree/Makefile&apos; in debian/rulesThis is unneeded because the Makefile in the output directory wrapsthe top-level Makefile in the srctree.Just run $(MAKE) irrespective of the build location.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Tue, 26 Dec 2023 13:52:42 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>eaf80f7f - kbuild: deb-pkg: allow to run debian/rules from output directory</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#eaf80f7f</link>
        <description>kbuild: deb-pkg: allow to run debian/rules from output directory&apos;make O=... deb-pkg&apos; creates the debian directory in the outputdirectory. However, currently it is impossible to run debian/rulescreated in the separate output directory.This commit delays the $(srctree) expansion by escaping &apos;$&apos; and byquoting the entire command, making it possible to run debian/rules inthe output directory.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Tue, 26 Dec 2023 13:52:41 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>159956f3 - kbuild: deb-pkg: set DEB_* variables if debian/rules is directly executed</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#159956f3</link>
        <description>kbuild: deb-pkg: set DEB_* variables if debian/rules is directly executedSince commit 491b146d4c13 (&quot;kbuild: builddeb: Eliminate debian/archuse&quot;), direct execution of debian/rules results in the following error:  dpkg-architecture: error: unknown option &apos;DEB_HOST_MULTIARCH&apos;The current code:  dpkg-architecture -a$DEB_HOST_ARCH -qDEB_HOST_MULTIARCH... does not look sensible because: - For this code to work correctly, DEB_HOST_ARCH must be pre-defined,   which is true when the packages are built via dpkg-buildpackage.   In this case, DEB_HOST_MULTIARCH is also likely defined, hence there   is no need to query DEB_HOST_MULTIARCH in the first place. - If DEB_HOST_MULTIARCH is undefined, DEB_HOST_ARCH is likely undefined   too. So, you cannot query DEB_HOST_MULTIARCH in this way. This is   mostly the case where debian/rules is directly executed.When debian/rules is directly executed, querying DEB_HOST_MUCHARCH isnot enough because we need to know DEB_{BUILD,HOST}_GNU_TYPE as well.All DEB_* variables are defined when the package build is initiated bydpkg-buildpackage, but otherwise, let&apos;s call dpkg-architecture to setall DEB_* environment variables.This requires dpkg 1.20.6 or newer because --print-format optionwas added in dpkg commit 7c54fa2b232e (&quot;dpkg-architecture: Add a--print-format option&quot;).Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Tue, 26 Dec 2023 13:52:40 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>7d4f07d5 - kbuild: deb-pkg: squash scripts/package/deb-build-option to debian/rules</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#7d4f07d5</link>
        <description>kbuild: deb-pkg: squash scripts/package/deb-build-option to debian/rulesThe binary-arch target needs to use the same CROSS_COMPILE as used inbuild-arch; otherwise, &apos;make run-command&apos; may attempt to resync the.config file.Squash scripts/package/deb-build-option into debian/rules, as it is asmall amount of code.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Tue, 26 Dec 2023 13:52:39 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>466e6fc4 - kbuild: deb-pkg: factor out common Make options in debian/rules</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#466e6fc4</link>
        <description>kbuild: deb-pkg: factor out common Make options in debian/rulesThis avoids code duplication between binary-arch and built-arch.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Tue, 26 Dec 2023 13:52:38 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>ed79c34d - kbuild: deb-pkg: support DEB_BUILD_OPTIONS=parallel=N in debian/rules</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#ed79c34d</link>
        <description>kbuild: deb-pkg: support DEB_BUILD_OPTIONS=parallel=N in debian/rules&apos;make srcdeb-pkg&apos; generates a source package, which you can buildlater by using dpkg-buildpackage.In older dpkg versions, &apos;dpkg-buildpackage --jobs=N&apos; sets not onlyDEB_BUILD_OPTIONS but also MAKEFLAGS. Hence, passing -j or --jobsto dpkg-buildpackage was enough for kicking the parallel execution.The behavior was changed by commit 1d0ea9b2ba3f (&quot;dpkg-buildpackage:Change -j, --jobs semantics to non-force mode&quot;) of dpkg project. [1]Since then, &apos;dpkg-buildpackage --jobs=N&apos; sets only DEB_BUILD_OPTIONS,which is not parsed by the current debian/rules. To build the packagein parallel, you need to pass the alternative --jobs-force option orset the MAKEFLAGS environment variable.Debian policy [2] suggests the following code snippet for debian/rules.  ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))      NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))      MAKEFLAGS += -j$(NUMJOBS)  endifI tweaked the code to filter out parallel=1 and passed --jobs=1 todpkg-buildpackage from scripts/Makefile.package. It is needed to force&apos;make deb-pkg&apos; without the -j option to run in serial. Please note thatdpkg-buildpackage sets parallel=&lt;nproc&gt; in DEB_BUILD_OPTIONS by default(that is, --jobs=auto is the default) and --jobs=1 is needed to restorethe serial execution. When dpkg-buildpackage is invoked from Kbuild,the number of jobs is inherited from the top level Makefile. Passing--jobs=1 to dpkg-buildpackage allows debian/rules to skip parsingDEB_BUILD_OPTIONS.[1] https://salsa.debian.org/dpkg-team/dpkg/-/commit/1d0ea9b2ba3f6a2de5b1a6ff55f3df7b71f73db6[2] https://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-optionsReported-by: Bastian Germann &lt;bage@linutronix.de&gt;Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Sun, 20 Aug 2023 22:18:02 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>d9287ea8 - kbuild: deb-pkg: split debian/rules</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/package/debian/rules#d9287ea8</link>
        <description>kbuild: deb-pkg: split debian/rulesdebian/rules is generated by shell, but the escape sequence (\$) isunreadable.debian/rules embeds only two variables (ARCH and KERNELRELEASE).Split them out to debian/rules.vars, and check-in the rest of Makefilecode to scripts/package/debian/rules.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Tested-by: Nathan Chancellor &lt;nathan@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;nicolas@fjasle.eu&gt;

            List of files:
            /linux-6.15/scripts/package/debian/rules</description>
        <pubDate>Tue, 01 Aug 2023 12:19:26 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
</channel>
</rss>
