diff mbox series

cil: drop remaining dso.h include

Message ID 20200319194853.15709-1-william.c.roberts@intel.com (mailing list archive)
State Accepted
Headers show
Series cil: drop remaining dso.h include | expand

Commit Message

William Roberts March 19, 2020, 7:48 p.m. UTC
From: William Roberts <william.c.roberts@intel.com>

Signed-off-by: William Roberts <william.c.roberts@intel.com>
---
 libsepol/cil/src/cil.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Ondrej Mosnacek March 20, 2020, 8:08 a.m. UTC | #1
On Thu, Mar 19, 2020 at 8:49 PM <bill.c.roberts@gmail.com> wrote:
> From: William Roberts <william.c.roberts@intel.com>
>
> Signed-off-by: William Roberts <william.c.roberts@intel.com>
> ---
>  libsepol/cil/src/cil.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/libsepol/cil/src/cil.c b/libsepol/cil/src/cil.c
> index c010ca2aeaf4..12cc28eff389 100644
> --- a/libsepol/cil/src/cil.c
> +++ b/libsepol/cil/src/cil.c
> @@ -50,7 +50,6 @@
>  #include "cil_binary.h"
>  #include "cil_policy.h"
>  #include "cil_strpool.h"
> -#include "dso.h"
>
>  #ifndef DISABLE_SYMVER
>  asm(".symver cil_build_policydb_pdb,        cil_build_policydb@LIBSEPOL_1.0");
> --
> 2.17.1
>

Acked-by: Ondrej Mosnacek <omosnace@redhat.com>
William Roberts March 23, 2020, 3:35 p.m. UTC | #2
On Fri, Mar 20, 2020 at 3:08 AM Ondrej Mosnacek <omosnace@redhat.com> wrote:
>
> On Thu, Mar 19, 2020 at 8:49 PM <bill.c.roberts@gmail.com> wrote:
> > From: William Roberts <william.c.roberts@intel.com>
> >
> > Signed-off-by: William Roberts <william.c.roberts@intel.com>
> > ---
> >  libsepol/cil/src/cil.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/libsepol/cil/src/cil.c b/libsepol/cil/src/cil.c
> > index c010ca2aeaf4..12cc28eff389 100644
> > --- a/libsepol/cil/src/cil.c
> > +++ b/libsepol/cil/src/cil.c
> > @@ -50,7 +50,6 @@
> >  #include "cil_binary.h"
> >  #include "cil_policy.h"
> >  #include "cil_strpool.h"
> > -#include "dso.h"
> >
> >  #ifndef DISABLE_SYMVER
> >  asm(".symver cil_build_policydb_pdb,        cil_build_policydb@LIBSEPOL_1.0");
> > --
> > 2.17.1
> >
>
> Acked-by: Ondrej Mosnacek <omosnace@redhat.com>
>
Merged: https://github.com/SELinuxProject/selinux/pull/210

Thanks
Joshua Brindle March 26, 2020, 3:16 p.m. UTC | #3
On Mon, Mar 23, 2020 at 11:35 AM William Roberts
<bill.c.roberts@gmail.com> wrote:
>
> On Fri, Mar 20, 2020 at 3:08 AM Ondrej Mosnacek <omosnace@redhat.com> wrote:
> >
> > On Thu, Mar 19, 2020 at 8:49 PM <bill.c.roberts@gmail.com> wrote:
> > > From: William Roberts <william.c.roberts@intel.com>
> > >
> > > Signed-off-by: William Roberts <william.c.roberts@intel.com>
> > > ---
> > >  libsepol/cil/src/cil.c | 1 -
> > >  1 file changed, 1 deletion(-)
> > >
> > > diff --git a/libsepol/cil/src/cil.c b/libsepol/cil/src/cil.c
> > > index c010ca2aeaf4..12cc28eff389 100644
> > > --- a/libsepol/cil/src/cil.c
> > > +++ b/libsepol/cil/src/cil.c
> > > @@ -50,7 +50,6 @@
> > >  #include "cil_binary.h"
> > >  #include "cil_policy.h"
> > >  #include "cil_strpool.h"
> > > -#include "dso.h"
> > >
> > >  #ifndef DISABLE_SYMVER
> > >  asm(".symver cil_build_policydb_pdb,        cil_build_policydb@LIBSEPOL_1.0");
> > > --
> > > 2.17.1
> > >
> >
> > Acked-by: Ondrej Mosnacek <omosnace@redhat.com>
> >
> Merged: https://github.com/SELinuxProject/selinux/pull/210
>
> Thanks

It looks like this change broke building on MacOS:

<inline asm>:1:1: error: unknown directive
.symver cil_build_policydb_pdb,        cil_build_policydb@LIBSEPOL_1.0
^

