* [RFC] Build ANDROID_HOST=y on mac
@ 2016-09-28 20:27 William Roberts
2016-09-28 20:38 ` Joshua Brindle
0 siblings, 1 reply; 7+ messages in thread
From: William Roberts @ 2016-09-28 20:27 UTC (permalink / raw)
To: seandroid-list@tycho.nsa.gov, selinux@tycho.nsa.gov,
Stephen Smalley
>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 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.
--
Respectfully,
William C Roberts
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC] Build ANDROID_HOST=y on mac
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
0 siblings, 1 reply; 7+ messages in thread
From: Joshua Brindle @ 2016-09-28 20:38 UTC (permalink / raw)
To: William Roberts
Cc: seandroid-list@tycho.nsa.gov, selinux@tycho.nsa.gov,
Stephen Smalley
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.
> 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.
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC] Build ANDROID_HOST=y on mac
2016-09-28 20:38 ` Joshua Brindle
@ 2016-09-28 20:54 ` Joshua Brindle
2016-09-28 21:03 ` William Roberts
0 siblings, 1 reply; 7+ messages in thread
From: Joshua Brindle @ 2016-09-28 20:54 UTC (permalink / raw)
To: William Roberts
Cc: seandroid-list@tycho.nsa.gov, selinux@tycho.nsa.gov,
Stephen Smalley
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
>
>
>> 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.
>>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC] Build ANDROID_HOST=y on mac
2016-09-28 20:54 ` Joshua Brindle
@ 2016-09-28 21:03 ` William Roberts
2016-09-28 21:07 ` Joshua Brindle
0 siblings, 1 reply; 7+ messages in thread
From: William Roberts @ 2016-09-28 21:03 UTC (permalink / raw)
To: Joshua Brindle; +Cc: seandroid-list, Stephen Smalley, selinux@tycho.nsa.gov
[-- Attachment #1: Type: text/plain, Size: 1388 bytes --]
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?
>
>
>>
>>
>>> 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.
>>>
>>
>
[-- Attachment #2: Type: text/html, Size: 2063 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC] Build ANDROID_HOST=y on mac
2016-09-28 21:03 ` William Roberts
@ 2016-09-28 21:07 ` Joshua Brindle
2016-09-28 21:10 ` William Roberts
0 siblings, 1 reply; 7+ messages in thread
From: Joshua Brindle @ 2016-09-28 21:07 UTC (permalink / raw)
To: William Roberts; +Cc: seandroid-list, Stephen Smalley, selinux@tycho.nsa.gov
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.
>>>>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC] Build ANDROID_HOST=y on mac
2016-09-28 21:07 ` Joshua Brindle
@ 2016-09-28 21:10 ` William Roberts
2016-09-28 21:24 ` Joshua Brindle
0 siblings, 1 reply; 7+ messages in thread
From: William Roberts @ 2016-09-28 21:10 UTC (permalink / raw)
To: Joshua Brindle; +Cc: selinux, Stephen Smalley, seandroid-list
[-- Attachment #1: Type: text/plain, Size: 1809 bytes --]
On Sep 28, 2016 17:07, "Joshua Brindle" <brindle@quarksecurity.com> wrote:
>
> 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.
Ahh yeah, that won't work yet, but that would be nice.
>
>
>>>
>>>>
>>>>> 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.
>>>>>
>>
>
[-- Attachment #2: Type: text/html, Size: 2963 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC] Build ANDROID_HOST=y on mac
2016-09-28 21:10 ` William Roberts
@ 2016-09-28 21:24 ` Joshua Brindle
0 siblings, 0 replies; 7+ messages in thread
From: Joshua Brindle @ 2016-09-28 21:24 UTC (permalink / raw)
To: William Roberts; +Cc: selinux, Stephen Smalley, seandroid-list
William Roberts wrote:
> On Sep 28, 2016 17:07, "Joshua Brindle"<brindle@quarksecurity.com> wrote:
>> 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.
>
> Ahh yeah, that won't work yet, but that would be nice.
I got checkpolicy and checkmodule out. No cilc stuff and dispol/dismod
needs byteswap.h and endian.h.
>
>>
>>>>>> 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.
>>>>>>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-09-28 21:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-09-28 21:10 ` William Roberts
2016-09-28 21:24 ` Joshua Brindle
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.