Your message dated Fri, 11 Aug 2006 10:44:11 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#381666: fixed in libselinux 1.30.22-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libselinux
Severity: serious
Justification: no longer builds from source


This may be the fault of linux-kernel-headers more than libselinux, but as of
linux-kernel-headers 2.6.17-6-1, I can't build libselinux due to undefined
symbol errors concerning the use of PAGE_SIZE in a number of places.  The
sources are #including <asm/page.h>, which on i386/amd64 actually define
something, but on powerpc contain nothing at all unless __KERNEL__ is defined.

Using getpagesize() (e.g. with the attached patch) seems to work just fine.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.6
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
--- libselinux-1.30.orig/src/canonicalize_context.c
+++ libselinux-1.30/src/canonicalize_context.c
@@ -5,7 +5,6 @@
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
-#include <asm/page.h>
 #include "selinux_internal.h"
 #include "policy.h"
 #include <limits.h>
@@ -23,7 +22,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/compute_av.c
+++ libselinux-1.30/src/compute_av.c
@@ -5,7 +5,6 @@
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
-#include <asm/page.h>
 #include "selinux_internal.h"
 #include "policy.h"
 #include <limits.h>
@@ -26,7 +25,7 @@
 	if (fd < 0) 
 		return -1;
 
-	len = PAGE_SIZE;
+	len = getpagesize();
 	buf = malloc(len);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/compute_create.c
+++ libselinux-1.30/src/compute_create.c
@@ -5,7 +5,6 @@
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
-#include <asm/page.h>
 #include "selinux_internal.h"
 #include "policy.h"
 #include <limits.h>
@@ -25,7 +24,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/compute_member.c
+++ libselinux-1.30/src/compute_member.c
@@ -5,7 +5,6 @@
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
-#include <asm/page.h>
 #include "selinux_internal.h"
 #include "policy.h"
 #include <limits.h>
@@ -25,7 +24,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/compute_relabel.c
+++ libselinux-1.30/src/compute_relabel.c
@@ -5,7 +5,6 @@
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
-#include <asm/page.h>
 #include "selinux_internal.h"
 #include "policy.h"
 #include <limits.h>
@@ -25,7 +24,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/compute_user.c
+++ libselinux-1.30/src/compute_user.c
@@ -5,7 +5,6 @@
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
-#include <asm/page.h>
 #include "selinux_internal.h"
 #include "policy.h"
 #include <limits.h>
@@ -26,7 +25,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/enabled.c
+++ libselinux-1.30/src/enabled.c
@@ -5,7 +5,6 @@
 #include <stdlib.h>
 #include <errno.h>
 #include <limits.h>
-#include <asm/page.h>
 #include <stdio.h>
 #include "policy.h"
 
@@ -22,7 +21,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		enabled = -1;
--- libselinux-1.30.orig/src/getcon.c
+++ libselinux-1.30/src/getcon.c
@@ -4,7 +4,6 @@
 #include "selinux_internal.h"
 #include <stdlib.h>
 #include <errno.h>
-#include <asm/page.h>
 #include "policy.h"
 
 int getcon_raw(security_context_t *context)
@@ -18,7 +17,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/getexeccon.c
+++ libselinux-1.30/src/getexeccon.c
@@ -3,7 +3,6 @@
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <asm/page.h>
 #include "selinux_internal.h"
 #include "policy.h"
 
@@ -18,7 +17,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/getfscreatecon.c
+++ libselinux-1.30/src/getfscreatecon.c
@@ -3,7 +3,6 @@
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <asm/page.h>
 #include "selinux_internal.h"
 #include "policy.h"
 
@@ -18,7 +17,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/getpidcon.c
+++ libselinux-1.30/src/getpidcon.c
@@ -4,7 +4,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <asm/page.h>
 #include "selinux_internal.h"
 #include "policy.h"
 
@@ -22,7 +21,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/getprevcon.c
+++ libselinux-1.30/src/getprevcon.c
@@ -4,7 +4,6 @@
 #include "selinux_internal.h"
 #include <stdlib.h>
 #include <errno.h>
-#include <asm/page.h>
 #include "policy.h"
 
 int getprevcon_raw(security_context_t *context)