(on all of them).

Previously dso.h defined DISABLE_SYMVER for Android and Apple, is
support for those intended to go away?
William Roberts March 26, 2020, 3:35 p.m. UTC | #4
On Thu, Mar 26, 2020 at 10:17 AM Joshua Brindle
<joshua.brindle@crunchydata.com> wrote:
>
> On Mon, Mar 23, 2020 at 11:35 AM William Roberts
> <bill.c.roberts@gmail.com> wrote:
> >
> > On Fri, Mar 20, 2020 at 3:08 AM Ondrej Mosnacek <omosnace@redhat.com> wrote:
> > >
> > > On Thu, Mar 19, 2020 at 8:49 PM <bill.c.roberts@gmail.com> wrote:
> > > > From: William Roberts <william.c.roberts@intel.com>
> > > >
> > > > Signed-off-by: William Roberts <william.c.roberts@intel.com>
> > > > ---
> > > >  libsepol/cil/src/cil.c | 1 -
> > > >  1 file changed, 1 deletion(-)
> > > >
> > > > diff --git a/libsepol/cil/src/cil.c b/libsepol/cil/src/cil.c
> > > > index c010ca2aeaf4..12cc28eff389 100644
> > > > --- a/libsepol/cil/src/cil.c
> > > > +++ b/libsepol/cil/src/cil.c
> > > > @@ -50,7 +50,6 @@
> > > >  #include "cil_binary.h"
> > > >  #include "cil_policy.h"
> > > >  #include "cil_strpool.h"
> > > > -#include "dso.h"
> > > >
> > > >  #ifndef DISABLE_SYMVER
> > > >  asm(".symver cil_build_policydb_pdb,        cil_build_policydb@LIBSEPOL_1.0");
> > > > --
> > > > 2.17.1
> > > >
> > >
> > > Acked-by: Ondrej Mosnacek <omosnace@redhat.com>
> > >
> > Merged: https://github.com/SELinuxProject/selinux/pull/210
> >
> > Thanks
>
> It looks like this change broke building on MacOS:
>
> <inline asm>:1:1: error: unknown directive
> .symver cil_build_policydb_pdb,        cil_build_policydb@LIBSEPOL_1.0
> ^
>
> (on all of them).
>
> Previously dso.h defined DISABLE_SYMVER for Android and Apple, is
> support for those intended to go away?

No, patches forthcoming.
William Roberts March 26, 2020, 3:46 p.m. UTC | #5
I missed a dso.h file in cil code, and broke the DISABLE_SYMVER support.
this deletes that file and restores DISABLE_SYMVER support.

Sorry... 

[PATCH 1/2] cil: rm dead dso.h file
[PATCH 2/2] cil: re-enable DISABLE_SYMVER define
William Roberts March 26, 2020, 3:47 p.m. UTC | #6
Josh can you run this on Mac build, I don't have one anymore.

On Thu, Mar 26, 2020 at 10:46 AM <bill.c.roberts@gmail.com> wrote:
>
> I missed a dso.h file in cil code, and broke the DISABLE_SYMVER support.
> this deletes that file and restores DISABLE_SYMVER support.
>
> Sorry...
>
> [PATCH 1/2] cil: rm dead dso.h file
> [PATCH 2/2] cil: re-enable DISABLE_SYMVER define
>
Joshua Brindle March 26, 2020, 4:05 p.m. UTC | #7
On Thu, Mar 26, 2020 at 11:48 AM William Roberts
<bill.c.roberts@gmail.com> wrote:
>
> Josh can you run this on Mac build, I don't have one anymore.
>

LGTM

Acked-by: Joshua Brindle <joshua.brindle@crunchydata.com>


> On Thu, Mar 26, 2020 at 10:46 AM <bill.c.roberts@gmail.com> wrote:
> >
> > I missed a dso.h file in cil code, and broke the DISABLE_SYMVER support.
> > this deletes that file and restores DISABLE_SYMVER support.
> >
> > Sorry...
> >
> > [PATCH 1/2] cil: rm dead dso.h file
> > [PATCH 2/2] cil: re-enable DISABLE_SYMVER define
> >
William Roberts March 26, 2020, 4:18 p.m. UTC | #8
> > Josh can you run this on Mac build, I don't have one anymore.
> >
>
> LGTM
>
> Acked-by: Joshua Brindle <joshua.brindle@crunchydata.com>
Thanks!

Staged: https://github.com/SELinuxProject/selinux/pull/214

