Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] systemd_git.bb: Alias mkostemp() to mkstemp() for uclibc targets
Date: Fri, 01 Jul 2011 09:01:06 +0200	[thread overview]
Message-ID: <iujrbi$agn$1@dough.gmane.org> (raw)
In-Reply-To: <1309498698-13369-1-git-send-email-raj.khem@gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks, both are in

On 01-07-11 07:38, Khem Raj wrote:
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  .../systemd/systemd/paper-over-mkostemp.patch      |   19 +++++++++++++++++++
>  meta-oe/recipes-core/systemd/systemd_git.bb        |    3 ++-
>  2 files changed, 21 insertions(+), 1 deletions(-)
>  create mode 100644 meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch
> 
> 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 0000000..ca10440
> --- /dev/null
> +++ b/meta-oe/recipes-core/systemd/systemd/paper-over-mkostemp.patch
> @@ -0,0 +1,19 @@
> +uclibc does not have mkostemp() so we redefine it to use mkstemp()
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +
> +Index: git/src/macro.h
> +===================================================================
> +--- git.orig/src/macro.h	2011-06-30 10:33:53.000000000 -0700
> ++++ git/src/macro.h	2011-06-30 15:07:28.285270006 -0700
> +@@ -27,6 +27,10 @@
> + #include <sys/uio.h>
> + #include <inttypes.h>
> + 
> ++#ifdef __UCLIBC__
> ++/* uclibc does not implement mkostemp GNU extention */
> ++#define mkostemp(x,y) mkstemp(x)
> ++#endif
> + #define _printf_attr_(a,b) __attribute__ ((format (printf, a, b)))
> + #define _sentinel_ __attribute__ ((sentinel))
> + #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 2a313e0..c750b2f 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
>  PKGV = "v${GITPKGVTAG}"
>  
>  PV = "git"
> -PR = "r3"
> +PR = "r4"
>  
>  inherit autotools vala
>  
> @@ -23,6 +23,7 @@ SRCREV = "8585357a0e5e9f4d56e999d7cd1a73e77ae0eb80"
>  
>  SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \
>             file://0001-systemd-disable-xml-file-stuff-and-introspection.patch \
> +           file://paper-over-mkostemp.patch \
>            "
>  
>  S = "${WORKDIR}/git"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFODXCyMkyGM64RGpERAs2xAJkBX+3ccJsW4y9osQSYFq5shzC2LACfe6IX
RN9FH3u/dVImKyDh794PCfg=
=SyuQ
-----END PGP SIGNATURE-----




  reply	other threads:[~2011-07-01  7:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-01  5:38 [meta-oe][PATCH] systemd_git.bb: Alias mkostemp() to mkstemp() for uclibc targets Khem Raj
2011-07-01  7:01 ` Koen Kooi [this message]
2011-07-01  8:47 ` Paul Menzel
2011-07-01 17:19   ` Khem Raj
2011-07-01  9:48 ` Phil Blundell
2011-07-01 13:48   ` Khem Raj
2011-07-01 14:23     ` Phil Blundell
2011-07-01 17:11       ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='iujrbi$agn$1@dough.gmane.org' \
    --to=koen@dominion.thruhere.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox