]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
libsepol: bump to 2.7, setools: bump to 4.1.1
authorAdam Duskett <aduskett@gmail.com>
Tue, 17 Oct 2017 22:32:16 +0000 (18:32 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 18 Oct 2017 20:48:26 +0000 (22:48 +0200)
commit96d3d017963b28fe3925f77f3cb4b37e425ff79d
tree706b294535948f501e460e1ca14a51afd9365330
parent38e36cd0e1ec55743766e48564d952e38ff40113
libsepol: bump to 2.7, setools: bump to 4.1.1

The reason for combining these patches is because the
old version of setools is not compatible iwth libsepol 2.7.  If a user where
to do a git pull on a patch that only updates libsepol or setools, the build
would fail to compile.

setools has been completely rewritten in python instead of C.

The current version of setools includes a few programs that require
python-qt5 or python-networkx to run, however the package does not
check to see if these exist when compiling, and will install the scripts
to the target directory even if they don't exist.

In the case of python-networkx, this package is not available on Buildroot.
The scripts that require them are: sedta and seinfoflow.
In the case of python-qt5, qpol is the script that requires it.

Some setools.mk notes to get the package to compile:

- Convert the package .mk to use python-package instead of autotools-package.

- setup.py hard codes base_lib_dirs to point to several host directories.
  To fix this, sed is used before compiling to point the base_lib_dirs to
  the staging directory.

- setup.py also includes the "Werror" flag, however compilers before gcc6
  cause a few autogenerated variables to not be initialized before use,
  causing the build to fail.
  To fix this, a patch is provided that removes the Werror flag.

- Remove sedta and seinfoflow from the target system after install.  These
  packages rely on the package python-networkx which is not available in
  buildroot.

- Remove the installed apol package and the setoolsgui directory from the
  target directory if python-qt5 is not selected.

Other changes:
- Removed all patches, as they are not compatible with the new version of
  setools.

- Add COPYING, COPYING.GPL, and COPYING.LGPL to setools.hash

Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 files changed:
package/libsepol/0001-support-static-only.patch
package/libsepol/0003-revert-ln-relative.patch
package/libsepol/libsepol.hash
package/libsepol/libsepol.mk
package/setools/0001-cross-compile-fixes.patch [deleted file]
package/setools/0001-remove-werror-flag-from-setup.patch [new file with mode: 0644]
package/setools/0002-Do-not-export-use-setools.InfoFlowAnalysis-and-setoo.patch [new file with mode: 0644]
package/setools/0002-move-python-check.patch [deleted file]
package/setools/0003-setools-Update-for-2015-02-02-Userspace-release.patch [deleted file]
package/setools/Config.in
package/setools/setools.hash
package/setools/setools.mk