linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scripts/package: add back 'version' for builddeb
@ 2023-03-20 11:08 David Wang
  2023-03-21 13:12 ` Bagas Sanjaya
  0 siblings, 1 reply; 7+ messages in thread
From: David Wang @ 2023-03-20 11:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: masahiroy, bagasdotme, David Wang

Fixes: 36862e14e316 (kbuild: deb-pkg: use dh_listpackages to know
enabled packages)
The 'version' variable is still needed for building
debian 'linux-headers' packages, add it back.

Signed-off-by: David Wang <00107082@163.com>
---
 scripts/package/builddeb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index c5ae57167d7c..5102d0903f9c 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -215,6 +215,7 @@ install_libc_headers () {
 
 rm -f debian/files
 
+version=$KERNELRELEASE
 packages_enabled=$(dh_listpackages)
 
 for package in ${packages_enabled}
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] scripts/package: add back 'version' for builddeb
  2023-03-20 11:08 [PATCH] scripts/package: add back 'version' for builddeb David Wang
@ 2023-03-21 13:12 ` Bagas Sanjaya
  2023-03-21 15:20   ` David Wang
  0 siblings, 1 reply; 7+ messages in thread
From: Bagas Sanjaya @ 2023-03-21 13:12 UTC (permalink / raw)
  To: David Wang, linux-kernel; +Cc: masahiroy

On 3/20/23 18:08, David Wang wrote:
> Fixes: 36862e14e316 (kbuild: deb-pkg: use dh_listpackages to know
> enabled packages)
> The 'version' variable is still needed for building
> debian 'linux-headers' packages, add it back.
> 
> Signed-off-by: David Wang <00107082@163.com>
> ---
>  scripts/package/builddeb | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index c5ae57167d7c..5102d0903f9c 100755
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -215,6 +215,7 @@ install_libc_headers () {
>  
>  rm -f debian/files
>  
> +version=$KERNELRELEASE
>  packages_enabled=$(dh_listpackages)
>  
>  for package in ${packages_enabled}

Hi,

Again, your patch looks like corrupted (tabs converted to spaces).
Please resubmit; this time; generate the patch via git-format-patch(1)
and then send the resulting patch with git-send-email(1).

Thanks.

-- 
An old man doll... just what I always wanted! - Clara


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: [PATCH] scripts/package: add back 'version' for builddeb
  2023-03-21 13:12 ` Bagas Sanjaya
@ 2023-03-21 15:20   ` David Wang
  2023-03-22  3:35     ` Bagas Sanjaya
  0 siblings, 1 reply; 7+ messages in thread
From: David Wang @ 2023-03-21 15:20 UTC (permalink / raw)
  To: Bagas Sanjaya; +Cc: linux-kernel, masahiroy


>
>Again, your patch looks like corrupted (tabs converted to spaces).
>Please resubmit; this time; generate the patch via git-format-patch(1)
>and then send the resulting patch with git-send-email(1).
>
>Thanks.
>
I did use `git format-patch` and `git send-email`, but I did not run scripts/checkpatch.pl.
Now when I run scripts/checkpatch.pl against the file generated by `git format-patch`, it shows a warning about "Fixes:" tag, and
I have resend a patch which pass the checks of scripts/checkpatch.pl, hope this time it could be ok.

```
$ scripts/checkpatch.pl 0001-scripts-package-add-back-version-for-builddeb.patch
total: 0 errors, 0 warnings, 7 lines checked

0001-scripts-package-add-back-version-for-builddeb.patch has no obvious style problems and is ready for submission.
```


