-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use PKG_SOURCE_PROTO for smaller tarballs. Removed upstreamed patches Backport basename patch for musl compatibility. Signed-off-by: Rosen Penev <rosenp@gmail.com>
- Loading branch information
Showing
9 changed files
with
48 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 7fb040bde69ebdfce48cf1a01c1a62fd4f8eef0a Mon Sep 17 00:00:00 2001 | ||
From: Jules Maselbas <jmaselbas@zdiv.net> | ||
Date: Thu, 16 May 2024 12:01:00 +0200 | ||
Subject: [PATCH] libapparamor: Define a portable version of gnu basename | ||
|
||
Since musl 1.2.5, basename(3) prototype is only provided in libgen.h | ||
(as mandated by POSIX) and not in strings.h. Also there is a major | ||
difference between the gnu basename and the one defined in libgen.h, | ||
the latter modify the argument string making them incompatible. | ||
|
||
Fix this by defining a portable version of basename using strchr. | ||
--- | ||
libraries/libapparmor/testsuite/test_multi.c | 8 ++++++-- | ||
1 file changed, 6 insertions(+), 2 deletions(-) | ||
|
||
--- a/libraries/libapparmor/testsuite/test_multi.c | ||
+++ b/libraries/libapparmor/testsuite/test_multi.c | ||
@@ -1,5 +1,3 @@ | ||
-#define _GNU_SOURCE /* for glibc's basename version */ | ||
- | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
@@ -7,6 +5,12 @@ | ||
|
||
#include <aalogparse.h> | ||
|
||
+static const char *basename(const char *path) | ||
+{ | ||
+ const char *p = strrchr(path, '/'); | ||
+ return p ? p + 1 : path; | ||
+} | ||
+ | ||
int print_results(aa_log_record *record); | ||
|
||
int main(int argc, char **argv) |
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
utils/apparmor/patches/080-add-new-python-versions-to-logprof-conf.patch
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.