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

(-)bin/misc-functions.sh (+24 lines)
Lines 158-163 Link Here
158
			sleep 1
158
			sleep 1
159
		fi
159
		fi
160
160
161
		# Check for files built without respecting LDFLAGS
162
		if [[ "${LDFLAGS}" == *--hash-style=gnu* ]] && [[ "${PN}" != *-bin ]] ; then
163
			f=$(scanelf -qyRF '%k %p' -k .hash "${D}" | sed -e "s:\.hash ::")
164
			if [[ -n ${f} ]] ; then
165
				echo "${f}" > "${T}"/scanelf-ignored-LDFLAGS.log
166
				for file in ${QA_DT_HASH} ; do
167
					sed -i -e "s:^${file}$::" "${T}"/scanelf-ignored-LDFLAGS.log
168
				done
169
				sed -i -e "/^$/d" -e "s:^:/:" "${T}"/scanelf-ignored-LDFLAGS.log
170
				f=$(<"${T}"/scanelf-ignored-LDFLAGS.log)
171
				if [[ -n ${f} ]] ; then
172
					vecho -ne '\a\n'
173
					eqawarn "\e[31mQA Notice: Files built without respecting LDFLAGS have been detected\e[0m"
174
					eqawarn " Please include this file in your report:"
175
					eqawarn " ${T}/scanelf-ignored-LDFLAGS.log"
176
					for file in ${f} ; do
177
						eqawarn ${file}
178
					done
179
					vecho -ne '\a\n'
180
					sleep 1
181
				fi
182
			fi
183
		fi
184
161
		# Save NEEDED information after removing self-contained providers
185
		# Save NEEDED information after removing self-contained providers
162
		scanelf -qyRF '%a;%p;%S;%r;%n' "${D}" | { while IFS= read l; do
186
		scanelf -qyRF '%a;%p;%S;%r;%n' "${D}" | { while IFS= read l; do
163
			arch=${l%%;*}; l=${l#*;}
187
			arch=${l%%;*}; l=${l#*;}
(-)man/ebuild.5 (+5 lines)
Lines 422-427 Link Here
422
This should contain a list of file paths, relative to the image directory, of
422
This should contain a list of file paths, relative to the image directory, of
423
files that contain writable and executable segments.  These are rare.
423
files that contain writable and executable segments.  These are rare.
424
The paths may contain regular expressions.
424
The paths may contain regular expressions.
425
.TP
426
\fBQA_DT_HASH\fR
427
This should contain a list of file paths, relative to the image directory, of
428
files that contain .hash sections. The paths may contain regular expressions
429
with escape\-quoted special characters.
425
.SH "PORTAGE DECLARATIONS"
430
.SH "PORTAGE DECLARATIONS"
426
.TP
431
.TP
427
.B inherit
432
.B inherit

Return to bug 233077