fix sed usage in build rules
PATCH 1/1 fix sed usage in build rules
Apparently FreeBSD sed is more picky than GNU sed, wanting a semicolon at the end of a brace enclosed statement list.
Reported-by Roger Pau Monné<[email protected]>
Signed-off-by Jan Beulich <[email protected]>
xen/Rules.mk +1 -1
@@ -171,7 +171,7 @@ SPECIAL_DATA_SECTIONS := rodata $(foreac $(foreach r,rel rel.ro,data.$(r) data.$(r).local) $(filter %.init.o,$(obj-y) $(obj-bin-y) $(extra-y)): %.init.o: %.o Makefile - $(OBJDUMP) -h $< | sed -n '/[0-9]/{s,00*,0,g;p}' | while read idx name sz rest; do \ + $(OBJDUMP) -h $< | sed -n '/[0-9]/{s,00*,0,g;p;}' | while read idx name sz rest; do \ case "$$name" in \ .text|.text.*|.data|.data.*|.bss) \ test $$sz != 0 || continue; \
xen/arch/x86/boot/build32.mk +1 -1
@@ -20,7 +20,7 @@ CFLAGS := $(filter-out -flto,$(CFLAGS)) %.o: %.c $(CC) $(CFLAGS) -c -fpic $< -o $@ - $(OBJDUMP) -h $@ | sed -n '/[0-9]/{s,00*,0,g;p}' |\ + $(OBJDUMP) -h $@ | sed -n '/[0-9]/{s,00*,0,g;p;}' |\ while read idx name sz rest; do \ case "$$name" in \ .data|.data.*|.rodata|.rodata.*|.bss|.bss.*) \
fix sed usage in build rules
Apparently FreeBSD sed is more picky than GNU sed, wanting a semicolon at the end of a brace enclosed statement list.
Reported-by Roger Pau Monné<[email protected]>
Signed-off-by Jan Beulich <[email protected]>
xen/Rules.mk +1 -1
@@ -171,7 +171,7 @@ SPECIAL_DATA_SECTIONS := rodata $(foreac $(foreach r,rel rel.ro,data.$(r) data.$(r).local) $(filter %.init.o,$(obj-y) $(obj-bin-y) $(extra-y)): %.init.o: %.o Makefile - $(OBJDUMP) -h $< | sed -n '/[0-9]/{s,00*,0,g;p}' | while read idx name sz rest; do \ + $(OBJDUMP) -h $< | sed -n '/[0-9]/{s,00*,0,g;p;}' | while read idx name sz rest; do \ case "$$name" in \ .text|.text.*|.data|.data.*|.bss) \ test $$sz != 0 || continue; \
xen/arch/x86/boot/build32.mk +1 -1
@@ -20,7 +20,7 @@ CFLAGS := $(filter-out -flto,$(CFLAGS)) %.o: %.c $(CC) $(CFLAGS) -c -fpic $< -o $@ - $(OBJDUMP) -h $@ | sed -n '/[0-9]/{s,00*,0,g;p}' |\ + $(OBJDUMP) -h $@ | sed -n '/[0-9]/{s,00*,0,g;p;}' |\ while read idx name sz rest; do \ case "$$name" in \ .data|.data.*|.rodata|.rodata.*|.bss|.bss.*) \
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 5 lines · Jan Beulich
Apparently FreeBSD sed is more picky than GNU sed, wanting a semicolon at the end of a brace enclosed statement list.
Reported-by Roger Pau Monné<[email protected]>Signed-off-by Jan Beulich<[email protected]>
Acked-by Keir Fraser <[email protected]>