All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] [PATCH] drbd: sort file list
@ 2017-07-17 19:29 Bernhard M. Wiedemann
  2017-07-18  7:20 ` Roland Kammerer
  0 siblings, 1 reply; 3+ messages in thread
From: Bernhard M. Wiedemann @ 2017-07-17 19:29 UTC (permalink / raw)
  To: drbd-dev

because it influences the ordering of entries in compat.h
which influences srcversion= checksum
which prevents drbd.ko from building reproducibly.

See https://reproducible-builds.org/ for why this matters.
---
 drbd/Kbuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drbd/Kbuild b/drbd/Kbuild
index 2d1b4d0..c5787a6 100644
--- a/drbd/Kbuild
+++ b/drbd/Kbuild
@@ -70,7 +70,7 @@ COMPAT_FORCE := FORCE
 endif
 
 ifneq ($(KBUILD_STAGE),modpost)
-TEST_C := $(wildcard $(src)/drbd-kernel-compat/tests/*.c)
+TEST_C := $(sort $(wildcard $(src)/drbd-kernel-compat/tests/*.c))
 TEST_R := $(TEST_C:$(src)/drbd-kernel-compat/tests/%.c=$(obj)/.compat_test.%.result)
 $(obj)/.compat_test.%.result: $(src)/drbd-kernel-compat/tests/%.c $(COMPAT_FORCE)
 	$(call cmd,compat_test_result)
-- 
2.12.3


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

* Re: [Drbd-dev] [PATCH] drbd: sort file list
  2017-07-17 19:29 [Drbd-dev] [PATCH] drbd: sort file list Bernhard M. Wiedemann
@ 2017-07-18  7:20 ` Roland Kammerer
  2017-07-18  7:59   ` Bernhard M. Wiedemann
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Kammerer @ 2017-07-18  7:20 UTC (permalink / raw)
  To: drbd-dev

On Mon, Jul 17, 2017 at 09:29:30PM +0200, Bernhard M. Wiedemann wrote:
> because it influences the ordering of entries in compat.h
> which influences srcversion= checksum

"srcversion" is for in tree drbd.

> which prevents drbd.ko from building reproducibly.
> 
> See https://reproducible-builds.org/ for why this matters.
> ---
>  drbd/Kbuild | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drbd/Kbuild b/drbd/Kbuild
> index 2d1b4d0..c5787a6 100644
> --- a/drbd/Kbuild
> +++ b/drbd/Kbuild
> @@ -70,7 +70,7 @@ COMPAT_FORCE := FORCE
>  endif
>  
>  ifneq ($(KBUILD_STAGE),modpost)
> -TEST_C := $(wildcard $(src)/drbd-kernel-compat/tests/*.c)
> +TEST_C := $(sort $(wildcard $(src)/drbd-kernel-compat/tests/*.c))
>  TEST_R := $(TEST_C:$(src)/drbd-kernel-compat/tests/%.c=$(obj)/.compat_test.%.result)
>  $(obj)/.compat_test.%.result: $(src)/drbd-kernel-compat/tests/%.c $(COMPAT_FORCE)
>  	$(call cmd,compat_test_result)

which is for out of tree drbd, like the whole compat checks and compat.h.

so what are you actually talking about?

Regards, rck

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

* Re: [Drbd-dev] [PATCH] drbd: sort file list
  2017-07-18  7:20 ` Roland Kammerer
@ 2017-07-18  7:59   ` Bernhard M. Wiedemann
  0 siblings, 0 replies; 3+ messages in thread
From: Bernhard M. Wiedemann @ 2017-07-18  7:59 UTC (permalink / raw)
  To: drbd-dev

On 2017-07-18 09:20, Roland Kammerer wrote:
> On Mon, Jul 17, 2017 at 09:29:30PM +0200, Bernhard M. Wiedemann wrote:
>> because it influences the ordering of entries in compat.h
>> which influences srcversion= checksum
> 
> "srcversion" is for in tree drbd.
> 
>> which prevents drbd.ko from building reproducibly.
>>
>> See https://reproducible-builds.org/ for why this matters.
>> ---
>>  drbd/Kbuild | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drbd/Kbuild b/drbd/Kbuild
>> index 2d1b4d0..c5787a6 100644
>> --- a/drbd/Kbuild
>> +++ b/drbd/Kbuild
>> @@ -70,7 +70,7 @@ COMPAT_FORCE := FORCE
>>  endif
>>  
>>  ifneq ($(KBUILD_STAGE),modpost)
>> -TEST_C := $(wildcard $(src)/drbd-kernel-compat/tests/*.c)
>> +TEST_C := $(sort $(wildcard $(src)/drbd-kernel-compat/tests/*.c))
>>  TEST_R := $(TEST_C:$(src)/drbd-kernel-compat/tests/%.c=$(obj)/.compat_test.%.result)
>>  $(obj)/.compat_test.%.result: $(src)/drbd-kernel-compat/tests/%.c $(COMPAT_FORCE)
>>  	$(call cmd,compat_test_result)
> 
> which is for out of tree drbd, like the whole compat checks and compat.h.
> 
> so what are you actually talking about?

I'm trying to build openSUSE drbd packages twice and get such diffs:
http://rb.zq1.de/compare.factory-20170713/drbd-compare.out

Our kmp packages are for out-of-tree modules, so it seems the kernel's
/usr/src/linux-4.12.0-1/scripts/mod/modpost.c get_src_version
/usr/src/linux-4.12.0-1/scripts/mod/sumversion.c
codepath is also taken for out-of-tree modules.

Ciao
Bernhard M.

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

end of thread, other threads:[~2017-07-18  7:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 19:29 [Drbd-dev] [PATCH] drbd: sort file list Bernhard M. Wiedemann
2017-07-18  7:20 ` Roland Kammerer
2017-07-18  7:59   ` Bernhard M. Wiedemann

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.