Search Criteria
Package Details: libselinux 3.4-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/libselinux.git (read-only, click to copy) |
---|---|
Package Base: | libselinux |
Description: | SELinux library and simple utilities |
Upstream URL: | https://github.com/SELinuxProject/selinux |
Keywords: | selinux |
Licenses: | custom |
Conflicts: | selinux-usr-libselinux |
Provides: | selinux-usr-libselinux |
Submitter: | Siosm |
Maintainer: | IooNag |
Last Packager: | IooNag |
Votes: | 119 |
Popularity: | 0.63 |
First Submitted: | 2013-11-03 20:05 (UTC) |
Last Updated: | 2022-05-29 11:38 (UTC) |
Dependencies (9)
- libsepol
- pcre (pcre-svn)
- pkgconf (pkgconf-git) (make)
- python (python38, python37, python3.7, nogil-python, python39, python36, python311, python32) (make)
- ruby (make)
- swig (swig-git) (make)
- xz (xz-git) (make)
- python (python38, python37, python3.7, nogil-python, python39, python36, python311, python32) (optional) – python bindings
- ruby (optional) – ruby bindings
Required by (52)
- aide-selinux
- arm-image-installer
- authselect
- cajviewer-bin
- casync
- coreutils-selinux
- cronie-selinux
- dbus-docs-selinux (make)
- dbus-selinux (make)
- esdm-git
- findutils-selinux
- glib2-selinux (make)
- glib2-selinux (optional)
- glib2-selinux-docs (make)
- iproute2-selinux
- iris-temperature
- libsemanage
- libvirt-sandbox
- logrotate-selinux
- lxc-selinux
Latest Comments
tallero commented on 2022-02-15 11:52 (UTC) (edited on 2022-03-05 06:10 (UTC) by tallero)
@IooNag: I will contact
python-selinux
maintainers on this issue as soon as I can.IooNag commented on 2022-01-03 21:21 (UTC)
@tallero: It seems that python-selinux, Python package was created to work in Python virtualenv, in order to provide Python bindings to libselinux.so (according to "Pure-python selinux shim module for use in virtualenvs in order to avoid failure to load selinux in Ansible modules." in https://github.com/pycontribs/selinux/blob/321d66619ed59bec00a9dc6216ce417d7befec41/README.rst ). These bindings are provided system-wide by the AUR package selinux-python in the AUR, and I understand for a need of a shim module in virtualenvs. This is why python-selinux includes a "selinux" Python module. However the fact that this module is installed system-wide is strange.
Moreover I do not understand how Arch Linux's python-selinux is supposed to work system-wide: it is supposed to provides transparent Python bindings to libselinux... but require libselinux to be installed too (with its Python bindings). Therefore, in my humble opinion, instead of packaging python-selinux in community, the AUR packages libselinux and selinux-python should be migrated to community if some official packages start to depend on them.
Could you please contact python-selinux's package maintainers in order to understand how this package is supposed to be used on systems with SELinux?
tallero commented on 2022-01-03 20:04 (UTC)
bred commented on 2020-03-03 08:37 (UTC) (edited on 2020-03-03 09:51 (UTC) by bred)
@IooNag Ok, thanks
But considering that pkgconf is not so frequently used, maybe is better if you add it in the makedepends.
IooNag commented on 2020-03-03 08:10 (UTC)
@bred Yes, pkgconf needs to be installed before building this package, as well as make, gcc (for a C compiler)... All these packages are in group base-devel, which is always required for AUR packages.
bred commented on 2020-03-03 07:49 (UTC)
@IooNag
It seems that the package "pkgconf" is a mandatory dependency for building "libselinux".
After the installation of "pkgconf" it has compiled correctly.
IooNag commented on 2020-03-02 21:07 (UTC)
@bred : What version of package pcre have you installed? What is the output of "pkg-config --libs libpcre" (this is the command which is used to normally insert "-lpcre" in the command line that failed)?
bred commented on 2020-03-02 13:11 (UTC) (edited on 2020-03-02 14:00 (UTC) by bred)
I've this error during the linking: (pcre is installed!)
tallero commented on 2020-02-17 00:39 (UTC) (edited on 2020-02-17 00:42 (UTC) by tallero)
@IooNag:
I am not that interested, too. I just needed an easy-to-use tool and someone adviced system-config-users. It seemed natural to me to package it, even if arch is slowly deprecating all python2-* packages.
If someone will ever want to use it in the future (for whatever reason) now can do it easily (because PKGBUILDs won't be lost even when SELinux will end support).
I did this for screem, too.
IooNag commented on 2020-02-12 21:00 (UTC)
@tallero: it seems that system-config-users could be installed on RHEL/CentOS 7, but not on CentOS 8 according to https://unix.stackexchange.com/questions/547437/centos-8-system-config-users. Moreover this question suggests using Cockpit instead, which has already been packaged for Arch Linux (https://www.archlinux.org/packages/community/x86_64/cockpit/).
Anyway, if you want to fork/adopt system-config-users and maintain it on https://gitlab.com/tallero/system-config-users, that's nice. Nevertheless I do not want to maintain a libselinux-python2-v3.0 package because this version is not supported upstream (by SELinux developers) and the future releases of libselinux are likely to break Python 2 compatibility. This is a matter of personal choices in the way I define how I spend my time. You are of course still free to work on package libselinux-python2 and backport bug fixes that could happen in libselinux's Python bindings.
tallero commented on 2020-02-12 17:56 (UTC) (edited on 2020-02-12 18:29 (UTC) by tallero)
@IooNag: I agree with you. In any case libselinux-python2 packages just bindings and until the tool has not been replaced/ported to pygobject (if ever) it could simply stabilize on 3.0. This was packaged because of this question. Can't find the original git repo, only tarballs, check this.
IooNag commented on 2020-02-12 07:46 (UTC)
tallero : is system-config-users maintained? The upstream of this project (Red Hat) seems to no longer maintain it (and the RPM seems not to exist for "recent" releases such as CentOS 8 or Fedora 31 on https://rpmfind.net/linux/rpm2html/search.php?query=system-config-users).
If system-config-users is no longer maintained upstream, I do not want to spend time to support libselinux-python2, for the sake of using old software for which bugs will never be fixed upstream.
tallero commented on 2020-02-11 22:17 (UTC)
@IooNag: I know of Python 2.x EOL; the library (same tar of this package) can still produce 2.x bindings. The software that needs it is system-config-users, the users/groups GUI manager included in Red Hat/CentOS 7.x.
I just noticed gnome-system-tools.
IooNag commented on 2020-02-11 19:41 (UTC)
tallero: Python 2 is no longer supported by SELinux userspace tools and libraries, since commit https://github.com/SELinuxProject/selinux/commit/214cb61d539f75e5290928cb7bba5b2646632d0b that is included in release 3.0. This is why I removed Python 2 library from libselinux package.
What software are you using that requires Python 2's bindings of libselinux? This software needs be updated to Python 3 compatibility anyway, as Python 2 is no longer updated "even if someone finds a security problem in it" (cf. https://www.python.org/doc/sunset-python-2/).
tallero commented on 2020-02-11 18:09 (UTC)
I forked the package to build and install only python 2.x bindings in libselinux-python2. Could you add the option to build them into this one so that I can drop the newborn depedency?
IooNag commented on 2020-01-12 16:34 (UTC)
paperfolder: As far as I understand, this warning appears for every package that provides a Python library. If you know of a way to bytecode-compile Python scripts without introducing the full path of the scripts in the resulting .pyc files, I will gladly modify the PKGBUILD accordingly.
paperfolder commented on 2020-01-10 15:59 (UTC) (edited on 2020-01-10 16:03 (UTC) by paperfolder)
makepkg returns a warning that the built package contains a reference to $pkgdir - is this a problem during compiling? (archwiki says that this error means the literal string $pkgdir is contained in these files)
xuanwo commented on 2019-11-22 05:37 (UTC)
Please bump a pkgrel for python 3.8 rebuild~
IooNag commented on 2019-08-24 15:54 (UTC)
reallygrimm: which compiler are you using? The build does not fail with gcc 9.1.0-2 on x86-64, but people on Fedora has reported issues upstreams with gcc 9.1.1 that got fixed by commit https://github.com/SELinuxProject/selinux/commit/ee8f7a870c625de139aa271eae0c40578488c2f6 . I will backport this patch to the package.
reallygrimm commented on 2019-08-23 17:04 (UTC) (edited on 2019-08-23 17:06 (UTC) by reallygrimm)
I'm getting a build failure, and I'm not sure if it's the patch, upstream or because I've got blinders on.
IooNag commented on 2019-06-23 15:44 (UTC)
iGwadaa: I forgot that Makefile in the source directory overwrote definitions from src/Makefile... This Makefile overwrites PCRE_LDLIBS with "PCRE_LDLIBS := $(shell $(PKG_CONFIG) --libs $(PCRE_MODULE))". Do you have pkg-config command (from package pkgconf)? As it is part of base-devel group, it is supposed to be installed even though it is not listed in the dependencies of libselinux's PKGBUILD.
IooNag commented on 2019-06-23 15:40 (UTC)
iGwadaa: libselinux builds fine on my clean environment. pcre_fullinfo is provided by /usr/lib/libpcre.so.1.2.11 from pcre 8.43-1. Moreover the Makefile in src/ adds -lpcre (through an indirection with "PCRE_LDLIBS ?= -lpcre"). Do you know of something specific to your build environment that would explain this build failure?
MojoMotion commented on 2019-06-18 11:38 (UTC) (edited on 2019-06-18 11:39 (UTC) by MojoMotion)
IooNag commented on 2019-04-28 15:57 (UTC)
schlumpf: thanks for your bug report. On my system, libselinux builds fine, and the line which does the linking has a "-lpcre" which is added. This parameter is added in the Makefile by using the output "pkg-config --libs libpcre".
Have you installed pkgconf (which is part of base-devel)? If yes, what does "pkg-config --libs libpcre" print, on your system?
schlumpf commented on 2019-04-28 09:10 (UTC) (edited on 2019-04-28 09:12 (UTC) by schlumpf)
I'm unable to build :(
[...]
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -I../include -D_GNU_SOURCE -DDISABLE_RPM -DNO_ANDROID_BACKEND -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -shared -o libselinux.so.1 avc.lo avc_internal.lo avc_sidtab.lo booleans.lo callbacks.lo canonicalize_context.lo checkAccess.lo check_context.lo checkreqprot.lo compute_av.lo compute_create.lo compute_member.lo compute_relabel.lo compute_user.lo context.lo deny_unknown.lo disable.lo enabled.lo fgetfilecon.lo freecon.lo freeconary.lo fsetfilecon.lo get_context_list.lo get_default_type.lo get_initial_context.lo getenforce.lo getfilecon.lo getpeercon.lo init.lo is_customizable_type.lo label.lo label_db.lo label_file.lo label_media.lo label_support.lo label_x.lo lgetfilecon.lo load_policy.lo lsetfilecon.lo mapping.lo matchmediacon.lo matchpathcon.lo policyvers.lo procattr.lo query_user_context.lo regex.lo reject_unknown.lo selinux_check_securetty_context.lo selinux_config.lo selinux_restorecon.lo sestatus.lo setenforce.lo setexecfilecon.lo setfilecon.lo setrans_client.lo seusers.lo sha1.lo stringrep.lo -ldl -Wl,-soname,libselinux.so.1,-z,defs,-z,relro /usr/bin/ld: regex.lo: in function
regex_version': regex.c:(.text+0x12): undefined reference to
pcre_version' /usr/bin/ld: regex.lo: in functionregex_writef': regex.c:(.text+0x79): undefined reference to
pcre_fullinfo' /usr/bin/ld: regex.c:(.text+0xf0): undefined reference topcre_fullinfo' /usr/bin/ld: regex.lo: in function
regex_data_free': regex.c:(.text+0x1eb): undefined reference topcre_free' /usr/bin/ld: regex.c:(.text+0x1fc): undefined reference to
pcre_free_study' /usr/bin/ld: regex.lo: in functionregex_prepare_data': regex.c:(.text+0x26a): undefined reference to
pcre_compile' /usr/bin/ld: regex.c:(.text+0x28c): undefined reference topcre_study' /usr/bin/ld: regex.lo: in function
regex_load_mmap': regex.c:(.text+0x38a): undefined reference topcre_fullinfo' /usr/bin/ld: regex.c:(.text+0x403): undefined reference to
pcre_fullinfo' /usr/bin/ld: regex.lo: in functionregex_match': regex.c:(.text+0x4ae): undefined reference to
pcre_exec' /usr/bin/ld: regex.lo: in functionregex_cmp': regex.c:(.text+0x52e): undefined reference to
pcre_fullinfo' /usr/bin/ld: regex.c:(.text+0x548): undefined reference to `pcre_fullinfo'IooNag commented on 2017-06-02 11:48 (UTC)
netrunn3r commented on 2017-06-02 08:52 (UTC)
cminus commented on 2017-02-19 22:53 (UTC)
IooNag commented on 2017-02-19 22:05 (UTC)
cminus commented on 2017-02-19 21:50 (UTC)
IooNag commented on 2016-10-20 07:16 (UTC)
chrisbdaemon commented on 2016-10-19 19:24 (UTC)
reynoldsbd commented on 2016-02-07 17:50 (UTC)
IooNag commented on 2015-07-23 12:02 (UTC)
nebulon commented on 2015-07-20 12:02 (UTC)
grondinm commented on 2015-01-01 19:14 (UTC)
IooNag commented on 2014-12-31 13:39 (UTC)
grondinm commented on 2014-12-31 01:55 (UTC)
IooNag commented on 2014-09-16 06:10 (UTC)
commented on 2014-09-15 18:47 (UTC)
IooNag commented on 2014-05-23 12:50 (UTC)
Chocobozzz commented on 2014-05-23 09:30 (UTC)
Alda commented on 2014-02-20 07:38 (UTC)
errier commented on 2014-01-13 19:50 (UTC)
Siosm commented on 2014-01-02 21:47 (UTC)
commented on 2013-08-11 11:22 (UTC)
Nicky726 commented on 2013-07-20 17:22 (UTC)
hi117 commented on 2013-06-10 20:01 (UTC)
Nicky726 commented on 2013-02-25 10:29 (UTC)
xangelux commented on 2013-02-24 10:13 (UTC)
Nicky726 commented on 2013-02-20 20:51 (UTC)
Nicky726 commented on 2013-02-20 20:33 (UTC)
Nicky726 commented on 2013-02-20 20:21 (UTC)
dejavu commented on 2013-02-20 19:05 (UTC)
xangelux commented on 2013-02-17 18:20 (UTC)
Nicky726 commented on 2013-02-17 12:50 (UTC)
Nicky726 commented on 2013-02-17 10:55 (UTC)
xangelux commented on 2013-02-12 20:57 (UTC)