Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/eudev: add libselinux dependency
Date: Thu, 30 Jul 2015 15:48:33 +0200	[thread overview]
Message-ID: <20150730154833.416d5073@free-electrons.com> (raw)
In-Reply-To: <1438262864-6073-1-git-send-email-romain.naour@openwide.fr>

Dear Romain Naour,

On Thu, 30 Jul 2015 15:27:44 +0200, Romain Naour wrote:
> Disable libselinux support with musl toolchains which doesn't have
> struct mallinfo.
> 
> selinux-util.c: In function ?mac_selinux_init?:
> selinux-util.c:70:25: error: storage size of ?before_mallinfo? isn?t known
>          struct mallinfo before_mallinfo, after_mallinfo;
> 
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> Cc: Clayton Shotwell <clshotwe@rockwellcollins.com>

Thanks for the patch, however I am not sure this is really the right
fix. mallinfo() is only used to display some statistics about the heap
consumption of the SELinux database, so it could be disabled.

So the right fix would be to add a configure.ac check for mallinfo(),
and if available, use it, and if not, remove this useless debug message.

Like in configure.ac:

AC_CHECK_FUNCS([mallinfo])

and then use #ifdef HAVE_MALLINFO in the code.

Now the question is whether something like that would be accepted
upstream. If eudev accepts its own patches that are not in systemd,
then I'd say yes. If however they are really only a copy of the udev
sources from systemd, we would have to get this upstream in systemd,
which has no chance to happen.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-07-30 13:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30 13:27 [Buildroot] [PATCH] package/eudev: add libselinux dependency Romain Naour
2015-07-30 13:48 ` Thomas Petazzoni [this message]
2015-07-30 14:49   ` Romain Naour
     [not found]     ` <55BA6B97.8040805@gentoo.org>
2015-07-30 18:45       ` Romain Naour

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=20150730154833.416d5073@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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