@@ -18,7 +17,7 @@
 	if (fd < 0)
 		return -1;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf) {
 		ret = -1;
--- libselinux-1.30.orig/src/init.c
+++ libselinux-1.30/src/init.c
@@ -4,7 +4,6 @@
 #include <stdlib.h>
 #include <errno.h>
 #include <ctype.h>
-#include <asm/page.h>
 #include <stdio.h>
 #include <dlfcn.h>
 
@@ -27,7 +26,7 @@
 	if (!fp)
 		return;
 
-	size = PAGE_SIZE;
+	size = getpagesize();
 	buf = malloc(size);
 	if (!buf)
 		goto out;

--- End Message ---
--- Begin Message ---
Source: libselinux
Source-Version: 1.30.22-1

We believe that the bug you reported is fixed in the latest version of
libselinux, which is due to be installed in the Debian FTP archive:

libselinux1-dev_1.30.22-1_i386.deb
  to pool/main/libs/libselinux/libselinux1-dev_1.30.22-1_i386.deb
libselinux1_1.30.22-1_i386.deb
  to pool/main/libs/libselinux/libselinux1_1.30.22-1_i386.deb
libselinux_1.30.22-1.diff.gz
  to pool/main/libs/libselinux/libselinux_1.30.22-1.diff.gz
libselinux_1.30.22-1.dsc
  to pool/main/libs/libselinux/libselinux_1.30.22-1.dsc
libselinux_1.30.22.orig.tar.gz
  to pool/main/libs/libselinux/libselinux_1.30.22.orig.tar.gz
python-selinux_1.30.22-1_i386.deb
  to pool/main/libs/libselinux/python-selinux_1.30.22-1_i386.deb
selinux-utils_1.30.22-1_i386.deb
  to pool/main/libs/libselinux/selinux-utils_1.30.22-1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manoj Srivastava <[EMAIL PROTECTED]> (supplier of updated libselinux package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed,  9 Aug 2006 21:22:21 -0500
Source: libselinux
Binary: libselinux1-dev selinux-utils libselinux1 python-selinux
Architecture: source i386
Version: 1.30.22-1
Distribution: unstable
Urgency: low
Maintainer: Manoj Srivastava <[EMAIL PROTECTED]>
Changed-By: Manoj Srivastava <[EMAIL PROTECTED]>
Description: 
 libselinux1 - SELinux shared libraries
 libselinux1-dev - SELinux development headers
 python-selinux - Python bindings to SELinux shared libraries
 selinux-utils - SELinux utility programs
Closes: 381666 382021
Changes: 
 libselinux (1.30.22-1) unstable; urgency=low
 .
   * New upstream  point release
     * Merged no-tls-direct-seg-refs patch from Jeremy Katz.
     * Merged netfilter_contexts support patch from Chris PeBenito.
     * Merged context_*_set errno patch from Jim Meyering.
   * Bug fix: "libselinux: FTBFS on powerpc (refers to PAGE_SIZE not
     supplied by ppc kernel-headers)", thanks to Devin Carraway.  This was
     fixed in the point release.                        (Closes: #381666).
   * Bug fix: "libselinux1: Should run "telinit u" in postinst script",
     thanks to Piotr Kaczuba                            (Closes: #382021).
   * Moved the package to the new Python policy. This means that the old
     python2.4-selinux package is now a virtual package, and now we provide
     python packages for all supported versions of python, determining the
     depends and the provides relationships of the python package
     dynamically. The build depends has been changed to acoomodate it. The
     package uses the python-support utility to help with byte compilation
     and other modules handling.
Files: 
 1e5dae090594c96c13f1f8b603f4f917 701 libs optional libselinux_1.30.22-1.dsc
 07ca61cc2f70d6a07e9f9a720df4c228 122150 libs optional 
libselinux_1.30.22.orig.tar.gz
 9bd868ac4364e2e3ab76400f3d6606dc 57223 libs optional 
libselinux_1.30.22-1.diff.gz
 5ddfa6cf3b9d0eef6c925499c4bfc179 41542 admin optional 
selinux-utils_1.30.22-1_i386.deb
 4f3df802e6e8dc77767d6695a25173c1 56690 libs required 
libselinux1_1.30.22-1_i386.deb
 592465b2462ecb8c610238f26b829b2b 199254 libdevel optional 
libselinux1-dev_1.30.22-1_i386.deb
 fcc9f14b293dcc1c5ea179f238a7aa02 59478 devel optional 
python-selinux_1.30.22-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE2rCNIbrau78kQkwRAlO4AJ9BOqkk09GBdvcRn+f/rTUcvLigmACfYKAR
7ZIHDpI6JUynuIKiF5iQBvo=
=I4L7
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to