Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/quickjs: fix typo in prefix
@ 2024-12-16 21:30 Thomas Bonnefille
  2024-12-16 22:01 ` Julien Olivain
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas Bonnefille @ 2024-12-16 21:30 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Bonnefille, Thomas Petazzoni, Miquèl Raynal

The quickjs Makefile expects the variable PREFIX to be set [1] but
prefix is set instead.
Without this parameter quickjs is installed to /usr/local by default [2]
instead of /usr as requested.
This commit fixed this error.

[1]: https://github.com/bellard/quickjs/blob/master/Makefile#L383
[2]: https://github.com/bellard/quickjs/blob/master/Makefile#L43

Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
---
 package/quickjs/quickjs.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/quickjs/quickjs.mk b/package/quickjs/quickjs.mk
index e745923b87bff3cdeb2f872264be5e65466020cf..2bd9da1392cb853e57492253c6202a65187fb81e 100644
--- a/package/quickjs/quickjs.mk
+++ b/package/quickjs/quickjs.mk
@@ -29,7 +29,7 @@ define QUICKJS_INSTALL_STAGING_CMDS
 		EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
 		DESTDIR=$(STAGING_DIR) \
 		STRIP=/bin/true \
-		prefix=/usr \
+		PREFIX=/usr \
 		install
 endef
 
@@ -39,7 +39,7 @@ define QUICKJS_INSTALL_TARGET_CMDS
 		EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
 		DESTDIR=$(TARGET_DIR) \
 		STRIP=/bin/true \
-		prefix=/usr \
+		PREFIX=/usr \
 		install
 endef
 

---
base-commit: ed9da089449c53519be02204f97c3452abba5cc3
change-id: 20241211-fix_quickjs_prefix-28a1837f0d65

Best regards,
-- 
Thomas Bonnefille <thomas.bonnefille@bootlin.com>

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] package/quickjs: fix typo in prefix
  2024-12-16 21:30 [Buildroot] [PATCH] package/quickjs: fix typo in prefix Thomas Bonnefille
@ 2024-12-16 22:01 ` Julien Olivain
  2024-12-16 22:03 ` Thomas Petazzoni via buildroot
  2024-12-29 20:09 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Julien Olivain @ 2024-12-16 22:01 UTC (permalink / raw)
  To: Thomas Bonnefille; +Cc: buildroot, Thomas Petazzoni, Miquèl Raynal

On 16/12/2024 22:30, Thomas Bonnefille wrote:
> The quickjs Makefile expects the variable PREFIX to be set [1] but
> prefix is set instead.
> Without this parameter quickjs is installed to /usr/local by default 
> [2]
> instead of /usr as requested.
> This commit fixed this error.
> 
> [1]: https://github.com/bellard/quickjs/blob/master/Makefile#L383
> [2]: https://github.com/bellard/quickjs/blob/master/Makefile#L43
> 
> Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>

Applied to master, thanks.

> ---
>  package/quickjs/quickjs.mk | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/package/quickjs/quickjs.mk b/package/quickjs/quickjs.mk
> index 
> e745923b87bff3cdeb2f872264be5e65466020cf..2bd9da1392cb853e57492253c6202a65187fb81e 
> 100644
> --- a/package/quickjs/quickjs.mk
> +++ b/package/quickjs/quickjs.mk
> @@ -29,7 +29,7 @@ define QUICKJS_INSTALL_STAGING_CMDS
>  		EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
>  		DESTDIR=$(STAGING_DIR) \
>  		STRIP=/bin/true \
> -		prefix=/usr \
> +		PREFIX=/usr \
>  		install
>  endef
> 
> @@ -39,7 +39,7 @@ define QUICKJS_INSTALL_TARGET_CMDS
>  		EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
>  		DESTDIR=$(TARGET_DIR) \
>  		STRIP=/bin/true \
> -		prefix=/usr \
> +		PREFIX=/usr \
>  		install
>  endef
> 
> 
> ---
> base-commit: ed9da089449c53519be02204f97c3452abba5cc3
> change-id: 20241211-fix_quickjs_prefix-28a1837f0d65
> 
> Best regards,
> --
> Thomas Bonnefille <thomas.bonnefille@bootlin.com>
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] package/quickjs: fix typo in prefix
  2024-12-16 21:30 [Buildroot] [PATCH] package/quickjs: fix typo in prefix Thomas Bonnefille
  2024-12-16 22:01 ` Julien Olivain
@ 2024-12-16 22:03 ` Thomas Petazzoni via buildroot
  2024-12-29 20:09 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-12-16 22:03 UTC (permalink / raw)
  To: Thomas Bonnefille; +Cc: Miquèl Raynal, buildroot

Hello Thomas,

On Mon, 16 Dec 2024 22:30:52 +0100
Thomas Bonnefille <thomas.bonnefille@bootlin.com> wrote:

> The quickjs Makefile expects the variable PREFIX to be set [1] but
> prefix is set instead.

... by Buildroot's quickjs.mk.

> Without this parameter quickjs is installed to /usr/local by default [2]
> instead of /usr as requested.
> This commit fixed this error.

s/fixed/fixes/

Also, you want to add:

Fixes: https://gitlab.com/buildroot.org/buildroot/-/issues/15

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] package/quickjs: fix typo in prefix
  2024-12-16 21:30 [Buildroot] [PATCH] package/quickjs: fix typo in prefix Thomas Bonnefille
  2024-12-16 22:01 ` Julien Olivain
  2024-12-16 22:03 ` Thomas Petazzoni via buildroot
@ 2024-12-29 20:09 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2024-12-29 20:09 UTC (permalink / raw)
  To: Thomas Bonnefille; +Cc: buildroot, Thomas Petazzoni, Miquèl Raynal

>>>>> "Thomas" == Thomas Bonnefille <thomas.bonnefille@bootlin.com> writes:

 > The quickjs Makefile expects the variable PREFIX to be set [1] but
 > prefix is set instead.
 > Without this parameter quickjs is installed to /usr/local by default [2]
 > instead of /usr as requested.
 > This commit fixed this error.

 > [1]: https://github.com/bellard/quickjs/blob/master/Makefile#L383
 > [2]: https://github.com/bellard/quickjs/blob/master/Makefile#L43

 > Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>

Committed to 2024.11.x (this was broken by commit 814f9f17d5c3, so
2024.02.x is not affected), thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-12-29 20:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16 21:30 [Buildroot] [PATCH] package/quickjs: fix typo in prefix Thomas Bonnefille
2024-12-16 22:01 ` Julien Olivain
2024-12-16 22:03 ` Thomas Petazzoni via buildroot
2024-12-29 20:09 ` Peter Korsgaard

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