mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +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:
@@ -37,5 +37,5 @@ do_configure() {
|
||||
do_install() {
|
||||
oe_runmake install DESTDIR=${D} prefix=${prefix} mandir=${mandir}
|
||||
install -d ${D}/${docdir}/${PN}
|
||||
cp -a ${S}/examples ${D}/${docdir}/${PN}/
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/examples ${D}/${docdir}/${PN}/
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ do_install () {
|
||||
}
|
||||
|
||||
do_install_ptest () {
|
||||
cp -a ${WORKDIR}/lua-${PV}-tests ${D}${PTEST_PATH}/test
|
||||
cp -R --no-dereference --preserve=mode,links -v ${WORKDIR}/lua-${PV}-tests ${D}${PTEST_PATH}/test
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
@@ -33,7 +33,7 @@ do_install_append() {
|
||||
install ${B}/ptts/tipcTC ${D}/opt/tipcutils/ptts/
|
||||
|
||||
install -d ${D}${sysconfdir}
|
||||
cp -a ${S}/scripts/etc/* ${D}${sysconfdir}/
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/scripts/etc/* ${D}${sysconfdir}/
|
||||
chown -R root:root ${D}${sysconfdir}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,11 +34,11 @@ do_install() {
|
||||
install -d ${D}${includedir}/liveMedia
|
||||
install -d ${D}${includedir}/UsageEnvironment
|
||||
install -d ${D}${libdir}
|
||||
cp -a ${S}/BasicUsageEnvironment/include/*.hh ${D}${includedir}/BasicUsageEnvironment/
|
||||
cp -a ${S}/groupsock/include/*.h ${D}${includedir}/groupsock/
|
||||
cp -a ${S}/groupsock/include/*.hh ${D}${includedir}/groupsock/
|
||||
cp -a ${S}/liveMedia/include/*.hh ${D}${includedir}/liveMedia/
|
||||
cp -a ${S}/UsageEnvironment/include/*.hh ${D}${includedir}/UsageEnvironment/
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/BasicUsageEnvironment/include/*.hh ${D}${includedir}/BasicUsageEnvironment/
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.h ${D}${includedir}/groupsock/
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.hh ${D}${includedir}/groupsock/
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/liveMedia/include/*.hh ${D}${includedir}/liveMedia/
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/UsageEnvironment/include/*.hh ${D}${includedir}/UsageEnvironment/
|
||||
# Find all the headers
|
||||
for i in $(find . -name "*.hh") $(find . -name "*.h") ; do
|
||||
install ${i} ${D}${includedir}
|
||||
|
||||
@@ -23,7 +23,7 @@ do_configure_prepend() {
|
||||
}
|
||||
do_install_append() {
|
||||
install -d ${D}${datadir}/orrery
|
||||
cp -a ${S}/data/* ${D}${datadir}/orrery
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/data/* ${D}${datadir}/orrery
|
||||
chown -R root:root ${D}${datadir}/orrery
|
||||
install -d ${D}${datadir}/icons
|
||||
install -m 0755 ${WORKDIR}/orrery.png ${D}${datadir}/icons
|
||||
|
||||
@@ -19,10 +19,10 @@ EXTRA_OECONF = "--without-x \
|
||||
|
||||
do_configure() {
|
||||
export topdir=${S}
|
||||
cp -a ${S}/autoconf/configure.in ${S}
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/autoconf/configure.in ${S}
|
||||
|
||||
if ! [ -d ${S}/platforms/${DISTRO} ] ; then
|
||||
cp -a ${S}/platforms/unknown ${S}/platforms/${DISTRO}
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/platforms/unknown ${S}/platforms/${DISTRO}
|
||||
fi
|
||||
|
||||
gnu-configize --force
|
||||
|
||||
@@ -26,7 +26,7 @@ do_compile() {
|
||||
do_install() {
|
||||
install -d ${D}${includedir} ${D}${libdir}/pkgconfig
|
||||
rm ${S}/include/tbb/index.html -f
|
||||
cp -a ${S}/include/tbb ${D}${includedir}
|
||||
cp -R --no-dereference --preserve=mode,links -v ${S}/include/tbb ${D}${includedir}
|
||||
install -m 0755 ${B}/build/linux_*_release/lib*.so* ${D}${libdir}
|
||||
install -m 0644 ${WORKDIR}/tbb.pc ${D}${libdir}/pkgconfig
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user