summaryrefslogtreecommitdiff
path: root/experimental/elfutils/musl-macros.patch
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-07-18 06:15:43 -0400
committerMax Rees <maxcrees@me.com>2019-08-07 18:07:49 -0500
commit420a64fe15922629a54e7d38cdedbf1fc86ee8ff (patch)
tree2b526e9b9426734eff19ca295dd42a91f37811a1 /experimental/elfutils/musl-macros.patch
parent17ca3641eaad94f05d1c9f66593c67e425268050 (diff)
downloadpackages-420a64fe15922629a54e7d38cdedbf1fc86ee8ff.tar.gz
packages-420a64fe15922629a54e7d38cdedbf1fc86ee8ff.tar.bz2
packages-420a64fe15922629a54e7d38cdedbf1fc86ee8ff.tar.xz
packages-420a64fe15922629a54e7d38cdedbf1fc86ee8ff.zip
experimental/elfutils: new package
Diffstat (limited to 'experimental/elfutils/musl-macros.patch')
-rw-r--r--experimental/elfutils/musl-macros.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/experimental/elfutils/musl-macros.patch b/experimental/elfutils/musl-macros.patch
new file mode 100644
index 000000000..fb44d4f33
--- /dev/null
+++ b/experimental/elfutils/musl-macros.patch
@@ -0,0 +1,66 @@
+--- a/src/arlib.h 2015-08-21 14:22:37.000000000 +0200
++++ b/src/arlib.h 2015-11-20 08:02:55.153199611 +0100
+@@ -29,6 +29,16 @@
+ #include <stdint.h>
+ #include <sys/types.h>
+
++#if !defined(ACCESSPERMS)
++# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
++#endif
++#if !defined(ALLPERMS)
++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */
++#endif
++#if !defined(DEFFILEMODE)
++# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/
++#endif
++
+
+ /* State of -D/-U flags. */
+ extern bool arlib_deterministic_output;
+--- a/src/elfcompress.c.orig 2016-04-02 12:51:26.903848894 +0200
++++ b/src/elfcompress.c 2016-04-02 12:55:15.076996338 +0200
+@@ -35,6 +35,14 @@
+ #include <gelf.h>
+ #include "system.h"
+
++#if !defined(FNM_EXTMATCH)
++# define FNM_EXTMATCH 0
++#endif
++
++#if !defined(ALLPERMS)
++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */
++#endif
++
+ /* Name and version of program. */
+ static void print_version (FILE *stream, struct argp_state *state);
+ ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;
+--- a/src/strip.c.orig 2017-08-02 12:06:25.000000000 +0000
++++ b/src/strip.c 2017-08-05 01:58:01.523493062 +0000
+@@ -47,6 +47,14 @@
+ #include <system.h>
+ #include <printversion.h>
+
++#if !defined(FNM_EXTMATCH)
++# define FNM_EXTMATCH 0
++#endif
++
++#if !defined(ACCESSPERMS)
++#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
++#endif
++
+ typedef uint8_t GElf_Byte;
+
+ /* Name and version of program. */
+--- elfutils-0.176/tests/elfstrmerge.c 2019-02-15 15:46:47.000000000 +0000
++++ elfutils-0.176/tests/elfstrmerge.c 2019-07-18 06:29:58.109875347 +0000
+@@ -33,6 +33,10 @@
+ #include ELFUTILS_HEADER(dwelf)
+ #include "elf-knowledge.h"
+
++#if !defined(ALLPERMS)
++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */
++#endif
++
+ /* The original ELF file. */
+ static int fd = -1;
+ static Elf *elf = NULL;