All of lore.kernel.org
 help / color / mirror / Atom feed
* Small patch to allow semodule_deps to build
@ 2007-02-07 21:52 Daniel J Walsh
  2007-02-08 15:16 ` Karl MacMillan
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel J Walsh @ 2007-02-07 21:52 UTC (permalink / raw)
  To: Stephen Smalley, SE Linux

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: semod.patch --]
[-- Type: text/x-patch, Size: 415 bytes --]

--- nsapolicycoreutils/semodule_deps/semodule_deps.c	2007-02-07 12:11:49.000000000 -0500
+++ policycoreutils-2.0.0/semodule_deps/semodule_deps.c	2007-02-07 16:46:18.000000000 -0500
@@ -16,7 +16,7 @@
  * of avrule_blocks - even in an ABI safe way - seems undesirable.
  */
 #include <sepol/module.h>
-#include <sepol/errno.h>
+#include <sepol/errcodes.h>
 #include <sepol/policydb/policydb.h>
 
 #include <getopt.h>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small patch to allow semodule_deps to build
  2007-02-07 21:52 Small patch to allow semodule_deps to build Daniel J Walsh
@ 2007-02-08 15:16 ` Karl MacMillan
  2007-02-08 15:59   ` Stephen Smalley
  0 siblings, 1 reply; 4+ messages in thread
From: Karl MacMillan @ 2007-02-08 15:16 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: Stephen Smalley, SE Linux

Daniel J Walsh wrote:
> 
> 
> ------------------------------------------------------------------------
> 
> --- nsapolicycoreutils/semodule_deps/semodule_deps.c	2007-02-07 12:11:49.000000000 -0500
> +++ policycoreutils-2.0.0/semodule_deps/semodule_deps.c	2007-02-07 16:46:18.000000000 -0500
> @@ -16,7 +16,7 @@
>   * of avrule_blocks - even in an ABI safe way - seems undesirable.
>   */
>  #include <sepol/module.h>
> -#include <sepol/errno.h>
> +#include <sepol/errcodes.h>
>  #include <sepol/policydb/policydb.h>
>  
>  #include <getopt.h>

This shouldn't be necessary - errcodes.h should be included via 
policydb.h -> symtab.h -> hashtab.h. Also, I can't reproduce this locally.

Karl

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small patch to allow semodule_deps to build
  2007-02-08 15:16 ` Karl MacMillan
@ 2007-02-08 15:59   ` Stephen Smalley
  2007-02-08 21:03     ` Karl MacMillan
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2007-02-08 15:59 UTC (permalink / raw)
  To: Karl MacMillan; +Cc: Daniel J Walsh, SE Linux

On Thu, 2007-02-08 at 10:16 -0500, Karl MacMillan wrote:
> Daniel J Walsh wrote:
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > --- nsapolicycoreutils/semodule_deps/semodule_deps.c	2007-02-07 12:11:49.000000000 -0500
> > +++ policycoreutils-2.0.0/semodule_deps/semodule_deps.c	2007-02-07 16:46:18.000000000 -0500
> > @@ -16,7 +16,7 @@
> >   * of avrule_blocks - even in an ABI safe way - seems undesirable.
> >   */
> >  #include <sepol/module.h>
> > -#include <sepol/errno.h>
> > +#include <sepol/errcodes.h>
> >  #include <sepol/policydb/policydb.h>
> >  
> >  #include <getopt.h>
> 
> This shouldn't be necessary - errcodes.h should be included via 
> policydb.h -> symtab.h -> hashtab.h. Also, I can't reproduce this locally.

Actually, Dan is correct at least in removing #include <sepol/errno.h> -
that was what you had originally called the header, but renamed to
errcodes.h in response to my comments.  So you (and I) had a lingering
errno.h left around from previous builds that obscured the broken build.
cd trunk/
rm -rf ~/obj
make DESTDIR=~/obj install
to reproduce.

-- 
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small patch to allow semodule_deps to build
  2007-02-08 15:59   ` Stephen Smalley
@ 2007-02-08 21:03     ` Karl MacMillan
  0 siblings, 0 replies; 4+ messages in thread
From: Karl MacMillan @ 2007-02-08 21:03 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: Daniel J Walsh, SE Linux

Stephen Smalley wrote:
> On Thu, 2007-02-08 at 10:16 -0500, Karl MacMillan wrote:
>> Daniel J Walsh wrote:
>>>
>>> ------------------------------------------------------------------------
>>>
>>> --- nsapolicycoreutils/semodule_deps/semodule_deps.c	2007-02-07 12:11:49.000000000 -0500
>>> +++ policycoreutils-2.0.0/semodule_deps/semodule_deps.c	2007-02-07 16:46:18.000000000 -0500
>>> @@ -16,7 +16,7 @@
>>>   * of avrule_blocks - even in an ABI safe way - seems undesirable.
>>>   */
>>>  #include <sepol/module.h>
>>> -#include <sepol/errno.h>
>>> +#include <sepol/errcodes.h>
>>>  #include <sepol/policydb/policydb.h>
>>>  
>>>  #include <getopt.h>
>> This shouldn't be necessary - errcodes.h should be included via 
>> policydb.h -> symtab.h -> hashtab.h. Also, I can't reproduce this locally.
> 
> Actually, Dan is correct at least in removing #include <sepol/errno.h> -
> that was what you had originally called the header, but renamed to
> errcodes.h in response to my comments.  So you (and I) had a lingering
> errno.h left around from previous builds that obscured the broken build.
> cd trunk/
> rm -rf ~/obj
> make DESTDIR=~/obj install
> to reproduce.
> 

Yep - guess my process needs a little fixing.

Acked-by: Karl MacMillan <kmacmillan@mentalrootkit.com> and merged as 
policycoreutils 2.0.1.

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-08 21:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-07 21:52 Small patch to allow semodule_deps to build Daniel J Walsh
2007-02-08 15:16 ` Karl MacMillan
2007-02-08 15:59   ` Stephen Smalley
2007-02-08 21:03     ` Karl MacMillan

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.