Will merge tomorrow afternoon unless I hear otherwise.
Stephen Smalley March 26, 2020, 4:50 p.m. UTC | #9
On Thu, Mar 26, 2020 at 11:17 AM Joshua Brindle
<joshua.brindle@crunchydata.com> wrote:
> It looks like this change broke building on MacOS:
>
> <inline asm>:1:1: error: unknown directive
> .symver cil_build_policydb_pdb,        cil_build_policydb@LIBSEPOL_1.0
> ^
>
> (on all of them).
>
> Previously dso.h defined DISABLE_SYMVER for Android and Apple, is
> support for those intended to go away?

Maybe we should add an osx build to our .travis.yml file and just test
building libsepol/checkpolicy/secilc?
William Roberts March 26, 2020, 4:51 p.m. UTC | #10
On Thu, Mar 26, 2020 at 11:49 AM Stephen Smalley
<stephen.smalley.work@gmail.com> wrote:
>
> On Thu, Mar 26, 2020 at 11:17 AM Joshua Brindle
> <joshua.brindle@crunchydata.com> wrote:
> > It looks like this change broke building on MacOS:
> >
> > <inline asm>:1:1: error: unknown directive
> > .symver cil_build_policydb_pdb,        cil_build_policydb@LIBSEPOL_1.0
> > ^
> >
> > (on all of them).
> >
> > Previously dso.h defined DISABLE_SYMVER for Android and Apple, is
> > support for those intended to go away?
>
> Maybe we should add an osx build to our .travis.yml file and just test
> building libsepol/checkpolicy/secilc?

Definitely, I didn't realize travis had osx target. I can try and
queue this up for next week.
William Roberts March 27, 2020, 2:27 p.m. UTC | #11
On Thu, Mar 26, 2020 at 11:18 AM William Roberts
<bill.c.roberts@gmail.com> wrote:
>
> > > Josh can you run this on Mac build, I don't have one anymore.
> > >
> >
> > LGTM
> >
> > Acked-by: Joshua Brindle <joshua.brindle@crunchydata.com>
> Thanks!
>
> Staged: https://github.com/SELinuxProject/selinux/pull/214
>
> Will merge tomorrow afternoon unless I hear otherwise.
Merged: https://github.com/SELinuxProject/selinux/pull/214
Stephen Smalley March 27, 2020, 2:47 p.m. UTC | #12
On Fri, Mar 27, 2020 at 10:27 AM William Roberts
<bill.c.roberts@gmail.com> wrote:
>
> On Thu, Mar 26, 2020 at 11:18 AM William Roberts
> <bill.c.roberts@gmail.com> wrote:
> >
> > > > Josh can you run this on Mac build, I don't have one anymore.
> > > >
> > >
> > > LGTM
> > >
> > > Acked-by: Joshua Brindle <joshua.brindle@crunchydata.com>
> > Thanks!
> >
> > Staged: https://github.com/SELinuxProject/selinux/pull/214
> >
> > Will merge tomorrow afternoon unless I hear otherwise.
> Merged: https://github.com/SELinuxProject/selinux/pull/214

Please remember to update patchwork (status -> Accepted) when you merge a patch.
William Roberts March 27, 2020, 3:02 p.m. UTC | #13
On Fri, Mar 27, 2020 at 9:46 AM Stephen Smalley
<stephen.smalley.work@gmail.com> wrote:
>
> On Fri, Mar 27, 2020 at 10:27 AM William Roberts
> <bill.c.roberts@gmail.com> wrote:
> >
> > On Thu, Mar 26, 2020 at 11:18 AM William Roberts
> > <bill.c.roberts@gmail.com> wrote:
> > >
> > > > > Josh can you run this on Mac build, I don't have one anymore.
> > > > >
> > > >
> > > > LGTM
> > > >
> > > > Acked-by: Joshua Brindle <joshua.brindle@crunchydata.com>
> > > Thanks!
> > >
> > > Staged: https://github.com/SELinuxProject/selinux/pull/214
> > >
> > > Will merge tomorrow afternoon unless I hear otherwise.
> > Merged: https://github.com/SELinuxProject/selinux/pull/214
>
> Please remember to update patchwork (status -> Accepted) when you merge a patch.
I never even used patchwork, will do and done. But I still want to
grumble, I wish we moved out
of 1960's development.
diff mbox series

Patch

diff --git a/libsepol/cil/src/cil.c b/libsepol/cil/src/cil.c
index c010ca2aeaf4..12cc28eff389 100644
--- a/libsepol/cil/src/cil.c
+++ b/libsepol/cil/src/cil.c
@@ -50,7 +50,6 @@ 
 #include "cil_binary.h"
 #include "cil_policy.h"
 #include "cil_strpool.h"
-#include "dso.h"
 
 #ifndef DISABLE_SYMVER
 asm(".symver cil_build_policydb_pdb,        cil_build_policydb@LIBSEPOL_1.0");