app-emulation/xen-tools: make sed conditional

Closes: https://bugs.gentoo.org/949524
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-02-18 00:10:45 +00:00
parent e914e98d16
commit 48b64f600b
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 8 additions and 8 deletions

View File

@ -399,11 +399,11 @@ src_prepare() {
pushd tools/firmware/ovmf-dir-remote > /dev/null || die
eapply "${FILESDIR}"/edk2-202202-binutils-2.41-textrels.patch
popd > /dev/null || die
fi
# Use gnu17 because incompatible w/ C23
sed -i -e "s:-DZZLEXBUFSIZE=65536:-DZZLEXBUFSIZE=65536 -std=gnu17:" \
tools/firmware/ovmf-dir-remote/BaseTools/Source/C/VfrCompile/Pccts/*/makefile || die
# Use gnu17 because incompatible w/ C23
sed -i -e "s:-DZZLEXBUFSIZE=65536:-DZZLEXBUFSIZE=65536 -std=gnu17:" \
tools/firmware/ovmf-dir-remote/BaseTools/Source/C/VfrCompile/Pccts/*/makefile || die
fi
default
}

View File

@ -399,11 +399,11 @@ src_prepare() {
pushd tools/firmware/ovmf-dir-remote > /dev/null || die
eapply "${FILESDIR}"/edk2-202202-binutils-2.41-textrels.patch
popd > /dev/null || die
fi
# Use gnu17 because incompatible w/ C23
sed -i -e "s:-DZZLEXBUFSIZE=65536:-DZZLEXBUFSIZE=65536 -std=gnu17:" \
tools/firmware/ovmf-dir-remote/BaseTools/Source/C/VfrCompile/Pccts/*/makefile || die
# Use gnu17 because incompatible w/ C23
sed -i -e "s:-DZZLEXBUFSIZE=65536:-DZZLEXBUFSIZE=65536 -std=gnu17:" \
tools/firmware/ovmf-dir-remote/BaseTools/Source/C/VfrCompile/Pccts/*/makefile || die
fi
default
}