Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 436996
Collapse All | Expand All

(-)a/gx86/eclass/eutils.eclass (-4 / +8 lines)
Lines 1414-1419 prune_libtool_files() { Link Here
1414
	done
1414
	done
1415
1415
1416
	local f
1416
	local f
1417
	local queue=()
1417
	while IFS= read -r -d '' f; do # for all .la files
1418
	while IFS= read -r -d '' f; do # for all .la files
1418
		local archivefile=${f/%.la/.a}
1419
		local archivefile=${f/%.la/.a}
1419
1420
Lines 1423-1429 prune_libtool_files() { Link Here
1423
		if grep -q '^shouldnotlink=yes$' "${f}"; then
1424
		if grep -q '^shouldnotlink=yes$' "${f}"; then
1424
			if [[ -f ${archivefile} ]]; then
1425
			if [[ -f ${archivefile} ]]; then
1425
				einfo "Removing unnecessary ${archivefile#${D%/}} (static plugin)"
1426
				einfo "Removing unnecessary ${archivefile#${D%/}} (static plugin)"
1426
				rm -f "${archivefile}"
1427
				queue+=( "${archivefile}" )
1427
			fi
1428
			fi
1428
1429
1429
			# The .la file may be used by a module loader, so avoid removing it
1430
			# The .la file may be used by a module loader, so avoid removing it
Lines 1474-1482 prune_libtool_files() { Link Here
1474
1475
1475
		if [[ ${reason} ]]; then
1476
		if [[ ${reason} ]]; then
1476
			einfo "Removing unnecessary ${f#${D%/}} (${reason})"
1477
			einfo "Removing unnecessary ${f#${D%/}} (${reason})"
1477
			rm -f "${f}"
1478
			queue+=( "${f}" )
1478
		fi
1479
		fi
1479
	done < <(find "${D}" -type f -name '*.la' -print0)
1480
	done < <(find "${D}" -xtype f -name '*.la' -print0)
1481
1482
	if [[ ${queue[@]} ]]; then
1483
		rm -f "${queue[@]}"
1484
	fi
1480
}
1485
}
1481
1486
1482
check_license() { die "you no longer need this as portage supports ACCEPT_LICENSE itself"; }
1487
check_license() { die "you no longer need this as portage supports ACCEPT_LICENSE itself"; }
1483
- 

Return to bug 436996