Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615642 - multibuild.eclass uses wait -n which is not available in bash 4.2
Summary: multibuild.eclass uses wait -n which is not available in bash 4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-15 12:21 UTC by Mikael Magnusson
Modified: 2017-04-15 12:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Magnusson 2017-04-15 12:21:18 UTC
At https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/multibuild.eclass#n129 are the lines

		# make sure no processes are left over
		local leftovers=
		while :; do
			wait -n
			[[ ${?} -eq 127 ]] && break || leftovers=1
		done


However,
/var/tmp/portage/media-libs/freetype-2.7.1-r2/temp/environment: line 2399: wait: -n: invalid option
wait: usage: wait [id]

In bash 4.2, which is still available as a stable package in portage, wait does not support the -n option. This causes the freetype build to fail and probably many others.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-15 12:35:34 UTC
Reverted.