All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] builddeb: remove debian/files before build
@ 2015-09-15 18:11 riku.voipio
  2015-09-15 18:21 ` Kalle Valo
  2015-09-21 18:09 ` Ben Hutchings
  0 siblings, 2 replies; 10+ messages in thread
From: riku.voipio @ 2015-09-15 18:11 UTC (permalink / raw)
  To: linux-kbuild, mmarek; +Cc: ben, dsmythies, kvalo, Riku Voipio

From: Riku Voipio <riku.voipio@linaro.org>

As debian/files keeps accumulating entries, the changes file
will end up growing indefinelty. Remove the file in clean
rule and before build starts.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reported-by: Doug Smythies <dsmythies@telus.net>
---
 scripts/package/builddeb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 0cd46e1..b967e4f 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -115,7 +115,7 @@ esac
 BUILD_DEBUG="$(grep -s '^CONFIG_DEBUG_INFO=y' $KCONFIG_CONFIG || true)"
 
 # Setup the directory structure
-rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir" "$dbg_dir"
+rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir" "$dbg_dir" $objtree/debian/files
 mkdir -m 755 -p "$tmpdir/DEBIAN"
 mkdir -p "$tmpdir/lib" "$tmpdir/boot"
 mkdir -p "$fwdir/lib/firmware/$version/"
@@ -408,7 +408,7 @@ binary-arch:
 	\$(MAKE) KDEB_SOURCENAME=${sourcename} KDEB_PKGVERSION=${packageversion} bindeb-pkg
 
 clean:
