Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 374810 Details for
Bug 447370
FreeBSD: cp -a (-P) fails when encountering broken symlinks
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sample patch for multibuild.eclass (use GNU's cp version)
447370-multibuild-alt.patch (text/plain), 1.46 KB, created by
Yuta SATOH
on 2014-04-12 13:12:47 UTC
(
hide
)
Description:
sample patch for multibuild.eclass (use GNU's cp version)
Filename:
MIME Type:
Creator:
Yuta SATOH
Created:
2014-04-12 13:12:47 UTC
Size:
1.46 KB
patch
obsolete
>diff --git a/multibuild.eclass b/multibuild.eclass >index 4dc9b19..914e498 100644 >--- a/multibuild.eclass >+++ b/multibuild.eclass >@@ -214,14 +214,14 @@ multibuild_copy_sources() { > einfo "Will copy sources from ${_MULTIBUILD_INITIAL_BUILD_DIR}" > > local cp_args=() >- if cp --reflink=auto --version &>/dev/null; then >+ if $(multibuild_cpcmd) --reflink=auto --version &>/dev/null; then > # enable reflinking if possible to make this faster > cp_args+=( --reflink=auto ) > fi > > _multibuild_create_source_copy() { > einfo "${MULTIBUILD_VARIANT}: copying to ${BUILD_DIR}" >- cp -pr "${cp_args[@]}" \ >+ $(multibuild_cpcmd) -pr "${cp_args[@]}" \ > "${_MULTIBUILD_INITIAL_BUILD_DIR}" "${BUILD_DIR}" || die > } > >@@ -274,18 +274,18 @@ multibuild_merge_root() { > > local cp_args=() > >- if cp -a --version &>/dev/null; then >+ if $(multibuild_cpcmd) -a --version &>/dev/null; then > cp_args+=( -a ) > else > cp_args+=( -P -R -p ) > fi > >- if cp --reflink=auto --version &>/dev/null; then >+ if $(multibuild_cpcmd) --reflink=auto --version &>/dev/null; then > # enable reflinking if possible to make this faster > cp_args+=( --reflink=auto ) > fi > >- cp "${cp_args[@]}" "${src}"/. "${dest}"/ >+ $(multibuild_cpcmd) "${cp_args[@]}" "${src}"/. "${dest}"/ > ret=${?} > > # Remove the lock. >@@ -298,5 +298,14 @@ multibuild_merge_root() { > rm -rf "${src}" > } > >+# fix bug 447370 >+multibuild_cpcmd() { >+ if type -P gcp &> /dev/null; then >+ echo gcp >+ else >+ echo cp >+ fi >+} >+ > _MULTIBUILD=1 > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 447370
:
332902
|
335060
|
374808
| 374810