Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 447370 | Differences between
and this patch

Collapse All | Expand All

(-)a/multibuild.eclass (-11 / +18 lines)
Lines 274-293 multibuild_merge_root() { Link Here
274
274
275
	local cp_args=()
275
	local cp_args=()
276
276
277
	if cp -a --version &>/dev/null; then
277
	# fix bug 447370
278
		cp_args+=( -a )
278
	if use userland_BSD; then
279
		cd "${src}"
280
		tar cf - . | tar xf - -C "${dest}"
281
		ret=${?}
279
	else
282
	else
280
		cp_args+=( -P -R -p )
283
		if cp -a --version &>/dev/null; then
284
			cp_args+=( -a )
285
		else
286
			cp_args+=( -P -R -p )
287
		fi
288
289
		if cp --reflink=auto --version &>/dev/null; then
290
			# enable reflinking if possible to make this faster
291
			cp_args+=( --reflink=auto )
292
		fi
293
294
		cp "${cp_args[@]}" "${src}"/. "${dest}"/
295
		ret=${?}
281
	fi
296
	fi
282
297
283
	if cp --reflink=auto --version &>/dev/null; then
284
		# enable reflinking if possible to make this faster
285
		cp_args+=( --reflink=auto )
286
	fi
287
288
	cp "${cp_args[@]}" "${src}"/. "${dest}"/
289
	ret=${?}
290
291
	# Remove the lock.
298
	# Remove the lock.
292
	rm "${lockfile}" || die
299
	rm "${lockfile}" || die
293
300

Return to bug 447370