All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <brindle@quarksecurity.com>
To: William Roberts <bill.c.roberts@gmail.com>
Cc: seandroid-list@tycho.nsa.gov, Stephen Smalley <sds@tycho.nsa.gov>,
	"selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>
Subject: Re: [RFC] Build ANDROID_HOST=y on mac
Date: Wed, 28 Sep 2016 17:07:46 -0400	[thread overview]
Message-ID: <57EC3122.5040802@quarksecurity.com> (raw)
In-Reply-To: <CAFftDdo04U_xFSDwLvU_A1jW2C0F7Awdhsn=jMfqtXUMmz0uqg@mail.gmail.com>

William Roberts wrote:
> On Sep 28, 2016 16:54, "Joshua Brindle"<brindle@quarksecurity.com>  wrote:
>> Joshua Brindle wrote:
>>> William Roberts wrote:
>>>>  From commit 35d702 on
>>>> https://github.com/williamcroberts/selinux/tree/fix-mac
>>>>
>>>> I have a branch that is building on my elcapitan mac, requesting any
>>>> comments anyone
>>>> wishes to make, before I send them out.
>>>>
>>>> If you wish to test, this is the procedure
>>>>
>>>> 1. Build libsepol (assumes at root of tree)
>>>> a, cd libsepol
>>>> b. make
>>>> 2. Build libselinux
>>>> a. cd libselinux (assumes at root of tree)
>>>> b. make ANDROID_HOST=y
>>>>
>>> This works for me.
>>
>> make install DESTDIR=/tmp/someidr mostly works, Mac ln does not support
> --relative so that fails. ANDROID_HOST also needs to be set in the top
> level makefile so that it propagates down:
>> ANDROID_HOST ?= n
>
> Yeah install doesn't work on Mac, that's why for Darwin we just set the
> path to the libsepol location for sefcontext_compile.
>
> As for ANDROID_HOST, why does it need to go higher? It's only used in
> libselinux and is declared and used just like DISABLE_SETRANS...I'm not
> following you?
>

Because I was building from the top, basically seeing if I could get a 
usable toolchain out of it, but that looks like it would require a bit 
more work.

>>
>>>
>>>> This essentially gets us to where a build server/maintainer
>>>> can test patches quickly on mac, with some assurance
>>>> it's not busted without downloading all of Android.
>>>>
>>>> It's still wise to check in an Android tree if possible IMHO.
>>>>
>

  reply	other threads:[~2016-09-28 21:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 20:27 [RFC] Build ANDROID_HOST=y on mac William Roberts
2016-09-28 20:38 ` Joshua Brindle
2016-09-28 20:54   ` Joshua Brindle
2016-09-28 21:03     ` William Roberts
2016-09-28 21:07       ` Joshua Brindle [this message]
2016-09-28 21:10         ` William Roberts
2016-09-28 21:24           ` Joshua Brindle

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=57EC3122.5040802@quarksecurity.com \
    --to=brindle@quarksecurity.com \
    --cc=bill.c.roberts@gmail.com \
    --cc=sds@tycho.nsa.gov \
    --cc=seandroid-list@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.