mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-31 01:10:08 +00:00
xfsprogs: support usrmerge
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
|||||||
|
From e81633a276dd6a9f919e5e5c15481ac50a8e485d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Changqing Li <changqing.li@windriver.com>
|
||||||
|
Date: Fri, 30 Aug 2019 14:59:06 +0800
|
||||||
|
Subject: [PATCH] support usrmerge
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [oe-specific]
|
||||||
|
|
||||||
|
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||||
|
---
|
||||||
|
configure.ac | 7 +++----
|
||||||
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 4b7e4c8..f1afbd6 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -110,8 +110,7 @@ AC_ARG_ENABLE(libicu,
|
||||||
|
# If the user specified a libdir ending in lib64 do not append another
|
||||||
|
# 64 to the library names.
|
||||||
|
#
|
||||||
|
-base_libdir=`basename "$libdir"`
|
||||||
|
-case $base_libdir in
|
||||||
|
+case `basename "$libdir"` in
|
||||||
|
lib64)
|
||||||
|
enable_lib64=no
|
||||||
|
esac
|
||||||
|
@@ -125,8 +124,8 @@ esac
|
||||||
|
#
|
||||||
|
case $exec_prefix:$prefix in
|
||||||
|
NONE:NONE | NONE:/usr | /usr:*)
|
||||||
|
- root_sbindir='/sbin'
|
||||||
|
- root_libdir="/${base_libdir}"
|
||||||
|
+ root_sbindir="${base_sbindir}"
|
||||||
|
+ root_libdir="${base_libdir}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
root_sbindir="${sbindir}"
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
@@ -11,6 +11,7 @@ SRC_URI = "https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/${BP}.tar.xz \
|
|||||||
file://0001-build-Check-for-sync_file_range-libc-function.patch \
|
file://0001-build-Check-for-sync_file_range-libc-function.patch \
|
||||||
file://0001-Check-for-MAP_SYNC-in-sys-mman.h.patch \
|
file://0001-Check-for-MAP_SYNC-in-sys-mman.h.patch \
|
||||||
file://0002-include-include-xfs-linux.h-after-sys-mman.h.patch \
|
file://0002-include-include-xfs-linux.h-after-sys-mman.h.patch \
|
||||||
|
file://0001-support-usrmerge.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[md5sum] = "5ca3f79e76e3fb984a03d1b42a2e60ba"
|
SRC_URI[md5sum] = "5ca3f79e76e3fb984a03d1b42a2e60ba"
|
||||||
SRC_URI[sha256sum] = "7b500e148cebd08f99e37cf744c7843817b37e7be2a32c4dc57d6ea16e3019ae"
|
SRC_URI[sha256sum] = "7b500e148cebd08f99e37cf744c7843817b37e7be2a32c4dc57d6ea16e3019ae"
|
||||||
@@ -68,6 +69,8 @@ do_install_append() {
|
|||||||
rm ${D}${libdir}/*.la
|
rm ${D}${libdir}/*.la
|
||||||
rmdir --ignore-fail-on-non-empty ${D}${libdir}
|
rmdir --ignore-fail-on-non-empty ${D}${libdir}
|
||||||
|
|
||||||
ln -sf -r ${D}${libdir}/libhandle.a ${D}${base_libdir}/libhandle.a
|
if [ ${libdir} != ${base_libdir} ];then
|
||||||
ln -sf -r ${D}${base_libdir}/libhandle.so ${D}${libdir}/libhandle.so
|
ln -sf -r ${D}${libdir}/libhandle.a ${D}${base_libdir}/libhandle.a
|
||||||
|
ln -sf -r ${D}${base_libdir}/libhandle.so ${D}${libdir}/libhandle.so
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user