summaryrefslogtreecommitdiffstats
path: root/package/libselinux
Commit message (Collapse)AuthorAgeFilesLines
* libselinux: bump to version 2.8Fabrice Fontaine2018-10-115-147/+19
| | | | | | | | | | | | | | | - Remove second patch (already in version), see https://github.com/SELinuxProject/selinux/commit/b24980ec07af66c4b419f8053aa65e97b36e558d - Update third patch - For target variant, set SHLIBDIR=/usr/lib because by default it is set to /lib and LIBDIR is set to $(PREFIX)/lib (with PREFIX=/usr) - For host variant, set SHLIBDIR=$(HOST_DIR)/lib otherwise shared library will be installed in /lib (PREFIX is not used to install shared library) - Add hash for license file Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* libselinux: remove library host symlinkFabrice Fontaine2018-10-111-1/+0
| | | | | | | | | | | Since bump to version 2.7 and addition of 0003-revert-ln-relative.patch, the creation of a symlink through ln -sf libselinux.so.1 $(HOST_DIR)/lib/libselinux.so is not needed anymore so remove it Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* libselinux: use correct name and content for patch 0004Thomas Petazzoni2018-08-181-4/+4
| | | | | | | | | | | | | | | | Commit 6288409642d8368104f916bd264d2cb042942dfa ("libselinux: add patch to fix build with gcc < 4.7") introduced a patch, but its file name was incorrect, so it was never applied. In addition, the patch was generated against the Git repository of SELinux, which includes all projects, and therefore it doesn't apply to the libselinux source code extracted from the tarball: the "libselinux/" component path needs to be removed from the patch. This commit fixes both problems, which should finally and really fix: http://autobuild.buildroot.net/results/c3272566bb808e43bb77ec59cfe596f7e0fe9a64/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* libselinux: add patch to fix build with gcc < 4.7Thomas Petazzoni2018-08-161-0/+70
| | | | | | | | | | | This commit adds a patch from Hollis Blanchard on libselinux to fix build on host machines that have gcc < 4.7. Fixes: http://autobuild.buildroot.net/results/a82bb0c0b22ff24263ad7a7d165b21c0df7b3b1d/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* libselinux: remove Blackfin patchThomas Petazzoni2018-04-154-24/+0
| | | | | | And renumber the remaining patches. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* libselinux: add patch to make the build process more standardMarcus Folkesson2018-01-164-30/+163
| | | | | | | | | | | | Patch the Makefiles to make PREFIX and DESTDIR follow standard semantics to get rid of DESTDIR during compile time in libselinux.mk and generate proper pkg-config files. Fixes: http://autobuild.buildroot.net/results/74d27370c7623e89e401203a485193340e992e7c/ Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: bump to 2.7Adam Duskett2017-10-173-51/+4
| | | | | | | remove patch as it's in this release. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: rework host installationArnout Vandecappelle2017-07-051-9/+8
| | | | | | | | | | | | | | | | libselinux has a pretty peculiar interpretation of DESTDIR and PREFIX. PREFIX is not consistently used: some installation paths are forced to $(DESTDIR)/usr/... . In other cases, PREFIX is indeed used. PREFIX defaults to $(DESTDIR)/usr. Try to be a little bit more correct by passing both DESTDIR and PREFIX, both set to $(HOST_DIR). This is not a complete fix: man pages are still installed in $(HOST_DIR)/usr - but we don't care about that. Also simplify the symlink creation, like how it's done in libsepol. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/share with $(HOST_DIR)/shareArnout Vandecappelle2017-07-051-2/+2
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/share' | xargs sed -i 's%$(HOST_DIR)/usr/share%$(HOST_DIR)/share%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/include with $(HOST_DIR)/includeArnout Vandecappelle2017-07-051-2/+2
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/include' | xargs sed -i 's%$(HOST_DIR)/usr/include%$(HOST_DIR)/include%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/lib with $(HOST_DIR)/libArnout Vandecappelle2017-07-051-4/+4
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/lib' | xargs sed -i 's%$(HOST_DIR)/usr/lib%$(HOST_DIR)/lib%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/sbin with $(HOST_DIR)/sbinArnout Vandecappelle2017-07-051-1/+1
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/sbin' | xargs sed -i 's%$(HOST_DIR)/usr/sbin%$(HOST_DIR)/sbin%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/l*/Config.in: fix ordering of statementsAdam Duskett2017-05-011-2/+2
| | | | | | | | | | | | | The check-package script when ran gives warnings on ordering issues on all of these Config files. This patch cleans up all warnings related to the ordering in the Config files for packages starting with the letter l in the package directory. The appropriate ordering is: type, default, depends on, select, help See http://nightly.buildroot.org/#_config_files for more information. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: adjust build of Python bindingsMatt Weber2017-04-131-4/+10
| | | | | | | | | | | | | | | | | | | In order to work-around dependency issues, the Python bindings should be built though a separate make invocation from the rest of the library. This avoids build issues like this: selinux_restorecon.lo: file not recognized: File truncated [...] collect2: error: ld returned 1 exit status make[2]: *** [libselinux.so.1] Error 1 Fixes: http://autobuild.buildroot.net/results/967b74d0ae5b4b83ea2729217b005a3e1e4514d0/ Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> [Thomas: improve commit log.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: allow compiling python wrapper module for targetAdam Duskett2017-04-091-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | libselinux currently does not compile its python wrapper module for the target. This is needed for audit2allow to function properly, and therefore this patch adjusts libselinux.mk to install the python wrapper module is python or python3 are enabled. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com> [Thomas: - Remove useless empty lines, as noted by Matt Weber - Move code related to python bindings before builds/install commands, since those commands will use variables defined by the python bindings logic. - Instead of enabling the python bindings when BR2_PACKAGE_POLICYCOREUTILS_AUDIT2ALLOW is set, enable the python bindings when python is available. We generally try to avoid looking at options of other packages to decide what to install. - Introduce LIBSELINUX_MAKE_TARGETS and LIBSELINUX_MAKE_INSTALL_TARGETS variable, in order to avoid duplicate the make/make install commands. - As suggested by Matt Weber, remove LIBSELINUX_PYTHONLIBDIR definitions, and don't pass PYLIBVER and PYTHONLIBDIR in MAKE_OPTS.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: query for python site-packages dir directlyMatt Weber2017-04-041-4/+1
| | | | | | | | | | | | | | | | | With the bump to version 2.6, the following commit needs to be taken into consideration for overloading paths. https://github.com/SELinuxProject/selinux/commit/8162f10e670da963eb65ccf1e7de69ea85aba30d The PYLIBVER is no longer used and the PYTHONLIBDIR is renamed to PYSITEDIR with slightly different pathing. More details can be found in the issue ticket which was marked as a non-issue after analysis that a Buildroot fix was the resolution. https://github.com/SELinuxProject/selinux/issues/51 Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: bump version to 2.6Adam Duskett2017-01-253-3/+50
| | | | | | | | | This commit also adds a patch that allows libselinux 2.6 to build properly with older compilers such as gcc 4.4. Signed-off-by: Adam Duskett <aduskett@codeblue.com> [Thomas: add patch to fix gcc 4.4 build issue.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: use $(HOST_MAKE_ENV) when calling $(MAKE)Gustavo Zacarias2016-10-291-4/+8
| | | | | Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: use $(TARGET_MAKE_ENV) when calling $(MAKE)Gustavo Zacarias2016-10-291-3/+6
| | | | | Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/{libsepol,libselinux}: fix build on ancient distrosYann E. MORIN2016-07-021-0/+24
| | | | | | | | | | | | | Ancient distros (especially enterprise-grade still in use) do not accept ln --relative. Revert the upstream commit, since the problem it was trying to fix is not applicable in the context of Buildroot (even with a merged /usr). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Adam Duskett <Aduskett@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: bump to version 2.5Adam Duskett2016-07-013-5/+10
| | | | | | | | | | | | | | | | | | In addition, if a user is using glibc 2.22, the default CFLAG D_FILE_OFFSET_BITS=64 will cause a compile error. This flag is now removed from the CFLAGS in the make file to ensure that toolchains compiled against glibc 2.22 will build the new version of the package properly. In addition, libselinux now uses fts(), which is not available on musl, and not provided by our default uClibc configuration. Therefore, libselinux now depends on glibc, as well as all its reverse dependencies. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: add glibc dependency for fts().] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: use correct definition of ARCHVicente Olivert Riera2015-09-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | The Makefile of libselinux performs the following check: ARCH := $(patsubst i%86,i386,$(shell uname -m)) ifneq (,$(filter i386,$(ARCH))) TLSFLAGS += -mno-tls-direct-seg-refs endif Which means that if the host machine is an x86, then TLSFLAGS will contain -mno-tls-direct-seg-refs. That command line option causes libselinux to fail when building it for target architectures where the compiler doesn't support that option, i.e. MIPS: mips-img-linux-gnu-gcc: error: unrecognized command line option ‘-mno-tls-direct-seg-refs’ So to fix that problem we can set the ARCH variable to $(KERNEL_ARCH), and then append it to the LIBSELINUX_MAKE_OPTS. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: mark as not available on ARCThomas Petazzoni2015-08-191-0/+3
| | | | | | | | | | | | | | | libselinux causes some build problems due to the toolchain on ARC, which haven't been solved so far. As a temporary solution for Buildroot 2015.08, this commit makes libselinux (and its reverse dependencies) unavailable on ARC. Of course, once the toolchain problem is addressed, this commit can be reverted to re-enable libselinux on ARC. Fixes: http://autobuild.buildroot.org/results/220/2207f6aad44a6988bf07b02b583b6418ad930dc8/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/libselinux: fix build with muslYann E. MORIN2015-07-271-0/+30
| | | | | | | | | | | | | | | | | | | musl does not define glibcisms, so we are missing some macros. Define what we need in case the macro is missing. We're using a dumb implementation, which is rather slow, to avoid copying from glibc, to avoid propagating the LGPL to libselinux, which is Public Domain. Fixes a bunch of autobuild failures: http://autobuild.buildroot.org/results/d4d/d4d209719d1ce5219f84719ad72fcb6a0c684007/ http://autobuild.buildroot.org/results/1a6/1a65cc3d2c23a3c17c605788be62dbd18cbdaf76/ http://autobuild.buildroot.org/results/0d0/0d0e4713833182d0f634b9b39b2c56f2bc0adcac/ ... Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Clayton Shotwell <clshotwe@rockwellcollins.com> Reviewed-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: remove (non-)lfs dependencies and tweaksGustavo Zacarias2015-04-011-3/+2
| | | | | | | | Now that largefile is mandatory removes package dependencies and conditionals. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: add patch to fix Blackfin build issueThomas Petazzoni2015-02-081-0/+24
| | | | | | | | | Fixes: http://autobuild.buildroot.org/results/165/165a227a0a8ecd4cb3f96761aacdf90ae974fea7/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* libselinux: needs shared library supportThomas Petazzoni2015-01-021-2/+3
| | | | | | | | | | | | | Even though technically libselinux could make its <dlfcn.h> include optional, the build system isn't really suited to build and install only the static variant of libselinux, so let's make libselinux and its reverse dependency not available in pure-static environments. Fixes: http://autobuild.buildroot.org/results/90d/90dc73980a45b9b0441be3d493b22e3afea3cd6e/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: change to github locationPeter Korsgaard2015-01-021-1/+1
| | | | | | | | | | | | | | | | Fixes: http://autobuild.buildroot.net/results/4a7/4a7b71f1471b889abf278882a7735475dd95451b/ http://autobuild.buildroot.net/results/bdf/bdf621c5a893bce51db95f4a8f2814c14d2f6d49/ http://autobuild.buildroot.net/results/7a8/7a8426f60a7377e3b08e6502f4e0b2c738002a79/ http://autobuild.buildroot.net/results/d90/d90e40f7fb6e1a7d429454d04b9f5f69826a842e/ And many more. The old location doesn't seem active any more. Even though this github URL looks a bit odd, it is linked from https://github.com/SELinuxProject/selinux/wiki/Releases Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* libselinux: new packageClayton Shotwell2015-01-013-0/+100
[Thomas: - Add hash file. - Enable on all architectures, and enable on uClibc. The autobuilders will let us know if there are any problems. - Use "Public Domain" as the license instead of "PublicDomain" - Handle Python 2 vs. Python 3 for the host package. Either can be used by libselinux. - Change the trick used to get the library and programs installed in usr/lib/ and usr/sbin/ instead of lib/ and sbin/.] Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
OpenPOWER on IntegriCloud