rpms/libselinux/devel .cvsignore, 1.143, 1.144 libselinux-rhat.patch, 1.119, 1.120 libselinux.spec, 1.269, 1.270 sources, 1.145, 1.146

Daniel J Walsh (dwalsh) fedora-extras-commits at redhat.com
Tue Jun 26 09:16:59 UTC 2007


Author: dwalsh

Update of /cvs/extras/rpms/libselinux/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2899

Modified Files:
	.cvsignore libselinux-rhat.patch libselinux.spec sources 
Log Message:
* Tue Jun 26 2007 Dan Walsh <dwalsh at redhat.com> - 2.0.23-1
- Fix semanage segfault on x86 platform



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/libselinux/devel/.cvsignore,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -r1.143 -r1.144
--- .cvsignore	21 Jun 2007 14:40:52 -0000	1.143
+++ .cvsignore	26 Jun 2007 09:16:06 -0000	1.144
@@ -122,3 +122,4 @@
 libselinux-2.0.18.tgz
 libselinux-2.0.21.tgz
 libselinux-2.0.22.tgz
+libselinux-2.0.23.tgz

libselinux-rhat.patch:

Index: libselinux-rhat.patch
===================================================================
RCS file: /cvs/extras/rpms/libselinux/devel/libselinux-rhat.patch,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- libselinux-rhat.patch	18 May 2007 14:52:28 -0000	1.119
+++ libselinux-rhat.patch	26 Jun 2007 09:16:06 -0000	1.120
@@ -1,40 +1,13 @@
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/selinuxswig.i libselinux-2.0.15/src/selinuxswig.i
---- nsalibselinux/src/selinuxswig.i	2007-05-18 09:58:34.000000000 -0400
-+++ libselinux-2.0.15/src/selinuxswig.i	2007-05-15 15:07:02.000000000 -0400
-@@ -41,6 +40,36 @@
- 	$1 = (security_context_t)PyString_AsString($input);
- }
+diff --exclude-from=exclude -N -u -r nsalibselinux/Makefile libselinux-2.0.23/Makefile
+--- nsalibselinux/Makefile	2007-06-01 10:44:08.000000000 -0400
++++ libselinux-2.0.23/Makefile	2007-06-26 05:11:37.000000000 -0400
+@@ -20,6 +20,9 @@
+ 	$(MAKE) -C src 
+ 	$(MAKE) -C utils
  
-+%typemap(python,argout) security_context_t ** {
-+	int i;
-+	PyObject *security_context_string;
++swigify: 
++	$(MAKE) -C src swigify
 +
-+	PyObject *list_security_context = PyList_New(0); // Create the list.
-+	if (list_security_context) {
-+		security_context_t *p_security_context_t = *arg3;
-+		for (i=0; i < result; i++) { 
-+			security_context_string = PyString_FromString(strdup((char *)p_security_context_t[i]));
-+			if (PyList_Append(list_security_context, security_context_string) < 0) {
-+				PyErr_SetString(PyExc_MemoryError,"typemap(argout) security_context_t **: Fail to insert item in list.");
-+				Py_DECREF(list_security_context);
-+				$result = SWIG_From_int(STATUS_ERR);
-+				break;
-+			}
-+		}
-+		freeconary(p_security_context_t);
-+	}
-+	else {
-+		PyErr_SetString(PyExc_MemoryError,"typemap(argout) security_context_t **: Fail to create list.");
-+		$result = SWIG_From_int(STATUS_ERR);
-+	}
-+
-+	%append_output(list_security_context);
-+}
-+
-+%typemap(in, numinputs=0) security_context_t **(security_context_t *temp=NULL) {
-+	$1 = &temp;
-+}
-+
- %typedef unsigned mode_t;
+ pywrap: 
+ 	$(MAKE) -C src pywrap
  
- %include "../include/selinux/get_context_list.h"


Index: libselinux.spec
===================================================================
RCS file: /cvs/extras/rpms/libselinux/devel/libselinux.spec,v
retrieving revision 1.269
retrieving revision 1.270
diff -u -r1.269 -r1.270
--- libselinux.spec	21 Jun 2007 15:34:10 -0000	1.269
+++ libselinux.spec	26 Jun 2007 09:16:06 -0000	1.270
@@ -1,13 +1,12 @@
 %define libsepolver 2.0.1-1
 Summary: SELinux library and simple utilities
 Name: libselinux
-Version: 2.0.22
+Version: 2.0.23
 Release: 1%{?dist}
 License: Public domain (uncopyrighted)
 Group: System Environment/Libraries
 Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz
 Patch: libselinux-rhat.patch
-Patch1: libselinux_swig_with_raw.patch
 
 BuildRequires: libsepol-devel >= %{libsepolver} swig
 Requires: libsepol >= %{libsepolver} setransd
@@ -50,10 +49,11 @@
 
 %prep
 %setup -q
-%patch1 -p1 -b .swig
+%patch -p1 -b .rhat
 
 %build
 make clean
+make CFLAGS="-g %{optflags}" swigify
 make CFLAGS="-g %{optflags}" all pywrap
 
 %install
@@ -123,6 +123,9 @@
 %{_libdir}/python*/site-packages/selinux.py*
 
 %changelog
+* Tue Jun 26 2007 Dan Walsh <dwalsh at redhat.com> - 2.0.23-1
+- Fix semanage segfault on x86 platform
+
 * Thu Jun 21 2007 Dan Walsh <dwalsh at redhat.com> - 2.0.22-1
 - Upgrade to upstream
 	* Labeling and callback interface patches from Eamon Walsh.


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/libselinux/devel/sources,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -r1.145 -r1.146
--- sources	21 Jun 2007 14:40:52 -0000	1.145
+++ sources	26 Jun 2007 09:16:06 -0000	1.146
@@ -1 +1 @@
-dfc0f36fecae27d5fbe71aeb6350039d  libselinux-2.0.22.tgz
+36d94149e3d10a593edf8289f725624a  libselinux-2.0.23.tgz




More information about the fedora-extras-commits mailing list