Package Details: libselinux 3.0-1

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: http://userspace.selinuxproject.org
Keywords: selinux
Licenses: custom
Groups: selinux
Conflicts: selinux-usr-libselinux
Provides: selinux-usr-libselinux=3.0-1
Submitter: Siosm
Maintainer: IooNag
Last Packager: IooNag
Votes: 107
Popularity: 0.93
First Submitted: 2013-11-03 20:05
Last Updated: 2019-12-13 19:59

Latest Comments

1 2 3 4 5 Next › Last »

IooNag commented on 2020-01-12 16:34

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

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)

==> WARNING: Package contains reference to $pkgdir
usr/lib/python3.8/site-packages/selinux/__pycache__/__init__.cpython-38.opt-1.pyc
usr/lib/python3.8/site-packages/selinux/__pycache__/__init__.cpython-38.pyc

xuanwo commented on 2019-11-22 05:37

Please bump a pkgrel for python 3.8 rebuild~

IooNag commented on 2019-08-24 15:54

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

I'm getting a build failure, and I'm not sure if it's the patch, upstream or because I've got blinders on.

booleans.c:39:5: error: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C2 -+ C1 [-Werror=strict-overflow]

39 | int security_get_boolean_names(char ***names, int *len)

IooNag commented on 2019-06-23 15:44

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

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?

iGwadaa commented on 2019-06-18 11:38

  • regex.c:(.text+0x52e): undefined reference to `pcre_fullinfo'
  • /usr/bin/ld: regex.c:(.text+0x548): undefined reference to `pcre_fullinfo'
  • collect2: error: ld returned 1 exit status
  • make[1]: *** [Makefile:155: libselinux.so.1] Error 1
  • make[1]: Leaving directory '/tmp/yaourt-tmp-igwadaa/aur-libselinux/src/libselinux-2.9/src'
  • make: *** [Makefile:44: all] Error 1

IooNag commented on 2019-04-28 15:57

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

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 topcre_version' /usr/bin/ld: regex.lo: in function regex_writef': regex.c:(.text+0x79): undefined reference topcre_fullinfo' /usr/bin/ld: regex.c:(.text+0xf0): undefined reference to pcre_fullinfo' /usr/bin/ld: regex.lo: in functionregex_data_free': regex.c:(.text+0x1eb): undefined reference to pcre_free' /usr/bin/ld: regex.c:(.text+0x1fc): undefined reference topcre_free_study' /usr/bin/ld: regex.lo: in function regex_prepare_data': regex.c:(.text+0x26a): undefined reference topcre_compile' /usr/bin/ld: regex.c:(.text+0x28c): undefined reference to pcre_study' /usr/bin/ld: regex.lo: in functionregex_load_mmap': regex.c:(.text+0x38a): undefined reference to pcre_fullinfo' /usr/bin/ld: regex.c:(.text+0x403): undefined reference topcre_fullinfo' /usr/bin/ld: regex.lo: in function regex_match': regex.c:(.text+0x4ae): undefined reference topcre_exec' /usr/bin/ld: regex.lo: in function regex_cmp': regex.c:(.text+0x52e): undefined reference topcre_fullinfo' /usr/bin/ld: regex.c:(.text+0x548): undefined reference to `pcre_fullinfo'