[meta-selinux,02/12] libpcre: drop bbappend

Submitted by Yi Zhao on Aug. 19, 2021, 4:46 a.m. | Patch ID: 180097

Details

Message ID 20210819044708.105282-2-yi.zhao@windriver.com
State New
Headers show

Commit Message

Yi Zhao Aug. 19, 2021, 4:46 a.m.
This bbappend was added long time ago and it is useless now.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 recipes-support/libpcre/libpcre_%.bbappend  |  1 -
 recipes-support/libpcre/libpcre_selinux.inc | 18 ------------------
 2 files changed, 19 deletions(-)
 delete mode 100644 recipes-support/libpcre/libpcre_%.bbappend
 delete mode 100644 recipes-support/libpcre/libpcre_selinux.inc

Patch hide | download patch | download mbox

diff --git a/recipes-support/libpcre/libpcre_%.bbappend b/recipes-support/libpcre/libpcre_%.bbappend
deleted file mode 100644
index 7719d3b..0000000
--- a/recipes-support/libpcre/libpcre_%.bbappend
+++ /dev/null
@@ -1 +0,0 @@ 
-require ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', '${BPN}_selinux.inc', '', d)}
diff --git a/recipes-support/libpcre/libpcre_selinux.inc b/recipes-support/libpcre/libpcre_selinux.inc
deleted file mode 100644
index 2da7073..0000000
--- a/recipes-support/libpcre/libpcre_selinux.inc
+++ /dev/null
@@ -1,18 +0,0 @@ 
-do_install:append () {
-	# This code creates libpcre for both the dev machine (SDK native)
-	# and for cross-compiling (machine arch). For Linux (SDK Linux native
-	# + all machine arch), symlinks to the .so files have to be created,
-	# but not for the Windows SDK native.
-	if [ ${TARGET_OS} != "mingw32" ]; then
-		if [ ! ${D}${libdir} -ef ${D}${base_libdir} -a -e ${D}${libdir}/libpcre.so ]; then
-			realsofile=`readlink ${D}${libdir}/libpcre.so`
-			mkdir -p ${D}/${base_libdir}/
-			mv -f ${D}${libdir}/libpcre.so.* ${D}${base_libdir}/
-			relpath=${@os.path.relpath("${base_libdir}", "${libdir}")}
-			ln -sf ${relpath}/${realsofile} ${D}${libdir}/libpcre.so
-			ln -sf ${relpath}/${realsofile} ${D}${libdir}/libpcre.so.1
-		fi
-	fi
-}
-
-FILES:${PN} += "${base_libdir}/libpcre.so.*"