Date: Sun, 22 Sep 2019 15:52:54 +0200 From: Jan Beich <jbeich@FreeBSD.org> To: freebsd-ports@freebsd.org Cc: sbruno@FreeBSD.org Subject: Re: qemu error on startup Message-ID: <r248-30ax-wny@FreeBSD.org> In-Reply-To: <20190922103148.GM41568@bastion.zyxst.net> (tech-lists@zyxst.net's message of "Sun, 22 Sep 2019 11:31:48 %2B0100") References: <20190922103148.GM41568@bastion.zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
tech-lists <tech-lists@zyxst.net> writes: > Hello, > > context: 12.1-PRERELEASE r352514 amd64 > qemu-user-static-2.11.50.g20190730 > > I have a rc.conf line like this: > qemu_user_static_enable=YES > > when my machine boots, I see this before the login prompt: > > /etc/rc: interpreter /usr/local/bin/qemu-riscv64-static not found, cannot > register. > Yes, it's not found (because it's not there) but the issue for me is > why it's looking for riscv64 in the first place I also see this. r507618 says "- add qemu-user-static redirection for riscv64, no support, yet.", so the current behavior is expected. Maybe the error should be hidden behind non-default rc_info=YES e.g., --- emulators/qemu-sbruno/Makefile~ +++ emulators/qemu-sbruno/Makefile @@ -3,6 +3,7 @@ PORTNAME= qemu PORTVERSION= 2.11.50.g20190730 +PORTREVISION= 1 CATEGORIES= emulators PKGNAMESUFFIX?= -sbruno DIST_SUBDIR= qemu/${PORTVERSION} diff --git emulators/qemu-sbruno/files/qemu_user_static.in emulators/qemu-sbruno/files/qemu_user_static.in index 4022421f8963..52d690c79f54 100644 --- emulators/qemu-sbruno/files/qemu_user_static.in +++ emulators/qemu-sbruno/files/qemu_user_static.in @@ -42,7 +42,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi # register armv6 interpreter styled 'arm' interpreter=${QEMU_DIR}/${QEMU_PREFIX}arm${QEMU_SUFFIX} @@ -52,7 +52,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi # register armv7 interpreter styled 'arm' interpreter=${QEMU_DIR}/${QEMU_PREFIX}arm${QEMU_SUFFIX} @@ -62,7 +62,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi # register aarch64 interpreter styled 'aarch64' interpreter=${QEMU_DIR}/${QEMU_PREFIX}aarch64${QEMU_SUFFIX} @@ -72,7 +72,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi # register mips interpreter styled 'mips' interpreter=${QEMU_DIR}/${QEMU_PREFIX}mips${QEMU_SUFFIX} @@ -82,7 +82,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi # register mipsle interpreter styled 'mipsel' interpreter=${QEMU_DIR}/${QEMU_PREFIX}mipsel${QEMU_SUFFIX} @@ -92,7 +92,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi # register mips64 interpreter styled 'mips64' interpreter=${QEMU_DIR}/${QEMU_PREFIX}mips64${QEMU_SUFFIX} @@ -102,7 +102,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi # register powerpc interpreter styled 'ppc' interpreter=${QEMU_DIR}/${QEMU_PREFIX}ppc${QEMU_SUFFIX} @@ -112,7 +112,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi # register powerpc64 interpreter styled 'ppc64' interpreter=${QEMU_DIR}/${QEMU_PREFIX}ppc64${QEMU_SUFFIX} @@ -122,7 +122,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi # register riscv64 interpreter styled 'riscv64' interpreter=${QEMU_DIR}/${QEMU_PREFIX}riscv64${QEMU_SUFFIX} @@ -132,7 +132,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi # register sparc64 interpreter styled 'sparc64' interpreter=${QEMU_DIR}/${QEMU_PREFIX}sparc64${QEMU_SUFFIX} @@ -142,7 +142,7 @@ list_cmd="${BINMISCCTL} list" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff" \ --size 20 --set-enabled else - echo "$0: interpreter ${interpreter} not found, cannot register." + info "interpreter ${interpreter} not found, cannot register." fi } @@ -159,6 +159,6 @@ list_cmd="${BINMISCCTL} list" ${BINMISCCTL} remove powerpc64 ${BINMISCCTL} remove riscv64 ${BINMISCCTL} remove sparc64 -} +} 2>/dev/null run_rc_command "$1"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?r248-30ax-wny>