mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] tests/module: nix-ify
@ 2025-01-22 10:33 Joel Granados
  2025-01-28 20:37 ` Luis Chamberlain
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Granados @ 2025-01-22 10:33 UTC (permalink / raw)
  To: Luis Chamberlain; +Cc: linux-kernel, Joel Granados

Use "#!/usr/bin/env bash" instead of "#!/bin/bash". This is necessary
for nix environments as they only provide /usr/bin/env at the standard
location.

Signed-off-by: Joel Granados <joel.granados@kernel.org>
---
I just saw this break my allyes test build. I had usually done it in
debian, but now that its on NixOs; this patch corrects the build error.
---
 lib/tests/module/gen_test_kallsyms.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/tests/module/gen_test_kallsyms.sh b/lib/tests/module/gen_test_kallsyms.sh
index 561dcac0f359..31fe4ed63de8 100755
--- a/lib/tests/module/gen_test_kallsyms.sh
+++ b/lib/tests/module/gen_test_kallsyms.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 TARGET=$(basename $1)
 DIR=lib/tests/module

---
base-commit: ffd294d346d185b70e28b1a28abe367bbfe53c04
change-id: 20250122-jag-nix-ify-1aa2061c4ad8

Best regards,
-- 
Joel Granados <joel.granados@kernel.org>



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

* Re: [PATCH] tests/module: nix-ify
  2025-01-22 10:33 [PATCH] tests/module: nix-ify Joel Granados
@ 2025-01-28 20:37 ` Luis Chamberlain
  2025-02-04 12:23   ` Petr Pavlu
  0 siblings, 1 reply; 3+ messages in thread
From: Luis Chamberlain @ 2025-01-28 20:37 UTC (permalink / raw)
  To: Joel Granados, Petr Pavlu; +Cc: linux-kernel

On Wed, Jan 22, 2025 at 11:33:49AM +0100, Joel Granados wrote:
> Use "#!/usr/bin/env bash" instead of "#!/bin/bash". This is necessary
> for nix environments as they only provide /usr/bin/env at the standard
> location.
> 
> Signed-off-by: Joel Granados <joel.granados@kernel.org>

Acked-by: Luis Chamberlain <mcgrof@kernel.org>

This can go through the modules tree.

  Luis

> ---
> I just saw this break my allyes test build. I had usually done it in
> debian, but now that its on NixOs; this patch corrects the build error.
> ---
>  lib/tests/module/gen_test_kallsyms.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/tests/module/gen_test_kallsyms.sh b/lib/tests/module/gen_test_kallsyms.sh
> index 561dcac0f359..31fe4ed63de8 100755
> --- a/lib/tests/module/gen_test_kallsyms.sh
> +++ b/lib/tests/module/gen_test_kallsyms.sh
> @@ -1,4 +1,4 @@
> -#!/bin/bash
> +#!/usr/bin/env bash
>  
>  TARGET=$(basename $1)
>  DIR=lib/tests/module
> 
> ---
> base-commit: ffd294d346d185b70e28b1a28abe367bbfe53c04
> change-id: 20250122-jag-nix-ify-1aa2061c4ad8
> 
> Best regards,
> -- 
> Joel Granados <joel.granados@kernel.org>
> 
> 

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

* Re: [PATCH] tests/module: nix-ify
  2025-01-28 20:37 ` Luis Chamberlain
@ 2025-02-04 12:23   ` Petr Pavlu
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Pavlu @ 2025-02-04 12:23 UTC (permalink / raw)
  To: Luis Chamberlain, Joel Granados; +Cc: linux-kernel

On 1/28/25 21:37, Luis Chamberlain wrote:
> On Wed, Jan 22, 2025 at 11:33:49AM +0100, Joel Granados wrote:
>> Use "#!/usr/bin/env bash" instead of "#!/bin/bash". This is necessary
>> for nix environments as they only provide /usr/bin/env at the standard
>> location.
>>
>> Signed-off-by: Joel Granados <joel.granados@kernel.org>
> 
> Acked-by: Luis Chamberlain <mcgrof@kernel.org>
> 
> This can go through the modules tree.

Queued on modules-fixes.

-- 
Thanks,
Petr

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

end of thread, other threads:[~2025-02-04 12:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-22 10:33 [PATCH] tests/module: nix-ify Joel Granados
2025-01-28 20:37 ` Luis Chamberlain
2025-02-04 12:23   ` Petr Pavlu

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®