Package: policycoreutils
Version: 2.0.44-1
Severity: important
File: /usr/sbin/semanage

Hi,
the code from seobject.py requires python2.5.

sid:~# /usr/bin/chcat
Traceback (most recent call last):
  File "/usr/bin/chcat", line 26, in ?
    import seobject
  File "/var/lib/python-support/python2.4/seobject.py", line 93, in ?
    import xml.etree.ElementTree
ImportError: No module named etree.ElementTree
sid:~# /usr/sbin/semanage 
Traceback (most recent call last):
  File "/usr/sbin/semanage", line 24, in ?
    import seobject
  File "/var/lib/python-support/python2.4/seobject.py", line 93, in ?
    import xml.etree.ElementTree
ImportError: No module named etree.ElementTree

sid:~# python2.5 /usr/sbin/semanage
semanage {boolean|login|user|port|interface|fcontext|translation} -{l|D} [-n] 
semanage login -{a|d|m} [-sr] login_name
semanage user -{a|d|m} [-LrRP] selinux_name
semanage port -{a|d|m} [-tr] [ -p protocol ] port | port_range
...

Dependency on python2.5 should be added and python scripts modified
during install with something like:

PYDEFAULT := $(strip $(shell pyversions -vd))
ifneq ($(firstword $(sort $(PYDEFAULT) 2.5)),2.5)
    PYVERSION := 2.5
else
    PYVERSION := $(PYDEFAULT)
endif

...

ifneq ($(PYVERSION),$(PYDEFAULT))
        find $(DEB_DESTDIR) -type f | xargs file -N -f - \
                | sed -nr 's/^([^:]+):.*\<python\>.*\<script\>.*$$/\1/ip;' \
                | xargs sed -ri '1s/python($$| )/python$(PYVERSION)\1/;'
endif

Regards
-- 
Zito

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-6-xen-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=cs_CZ.ISO-8859-2 (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash

Versions of packages policycoreutils depends on:
ii  libc6                2.7-9               GNU C Library: Shared libraries
ii  libpam0g             0.99.10.0-1~icz50+1 Pluggable Authentication Modules l
ii  libselinux1          2.0.59-1            SELinux shared libraries
ii  libsemanage1         2.0.24-1            shared libraries used by SELinux p
ii  libsepol1            2.0.25-1            Security Enhanced Linux policy lib
ii  python               2.4.4-6             An interactive high-level object-o
ii  python-selinux       2.0.59-1            Python bindings to SELinux shared 
ii  python-semanage      2.0.24-1            Python bindings  for SELinux polic
ii  sepolgen             1.0.11-1            A Python module used in SELinux po

Versions of packages policycoreutils recommends:
pn  selinux-policy-refpolicy-targ <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to