mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
rpm: disable libarchive use
libarchive is only needed for the rpm2archive tool, as this is of limited use and libarchive is a non-trivial build dependency make this optional and disabled by default. (From OE-Core rev: 2eaefac2bb0b999e64a445fdadefb639eb7089a0) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c2a11e18c8
commit
d734975024
@@ -49,7 +49,7 @@ SRCREV = "ab2179452c5be276a6b96c591afded485c7e58c3"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS = "openssl libarchive db file popt xz bzip2 dbus elfutils python3"
|
||||
DEPENDS = "openssl db file popt xz bzip2 dbus elfutils python3"
|
||||
DEPENDS_append_class-native = " file-replacement-native bzip2-replacement-native"
|
||||
|
||||
inherit autotools gettext pkgconfig python3native
|
||||
@@ -74,6 +74,7 @@ BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[imaevm] = "--with-imaevm,,ima-evm-utils"
|
||||
PACKAGECONFIG[rpm2archive] = "--with-archive,--without-archive,libarchive"
|
||||
|
||||
ASNEEDED = ""
|
||||
|
||||
@@ -95,7 +96,7 @@ WRAPPER_TOOLS = " \
|
||||
|
||||
do_install_append_class-native() {
|
||||
for tool in ${WRAPPER_TOOLS}; do
|
||||
create_wrapper ${D}$tool \
|
||||
test -x ${D}$tool && create_wrapper ${D}$tool \
|
||||
RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
|
||||
RPM_ETCCONFIGDIR=${STAGING_DIR_NATIVE} \
|
||||
MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc \
|
||||
@@ -105,7 +106,7 @@ do_install_append_class-native() {
|
||||
|
||||
do_install_append_class-nativesdk() {
|
||||
for tool in ${WRAPPER_TOOLS}; do
|
||||
create_wrapper ${D}$tool \
|
||||
test -x ${D}$tool && create_wrapper ${D}$tool \
|
||||
RPM_CONFIGDIR='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir'), d.getVar('bindir'))}/rpm \
|
||||
RPM_ETCCONFIGDIR='$'{RPM_ETCCONFIGDIR-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir'), d.getVar('bindir'))}/..} \
|
||||
MAGIC='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))}/misc/magic.mgc \
|
||||
|
||||
Reference in New Issue
Block a user