Skip to contentSkip to conversation

package/libapparmor: fix build with musl

PATCH New Fabrice Fontaine 2 participants 2 messages Oct 18, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libapparmor: fix build with musl

Fix build of apparmor 3.0.0 with musl

Fixes:
- http://autobuild.buildroot.org/results/ccbee89030308cf1e4bfce89635d40676c7c63a0

---
 ...-aa_status-Fix-build-issue-with-musl.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/libapparmor/3.0.0/0003-aa_status-Fix-build-issue-with-musl.patch
package/libapparmor/3.0.0/0003-aa_status-Fix-build-issue-with-musl.patch new file +33 -0
new file mode 100644
index 0000000000..83981bfecc
@@ -0,0 +1,33 @@
+From a2a0d14b9c5046b76124c828a53b0e9cbc1bc5c8 Mon Sep 17 00:00:00 2001
+From: Armin Kuster <[email protected]>
+Date: Wed, 7 Oct 2020 08:27:11 -0700
+Subject: [PATCH] aa_status: Fix build issue with musl
+
+add limits.h
+
+aa_status.c:269:22: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?
+|   269 |    real_exe = calloc(PATH_MAX + 1, sizeof(char));
+
+Signed-off-by: Armin Kuster <[email protected]>
+[Retrieved from:
+https://gitlab.com/apparmor/apparmor/-/commit/a2a0d14b9c5046b76124c828a53b0e9cbc1bc5c8]
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ binutils/aa_status.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/binutils/aa_status.c b/binutils/aa_status.c
+index 78b034090..41f1954e9 100644
+--- a/binutils/aa_status.c
++++ b/binutils/aa_status.c
+@@ -10,6 +10,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <limits.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/wait.h>
+-- 
+GitLab
+
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/1 package/libapparmor: fix build with musl

Fabrice, All,

On 2020-10-18 15:46 +0200, Fabrice Fontaine spake thusly:

Quoted 6 lines

Fix build of apparmor 3.0.0 with musl

Fixes:
- http://autobuild.buildroot.org/results/ccbee89030308cf1e4bfce89635d40676c7c63a0

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 51 lines
---
 ...-aa_status-Fix-build-issue-with-musl.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/libapparmor/3.0.0/0003-aa_status-Fix-build-issue-with-musl.patch
package/libapparmor/3.0.0/0003-aa_status-Fix-build-issue-with-musl.patch new file +33 -0
new file mode 100644
index 0000000000..83981bfecc
@@ -0,0 +1,33 @@
+From a2a0d14b9c5046b76124c828a53b0e9cbc1bc5c8 Mon Sep 17 00:00:00 2001
+From: Armin Kuster <[email protected]>
+Date: Wed, 7 Oct 2020 08:27:11 -0700
+Subject: [PATCH] aa_status: Fix build issue with musl
+
+add limits.h
+
+aa_status.c:269:22: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?
+|   269 |    real_exe = calloc(PATH_MAX + 1, sizeof(char));
+
+Signed-off-by: Armin Kuster <[email protected]>
+[Retrieved from:
+https://gitlab.com/apparmor/apparmor/-/commit/a2a0d14b9c5046b76124c828a53b0e9cbc1bc5c8]
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ binutils/aa_status.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/binutils/aa_status.c b/binutils/aa_status.c
+index 78b034090..41f1954e9 100644
+--- a/binutils/aa_status.c
++++ b/binutils/aa_status.c
+@@ -10,6 +10,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <limits.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/wait.h>
+-- 
+GitLab
+
Signature · 6 lines
2.28.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'