David

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] scripts/package: add back 'version' for builddeb
  2023-03-21 15:20   ` David Wang
@ 2023-03-22  3:35     ` Bagas Sanjaya
  2023-03-22  3:37       ` Bagas Sanjaya
  0 siblings, 1 reply; 7+ messages in thread
From: Bagas Sanjaya @ 2023-03-22  3:35 UTC (permalink / raw)
  To: David Wang; +Cc: linux-kernel, masahiroy

On 3/21/23 22:20, David Wang wrote:
> 
>>
>> Again, your patch looks like corrupted (tabs converted to spaces).
>> Please resubmit; this time; generate the patch via git-format-patch(1)
>> and then send the resulting patch with git-send-email(1).
>>
>> Thanks.
>>
> I did use `git format-patch` and `git send-email`, but I did not run scripts/checkpatch.pl.
> Now when I run scripts/checkpatch.pl against the file generated by `git format-patch`, it shows a warning about "Fixes:" tag, and
> I have resend a patch which pass the checks of scripts/checkpatch.pl, hope this time it could be ok.
> 
> ```
> $ scripts/checkpatch.pl 0001-scripts-package-add-back-version-for-builddeb.patch
> total: 0 errors, 0 warnings, 7 lines checked
> 
> 0001-scripts-package-add-back-version-for-builddeb.patch has no obvious style problems and is ready for submission.
> ```
> 
> 
> David

OK, but there is already the similar fix submitted at [1]. Please test it.

Thanks anyway.

[1]: https://lore.kernel.org/linux-kbuild/3351f907cfd0b5d8372e858a8ec9065cc2bd91df.1679434718.git.kevin@kevinlocke.name/

-- 
An old man doll... just what I always wanted! - Clara


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] scripts/package: add back 'version' for builddeb
  2023-03-22  3:35     ` Bagas Sanjaya
@ 2023-03-22  3:37       ` Bagas Sanjaya
  2023-03-22  5:12         ` David Wang
  0 siblings, 1 reply; 7+ messages in thread
From: Bagas Sanjaya @ 2023-03-22  3:37 UTC (permalink / raw)
  To: David Wang; +Cc: linux-kernel, masahiroy

On 3/22/23 10:35, Bagas Sanjaya wrote:
> OK, but there is already the similar fix submitted at [1]. Please test it.
> 
> Thanks anyway.
> 
> [1]: https://lore.kernel.org/linux-kbuild/3351f907cfd0b5d8372e858a8ec9065cc2bd91df.1679434718.git.kevin@kevinlocke.name/
> 

Oops, the fix is already applied at [1].

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?h=fixes&id=3ced71d273f8edf07bf01a831a49ca6b988e06b3

-- 
An old man doll... just what I always wanted! - Clara


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: [PATCH] scripts/package: add back 'version' for builddeb
  2023-03-22  3:37       ` Bagas Sanjaya
@ 2023-03-22  5:12         ` David Wang
  0 siblings, 0 replies; 7+ messages in thread
From: David Wang @ 2023-03-22  5:12 UTC (permalink / raw)
  To: Bagas Sanjaya; +Cc: linux-kernel, masahiroy




At 2023-03-22 11:37:45, "Bagas Sanjaya" <bagasdotme@gmail.com> wrote:
>On 3/22/23 10:35, Bagas Sanjaya wrote:
>> OK, but there is already the similar fix submitted at [1]. Please test it.
>> 
>> Thanks anyway.
>> 
>> [1]: https://lore.kernel.org/linux-kbuild/3351f907cfd0b5d8372e858a8ec9065cc2bd91df.1679434718.git.kevin@kevinlocke.name/
>> 
>
>Oops, the fix is already applied at [1].
>
>[1]: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?h=fixes&id=3ced71d273f8edf07bf01a831a49ca6b988e06b3
>
>-- 
>An old man doll... just what I always wanted! - Clara


It's OK, glad to know it will be fixed in the next rc.

David

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] scripts/package: add back 'version' for builddeb
@ 2023-03-21 15:13 David Wang
  0 siblings, 0 replies; 7+ messages in thread
From: David Wang @ 2023-03-21 15:13 UTC (permalink / raw)
  To: linux-kernel; +Cc: masahiroy, bagasdotme, David Wang

Fixes: 36862e14e316 ("kbuild: deb-pkg: use dh_listpackages to know enabled packages")
The 'version' variable is still needed for building
debian 'linux-headers' packages, add it back.

Signed-off-by: David Wang <00107082@163.com>
---
 scripts/package/builddeb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index c5ae57167d7c..5102d0903f9c 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -215,6 +215,7 @@ install_libc_headers () {
 
 rm -f debian/files
 
+version=$KERNELRELEASE
 packages_enabled=$(dh_listpackages)
 
 for package in ${packages_enabled}
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-22  5:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 11:08 [PATCH] scripts/package: add back 'version' for builddeb David Wang
2023-03-21 13:12 ` Bagas Sanjaya
2023-03-21 15:20   ` David Wang
2023-03-22  3:35     ` Bagas Sanjaya
2023-03-22  3:37       ` Bagas Sanjaya
2023-03-22  5:12         ` David Wang
2023-03-21 15:13 David Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).