Skip to contentSkip to conversation

check for 'flex' before starting tools build

PATCH In review Olaf Hering 2 participants 3 messages Oct 11, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 check for 'flex' before starting tools build

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1318335031 -7200
# Node ID 5a5181b8c31983ff2f465f85a41df784a5397ed5 # Parent 4b0907c6a08c348962bd976c2976257b412408be check for 'flex' before starting tools build.

tools/check/check_flex new file +6 -0
diff -r 4b0907c6a08c -r 5a5181b8c319 tools/check/check_flex
@@ -0,0 +1,6 @@
+#!/bin/sh
+# CHECK-BUILD
+
+. ./funcs.sh
+
+has_or_fail flex
#1 lore raw
Quoted 6 lines · Olaf Hering

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1318335031 -7200
# Node ID 5a5181b8c31983ff2f465f85a41df784a5397ed5 # Parent 4b0907c6a08c348962bd976c2976257b412408be check for 'flex' before starting tools build.

A similar check should be added for bison.

After todays 'hg pull -u' and 'make tools xen', two files were modified:

 # hg st
M tools/libxl/libxlu_disk_l.c
M tools/libxl/libxlu_disk_l.h

Shouldnt they be generated files in the first place, and not part of the SCM?

Olaf

#2 lore raw
Quoted 12 lines
Quoted 1 line
Quoted 1 line · Olaf Hering
Quoted 6 lines · Olaf Hering

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1318335031 -7200
# Node ID 5a5181b8c31983ff2f465f85a41df784a5397ed5 # Parent 4b0907c6a08c348962bd976c2976257b412408be check for 'flex' before starting tools build.

A similar check should be added for bison.

Quoted 8 lines

After todays 'hg pull -u' and 'make tools xen', two files were modified:

 # hg st
M tools/libxl/libxlu_disk_l.c
M tools/libxl/libxlu_disk_l.h

Shouldnt they be generated files in the first place, and not part of the SCM?

Correct - this had happened once already. And neither flex nor bison should be required (or if they were, likely a minimum version would also need to be enforced, and the overridable $(FLEX) and $(BISON) values would also need to be taken into consideration - when this happened first, I had to use privately built variants on SLE10 for things to work out properly).

Jan