On 2019-09-22 07:52, Jan Beich wrote: > tech-lists <tech-li...@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" >
It is safe to ignore this error for now. We are testing a riscv64 interpreter at this time and will update the port once that's in the git repo. sean
signature.asc
Description: OpenPGP digital signature