Fix build when bcc is not installed
PATCH 1/1 Fix build when bcc is not installed
# HG changeset patch
# User Brendan Cully <[email protected]>
# Date 1174080142 25200
# Node ID 0712e96990851f278a2a27ef7f15b09bbff050c5 # Parent b6272addce8cd744e31a666672fa38bf5b27ffb3 Fix build when bcc is not installed
tools/firmware/Makefile +1 -1
@@ -14,7 +14,7 @@ SUBDIRS += hvmloader .PHONY: all all: - @set -e; if [ $$((`bcc -v 2>&1 | grep version | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ + @set -e; if [ $$((`( bcc -v 2>&1 | grep version || echo 0.0.0 ) | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ echo "***********************************************************"; \ echo "Require dev86 package version >= 0.16.14 to build firmware!"; \ echo "(visit http://www.cix.co.uk/~mayday for more information)"; \
How does your build fail without this patch? I tested building with no bcc and it works fine for me. Perhaps it depends on particular version of cut or awk?
-- Keir
Quoted 27 lines · Brendan Cully
# HG changeset patch
# User Brendan Cully <[email protected]>
# Date 1174080142 25200
# Node ID0712e96990851f278a2a27ef7f15b09bbff050c5# Parentb6272addce8cd744e31a666672fa38bf5b27ffb3Fix build when bcc is not installeddiff -r
b6272addce8c-r0712e9699085tools/firmware/Makefiletools/firmware/Makefile Fri Mar 16 14:22:22 2007 -0700 renamed from tools/firmware/Makefile Fri Mar 16 13:57:41 2007 -0700 +1
-2@@ -14,7 +14,7 @@ SUBDIRS += hvmloader .PHONY: all all: - @set -e; if [ $$((`bcc -v 2>&1 | grep version | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ + @set -e; if [ $$((`( bcc -v 2>&1 | grep version || echo 0.0.0 ) | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \echo "***********************************************************"; \
echo "Require dev86 package version >= 0.16.14 to build firmware!"; \
echo "(visit http://www.cix.co.uk/~mayday for more information)"; \_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · Keir Fraser
How does your build fail without this patch? I tested building with no bcc and it works fine for me. Perhaps it depends on particular version of cut or awk?
I don't have the exact text on me, but it was something like
syntax error: ''
How does your shell handle $((''))? Mine doesn't like it. I'd guess this is a case of ubuntu's recent attempt to make sh more posix-pure.
Quoted 29 lines · Brendan Cully
Quoted 27 lines
# HG changeset patch
# User Brendan Cully <[email protected]>
# Date 1174080142 25200
# Node ID0712e96990851f278a2a27ef7f15b09bbff050c5# Parentb6272addce8cd744e31a666672fa38bf5b27ffb3Fix build when bcc is not installeddiff -r
b6272addce8c-r0712e9699085tools/firmware/Makefile+++ b/tools/firmware/Makefile Fri Mar 16 14:22:22 2007 -0700(quoted diff) +1
-2@@ -14,7 +14,7 @@ SUBDIRS += hvmloader .PHONY: all all: - @set -e; if [ $$((`bcc -v 2>&1 | grep version | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ + @set -e; if [ $$((`( bcc -v 2>&1 | grep version || echo 0.0.0 ) | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \echo "***********************************************************"; \
echo "Require dev86 package version >= 0.16.14 to build firmware!"; \
echo "(visit http://www.cix.co.uk/~mayday for more information)"; \_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 6 lines · Brendan Cully
I don't have the exact text on me, but it was something like
syntax error: ''
How does your shell handle $((''))? Mine doesn't like it. I'd guess this is a case of ubuntu's recent attempt to make sh more posix-pure.
Oh well. The fix seems straightforward and clear enough. I'll stick it in.
-- Keir