Commit Graph

20 Commits

Author SHA1 Message Date
Yi Zhao
31325005e4 classes: drop redundant classes
There are some redundant classes: enable-selinux.bbclass,
with-selinux.bbclass, meson-enable-selinux.bbclass,
meson-selinux.bbclass, enable-audit.bbclass, with-audit.bbclass.
These classes only add PACKAGEOCNFIG[selinux]/[audit] to recipes. But
currently most recipes have added PACKAGECONFIG[selinux]/[audit] in
their bb files. We don't need these anymore. Only keep
enable-selinux.class and enable-audit.class to append
PACKAGECONFIG[selinux]/[audit] for recipes.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-29 21:34:22 -04:00
Yi Zhao
57b730709e libpcre: drop bbappend
This bbappend was added long time ago and it is useless now.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-29 21:34:22 -04:00
Yi Zhao
654201e25d meta-selinux: convert to new override syntax
This is the result of automated script conversion:
poky/scripts/contrib/convert-overrides.py meta-selinux

Converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-04 16:18:39 -04:00
Sinan Kaya
aed85f4d0c libpcre: do no create links when compiling for windows
lipcre-native is trying to create symbolic links to so files
when used with meta-mingw. Remove this condition for mingw builds.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2019-04-14 17:13:50 -04:00
Chen Qi
39e7ceaa9f libpcre_selinux.inc: fix do_install failure if .so file does not exist
In case of the existence of meta-mingw, the library is .dll instead of
.so and these .dll files are in ${bindir}.

We need to check the existence of the .so file before doing readlink,
otherwise do_install fails.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2018-10-23 13:17:35 +01:00
Mark Hatle
4fefe83c32 Refactor to conform to YP Compat requirements
Change the references to check for the distribution flag of 'selinux' being
set before taking any action within the bbappends.  This prevents the
signature from being modified.

Also remove PR changes, as they are no longer allowed.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2017-09-14 08:29:01 -05:00
Kai Kang
beaaa37217 attr: fix ptest failures when selinux enabled
When selinux is enabled, a file has a default attribute
"security.selinux" and the output of getfattr shows:

  # file: here
  security.selinux="system_u:object_r:lib_t:s0"

That always causes more output of command getfattr than expected.

Filter out selinux related attribute info, and if the file has only
selinux attribute info, remove its whole output.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
2017-09-08 13:20:27 -05:00
Ioan-Adrian Ratiu
2f8861779c libpcre_%.bbappend: add missing symlink libpcre.so.1
This bbappend moves sysroot lib libpcre.so.x.x.x from /usr/lib to /lib
and symlinks /usr/lib/libpcre.so to ../../lib/libpcre.so.x.x.x, but this
causes certain recipes dependent on libpcre (like pango) to fail because
they also expect libpcre.so.1 to exist which this recipe omits to create.

(the reason why the lib is moved in the first place is to avoid a QA issue
because there's a risk for /usr to be on another partition)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2016-11-01 09:17:16 -04:00
Chong Lu
5166fda6e8 gnupg: remove PR
Remove PR, since oe-core has a new version.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-08-28 17:09:22 +08:00
Armin Kuster
b8538a6523 gnupg: use wildcard in name
There are two versions of gnupg so limit the wildcard to the 2.x series

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-07-01 16:51:06 +08:00
Xin Ouyang
bb876d244d libpcre: Use wildcard for version number in bbappend.
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-06-23 11:45:04 +08:00
Hongxu Jia
75a1e898d9 libpcre_8.34.bbappend: remove PRINC warning
The libpcre has been upgrade to 8.34 in oe-core, but since we were still
using PRINC until now, we'll need to keep it around (in a PR form), so set
it to something suitably large that it's unlikely to break anyone's
package feed and so that it shows it's clearly an exception case.
Obviously this is just a staging activity until the next update when we
don't include anything of the sort.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2014-05-09 08:48:15 -04:00
Mark Hatle
7cc4ee6c83 Resync to oe-core master Jan 10, 2014
Rename most recipes

Update a few recipes as needed:
* tar: Newer version has xattr and selinux support

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2014-01-10 13:55:59 -06:00
Philip Tricca
a7a96c55f1 gnupg: rename bbappend from 2.0.21 to 2.0.22
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2013-12-04 10:16:52 -05:00
Xin Ouyang
4869998847 gnupg: uprev to 2.0.20 to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-08-27 13:55:07 +08:00
Xin Ouyang
4722eec387 libpcre: uprev to 8.33 to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-06-17 18:07:18 +08:00
Xin Ouyang
9eccc64ce7 gnupg: uprev to 2.0.20 to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-06-17 18:03:30 +08:00
Xin Ouyang
0496f79af2 libpcre: uprev to 8.32 to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-05-13 10:51:14 +08:00
Xin Ouyang
98c210142d libpcre: move library to base_libdir to avoid QA issue
Fix these QA warnings.
WARNING: QA Issue: package_a: lib_a, installed in the base_prefix,
   requires a shared library under exec_prefix (/usr):
   libpcre.so.0 => /usr/lib64/libpcre.so.0

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-04-25 16:06:29 +08:00
Xin Ouyang
14749f3fe6 gnupg: inherit enable-selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-31 13:40:00 +08:00