Skip to contentSkip to conversation

docker: include bison in debian-tricore-cross

PATCH In review Paolo Bonzini 4 participants 4 messages Dec 21, 2021 – Jan 5, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docker: include bison in debian-tricore-cross

Binutils sometimes fail to build if bison is not installed:

  /bin/sh ./ylwrap `test -f arparse.y || echo ./`arparse.y y.tab.c arparse.c y.tab.h arparse.h y.output arparse.output --  -d
  ./ylwrap: 109: ./ylwrap: -d: not found

(the correct invocation of ylwrap would have "bison -d" after the double dash). Work around by installing it in the container.

---
 tests/docker/dockerfiles/debian-tricore-cross.docker | 1 +
 1 file changed, 1 insertion(+)
tests/docker/dockerfiles/debian-tricore-cross.docker +1 -0
index d8df2c6117..3f6b55562c 100644
@@ -16,6 +16,7 @@ MAINTAINER Philippe Mathieu-Daudé <[email protected]>
 RUN apt update && \
     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
     DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \
+       bison \
        bzip2 \
        ca-certificates \
        ccache \
Signature · 1 line
2.33.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Paolo Bonzini

Binutils sometimes fail to build if bison is not installed:

  /bin/sh ./ylwrap `test -f arparse.y || echo ./`arparse.y y.tab.c arparse.c y.tab.h arparse.h y.output arparse.output --  -d
  ./ylwrap: 109: ./ylwrap: -d: not found

(the correct invocation of ylwrap would have "bison -d" after the double dash). Work around by installing it in the container.

Cc Alex Bennée <[email protected]>

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/596

Quoted 17 lines
---
 tests/docker/dockerfiles/debian-tricore-cross.docker | 1 +
 1 file changed, 1 insertion(+)
tests/docker/dockerfiles/debian-tricore-cross.docker +1 -0
index d8df2c6117..3f6b55562c 100644
@@ -16,6 +16,7 @@ MAINTAINER Philippe Mathieu-Daudé <[email protected]>
 RUN apt update && \
     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
     DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \
+       bison \
        bzip2 \
        ca-certificates \
        ccache \
Reviewed-by on v1 1/1
#2 lore raw
In reply to Paolo Bonzini
Quoted 10 lines · Paolo Bonzini

Binutils sometimes fail to build if bison is not installed:

   /bin/sh ./ylwrap `test -f arparse.y || echo ./`arparse.y y.tab.c arparse.c y.tab.h arparse.h y.output arparse.output --  -d
   ./ylwrap: 109: ./ylwrap: -d: not found

(the correct invocation of ylwrap would have "bison -d" after the double dash). Work around by installing it in the container.

r~

#3 lore raw
In reply to Paolo Bonzini
Quoted 10 lines · Paolo Bonzini

Binutils sometimes fail to build if bison is not installed:

  /bin/sh ./ylwrap `test -f arparse.y || echo ./`arparse.y y.tab.c arparse.c y.tab.h arparse.h y.output arparse.output --  -d
  ./ylwrap: 109: ./ylwrap: -d: not found

(the correct invocation of ylwrap would have "bison -d" after the double dash). Work around by installing it in the container.

Queued to testing/next, thanks.

Signature · 1 line
Alex Bennée