Renamed to policycoreutils
Search Criteria
Package Details: policycoreutils 2.4-1
Package Actions
| Package Base: | policycoreutils |
|---|---|
| Description: | SELinux policy core utilities |
| Upstream URL: | http://userspace.selinuxproject.org |
| Category: | system |
| Licenses: | |
| Groups: | |
| Conflicts: | |
| Provides: | |
| Submitter: | Siosm |
| Maintainer: | IooNag |
| Last Packager: | IooNag |
| Votes: | 11 |
| First Submitted: | 2013-11-03 20:05 |
| Last Updated: | 2015-02-22 13:11 |
Dependencies (8)
- dbus-glib
- libcgroup
- libsemanage>=2.4
- pam-selinux
- python2-ipy
- sepolgen
- setools
- hicolor-icon-theme (optional) – needed for graphical tools
Required by (1)
Sources
Latest Comments
Comment by Siosm
Comment by xangelux
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)
Comment by Nicky726
The build problem was due to setools, which I didn't have installed. Now added as dependency.
Comment by hi117
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"
Comment by Nicky726
Thank you added.
Comment by genghizkhan91
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.
Comment by Nicky726
Thank you, fixed.
Comment by kagebe
I also had the same issue: Optimization must be enabled to build.
Anonymous comment
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
Comment by Nicky726
Thank you, added.
Comment by Splith
Missing dbus-glib dependancy.
Comment by Nicky726
Thank you, I addopted some of the changes and the .service file.
Comment by xangelux
Found the unit file and edited the PKGBUILD to update it, not sure that everything works but so far no errors. https://gist.github.com/xangelux/4962315
Comment by Nicky726
Fixed, and one more.
Comment by lks
Thank you!
Comment by Blubaur
I get the same error on current. Might be a problem with glibc's headers. If I move the #define _GNU_SOURCE to the top, instead of
before sched.h, it works.
sched.h seems to not get __USE_GNU from the _GNU_SOURCE #definition.
Comment by Nicky726
Why do you use an old version of the package? Sorry, but I can't support that.
Comment by lks
I get an error:
"seunshare.c:242:21: »CLONE_NEWNS« not declared"
I have used the pkgver 2.0.82 in http://userspace.selinuxproject.org/releases/20100525/devel/. I have removed on my PKGBUILD that lines, because there is no "${pkgdir}/etc/rc.d/init.d/sandbox":
# Move daemons to correct locations
mv "${pkgdir}/etc/rc.d/init.d/sandbox" \
"${pkgdir}/etc/rc.d/"
rm -rf "${pkgdir}/etc/rc.d/init.d/"
Comment by Nicky726
Moved daemons to /etc/rc.d/ and rewritten /etc/rc.d/restorecond acording to other Arch daemons.
Comment by Nicky726
Done. Guess its better than makedeps.
Comment by coolpyrofreak
Please add libcap-ng to dependencies.