Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Dan McGregor <danismostlikely@gmail.com>,
	 openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 2/2] systemd: fix tests when not using gold
Date: Wed, 23 Apr 2014 09:34:54 -0700	[thread overview]
Message-ID: <5357EBAE.6040408@linux.intel.com> (raw)
In-Reply-To: <CACS+7ZR=mA9+=NzxF=XLXvxxgypsjzcftZQ0UVWG-0rBLk202A@mail.gmail.com>

On 04/23/2014 08:01 AM, Dan McGregor wrote:
> From: Dan McGregor <dan.mcgregor@usask.ca>
>
> Explicitly mark the dummy function as externally visible
> so that ld can find the symbol at link time. This is needed
> when the DISTRO_FEATURE ld-is-gold is not enabled; systemd
> uses -flto anyway.
>
> Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
> ---
>   meta/recipes-core/systemd/systemd/systemd-lto-fix.patch | 14 ++++++++++++++
>   meta/recipes-core/systemd/systemd_211.bb                |  1 +
>   2 files changed, 15 insertions(+)
>   create mode 100644 meta/recipes-core/systemd/systemd/systemd-lto-fix.patch
>
> diff --git a/meta/recipes-core/systemd/systemd/systemd-lto-fix.patch
> b/meta/recipes-core/systemd/systemd/systemd-lto-fix.patch
> new file mode 100644
> index 0000000..90875e4
> --- /dev/null
> +++ b/meta/recipes-core/systemd/systemd/systemd-lto-fix.patch

The patch also needs an appropriate Upstream-Status and Signed-off-by 
tags here.

Thanks
	Sau!

> @@ -0,0 +1,14 @@
> +diff --git a/src/test/test-udev.c b/src/test/test-udev.c
> +index b064744..3753c87 100644
> +--- a/src/test/test-udev.c
> ++++ b/src/test/test-udev.c
> +@@ -36,7 +36,8 @@
> + #include "udev.h"
> + #include "udev-util.h"
> +
> +-void udev_main_log(struct udev *udev, int priority,
> ++void __attribute__((externally_visible))
> ++     udev_main_log(struct udev *udev, int priority,
> +                    const char *file, int line, const char *fn,
> +                    const char *format, va_list args) {}
> +
> diff --git a/meta/recipes-core/systemd/systemd_211.bb
> b/meta/recipes-core/systemd/systemd_211.bb
> index df632ab..ddf89b8 100644
> --- a/meta/recipes-core/systemd/systemd_211.bb
> +++ b/meta/recipes-core/systemd/systemd_211.bb
> @@ -23,6 +23,7 @@ PV = "211+git${SRCPV}"
>
>   SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;branch=master;protocol=git
> \
>              file://binfmt-install.patch \
> +           file://systemd-lto-fix.patch \
>              file://systemd-pam-configure-check-uclibc.patch \
>              file://systemd-pam-fix-execvpe.patch \
>              file://systemd-pam-fix-fallocate.patch \
>


  parent reply	other threads:[~2014-04-23 16:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 15:01 [PATCH 2/2] systemd: fix tests when not using gold Dan McGregor
2014-04-23 16:17 ` Burton, Ross
     [not found]   ` <CACS+7ZR9BMcn=_cRVswCUSRWuY-QYH-LWXy1aUF-ORK-9HLQYw@mail.gmail.com>
2014-04-23 16:24     ` Burton, Ross
2014-04-23 16:34 ` Saul Wold [this message]
2014-04-23 16:43   ` Dan McGregor
2014-04-24  2:37     ` Khem Raj
2014-04-24 16:32       ` Dan McGregor
2014-04-28 21:36       ` Dan McGregor
2014-05-09  2:25         ` 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=5357EBAE.6040408@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=danismostlikely@gmail.com \
    --cc=openembedded-core@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