* Patch for selinux automake
@ 2002-11-25 20:05 Joshua Brindle
2002-11-26 1:01 ` Brian May
0 siblings, 1 reply; 2+ messages in thread
From: Joshua Brindle @ 2002-11-25 20:05 UTC (permalink / raw)
To: bam, selinux
[-- Attachment #1: Type: text/plain, Size: 719 bytes --]
Here is the patch to add the include dir's for the Makefile.in for the
directories listed in my last post.
this successfully compiles the entire package, here is what i did
./configure --with-lsm=/usr/src/linux-2.4.19-selinux/
make
make DESTDIR=/root/selinux-build install
and everything is in /root/selinux-build/usr EXCELLENT..
the only problem i had is if i tried to do ../selinux-build install
complained and said it needed an absolute pathname and nothing got
installed, not a problem for me since my package installer will use
absolute paths but it may be a problem to someone manually installing,
Thanks a lot, this will help me tremendously..
Joshua Brindle
UNIX Administrator
Southern Nazarene University
[-- Attachment #2: selinux-automake-patch.diff --]
[-- Type: application/octet-stream, Size: 3690 bytes --]
diff -uNr selinux-small-2002102211-method/devfsd/Makefile.in selinux-small-2002102211/devfsd/Makefile.in
--- selinux-small-2002102211-method/devfsd/Makefile.in 2002-11-25 08:04:02.000000000 -0600
+++ selinux-small-2002102211/devfsd/Makefile.in 2002-11-19 19:45:41.000000000 -0600
@@ -84,7 +84,7 @@
VERSION = @VERSION@
YACC = @YACC@
-INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include
+INCLUDES = -I$(top_srcdir)/libsecure/include
LIBS = $(top_builddir)/libsecure/src/libsecure.a
pkglib_LTLIBRARIES = devfsd-se.la
diff -uNr selinux-small-2002102211-method/libsecure/test/Makefile.in selinux-small-2002102211/libsecure/test/Makefile.in
--- selinux-small-2002102211-method/libsecure/test/Makefile.in 2002-11-25 08:02:37.000000000 -0600
+++ selinux-small-2002102211/libsecure/test/Makefile.in 2002-11-19 19:45:37.000000000 -0600
@@ -84,7 +84,7 @@
VERSION = @VERSION@
YACC = @YACC@
-INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include
+INCLUDES = -I$(top_srcdir)/libsecure/include
LIBS = $(top_builddir)/libsecure/src/libsecure.a
bin_PROGRAMS = avc_enforcing avc_toggle chsid chsidfs compute_av context_to_sid exec_s getsecsid get_user_sids ichsid lchsid list_sids load_policy lstat_s mkdir_s msgget_s msgrcv_s msgsid msgsnd_s popen_s security_mls semget_s semsid shmget_s shmsid sid_to_context statfs_s stat_s tcp_client tcp_server udp_client udp_server unix_dgram_client unix_dgram_server unix_stream_client unix_stream_server
diff -uNr selinux-small-2002102211-method/setfiles/Makefile.in selinux-small-2002102211/setfiles/Makefile.in
--- selinux-small-2002102211-method/setfiles/Makefile.in 2002-11-25 08:02:57.000000000 -0600
+++ selinux-small-2002102211/setfiles/Makefile.in 2002-11-19 19:45:38.000000000 -0600
@@ -84,7 +84,7 @@
VERSION = @VERSION@
YACC = @YACC@
-INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include
+INCLUDES = -I$(top_srcdir)/libsecure/include
LIBS = $(top_builddir)/libsecure/src/libsecure.a
bin_PROGRAMS = setfiles
diff -uNr selinux-small-2002102211-method/utils/newrole/Makefile.in selinux-small-2002102211/utils/newrole/Makefile.in
--- selinux-small-2002102211-method/utils/newrole/Makefile.in 2002-11-25 08:03:20.000000000 -0600
+++ selinux-small-2002102211/utils/newrole/Makefile.in 2002-11-19 19:45:39.000000000 -0600
@@ -84,7 +84,7 @@
VERSION = @VERSION@
YACC = @YACC@
-INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include
+INCLUDES = -I$(top_srcdir)/libsecure/include
LIBS = $(top_builddir)/libsecure/src/libsecure.a -lcrypt
bin_PROGRAMS = newrole
diff -uNr selinux-small-2002102211-method/utils/run_init/Makefile.in selinux-small-2002102211/utils/run_init/Makefile.in
--- selinux-small-2002102211-method/utils/run_init/Makefile.in 2002-11-25 08:03:36.000000000 -0600
+++ selinux-small-2002102211/utils/run_init/Makefile.in 2002-11-19 19:45:40.000000000 -0600
@@ -84,7 +84,7 @@
VERSION = @VERSION@
YACC = @YACC@
-INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include
+INCLUDES = -I$(top_srcdir)/libsecure/include
LIBS = $(top_builddir)/libsecure/src/libsecure.a -lcrypt
sbin_PROGRAMS = run_init
diff -uNr selinux-small-2002102211-method/utils/spasswd/Makefile.in selinux-small-2002102211/utils/spasswd/Makefile.in
--- selinux-small-2002102211-method/utils/spasswd/Makefile.in 2002-11-25 08:03:48.000000000 -0600
+++ selinux-small-2002102211/utils/spasswd/Makefile.in 2002-11-19 19:45:40.000000000 -0600
@@ -84,7 +84,7 @@
VERSION = @VERSION@
YACC = @YACC@
-INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include
+INCLUDES = -I$(top_srcdir)/libsecure/include
LIBS = $(top_builddir)/libsecure/src/libsecure.a -lcrypt
EXTRA_DIST = README
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Patch for selinux automake
2002-11-25 20:05 Patch for selinux automake Joshua Brindle
@ 2002-11-26 1:01 ` Brian May
0 siblings, 0 replies; 2+ messages in thread
From: Brian May @ 2002-11-26 1:01 UTC (permalink / raw)
To: Joshua Brindle; +Cc: selinux
On Mon, Nov 25, 2002 at 02:05:12PM -0600, Joshua Brindle wrote:
> Here is the patch to add the include dir's for the Makefile.in for the
> directories listed in my last post.
I have made identical changes to my version.
Currently the installed include files are broken,
because /usr/include/linux/flask files are not installed,
I am currently considering the best way to rectify this issue.
> this successfully compiles the entire package, here is what i did
>
> ./configure --with-lsm=/usr/src/linux-2.4.19-selinux/
> make
> make DESTDIR=/root/selinux-build install
>
> and everything is in /root/selinux-build/usr EXCELLENT..
> the only problem i had is if i tried to do ../selinux-build install
> complained and said it needed an absolute pathname and nothing got
> installed, not a problem for me since my package installer will use
> absolute paths but it may be a problem to someone manually installing,
> Thanks a lot, this will help me tremendously..
Absolute paths are required everywhere (at least for the --with-lsm
parameter), because otherwise the patch would need to be adjusted when
processing nested sub directories.
(I really need to add a check to the configure script to ensure that the
--with-lsm= directory is absolute...)
If you are installing it manually, I think it is unlikely you would want
to use DESTDIR=, probably ./configure --prefix=... (IIRC) would be a
better alternative. DESTDIR is for installing it in a temporary location
for packaing, --prefix= is the final location (although with SE-Linux is
probably doesn't make any difference, as no directory names seem to be
hardcoded anywhere).
--
Brian May <bam@snoopy.apana.org.au>
--
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] 2+ messages in thread
end of thread, other threads:[~2002-11-26 0:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-25 20:05 Patch for selinux automake Joshua Brindle
2002-11-26 1:01 ` Brian May
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.