commit:     894e06af34951af850f7a86acf427a6b3f82a5eb
Author:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Jun  4 04:23:39 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 29 16:28:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=894e06af

scripts/bootstrap-prefix.sh: use cp from GNU coreutils

BSD cp doesn't support "-d" flag.

Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
Closes: https://github.com/gentoo/prefix/pull/8
Signed-off-by: Sam James <sam <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 629fb6e3b3..9bcf8597f3 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1647,7 +1647,7 @@ bootstrap_stage1() {
                -e ${MAKE_CONF_DIR}/0100_bootstrap_prefix_make.conf ]] \
                || (bootstrap_setup) || return 1
        mkdir -p "${ROOT}"/tmp/etc/. || return 1
-       [[ -e ${ROOT}/tmp/etc/portage/make.profile ]] || cp -dpR 
"${ROOT}"/etc/portage "${ROOT}"/tmp/etc || return 1
+       [[ -e ${ROOT}/tmp/etc/portage/make.profile ]] || "${ROOT}"/tmp/bin/cp 
-dpR "${ROOT}"/etc/portage "${ROOT}"/tmp/etc || return 1
 
        # setup portage
        [[ -e ${ROOT}/tmp/usr/bin/emerge ]] || (bootstrap_portage) || return 1

Reply via email to