diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-02 10:40:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-02 10:52:48 +0000 |
commit | fd024b04f62ceb810b5ce5c0eb740277cb7651ac (patch) | |
tree | 5d9b9290738e7902d9f3c50101713141ecdaa991 /testing/kbuild/0001-define-ALLPERMS-is-missing.patch | |
parent | b705597922992e151deeda07f70804f6733af810 (diff) | |
download | aports-fd024b04f62ceb810b5ce5c0eb740277cb7651ac.tar.bz2 aports-fd024b04f62ceb810b5ce5c0eb740277cb7651ac.tar.xz |
testing/kbuild: upgrade to 0.1.9998_pre20131130 and fix build on musl
Diffstat (limited to 'testing/kbuild/0001-define-ALLPERMS-is-missing.patch')
-rw-r--r-- | testing/kbuild/0001-define-ALLPERMS-is-missing.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/kbuild/0001-define-ALLPERMS-is-missing.patch b/testing/kbuild/0001-define-ALLPERMS-is-missing.patch new file mode 100644 index 0000000000..ffe1b757e5 --- /dev/null +++ b/testing/kbuild/0001-define-ALLPERMS-is-missing.patch @@ -0,0 +1,43 @@ +From ad40844b8d4ccd3fec48fd1db3d165926d247398 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 2 Jan 2014 08:55:33 +0000 +Subject: [PATCH] define ALLPERMS is missing + +--- + src/kmk/kmkbuiltin/chmod.c | 4 ++++ + src/kmk/kmkbuiltin/install.c | 4 ++++ + 2 files changed, 8 insertions(+) + +diff --git a/src/kmk/kmkbuiltin/chmod.c b/src/kmk/kmkbuiltin/chmod.c +index 792a286..8edce38 100644 +--- a/src/kmk/kmkbuiltin/chmod.c ++++ b/src/kmk/kmkbuiltin/chmod.c +@@ -66,6 +66,10 @@ static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94"; + #include "getopt.h" + #include "kmkbuiltin.h" + ++#ifndef ALLPERMS ++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */ ++#endif ++ + extern void * bsd_setmode(const char *p); + extern mode_t bsd_getmode(const void *bbox, mode_t omode); + extern void bsd_strmode(mode_t mode, char *p); +diff --git a/src/kmk/kmkbuiltin/install.c b/src/kmk/kmkbuiltin/install.c +index 13bec72..08d8ffe 100644 +--- a/src/kmk/kmkbuiltin/install.c ++++ b/src/kmk/kmkbuiltin/install.c +@@ -127,6 +127,10 @@ extern mode_t bsd_getmode(const void *bbox, mode_t omode); + # define IS_SLASH(ch) ((ch) == '/') + #endif + ++#ifndef ALLPERMS ++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */ ++#endif ++ + static gid_t gid; + static uid_t uid; + static int dobackup, docompare, dodir, dopreserve, dostrip, nommap, safecopy, verbose, mode_given; +-- +1.8.5.2 + |