multibuild.eclass: _copy_sources(), use 'cp -R' for BSD compat, #568692
authorMichał Górny <mgorny@gentoo.org>
Sat, 19 Dec 2015 07:57:56 +0000 (08:57 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 19 Dec 2015 14:10:14 +0000 (15:10 +0100)
Use 'cp -R' for multibuild_copy_sources() as the '-r' option triggers
triggers undesired '-L' behavior wrt symbolic links.

Fixes: https://bugs.gentoo.org/show_bug.cgi?id=568692

eclass/multibuild.eclass

index d21008cf266628878b5dae5c39f7c93f1d846fbc..3d05f46d2a03021eb2650d312791604009116e1a 100644 (file)
@@ -195,7 +195,7 @@ multibuild_copy_sources() {
 
        _multibuild_create_source_copy() {
                einfo "${MULTIBUILD_VARIANT}: copying to ${BUILD_DIR}"
-               cp -pr "${cp_args[@]}" \
+               cp -p -R "${cp_args[@]}" \
                        "${_MULTIBUILD_INITIAL_BUILD_DIR}" "${BUILD_DIR}" || die
        }