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

Collapse All | Expand All

(-)file_not_specified_in_diff (-2 / +5 lines)
Line  Link Here
0
-- qt4-r2.eclass
0
++ qt4-r2.eclass
Lines 212-217 Link Here
212
	# for both release and debug builds
212
	# for both release and debug builds
213
	local CONFIG_ADD="release"
213
	local CONFIG_ADD="release"
214
	local CONFIG_REMOVE="debug"
214
	local CONFIG_REMOVE="debug"
215
	local DELETE_FLAGS="-pipe -g -ggdb3 -O -O0 -O1 -O2 -O3 -Os"
215
	if has debug ${IUSE} && use debug; then
216
	if has debug ${IUSE} && use debug; then
216
		CONFIG_ADD="debug"
217
		CONFIG_ADD="debug"
217
		CONFIG_REMOVE="release"
218
		CONFIG_REMOVE="release"
Lines 237-242 Link Here
237
			END {
238
			END {
238
				printf "\nCONFIG -= debug_and_release %s\n", rem >> file;
239
				printf "\nCONFIG -= debug_and_release %s\n", rem >> file;
239
				printf "CONFIG += %s\n", add >> file;
240
				printf "CONFIG += %s\n", add >> file;
241
				printf "QMAKE_CFLAGS -= %s\n", del_flags >> file;
242
				printf "QMAKE_CXXFLAGS -= %s\n", del_flags >> file; 
240
				print fixed;
243
				print fixed;
241
			}'
244
			}'
242
	local file=
245
	local file=
Lines 244-250 Link Here
244
		grep -q '^### eqmake4 was here ###$' "${file}" && continue
247
		grep -q '^### eqmake4 was here ###$' "${file}" && continue
245
		local retval=$({
248
		local retval=$({
246
				rm -f "${file}" || echo "FAILED"
249
				rm -f "${file}" || echo "FAILED"
247
				awk -v file="${file}" -- "${awkscript}" add=${CONFIG_ADD} rem=${CONFIG_REMOVE} || echo "FAILED"
250
				awk -v file="${file}" -- "${awkscript}" add=${CONFIG_ADD} rem=${CONFIG_REMOVE} del_flags="${DELETE_FLAGS}" || echo "FAILED"
248
				} < "${file}")
251
				} < "${file}")
249
		if [[ ${retval} == 1 ]]; then
252
		if [[ ${retval} == 1 ]]; then
250
			einfo " - fixed CONFIG in ${file}"
253
			einfo " - fixed CONFIG in ${file}"

Return to bug 361303