Package Details: policycoreutils 2.5-1

Git Clone URL: https://aur.archlinux.org/policycoreutils.git (read-only)
Package Base: policycoreutils
Description: SELinux policy core utilities
Upstream URL: http://userspace.selinuxproject.org
Licenses: GPL
Groups: selinux
Conflicts: selinux-usr-policycoreutils
Provides: selinux-usr-policycoreutils=2.5-1
Submitter: Siosm
Maintainer: IooNag
Last Packager: IooNag
Votes: 14
Popularity: 0.179236
First Submitted: 2013-11-03 20:05
Last Updated: 2016-02-27 11:57

Latest Comments

Siosm commented on 2014-01-02 21:46

Renamed to policycoreutils

xangelux commented on 2013-08-13 04:19

It has references to pkgdir and restorecon doesn't work for me (says exit error code 1), I assume it's searching for everything on my ~/AUR/selinux-usr-policycoreutils/pkg/selinux-usr-policycoreutils/. . . . how can I help, I'm determined to make it work to learn and make the policy for Arch (hopfuly some day)

Nicky726 commented on 2013-07-20 17:23

The build problem was due to setools, which I didn't have installed. Now added as dependency.

hi117 commented on 2013-06-10 16:57

Package is broken for me, semanage gives error:
ImportError: No module named sepolicy
Package now builds fine with sepolicy enabled, here is a diff to apply the change:
--- a/PKGBUILD 2013-06-09 12:10:17.000000000 -0400
+++ b/PKGBUILD 2013-06-10 12:55:54.493807731 -0400
@@ -32,9 +32,6 @@
sed -i -e "s/shell python -c/shell python2 -c/" "sandbox/Makefile"
sed -i -e "s/\/usr\/bin\/python/\/usr\/bin\/python2/" "sepolicy/Makefile"

- # disable sepolicy as the build fails
- sed -i -e "s/sepolicy//" "Makefile"
-
# /bin, /sbin, /usr/sbin -> /usr/bin
sed -i -e "s/\$(PREFIX)\/sbin/\$(PREFIX)\/bin/g" */Makefile
sed -i -e "s/\$(DESTDIR)\/sbin/\$(PREFIX)\/bin/g" */Makefile


Also the optimizations can be improved by this diff:
--- a/PKGBUILD 2013-06-09 12:10:17.000000000 -0400
+++ b/PKGBUILD 2013-06-10 12:56:45.924625009 -0400
@@ -24,8 +24,8 @@
cd "${srcdir}/${_origname}-${pkgver}"

# optimizations
- sed -i -e "s/-Werror -Wall -W/-Werror -Wall -W -O2/" "setfiles/Makefile"
- sed -i -e "s/-Werror -Wall -W/-Werror -Wall -W -O2/" "sestatus/Makefile"
+ sed -i -e "s/-Werror -Wall -W/-Werror -Wall -W ${CFLAGS}/" "setfiles/Makefile"
+ sed -i -e "s/-Werror -Wall -W/-Werror -Wall -W ${CFLAGS}/" "sestatus/Makefile"

# python2
sed -i -e "s/shell python -c/shell python2 -c/" "semanage/Makefile"

Nicky726 commented on 2013-06-09 20:32

Thank you added.

genghizkhan91 commented on 2013-05-24 17:15

It seems that the package python2-ipy should be listed as a dependency because the command semanage gives an error of a missing module without it.

Nicky726 commented on 2013-05-06 16:52

Thank you, fixed.

kagebe commented on 2013-04-23 16:55

I also had the same issue: Optimization must be enabled to build.

Anonymous comment on 2013-04-16 03:38

The package requires that the optimizations be set due to _FORTIFY_SOURCE. I've changed the PKGBUILD file to add the -O2 optimizations through the build() function to get the package to compile.

Error message: http://pastebin.com/WiDRSamG
PKGBUILD with changes: http://pastebin.com/6WUt5xAb

Nicky726 commented on 2013-03-04 16:19

Thank you, added.

All comments