diff options
| author | Khem Raj <raj.khem@gmail.com> | 2011-07-01 13:38:18 +0000 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-07-01 09:00:00 +0200 |
| commit | c4f636ad336bf33d986f2bd11086067c18ea5bcc (patch) | |
| tree | 9ad22fd013e801b1b46d5bf65d8512e1ce8dc1fa | |
| parent | 56485baea55de18ab22ca82ebaebdbfed1b353bc (diff) | |
| download | meta-openembedded-c4f636ad336bf33d986f2bd11086067c18ea5bcc.tar.gz | |
systemd_git.bb: Alias mkostemp() to mkstemp() for uclibc targets
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
| -rw-r--r-- | meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch | 19 | ||||
| -rw-r--r-- | meta-oe/recipes-core/systemd/systemd_git.bb | 3 |
2 files changed, 21 insertions, 1 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch b/meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch new file mode 100644 index 0000000000..ca10440a8d --- /dev/null +++ b/meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | uclibc does not have mkostemp() so we redefine it to use mkstemp() | ||
| 2 | |||
| 3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 4 | |||
| 5 | Index: git/src/macro.h | ||
| 6 | =================================================================== | ||
| 7 | --- git.orig/src/macro.h 2011-06-30 10:33:53.000000000 -0700 | ||
| 8 | +++ git/src/macro.h 2011-06-30 15:07:28.285270006 -0700 | ||
| 9 | @@ -27,6 +27,10 @@ | ||
| 10 | #include <sys/uio.h> | ||
| 11 | #include <inttypes.h> | ||
| 12 | |||
| 13 | +#ifdef __UCLIBC__ | ||
| 14 | +/* uclibc does not implement mkostemp GNU extention */ | ||
| 15 | +#define mkostemp(x,y) mkstemp(x) | ||
| 16 | +#endif | ||
| 17 | #define _printf_attr_(a,b) __attribute__ ((format (printf, a, b))) | ||
| 18 | #define _sentinel_ __attribute__ ((sentinel)) | ||
| 19 | #define _noreturn_ __attribute__((noreturn)) | ||
diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb index 2a313e0f22..c750b2f7c1 100644 --- a/meta-oe/recipes-core/systemd/systemd_git.bb +++ b/meta-oe/recipes-core/systemd/systemd_git.bb | |||
| @@ -15,7 +15,7 @@ inherit gitpkgv | |||
| 15 | PKGV = "v${GITPKGVTAG}" | 15 | PKGV = "v${GITPKGVTAG}" |
| 16 | 16 | ||
| 17 | PV = "git" | 17 | PV = "git" |
| 18 | PR = "r3" | 18 | PR = "r4" |
| 19 | 19 | ||
| 20 | inherit autotools vala | 20 | inherit autotools vala |
| 21 | 21 | ||
| @@ -23,6 +23,7 @@ SRCREV = "8585357a0e5e9f4d56e999d7cd1a73e77ae0eb80" | |||
| 23 | 23 | ||
| 24 | SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \ | 24 | SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \ |
| 25 | file://0001-systemd-disable-xml-file-stuff-and-introspection.patch \ | 25 | file://0001-systemd-disable-xml-file-stuff-and-introspection.patch \ |
| 26 | file://paper-over-mkostemp.patch \ | ||
| 26 | " | 27 | " |
| 27 | 28 | ||
| 28 | S = "${WORKDIR}/git" | 29 | S = "${WORKDIR}/git" |
