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

(-)ebuild.sh (-1 / +25 lines)
Lines 1054-1060 Link Here
1054
			echo " http://bugs.gentoo.org/81745"
1054
			echo " http://bugs.gentoo.org/81745"
1055
			echo "${f}"
1055
			echo "${f}"
1056
			echo -ne '\a\n'
1056
			echo -ne '\a\n'
1057
			die "Insecure binaries detected"
1057
			if hasq fixrpaths ${FEATURES} && type -p chrpath > /dev/null; then
1058
				# Try to intelegently fix these files.
1059
				# Unfortunately, scanelf is no use, and chrpath is the
1060
				# better tool for the job.
1061
				xrpath='';
1062
				for x in ${f}; do 
1063
					if [ -f "${x}" ]; then
1064
						# Assume xrpath is assigned and done.
1065
						echo chrpath -r "${xrpath}" "${x}"
1066
					else
1067
						# Fix xrpath
1068
						xrpath=''
1069
						for y in ${x//:/ } ; do
1070
							if [ -n "${y}" -a "${y}" != "${BUILDDIR}" ] ; then
1071
								xrpath="${xrpath}:${y}"
1072
							fi
1073
						done
1074
						
1075
						# Remove front colon
1076
						xrpath=${xrpath/#:/}
1077
					fi
1078
				done
1079
			else
1080
				die "Insecure binaries detected"
1081
			fi
1058
		fi
1082
		fi
1059
1083
1060
		# Check for setid binaries but are not built with BIND_NOW
1084
		# Check for setid binaries but are not built with BIND_NOW

Return to bug 117335