mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 3 small patches for the 6.3 build scripts
@ 2023-03-31 14:15 Woody Suwalski
  0 siblings, 0 replies; only message in thread
From: Woody Suwalski @ 2023-03-31 14:15 UTC (permalink / raw)
  To: Masahiro Yamada, LKML; +Cc: Woody Suwalski

[-- Attachment #1: Type: text/plain, Size: 2921 bytes --]

1. Fix a spell typo in mkdebian script.

Fixes: spelling error in scripts/package/mkdebian
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>

--- a/scripts/package/mkdebian    2023-03-30 18:46:06.008350787 -0400
+++ b/scripts/package/mkdebian    2023-03-31 09:31:28.063637332 -0400
@@ -175,7 +175,7 @@ EOF

  # Generate copyright file
  cat <<EOF > debian/copyright
-This is a packacked upstream version of the Linux kernel.
+This is a packaged upstream version of the Linux kernel.

  The sources may be found at most Linux archive sites, including:
  https://www.kernel.org/pub/linux/kernel


2. Fix an invalid user-mode subarch architecture name.
The x86 32-bit architecture name should be i386, not x86.
The SUBARCH tag is used in UM arch check in scripts/tags.sh.

Fixes: incorrect user mode subarch tag in scripts/subarch.include
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>

--- a/scripts/subarch.include    2023-02-19 17:24:22.000000000 -0500
+++ b/scripts/subarch.include    2023-03-30 11:18:05.357082494 -0400
@@ -4,7 +4,7 @@
  # then ARCH is assigned, getting whatever value it gets normally, and
  # SUBARCH is subsequently ignored.

-SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
+SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/x86_64/x86/ \
                    -e s/sun4u/sparc64/ \
                    -e s/arm.*/arm/ -e s/sa110/arm/ \
                    -e s/s390x/s390/ \

3.In 6.3 the mkdebian script started to wipe the debian directory.
On my build system I have been installing a "real" changelog file with 
build history
into the unpacked/patched kernel tree before calling "make bindeb-pkg".
It seems that a workaround could be to copy the real changelog into 
another directory,
e.g. patches/, and then if the patches/changelog file exists, move it to 
the debian/
directory and skip creation of a stock changelog file.

Fixes: in Debian packaging use a real changelog file if provided
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>

--- a/scripts/package/mkdebian    2023-03-31 09:38:14.620023584 -0400
+++ b/scripts/package/mkdebian    2023-03-31 09:38:55.704050033 -0400
@@ -164,14 +164,18 @@ echo $debarch > debian/arch
  extra_build_depends=", $(if_enabled_echo CONFIG_UNWINDER_ORC 
libelf-dev:native)"
  extra_build_depends="$extra_build_depends, $(if_enabled_echo 
CONFIG_SYSTEM_TRUSTED_KEYRING libssl-dev:native)"

-# Generate a simple changelog template
-cat <<EOF > debian/changelog
+if [ ! -s patches/changelog ]; then
+    # Generate a simple changelog template
+    cat <<EOF > debian/changelog
  $sourcename ($packageversion) $distribution; urgency=low

    * Custom built Linux kernel.

   -- $maintainer  $(date -R)
  EOF
+else
+    mv patches/changelog debian
+fi

  # Generate copyright file
  cat <<EOF > debian/copyright

Thanks, Woody



[-- Attachment #2: [PATCH]mkdebian_spell.patch --]
[-- Type: text/x-patch, Size: 549 bytes --]

Fixes: spelling error in scripts/package/mkdebian
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>

--- a/scripts/package/mkdebian	2023-03-30 18:46:06.008350787 -0400
+++ b/scripts/package/mkdebian	2023-03-31 09:31:28.063637332 -0400
@@ -175,7 +175,7 @@ EOF
 
 # Generate copyright file
 cat <<EOF > debian/copyright
-This is a packacked upstream version of the Linux kernel.
+This is a packaged upstream version of the Linux kernel.
 
 The sources may be found at most Linux archive sites, including:
 https://www.kernel.org/pub/linux/kernel

[-- Attachment #3: [PATCH]subarch_i386.patch --]
[-- Type: text/x-patch, Size: 614 bytes --]

Fixes: incorrect user mode subarch tag in scripts/subarch.include
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>

--- a/scripts/subarch.include	2023-02-19 17:24:22.000000000 -0500
+++ b/scripts/subarch.include	2023-03-30 11:18:05.357082494 -0400
@@ -4,7 +4,7 @@
 # then ARCH is assigned, getting whatever value it gets normally, and
 # SUBARCH is subsequently ignored.
 
-SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
+SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/x86_64/x86/ \
 				  -e s/sun4u/sparc64/ \
 				  -e s/arm.*/arm/ -e s/sa110/arm/ \
 				  -e s/s390x/s390/ \

[-- Attachment #4: [PATCH]mkdebian_changelog.patch --]
[-- Type: text/x-patch, Size: 907 bytes --]

Fixes: in Debian packaging use a real changelog file if provided
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>

--- a/scripts/package/mkdebian	2023-03-31 09:38:14.620023584 -0400
+++ b/scripts/package/mkdebian	2023-03-31 09:38:55.704050033 -0400
@@ -164,14 +164,18 @@ echo $debarch > debian/arch
 extra_build_depends=", $(if_enabled_echo CONFIG_UNWINDER_ORC libelf-dev:native)"
 extra_build_depends="$extra_build_depends, $(if_enabled_echo CONFIG_SYSTEM_TRUSTED_KEYRING libssl-dev:native)"
 
-# Generate a simple changelog template
-cat <<EOF > debian/changelog
+if [ ! -s patches/changelog ]; then
+	# Generate a simple changelog template
+	cat <<EOF > debian/changelog
 $sourcename ($packageversion) $distribution; urgency=low
 
   * Custom built Linux kernel.
 
  -- $maintainer  $(date -R)
 EOF
+else
+	mv patches/changelog debian
+fi
 
 # Generate copyright file
 cat <<EOF > debian/copyright

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-31 14:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-31 14:15 [PATCH] 3 small patches for the 6.3 build scripts Woody Suwalski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®