All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/libnspr: fix build failure on mips with musl libc
@ 2022-04-17 22:35 Giulio Benetti
  2022-04-21 20:57 ` Arnout Vandecappelle
  2022-05-24 13:45 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Giulio Benetti @ 2022-04-17 22:35 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti

Add patch that uses Linux <asm/sgidefs.h> instead of libc <sgidefs.h> since
musl doesn't provide it.

Patch is pending upstream here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1765100

Fixes:
http://autobuild.buildroot.net/results/61743bf5ad9ddc69786ae854ed4ab58c59f64dd0/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 ...-1765100-fix-build-on-mips-musl-libc.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/libnspr/0001-Bug-1765100-fix-build-on-mips-musl-libc.patch

diff --git a/package/libnspr/0001-Bug-1765100-fix-build-on-mips-musl-libc.patch b/package/libnspr/0001-Bug-1765100-fix-build-on-mips-musl-libc.patch
new file mode 100644
index 0000000000..10bf74130c
--- /dev/null
+++ b/package/libnspr/0001-Bug-1765100-fix-build-on-mips-musl-libc.patch
@@ -0,0 +1,33 @@
+From 00e5b818f2d9f3264107801fc2fcff33a9355a78 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <giulio.benetti@benettiengineering.com>
+Date: Sun, 17 Apr 2022 23:55:26 +0200
+Subject: [PATCH] Bug 1765100 - fix build on mips+musl libc
+
+This patch fix build failure on mips with musl libc by using Linux
+<asm/sgidefs.h> instead of the one provided by libc since musl doesn't
+provide <sgidefs.h>.
+
+Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
+---
+This patch is pending upstream:
+https://bugzilla.mozilla.org/show_bug.cgi?id=1765100
+---
+ nspr/pr/include/md/_linux.cfg | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/nspr/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg
+index 23b160fd..dbc0d40e 100644
+--- a/nspr/pr/include/md/_linux.cfg
++++ b/nspr/pr/include/md/_linux.cfg
+@@ -499,7 +499,7 @@
+ #elif defined(__mips__)
+ 
+ /* For _ABI64 */
+-#include <sgidefs.h>
++#include <asm/sgidefs.h>
+ 
+ #ifdef __MIPSEB__
+ #define IS_BIG_ENDIAN 1
+-- 
+2.25.1
+
-- 
2.25.1

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

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

* Re: [Buildroot] [PATCH] package/libnspr: fix build failure on mips with musl libc
  2022-04-17 22:35 [Buildroot] [PATCH] package/libnspr: fix build failure on mips with musl libc Giulio Benetti
@ 2022-04-21 20:57 ` Arnout Vandecappelle
  2022-05-24 13:45 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2022-04-21 20:57 UTC (permalink / raw)
  To: Giulio Benetti, buildroot



On 18/04/2022 00:35, Giulio Benetti wrote:
> Add patch that uses Linux <asm/sgidefs.h> instead of libc <sgidefs.h> since
> musl doesn't provide it.
> 
> Patch is pending upstream here:
> https://bugzilla.mozilla.org/show_bug.cgi?id=1765100
> 
> Fixes:
> http://autobuild.buildroot.net/results/61743bf5ad9ddc69786ae854ed4ab58c59f64dd0/
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   ...-1765100-fix-build-on-mips-musl-libc.patch | 33 +++++++++++++++++++
>   1 file changed, 33 insertions(+)
>   create mode 100644 package/libnspr/0001-Bug-1765100-fix-build-on-mips-musl-libc.patch
> 
> diff --git a/package/libnspr/0001-Bug-1765100-fix-build-on-mips-musl-libc.patch b/package/libnspr/0001-Bug-1765100-fix-build-on-mips-musl-libc.patch
> new file mode 100644
> index 0000000000..10bf74130c
> --- /dev/null
> +++ b/package/libnspr/0001-Bug-1765100-fix-build-on-mips-musl-libc.patch
> @@ -0,0 +1,33 @@
> +From 00e5b818f2d9f3264107801fc2fcff33a9355a78 Mon Sep 17 00:00:00 2001
> +From: Giulio Benetti <giulio.benetti@benettiengineering.com>
> +Date: Sun, 17 Apr 2022 23:55:26 +0200
> +Subject: [PATCH] Bug 1765100 - fix build on mips+musl libc
> +
> +This patch fix build failure on mips with musl libc by using Linux
> +<asm/sgidefs.h> instead of the one provided by libc since musl doesn't
> +provide <sgidefs.h>.
> +
> +Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> +---
> +This patch is pending upstream:
> +https://bugzilla.mozilla.org/show_bug.cgi?id=1765100
> +---
> + nspr/pr/include/md/_linux.cfg | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/nspr/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg
> +index 23b160fd..dbc0d40e 100644
> +--- a/nspr/pr/include/md/_linux.cfg
> ++++ b/nspr/pr/include/md/_linux.cfg
> +@@ -499,7 +499,7 @@
> + #elif defined(__mips__)
> +
> + /* For _ABI64 */
> +-#include <sgidefs.h>
> ++#include <asm/sgidefs.h>
> +
> + #ifdef __MIPSEB__
> + #define IS_BIG_ENDIAN 1
> +--
> +2.25.1
> +
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] package/libnspr: fix build failure on mips with musl libc
  2022-04-17 22:35 [Buildroot] [PATCH] package/libnspr: fix build failure on mips with musl libc Giulio Benetti
  2022-04-21 20:57 ` Arnout Vandecappelle
@ 2022-05-24 13:45 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-05-24 13:45 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: buildroot

>>>>> "Giulio" == Giulio Benetti <giulio.benetti@benettiengineering.com> writes:

 > Add patch that uses Linux <asm/sgidefs.h> instead of libc <sgidefs.h> since
 > musl doesn't provide it.

 > Patch is pending upstream here:
 > https://bugzilla.mozilla.org/show_bug.cgi?id=1765100

 > Fixes:
 > http://autobuild.buildroot.net/results/61743bf5ad9ddc69786ae854ed4ab58c59f64dd0/

 > Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

Committed to 2022.02.x, thanks.

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

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

end of thread, other threads:[~2022-05-24 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-17 22:35 [Buildroot] [PATCH] package/libnspr: fix build failure on mips with musl libc Giulio Benetti
2022-04-21 20:57 ` Arnout Vandecappelle
2022-05-24 13:45 ` Peter Korsgaard

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.