mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
recipes: Replace "cp -a" with "cp -R --no-dereference --preserve=mode,links"
* Using "cp -a" leaks UID of user running the builds, causing many QA warnings. * See this thread for details: http://lists.openembedded.org/pipermail/openembedded-core/2015-November/112904.html Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -85,7 +85,7 @@ do_install_ptest() {
|
||||
for i in ${S}/dist ${S}/include ${B}/include ${S}/mibs ${S}/configure \
|
||||
${B}/net-snmp-config ${S}/testing; do
|
||||
if [ -e "$i" ]; then
|
||||
cp -a "$i" ${D}${PTEST_PATH}
|
||||
cp -R --no-dereference --preserve=mode,links -v "$i" ${D}${PTEST_PATH}
|
||||
fi
|
||||
done
|
||||
echo `autoconf -V|awk '/autoconf/{print $NF}'` > ${D}${PTEST_PATH}/dist/autoconf-version
|
||||
|
||||
@@ -18,7 +18,7 @@ do_unpack() {
|
||||
|
||||
do_install() {
|
||||
install -d -m 0755 ${D}${datadir}/doc/cim-schema-${PV}-docs
|
||||
cp -a ${S}/* ${D}${datadir}/doc/cim-schema-${PV}-docs
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/* ${D}${datadir}/doc/cim-schema-${PV}-docs
|
||||
}
|
||||
|
||||
FILES_${PN} = "${datadir}/doc/*"
|
||||
|
||||
@@ -16,7 +16,7 @@ do_install() {
|
||||
install -d -m 0755 ${D}${datadir}/doc/cim-schema-${PV}
|
||||
install -m 644 ${WORKDIR}/LICENSE ${D}${datadir}/doc/cim-schema-${PV}
|
||||
|
||||
cp -a ${S}/* ${D}${datadir}/mof/cimv${PV}/
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/* ${D}${datadir}/mof/cimv${PV}/
|
||||
chown -R root:root ${D}${datadir}/mof/cimv${PV}
|
||||
for i in `find ${D}${datadir}/mof/cimv${PV} -name "*.mof"`; do
|
||||
sed -i -e 's/\r//g' $i
|
||||
|
||||
@@ -21,7 +21,7 @@ do_install() {
|
||||
install -d -m 0755 ${D}${datadir}/doc/cim-schema-${PV}
|
||||
install -m 644 ${WORKDIR}/LICENSE ${D}${datadir}/doc/cim-schema-${PV}
|
||||
|
||||
cp -a ${S}/* ${D}${datadir}/mof/cimv${PV}/
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/* ${D}${datadir}/mof/cimv${PV}/
|
||||
chown -R root:root ${D}${datadir}/mof/cimv${PV}/
|
||||
for i in `find ${D}${datadir}/mof/cimv${PV} -name "*.mof"`; do
|
||||
sed -i -e 's/\r//g' $i
|
||||
|
||||
Reference in New Issue
Block a user