netbsd.mkDerivation: popd in moveUsrDir

Permanently changing the directory here was breaking the kernel build,
which needs to do other things after moveUsrDir.
This commit is contained in:
Alyssa Ross 2021-04-18 10:50:14 +00:00
parent 5478217883
commit 529b539494
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -105,9 +105,10 @@ moveUsrDir() {
if [ -d $prefix ]; then
# Remove lingering /usr references
if [ -d $prefix/usr ]; then
cd $prefix/usr
pushd $prefix/usr
find . -type d -exec mkdir -p $out/\{} \;
find . \( -type f -o -type l \) -exec mv \{} $out/\{} \;
popd
fi
find $prefix -type d -empty -delete