-	rm -rf debian/*tmp
+	rm -rf debian/*tmp debian/files
 	mv debian/ debian.backup # debian/ might be cleaned away
 	\$(MAKE) clean
 	mv debian.backup debian
-- 
2.1.4


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

* Re: [PATCH v2] builddeb: remove debian/files before build
  2015-09-15 18:11 [PATCH v2] builddeb: remove debian/files before build riku.voipio
@ 2015-09-15 18:21 ` Kalle Valo
  2015-09-15 19:11   ` Doug Smythies
  2015-09-21 18:09 ` Ben Hutchings
  1 sibling, 1 reply; 10+ messages in thread
From: Kalle Valo @ 2015-09-15 18:21 UTC (permalink / raw)
  To: riku.voipio; +Cc: linux-kbuild, mmarek, ben, dsmythies

<riku.voipio@linaro.org> writes:

> From: Riku Voipio <riku.voipio@linaro.org>
>
> As debian/files keeps accumulating entries, the changes file
> will end up growing indefinelty. Remove the file in clean
> rule and before build starts.
>
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> Reported-by: Doug Smythies <dsmythies@telus.net>

Thanks, I had the same problem and this fixed it.

Tested-by: Kalle Valo <kvalo@codeaurora.org>

But it would be nice to have a fixes line to point out what commit this
fixes:

Fixes: 3716001bcb7f ("deb-pkg: add source package")

-- 
Kalle Valo

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

* RE: [PATCH v2] builddeb: remove debian/files before build
  2015-09-15 18:21 ` Kalle Valo
@ 2015-09-15 19:11   ` Doug Smythies
  2015-09-16  6:55     ` Riku Voipio
  0 siblings, 1 reply; 10+ messages in thread
From: Doug Smythies @ 2015-09-15 19:11 UTC (permalink / raw)
  To: 'Kalle Valo', riku.voipio
  Cc: linux-kbuild, mmarek, ben, Doug Smythies

On 2015.09.15 11:22 Kalle Valo wrote:
> <riku.voipio@linaro.org> writes:
>> From: Riku Voipio <riku.voipio@linaro.org>
>>
>> As debian/files keeps accumulating entries, the changes file
>> will end up growing indefinelty. Remove the file in clean
>> rule and before build starts.
>>
>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
>> Reported-by: Doug Smythies <dsmythies@telus.net>

> Thanks, I had the same problem and this fixed it.
> Tested-by: Kalle Valo <kvalo@codeaurora.org>

I tested also. Thanks.

For an incremental compile, where only one source file
has changed, the time went from 7 minutes and 47 seconds
to 4 minutes and 33 seconds on my test server.
And the spew of warnings and such are gone.

For reference a clean compile typically takes about
23 minutes.

The overhead for making the .changes file is now on the
order of 2 to 4 seconds.

Obviously, results will vary widely for others, depending
on their hardware.



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

* Re: [PATCH v2] builddeb: remove debian/files before build
  2015-09-15 19:11   ` Doug Smythies
@ 2015-09-16  6:55     ` Riku Voipio
  0 siblings, 0 replies; 10+ messages in thread
From: Riku Voipio @ 2015-09-16  6:55 UTC (permalink / raw)
  To: Doug Smythies; +Cc: Kalle Valo, linux-kbuild, mmarek, Ben Hutchings

On 15 September 2015 at 22:11, Doug Smythies <dsmythies@telus.net> wrote:
> On 2015.09.15 11:22 Kalle Valo wrote:
>> <riku.voipio@linaro.org> writes:
>>> From: Riku Voipio <riku.voipio@linaro.org>
>>>
>>> As debian/files keeps accumulating entries, the changes file
>>> will end up growing indefinelty. Remove the file in clean
>>> rule and before build starts.
>>>
>>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
>>> Reported-by: Doug Smythies <dsmythies@telus.net>

>> Thanks, I had the same problem and this fixed it.
>> Tested-by: Kalle Valo <kvalo@codeaurora.org>

> I tested also. Thanks.

Michal, can you get this as fix for 4.3, since this is a regression?

Riku

> For an incremental compile, where only one source file
> has changed, the time went from 7 minutes and 47 seconds
> to 4 minutes and 33 seconds on my test server.
> And the spew of warnings and such are gone.
>
> For reference a clean compile typically takes about
> 23 minutes.
>
> The overhead for making the .changes file is now on the
> order of 2 to 4 seconds.
>
> Obviously, results will vary widely for others, depending
> on their hardware.
>
>

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

* Re: [PATCH v2] builddeb: remove debian/files before build
  2015-09-15 18:11 [PATCH v2] builddeb: remove debian/files before build riku.voipio
  2015-09-15 18:21 ` Kalle Valo
@ 2015-09-21 18:09 ` Ben Hutchings
  2015-09-22 11:25   ` Kalle Valo
  1 sibling, 1 reply; 10+ messages in thread
From: Ben Hutchings @ 2015-09-21 18:09 UTC (permalink / raw)
  To: riku.voipio, linux-kbuild, mmarek; +Cc: dsmythies, kvalo

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

On Tue, 2015-09-15 at 21:11 +0300, riku.voipio@linaro.org wrote:
> From: Riku Voipio <riku.voipio@linaro.org>
> 
> As debian/files keeps accumulating entries, the changes file
> will end up growing indefinelty. Remove the file in clean
> rule and before build starts.
> 
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> Reported-by: Doug Smythies <dsmythies@telus.net>
[...]

FWIW:

Acked-by: Ben Hutchings <ben@decadent.org.uk>

Ben.

-- 
Ben Hutchings
If the facts do not conform to your theory, they must be disposed of.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

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

* Re: [PATCH v2] builddeb: remove debian/files before build
  2015-09-21 18:09 ` Ben Hutchings
@ 2015-09-22 11:25   ` Kalle Valo
  2015-10-05  1:03     ` Doug Smythies
  0 siblings, 1 reply; 10+ messages in thread
From: Kalle Valo @ 2015-09-22 11:25 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: riku.voipio, linux-kbuild, mmarek, dsmythies

Ben Hutchings <ben@decadent.org.uk> writes:

> On Tue, 2015-09-15 at 21:11 +0300, riku.voipio@linaro.org wrote:
>> From: Riku Voipio <riku.voipio@linaro.org>
>> 
>> As debian/files keeps accumulating entries, the changes file
>> will end up growing indefinelty. Remove the file in clean
>> rule and before build starts.
>> 
>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
>> Reported-by: Doug Smythies <dsmythies@telus.net>
> [...]
>
> FWIW:
>
> Acked-by: Ben Hutchings <ben@decadent.org.uk>

Marek, this is a pretty annoying regression. Is it possible to get this
to 4.3?

-- 
Kalle Valo

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

* RE: [PATCH v2] builddeb: remove debian/files before build
  2015-09-22 11:25   ` Kalle Valo
@ 2015-10-05  1:03     ` Doug Smythies
  2015-10-05 12:39       ` Riku Voipio
  0 siblings, 1 reply; 10+ messages in thread
From: Doug Smythies @ 2015-10-05  1:03 UTC (permalink / raw)
  To: mmarek
  Cc: riku.voipio, linux-kbuild, 'Kalle Valo',
	'Ben Hutchings',
	Doug Smythies

On 2015.09.22 04:25 Kalle Valo wrote:
> Ben Hutchings <ben@decadent.org.uk> writes:
>> On Tue, 2015-09-15 at 21:11 +0300, riku.voipio@linaro.org wrote:
>>> From: Riku Voipio <riku.voipio@linaro.org>
>>> 
>>> As debian/files keeps accumulating entries, the changes file
>>> will end up growing indefinelty. Remove the file in clean
>>> rule and before build starts.
>>> 
>>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
>>> Reported-by: Doug Smythies <dsmythies@telus.net>
>> [...]
>>
>> FWIW:
>>
>> Acked-by: Ben Hutchings <ben@decadent.org.uk>
>
> Marek, this is a pretty annoying regression. Is it possible to get this
> to 4.3?

Perhaps I do not understand the process here, but having reported the issue
within a day of kernel 4.3-rc1 being released, and then what seems to be an
acceptable patch being suggested, and tested, with plenty of time to make
into -rc2, why hasn't it been included yet (-rc4)?



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

* Re: [PATCH v2] builddeb: remove debian/files before build
  2015-10-05  1:03     ` Doug Smythies
@ 2015-10-05 12:39       ` Riku Voipio
  2015-10-05 20:49         ` Andrew Morton
  0 siblings, 1 reply; 10+ messages in thread
From: Riku Voipio @ 2015-10-05 12:39 UTC (permalink / raw)
  To: Andrew Morton
  Cc: mmarek, linux-kbuild, Kalle Valo, Ben Hutchings, Doug Smythies

On 5 October 2015 at 04:03, Doug Smythies <dsmythies@telus.net> wrote:
> On 2015.09.22 04:25 Kalle Valo wrote:
>> Ben Hutchings <ben@decadent.org.uk> writes:
>>> On Tue, 2015-09-15 at 21:11 +0300, riku.voipio@linaro.org wrote:
>>>> From: Riku Voipio <riku.voipio@linaro.org>
>>>>
>>>> As debian/files keeps accumulating entries, the changes file
>>>> will end up growing indefinelty. Remove the file in clean
>>>> rule and before build starts.
>>>>
>>>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
>>>> Reported-by: Doug Smythies <dsmythies@telus.net>
>>> [...]
>>>
>>> FWIW:
>>>
>>> Acked-by: Ben Hutchings <ben@decadent.org.uk>
>>
>> Marek, this is a pretty annoying regression. Is it possible to get this
>> to 4.3?
>
> Perhaps I do not understand the process here, but having reported the issue
> within a day of kernel 4.3-rc1 being released, and then what seems to be an
> acceptable patch being suggested, and tested, with plenty of time to make
> into -rc2, why hasn't it been included yet (-rc4)?

Hi Andrew,

Could you pass this patch in your series, as the regression doesn't
seem to be getting through via the maintainer. It would be
embarrassing to have it in 4.3 since it was reported and fixed timely.
The  patch is at:

http://permalink.gmane.org/gmane.linux.kbuild.devel/13710

Tests and acks at:

http://comments.gmane.org/gmane.linux.kbuild.devel/13710


Riku

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

* Re: [PATCH v2] builddeb: remove debian/files before build
  2015-10-05 12:39       ` Riku Voipio
@ 2015-10-05 20:49         ` Andrew Morton
  2015-10-06  7:05           ` [PATCH v3] " riku.voipio
  0 siblings, 1 reply; 10+ messages in thread
From: Andrew Morton @ 2015-10-05 20:49 UTC (permalink / raw)
  To: Riku Voipio
  Cc: mmarek, linux-kbuild, Kalle Valo, Ben Hutchings, Doug Smythies

On Mon, 5 Oct 2015 15:39:40 +0300 Riku Voipio <riku.voipio@linaro.org> wrote:

> On 5 October 2015 at 04:03, Doug Smythies <dsmythies@telus.net> wrote:
> > On 2015.09.22 04:25 Kalle Valo wrote:
> >> Ben Hutchings <ben@decadent.org.uk> writes:
> >>> On Tue, 2015-09-15 at 21:11 +0300, riku.voipio@linaro.org wrote:
> >>>> From: Riku Voipio <riku.voipio@linaro.org>
> >>>>
> >>>> As debian/files keeps accumulating entries, the changes file
> >>>> will end up growing indefinelty. Remove the file in clean
> >>>> rule and before build starts.
> >>>>
> >>>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> >>>> Reported-by: Doug Smythies <dsmythies@telus.net>
> >>> [...]
> >>>
> >>> FWIW:
> >>>
> >>> Acked-by: Ben Hutchings <ben@decadent.org.uk>
> >>
> >> Marek, this is a pretty annoying regression. Is it possible to get this
> >> to 4.3?
> >
> > Perhaps I do not understand the process here, but having reported the issue
> > within a day of kernel 4.3-rc1 being released, and then what seems to be an
> > acceptable patch being suggested, and tested, with plenty of time to make
> > into -rc2, why hasn't it been included yet (-rc4)?
> 
> Hi Andrew,
> 
> Could you pass this patch in your series, as the regression doesn't
> seem to be getting through via the maintainer. It would be
> embarrassing to have it in 4.3 since it was reported and fixed timely.
> The  patch is at:
> 
> http://permalink.gmane.org/gmane.linux.kbuild.devel/13710
> 
> Tests and acks at:
> 
> http://comments.gmane.org/gmane.linux.kbuild.devel/13710

I'm not subscribed to linux-kbuild and the browser won't do
save-as-text, so I typed it all in again.  Please check the below.

I'll put this in my mainline-later queue, which means I'll send it
Linuswards next week if it doesn't pop up in linux-next before then.

The changelog doesn't actually describe this patch as a regression fix.
It makes the patch look like a regular old bugfix.  And the changelog
doesn't describe the severity of the bug either.  Please do pay
attention to such details to guide others in deciding which kernel
version(s) need fixing.


From: Riku Voipio <riku.voipio@linaro.org>
Subject: builddeb: remove debian/files before build

As debian/files keeps accumulating entries, the changes file will end up
growing indefinelty.  Remove the file in clean rule and before build
starts.

Fixes: 3716001bcb7f ("deb-pkg: add source package")
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reported-by: Doug Smythies <dsmythies@telus.net>
Tested-by: Doug Smythies <dsmythies@telus.net>
Tested-by: Kalle Valo <kvalo@codeaurora.org>
Acked-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Michal Marek <mmarek@suse.cz>
Cc: maximilian attems <maks@stro.at>
Cc: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 scripts/package/builddeb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN scripts/package/builddeb~a scripts/package/builddeb
--- a/scripts/package/builddeb~a
+++ a/scripts/package/builddeb
@@ -115,7 +115,7 @@ esac
 BUILD_DEBUG="$(grep -s '^CONFIG_DEBUG_INFO=y' $KCONFIG_CONFIG || true)"
 
 # Setup the directory structure
-rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir" "$dbg_dir"
+rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir" "$dbg_dir" $objtree/debian/files
 mkdir -m 755 -p "$tmpdir/DEBIAN"
 mkdir -p "$tmpdir/lib" "$tmpdir/boot"
 mkdir -p "$fwdir/lib/firmware/$version/"
@@ -408,7 +408,7 @@ binary-arch:
 	\$(MAKE) KDEB_SOURCENAME=${sourcename} KDEB_PKGVERSION=${packageversion} bindeb-pkg
 
 clean:
-	rm -rf debian/*tmp
+	rm -rf debian/*tmp debian/files
 	mv debian/ debian.backup # debian/ might be cleaned away
 	\$(MAKE) clean
 	mv debian.backup debian
_


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

* [PATCH v3] builddeb: remove debian/files before build
  2015-10-05 20:49         ` Andrew Morton
@ 2015-10-06  7:05           ` riku.voipio
  0 siblings, 0 replies; 10+ messages in thread
From: riku.voipio @ 2015-10-06  7:05 UTC (permalink / raw)
  To: linux-kbuild, mmarek, akpm; +Cc: Riku Voipio, maximilian attems, Chris J Arges

From: Riku Voipio <riku.voipio@linaro.org>

Commit 3716001bcb7f added the ability to create a debian
changelog file. This exposed that previously the builddeb
script hasn't cleared debian/files between builds.

As debian/files keeps accumulating entries, the changes file
will end up growing indefinelty. With outdated entries in
debian/files, builddeb script will exit with failure. This
regression impacts those who use "make deb-pkg" target to
build kernel into a .deb package and never use "make mrproper"
or other means to clean kernel tree from generated directories.

To fix the regression, remove debian/files before starting
build and in the generated clean rule.

Fixes: 3716001bcb7f ("deb-pkg: add source package")
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reported-by: Doug Smythies <dsmythies@telus.net>
Tested-by: Doug Smythies <dsmythies@telus.net>
Tested-by: Kalle Valo <kvalo@codeaurora.org>
Acked-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Michal Marek <mmarek@suse.cz>
Cc: maximilian attems <maks@stro.at>
Cc: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
v3: improved commit message
 scripts/package/builddeb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 0cd46e1..b967e4f 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -115,7 +115,7 @@ esac
 BUILD_DEBUG="$(grep -s '^CONFIG_DEBUG_INFO=y' $KCONFIG_CONFIG || true)"
 
 # Setup the directory structure
-rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir" "$dbg_dir"
+rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir" "$dbg_dir" $objtree/debian/files
 mkdir -m 755 -p "$tmpdir/DEBIAN"
 mkdir -p "$tmpdir/lib" "$tmpdir/boot"
 mkdir -p "$fwdir/lib/firmware/$version/"
@@ -408,7 +408,7 @@ binary-arch:
 	\$(MAKE) KDEB_SOURCENAME=${sourcename} KDEB_PKGVERSION=${packageversion} bindeb-pkg
 
 clean:
-	rm -rf debian/*tmp
+	rm -rf debian/*tmp debian/files
 	mv debian/ debian.backup # debian/ might be cleaned away
 	\$(MAKE) clean
 	mv debian.backup debian
-- 
2.1.4


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

end of thread, other threads:[~2015-10-06  7:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-15 18:11 [PATCH v2] builddeb: remove debian/files before build riku.voipio
2015-09-15 18:21 ` Kalle Valo
2015-09-15 19:11   ` Doug Smythies
2015-09-16  6:55     ` Riku Voipio
2015-09-21 18:09 ` Ben Hutchings
2015-09-22 11:25   ` Kalle Valo
2015-10-05  1:03     ` Doug Smythies
2015-10-05 12:39       ` Riku Voipio
2015-10-05 20:49         ` Andrew Morton
2015-10-06  7:05           ` [PATCH v3] " riku.voipio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.