slirp: move slirp as git submodule project
The following changes since commit 8482ff2eb3bb95020eb2f370a9b3ea26511e41df:
Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-05-02 12:04:51 +0100)
are available in the Git repository at:
https://people.debian.org/~sthibault/qemu.git tags/samuel-thibault
for you to fetch changes up to 7c57bdd82026ba03f3158bbcd841afde7c2dc43a:
build-sys: move slirp as git submodule project (2019-05-03 00:15:37 +0200)
----------------------------------------------------------------
slirp: move slirp as git submodule project
Marc-André Lureau (2):
build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
build-sys: move slirp as git submodule project
----------------------------------------------------------------
Marc-André Lureau (2):
build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
build-sys: move slirp as git submodule project
.gitmodules | 3 + Makefile | 2 +- configure | 11 +- scripts/archive-source.sh | 2 +- slirp | 1 + slirp/COPYRIGHT | 62 -- slirp/Makefile | 47 -- slirp/src/arp_table.c | 92 --- slirp/src/bootp.c | 371 ----------- slirp/src/bootp.h | 129 ---- slirp/src/cksum.c | 161 ----- slirp/src/debug.h | 46 -- slirp/src/dhcpv6.c | 224 ------- slirp/src/dhcpv6.h | 53 -- slirp/src/dnssearch.c | 311 --------- slirp/src/if.c | 218 ------- slirp/src/if.h | 21 - slirp/src/ip.h | 242 ------- slirp/src/ip6.h | 160 ----- slirp/src/ip6_icmp.c | 438 ------------- slirp/src/ip6_icmp.h | 232 ------- slirp/src/ip6_input.c | 78 --- slirp/src/ip6_output.c | 39 -- slirp/src/ip_icmp.c | 470 -------------- slirp/src/ip_icmp.h | 166 ----- slirp/src/ip_input.c | 469 -------------- slirp/src/ip_output.c | 170 ----- slirp/src/libslirp.h | 118 ---- slirp/src/main.h | 16 - slirp/src/mbuf.c | 235 ------- slirp/src/mbuf.h | 127 ---- slirp/src/misc.c | 321 ---------- slirp/src/misc.h | 66 -- slirp/src/ncsi-pkt.h | 445 ------------- slirp/src/ncsi.c | 194 ------ slirp/src/ndp_table.c | 87 --- slirp/src/qtailq.h | 194 ------ slirp/src/sbuf.c | 186 ------ slirp/src/sbuf.h | 27 - slirp/src/slirp.c | 1118 -------------------------------- slirp/src/slirp.h | 275 -------- slirp/src/socket.c | 945 --------------------------- slirp/src/socket.h | 160 ----- slirp/src/state.c | 388 ----------- slirp/src/stream.c | 120 ---- slirp/src/stream.h | 35 - slirp/src/tcp.h | 181 ------ slirp/src/tcp_input.c | 1554 --------------------------------------------- slirp/src/tcp_output.c | 522 --------------- slirp/src/tcp_subr.c | 987 ---------------------------- slirp/src/tcp_timer.c | 294 --------- slirp/src/tcp_timer.h | 128 ---- slirp/src/tcp_var.h | 162 ----- slirp/src/tcpip.h | 102 --- slirp/src/tftp.c | 463 -------------- slirp/src/tftp.h | 52 -- slirp/src/udp.c | 363 ----------- slirp/src/udp.h | 92 --- slirp/src/udp6.c | 173 ----- slirp/src/util.c | 368 ----------- slirp/src/util.h | 175 ----- slirp/src/vmstate.c | 441 ------------- slirp/src/vmstate.h | 409 ------------ 63 files changed, 15 insertions(+), 15726 deletions(-) create mode 160000 slirp delete mode 100644 slirp/COPYRIGHT delete mode 100644 slirp/Makefile delete mode 100644 slirp/src/arp_table.c delete mode 100644 slirp/src/bootp.c delete mode 100644 slirp/src/bootp.h delete mode 100644 slirp/src/cksum.c delete mode 100644 slirp/src/debug.h delete mode 100644 slirp/src/dhcpv6.c delete mode 100644 slirp/src/dhcpv6.h delete mode 100644 slirp/src/dnssearch.c delete mode 100644 slirp/src/if.c delete mode 100644 slirp/src/if.h delete mode 100644 slirp/src/ip.h delete mode 100644 slirp/src/ip6.h delete mode 100644 slirp/src/ip6_icmp.c delete mode 100644 slirp/src/ip6_icmp.h delete mode 100644 slirp/src/ip6_input.c delete mode 100644 slirp/src/ip6_output.c delete mode 100644 slirp/src/ip_icmp.c delete mode 100644 slirp/src/ip_icmp.h delete mode 100644 slirp/src/ip_input.c delete mode 100644 slirp/src/ip_output.c delete mode 100644 slirp/src/libslirp.h delete mode 100644 slirp/src/main.h delete mode 100644 slirp/src/mbuf.c delete mode 100644 slirp/src/mbuf.h delete mode 100644 slirp/src/misc.c delete mode 100644 slirp/src/misc.h delete mode 100644 slirp/src/ncsi-pkt.h delete mode 100644 slirp/src/ncsi.c delete mode 100644 slirp/src/ndp_table.c delete mode 100644 slirp/src/qtailq.h delete mode 100644 slirp/src/sbuf.c delete mode 100644 slirp/src/sbuf.h delete mode 100644 slirp/src/slirp.c delete mode 100644 slirp/src/slirp.h delete mode 100644 slirp/src/socket.c delete mode 100644 slirp/src/socket.h delete mode 100644 slirp/src/state.c delete mode 100644 slirp/src/stream.c delete mode 100644 slirp/src/stream.h delete mode 100644 slirp/src/tcp.h delete mode 100644 slirp/src/tcp_input.c delete mode 100644 slirp/src/tcp_output.c delete mode 100644 slirp/src/tcp_subr.c delete mode 100644 slirp/src/tcp_timer.c delete mode 100644 slirp/src/tcp_timer.h delete mode 100644 slirp/src/tcp_var.h delete mode 100644 slirp/src/tcpip.h delete mode 100644 slirp/src/tftp.c delete mode 100644 slirp/src/tftp.h delete mode 100644 slirp/src/udp.c delete mode 100644 slirp/src/udp.h delete mode 100644 slirp/src/udp6.c delete mode 100644 slirp/src/util.c delete mode 100644 slirp/src/util.h delete mode 100644 slirp/src/vmstate.c delete mode 100644 slirp/src/vmstate.h
[Qemu-devel] [PULL 1/2] build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
From: Marc-André Lureau <[email protected]>
CFLAGS/LDFLAGS have debug and sanitizers flags, which should be passed to slirp compilation.
Message-Id: <[email protected]>
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -480,7 +480,7 @@ subdir-capstone: .git-submodule-status $(call quiet-command,$(MAKE) -C $(SRC_PATH)/capstone CAPSTONE_SHARED=no BUILDDIR="$(BUILD_DIR)/capstone" CC="$(CC)" AR="$(AR)" LD="$(LD)" RANLIB="$(RANLIB)" CFLAGS="$(CAP_CFLAGS)" $(SUBDIR_MAKEFLAGS) $(BUILD_DIR)/capstone/$(LIBCAPSTONE)) subdir-slirp: .git-submodule-status - $(call quiet-command,$(MAKE) -C $(SRC_PATH)/slirp BUILD_DIR="$(BUILD_DIR)/slirp" CC="$(CC)" AR="$(AR)" LD="$(LD)" RANLIB="$(RANLIB)" CFLAGS="$(QEMU_CFLAGS)") + $(call quiet-command,$(MAKE) -C $(SRC_PATH)/slirp BUILD_DIR="$(BUILD_DIR)/slirp" CC="$(CC)" AR="$(AR)" LD="$(LD)" RANLIB="$(RANLIB)" CFLAGS="$(QEMU_CFLAGS) $(CFLAGS)" LDFLAGS="$(LDFLAGS)") $(SUBDIR_RULES): libqemuutil.a $(common-obj-y) $(chardev-obj-y) \ $(qom-obj-y) $(crypto-aes-obj-$(CONFIG_USER_ONLY))
Signature · 1 line
2.20.1
[Qemu-devel] [PULL 2/2] build-sys: move slirp as git submodule project
In reply to Samuel ThibaultFrom: Marc-André Lureau <[email protected]>
The slirp project is now hosted on freedesktop at:
https://gitlab.freedesktop.org/slirp.
The libslirp source was extracted from qemu/slirp filtered through clang-format (available in project tree). The qemu slirp directory can be swapped by a git submodule.
Message-Id: <[email protected]>
--- .gitmodules | 3 + configure | 11 +- scripts/archive-source.sh | 2 +- slirp | 1 + slirp/COPYRIGHT | 62 -- slirp/Makefile | 47 -- slirp/src/arp_table.c | 92 --- slirp/src/bootp.c | 371 --------- slirp/src/bootp.h | 129 --- slirp/src/cksum.c | 161 ---- slirp/src/debug.h | 46 -- slirp/src/dhcpv6.c | 224 ------ slirp/src/dhcpv6.h | 53 -- slirp/src/dnssearch.c | 311 -------- slirp/src/if.c | 218 ------ slirp/src/if.h | 21 - slirp/src/ip.h | 242 ------ slirp/src/ip6.h | 160 ---- slirp/src/ip6_icmp.c | 438 ----------- slirp/src/ip6_icmp.h | 232 ------ slirp/src/ip6_input.c | 78 -- slirp/src/ip6_output.c | 39 - slirp/src/ip_icmp.c | 470 ----------- slirp/src/ip_icmp.h | 166 ---- slirp/src/ip_input.c | 469 ----------- slirp/src/ip_output.c | 170 ---- slirp/src/libslirp.h | 118 --- slirp/src/main.h | 16 - slirp/src/mbuf.c | 235 ------ slirp/src/mbuf.h | 127 --- slirp/src/misc.c | 321 -------- slirp/src/misc.h | 66 -- slirp/src/ncsi-pkt.h | 445 ----------- slirp/src/ncsi.c | 194 ----- slirp/src/ndp_table.c | 87 --- slirp/src/qtailq.h | 194 ----- slirp/src/sbuf.c | 186 ----- slirp/src/sbuf.h | 27 - slirp/src/slirp.c | 1118 -------------------------- slirp/src/slirp.h | 275 ------- slirp/src/socket.c | 945 ---------------------- slirp/src/socket.h | 160 ---- slirp/src/state.c | 388 --------- slirp/src/stream.c | 120 --- slirp/src/stream.h | 35 - slirp/src/tcp.h | 181 ----- slirp/src/tcp_input.c | 1554 ------------------------------------- slirp/src/tcp_output.c | 522 ------------- slirp/src/tcp_subr.c | 987 ----------------------- slirp/src/tcp_timer.c | 294 ------- slirp/src/tcp_timer.h | 128 --- slirp/src/tcp_var.h | 162 ---- slirp/src/tcpip.h | 102 --- slirp/src/tftp.c | 463 ----------- slirp/src/tftp.h | 52 -- slirp/src/udp.c | 363 --------- slirp/src/udp.h | 92 --- slirp/src/udp6.c | 173 ----- slirp/src/util.c | 368 --------- slirp/src/util.h | 175 ----- slirp/src/vmstate.c | 441 ----------- slirp/src/vmstate.h | 409 ---------- 62 files changed, 14 insertions(+), 15725 deletions(-) create mode 160000 slirp delete mode 100644 slirp/COPYRIGHT delete mode 100644 slirp/Makefile delete mode 100644 slirp/src/arp_table.c delete mode 100644 slirp/src/bootp.c delete mode 100644 slirp/src/bootp.h delete mode 100644 slirp/src/cksum.c delete mode 100644 slirp/src/debug.h delete mode 100644 slirp/src/dhcpv6.c delete mode 100644 slirp/src/dhcpv6.h delete mode 100644 slirp/src/dnssearch.c delete mode 100644 slirp/src/if.c delete mode 100644 slirp/src/if.h delete mode 100644 slirp/src/ip.h delete mode 100644 slirp/src/ip6.h delete mode 100644 slirp/src/ip6_icmp.c delete mode 100644 slirp/src/ip6_icmp.h delete mode 100644 slirp/src/ip6_input.c delete mode 100644 slirp/src/ip6_output.c delete mode 100644 slirp/src/ip_icmp.c delete mode 100644 slirp/src/ip_icmp.h delete mode 100644 slirp/src/ip_input.c delete mode 100644 slirp/src/ip_output.c delete mode 100644 slirp/src/libslirp.h delete mode 100644 slirp/src/main.h delete mode 100644 slirp/src/mbuf.c delete mode 100644 slirp/src/mbuf.h delete mode 100644 slirp/src/misc.c delete mode 100644 slirp/src/misc.h delete mode 100644 slirp/src/ncsi-pkt.h delete mode 100644 slirp/src/ncsi.c delete mode 100644 slirp/src/ndp_table.c delete mode 100644 slirp/src/qtailq.h delete mode 100644 slirp/src/sbuf.c delete mode 100644 slirp/src/sbuf.h delete mode 100644 slirp/src/slirp.c delete mode 100644 slirp/src/slirp.h delete mode 100644 slirp/src/socket.c delete mode 100644 slirp/src/socket.h delete mode 100644 slirp/src/state.c delete mode 100644 slirp/src/stream.c delete mode 100644 slirp/src/stream.h delete mode 100644 slirp/src/tcp.h delete mode 100644 slirp/src/tcp_input.c delete mode 100644 slirp/src/tcp_output.c delete mode 100644 slirp/src/tcp_subr.c delete mode 100644 slirp/src/tcp_timer.c delete mode 100644 slirp/src/tcp_timer.h delete mode 100644 slirp/src/tcp_var.h delete mode 100644 slirp/src/tcpip.h delete mode 100644 slirp/src/tftp.c delete mode 100644 slirp/src/tftp.h delete mode 100644 slirp/src/udp.c delete mode 100644 slirp/src/udp.h delete mode 100644 slirp/src/udp6.c delete mode 100644 slirp/src/util.c delete mode 100644 slirp/src/util.h delete mode 100644 slirp/src/vmstate.c delete mode 100644 slirp/src/vmstate.h
.gitmodules +3 -0
@@ -52,3 +52,6 @@ [submodule "roms/edk2"] path = roms/edk2 url = https://github.com/tianocore/edk2.git +[submodule "slirp"] + path = slirp + url = https://gitlab.freedesktop.org/slirp/libslirp.git
configure +9 -2
@@ -1115,6 +1115,8 @@ for opt do ;; --disable-slirp) slirp="no" ;; + --enable-slirp=git) slirp="git" + ;; --enable-slirp=system) slirp="system" ;; --disable-vde) vde="no"
@@ -5885,6 +5887,8 @@ case "$slirp" in "" | yes) if $pkg_config slirp; then slirp=system + elif test -e "${source_path}/.git" && test $git_update = 'yes' ; then + slirp=git elif test -e "${source_path}/slirp/Makefile" ; then slirp=internal elif test -z "$slirp" ; then
@@ -5902,7 +5906,10 @@ case "$slirp" in esac case "$slirp" in - internal) + git | internal) + if test "$slirp" = git; then + git_submodules="${git_submodules} slirp" + fi mkdir -p slirp slirp_cflags="-I\$(SRC_PATH)/slirp/src -I\$(BUILD_DIR)/slirp/src" slirp_libs="-L\$(BUILD_DIR)/slirp -lslirp"
@@ -6565,7 +6572,7 @@ if test "$slirp" != "no"; then echo "SLIRP_CFLAGS=$slirp_cflags" >> $config_host_mak echo "SLIRP_LIBS=$slirp_libs" >> $config_host_mak fi -if [ "$slirp" = "internal" ]; then +if [ "$slirp" = "git" -o "$slirp" = "internal" ]; then echo "config-host.h: subdir-slirp" >> $config_host_mak fi if test "$vde" = "yes" ; then
scripts/archive-source.sh +1 -1
@@ -26,7 +26,7 @@ vroot_dir="${tar_file}.vroot" # independent of what the developer currently has initialized # in their checkout, because the build environment is completely # different to the host OS. -submodules="dtc ui/keycodemapdb tests/fp/berkeley-softfloat-3 tests/fp/berkeley-testfloat-3" +submodules="dtc slirp ui/keycodemapdb tests/fp/berkeley-softfloat-3 tests/fp/berkeley-testfloat-3" trap "status=$?; rm -rf \"$list_file\" \"$vroot_dir\"; exit \$status" 0 1 2 3 15
slirp new file +1 -0
@@ -0,0 +1 @@ +Subproject commit 59a1b1f165458c2acb7ff0525b543945f7416225
slirp/COPYRIGHT deleted +0 -62
62 lines not on this page · raw message
slirp/Makefile deleted +0 -47
47 lines not on this page · raw message
slirp/src/arp_table.c deleted +0 -92
92 lines not on this page · raw message
slirp/src/bootp.c deleted +0 -371
371 lines not on this page · raw message
slirp/src/bootp.h deleted +0 -129
129 lines not on this page · raw message
slirp/src/cksum.c deleted +0 -161
161 lines not on this page · raw message
slirp/src/debug.h deleted +0 -46
46 lines not on this page · raw message
slirp/src/dhcpv6.c deleted +0 -224
224 lines not on this page · raw message
slirp/src/dhcpv6.h deleted +0 -53
53 lines not on this page · raw message
slirp/src/dnssearch.c deleted +0 -311
311 lines not on this page · raw message
slirp/src/if.c deleted +0 -218
218 lines not on this page · raw message
slirp/src/if.h deleted +0 -21
@@ -1,21 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause */ -/* -* Copyright (c) 1995 Danny Gasparovski. -*/ - -#ifndef IF_H -#define IF_H - -#define IF_COMPRESS 0x01/* We want compression */ -#define IF_NOCOMPRESS 0x02/* Do not do compression */ -#define IF_AUTOCOMP 0x04/* Autodetect (default) */ -#define IF_NOCIDCOMP 0x08/* CID compression */ - -#define IF_MTU 1500 -#define IF_MRU 1500 -#define IF_COMP IF_AUTOCOMP/* Flags for compression */ - -/* 2 for alignment, 14 for ethernet */ -#define IF_MAXLINKHDR (2 + ETH_HLEN) - -#endif
slirp/src/ip.h deleted +0 -242
242 lines not on this page · raw message
slirp/src/ip6.h deleted +0 -160
160 lines not on this page · raw message
slirp/src/ip6_icmp.c deleted +0 -438
438 lines not on this page · raw message
slirp/src/ip6_icmp.h deleted +0 -232
232 lines not on this page · raw message
slirp/src/ip6_input.c deleted +0 -78
78 lines not on this page · raw message
slirp/src/ip6_output.c deleted +0 -39
@@ -1,39 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause */ -/* -* Copyright (c) 2013 -* Guillaume Subiron, Yann Bordenave, Serigne Modou Wagne. -*/ - -#include "slirp.h" - -/* Number of packets queued before we start sending -* (to prevent allocing too many mbufs) */ -#define IF6_THRESH 10 - -/* -* IPv6 output. The packet in mbuf chain m contains a IP header -*/ -int ip6_output (struct socket *so,struct mbuf *m,int fast) -{ - struct ip6 *ip = mtod(m, struct ip6 *); - -DEBUG_CALL ("ip6_output" ); -DEBUG_ARG ("so = %p" , so); -DEBUG_ARG ("m = %p" , m); - -/* Fill IPv6 header */ - ip->ip_v =IP6VERSION ; - ip->ip_hl =IP6_HOP_LIMIT ; - ip->ip_tc_hi =0 ; - ip->ip_tc_lo =0 ; - ip->ip_fl_hi =0 ; - ip->ip_fl_lo =0 ; - -if (fast) { -if_encap (m->slirp, m); - }else { -if_output (so, m); - } - -return 0 ; -}
slirp/src/ip_icmp.c deleted +0 -470
26 lines not on this page · raw message
slirp/src/ip_icmp.h deleted +0 -166
166 lines not on this page · raw message
slirp/src/ip_input.c deleted +0 -469
469 lines not on this page · raw message
slirp/src/ip_output.c deleted +0 -170
170 lines not on this page · raw message
slirp/src/libslirp.h deleted +0 -118
118 lines not on this page · raw message
slirp/src/mbuf.c deleted +0 -235
235 lines not on this page · raw message
slirp/src/mbuf.h deleted +0 -127
127 lines not on this page · raw message
slirp/src/misc.c deleted +0 -321
321 lines not on this page · raw message
slirp/src/misc.h deleted +0 -66
66 lines not on this page · raw message
slirp/src/ncsi-pkt.h deleted +0 -445
445 lines not on this page · raw message
slirp/src/ncsi.c deleted +0 -194
194 lines not on this page · raw message
slirp/src/ndp_table.c deleted +0 -87
87 lines not on this page · raw message
slirp/src/qtailq.h deleted +0 -194
194 lines not on this page · raw message
slirp/src/sbuf.c deleted +0 -186
186 lines not on this page · raw message
slirp/src/slirp.c deleted +0 -1118
1,118 lines not on this page · raw message
slirp/src/slirp.h deleted +0 -275
275 lines not on this page · raw message
slirp/src/socket.c deleted +0 -945
945 lines not on this page · raw message
slirp/src/socket.h deleted +0 -160
160 lines not on this page · raw message
slirp/src/state.c deleted +0 -388
388 lines not on this page · raw message
slirp/src/stream.c deleted +0 -120
120 lines not on this page · raw message
slirp/src/tcp.h deleted +0 -181
181 lines not on this page · raw message
slirp/src/tcp_input.c deleted +0 -1554
1,554 lines not on this page · raw message
slirp/src/tcp_output.c deleted +0 -522
522 lines not on this page · raw message
slirp/src/tcp_subr.c deleted +0 -987
987 lines not on this page · raw message
slirp/src/tcp_timer.c deleted +0 -294
294 lines not on this page · raw message
slirp/src/tcp_timer.h deleted +0 -128
128 lines not on this page · raw message
slirp/src/tcp_var.h deleted +0 -162
162 lines not on this page · raw message
slirp/src/tcpip.h deleted +0 -102
102 lines not on this page · raw message
slirp/src/tftp.c deleted +0 -463
463 lines not on this page · raw message
slirp/src/tftp.h deleted +0 -52
52 lines not on this page · raw message
slirp/src/udp.c deleted +0 -363
363 lines not on this page · raw message
slirp/src/udp.h deleted +0 -92
92 lines not on this page · raw message
slirp/src/udp6.c deleted +0 -173
173 lines not on this page · raw message
slirp/src/util.c deleted +0 -368
368 lines not on this page · raw message
slirp/src/util.h deleted +0 -175
175 lines not on this page · raw message
slirp/src/vmstate.c deleted +0 -441
441 lines not on this page · raw message
slirp/src/vmstate.h deleted +0 -409
409 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.20.1
Part of the diff is not shown here. View the raw message.
Peter Maydell
AppliedQuoted 16 lines · Samuel Thibault
The following changes since commit
8482ff2eb3bb95020eb2f370a9b3ea26511e41df:Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-05-02 12:04:51 +0100)
are available in the Git repository at:
https://people.debian.org/~sthibault/qemu.git tags/samuel-thibault
for you to fetch changes up to
7c57bdd82026ba03f3158bbcd841afde7c2dc43a:build-sys: move slirp as git submodule project (2019-05-03 00:15:37 +0200)
----------------------------------------------------------------
slirp: move slirp as git submodule project
Quoted 9 lines
Marc-André Lureau (2):
build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
build-sys: move slirp as git submodule project----------------------------------------------------------------
Marc-André Lureau (2):
build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
build-sys: move slirp as git submodule project
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.1
for any user-visible changes.
-- PMM
Quoted 22 lines · Peter Maydell
Quoted 20 lines · Samuel Thibault
The following changes since commit
8482ff2eb3bb95020eb2f370a9b3ea26511e41df:Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-05-02 12:04:51 +0100)
are available in the Git repository at:
https://people.debian.org/~sthibault/qemu.git tags/samuel-thibault
for you to fetch changes up to
7c57bdd82026ba03f3158bbcd841afde7c2dc43a:build-sys: move slirp as git submodule project (2019-05-03 00:15:37 +0200)
----------------------------------------------------------------
slirp: move slirp as git submodule projectMarc-André Lureau (2):
build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
build-sys: move slirp as git submodule project
Quoted 8 lines
Quoted 5 lines
----------------------------------------------------------------
Marc-André Lureau (2):
build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
build-sys: move slirp as git submodule projectApplied, thanks.
TL;DR: You might need to run 'git submodule deinit --force slirp' if ou get errors after merging this.
--
FYI I was running MinGW tests with "make docker-test-mingw@fedora SHOW_ENV=1 J=8 NETWORK=1" and ran "git pull" to refresh my local repo, and got:
$ make docker-test-mingw@fedora SHOW_ENV=1 J=8 NETWORK=1 make[1]: Entering directory '/home/phil/source/qemu' GEN /home/phil/source/qemu/docker-src.2019-05-03-16.55.51.7157/qemu.tar slirp: unmerged (59a1b1f165458c2acb7ff0525b543945f7416225) fatal: git-write-tree: error building trees Cannot save the current index state Cloning into '/home/phil/source/qemu/docker-src.2019-05-03-16.55.51.7157/qemu.tar.vroot'... done. error: pathspec 'slirp:' did not match any file(s) known to git. error: pathspec 'needs' did not match any file(s) known to git. error: pathspec 'merge' did not match any file(s) known to git. failed to checkout slirp: needs merge revision tar: /var/tmp/qemu/qemu.tar: Cannot open: No such file or directory tar: Error is not recoverable: exiting now Failed to untar source tests/docker/Makefile.include:203: recipe for target 'docker-run' failed make[1]: *** [docker-run] Error 1
I don't run builds on this host (no tools installed) but everything via Docker, so (re-)running ./configure is not an option.
$ git status Unmerged paths: (use "git reset HEAD <file>..." to unstage) (use "git add <file>..." to mark resolution)
added by us: slirp
$ ls -la slirp/ total 8 drwxr-xr-x 2 phil phil 4096 May 3 16:49 . drwxr-xr-x 56 phil phil 4096 May 3 16:55 ..
$ git submodule status slirp U0000000000000000000000000000000000000000 slirp
Daniel suggested on IRC to run:
$ git submodule deinit --force slirp
It worked fine after running it.
Regards,
Phil.
Quoted 15 lines · Philippe Mathieu-Daudé
FYI I was running MinGW tests with "make docker-test-mingw@fedora SHOW_ENV=1 J=8 NETWORK=1" and ran "git pull" to refresh my local repo, and got:
$ make docker-test-mingw@fedora SHOW_ENV=1 J=8 NETWORK=1 make[1]: Entering directory '/home/phil/source/qemu' GEN /home/phil/source/qemu/docker-src.2019-05-03-16.55.51.7157/qemu.tar slirp: unmerged (59a1b1f165458c2acb7ff0525b543945f7416225) fatal: git-write-tree: error building trees Cannot save the current index state Cloning into '/home/phil/source/qemu/docker-src.2019-05-03-16.55.51.7157/qemu.tar.vroot'... done. error: pathspec 'slirp:' did not match any file(s) known to git.
Quoted 8 lines
error: pathspec 'needs' did not match any file(s) known to git. error: pathspec 'merge' did not match any file(s) known to git. failed to checkout slirp: needs merge revision tar: /var/tmp/qemu/qemu.tar: Cannot open: No such file or directory tar: Error is not recoverable: exiting now Failed to untar source tests/docker/Makefile.include:203: recipe for target 'docker-run' failed make[1]: *** [docker-run] Error 1
This weird set of errors is demonstrating a bug in scripts/archive-source.sh where it is not checking for errors from git. Specifically it does:
if git diff-index --quiet HEAD -- &>/dev/null
then
HEAD=HEAD
else
HEAD=$(git stash create)
fi
and git prints "slirp: needs merge revision", which we blindly put into the HEAD variable, and then later do:
git checkout $HEAD
which is what's causing the weird pathspec errors, because
(a) we're trying to check out an error message and (b) our shell quoting is nonexistent and so we don't even treat it as a single argument...
thanks
-- PMM
Quoted 15 lines · Samuel Thibault
The following changes since commit
8482ff2eb3bb95020eb2f370a9b3ea26511e41df:Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-05-02 12:04:51 +0100)
are available in the Git repository at:
https://people.debian.org/~sthibault/qemu.git tags/samuel-thibault
for you to fetch changes up to
7c57bdd82026ba03f3158bbcd841afde7c2dc43a:build-sys: move slirp as git submodule project (2019-05-03 00:15:37 +0200)
----------------------------------------------------------------
slirp: move slirp as git submodule project
Quoted 8 lines
Marc-André Lureau (2):
build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
build-sys: move slirp as git submodule project----------------------------------------------------------------
Marc-André Lureau (2):
build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
build-sys: move slirp as git submodule project
After this series, an in-tree build is seeing a dirty tree, thanks to:
Quoted 6 lines
Changes not staged for commit:
(use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) (commit or discard the untracked or modified content in submodules)modified: slirp (untracked content)
which in reality is due to:
$ cd slirp/ $ git status HEAD detached at 59a1b1f Untracked files: (use "git add <file>..." to include in what will be committed)
libslirp.a
src/arp_table.d
src/arp_table.o
...
libslirp probably needs a .gitignore for *.a, *.o, *.d, and src/libslirp-version.h
And actually getting it to apply during qemu's build will need another submodule update.
In the meantime, where do we stand on our goal of disabling in-tree builds?
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
Quoted 47 lines · Eric Blake
Quoted 15 lines · Samuel Thibault
The following changes since commit
8482ff2eb3bb95020eb2f370a9b3ea26511e41df:Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-05-02 12:04:51 +0100)
are available in the Git repository at:
https://people.debian.org/~sthibault/qemu.git tags/samuel-thibault
for you to fetch changes up to
7c57bdd82026ba03f3158bbcd841afde7c2dc43a:build-sys: move slirp as git submodule project (2019-05-03 00:15:37 +0200)
----------------------------------------------------------------
slirp: move slirp as git submodule projectQuoted 8 lines
Marc-André Lureau (2):
build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
build-sys: move slirp as git submodule project----------------------------------------------------------------
Marc-André Lureau (2):
build-sys: pass CFLAGS & LDFLAGS to subdir-slirp
build-sys: move slirp as git submodule projectAfter this series, an in-tree build is seeing a dirty tree, thanks to:
Quoted 6 lines
Changes not staged for commit:
(use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) (commit or discard the untracked or modified content in submodules)modified: slirp (untracked content)
which in reality is due to:
$ cd slirp/ $ git status HEAD detached at 59a1b1f Untracked files: (use "git add <file>..." to include in what will be committed)libslirp.a
src/arp_table.d
src/arp_table.o
...
Quoted 7 lines
libslirp probably needs a .gitignore for *.a, *.o, *.d, and
src/libslirp-version.hAnd actually getting it to apply during qemu's build will need another submodule update.
In the meantime, where do we stand on our goal of disabling in-tree builds?
The view was largely positive when we discussed it. So I think it just needs someone to step up with a patch proposal, and at the start of the dev cycle is a good time for such a change i guess.
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 6 lines · Daniel P. Berrangé
Quoted 1 line · Eric Blake
In the meantime, where do we stand on our goal of disabling in-tree builds?
The view was largely positive when we discussed it. So I think it just needs someone to step up with a patch proposal, and at the start of the dev cycle is a good time for such a change i guess.
Pitfalls to watch out for include checking whether any of:
* the tests/vm scripting for the BSDs
* various travis/etc CI configs
* etc
are currently using in-tree builds.
Paolo will also need to update his coverity build config.
thanks
-- PMM
Quoted 4 lines · Peter Maydell
Quoted 3 lines · Daniel P. Berrangé
Quoted 1 line · Eric Blake
In the meantime, where do we stand on our goal of disabling in-tree builds?
Quoted 8 lines
Quoted 3 lines
The view was largely positive when we discussed it. So I think it just needs someone to step up with a patch proposal, and at the start of the dev cycle is a good time for such a change i guess.
Pitfalls to watch out for include checking whether any of:
* the tests/vm scripting for the BSDs
* various travis/etc CI configs
* etc
* most of roms/
Quoted 6 lines
are currently using in-tree builds.
Paolo will also need to update his coverity build config.thanks
-- PMM