git: 4ea9b2e78285 - main - emulators/qemu-user-static-devel: Remove MIPS* from rc script

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 03 Jun 2023 14:09:01 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4ea9b2e78285c04b2bc857f1efbd1e63e3f70d41

commit 4ea9b2e78285c04b2bc857f1efbd1e63e3f70d41
Author:     Mina Galić <freebsd@igalic.co>
AuthorDate: 2023-06-03 11:49:37 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-03 14:08:47 +0000

    emulators/qemu-user-static-devel: Remove MIPS* from rc script
    
    mips is removed from the binaries, so remove it from RC, too.
    
    PR:             271744
---
 emulators/qemu-user-static-devel/Makefile          |  2 +-
 .../files/qemu_user_static.in                      | 30 ----------------------
 2 files changed, 1 insertion(+), 31 deletions(-)

diff --git a/emulators/qemu-user-static-devel/Makefile b/emulators/qemu-user-static-devel/Makefile
index fd2e596d0563..8969ee4d55e4 100644
--- a/emulators/qemu-user-static-devel/Makefile
+++ b/emulators/qemu-user-static-devel/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	qemu
 PORTVERSION=	6.2.50
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	emulators
 PKGNAMESUFFIX=	-user-static-devel
 DIST_SUBDIR=	qemu/${PORTVERSION}
diff --git a/emulators/qemu-user-static-devel/files/qemu_user_static.in b/emulators/qemu-user-static-devel/files/qemu_user_static.in
index 8db8e171a22a..176114581263 100644
--- a/emulators/qemu-user-static-devel/files/qemu_user_static.in
+++ b/emulators/qemu-user-static-devel/files/qemu_user_static.in
@@ -71,36 +71,6 @@ list_cmd="${BINMISCCTL} list"
 	else
 		echo "$0: interpreter ${interpreter} not found, cannot register."
 	fi
-	# register mips interpreter styled 'mips'
-	interpreter=${QEMU_DIR}/${QEMU_PREFIX}mips${QEMU_SUFFIX}
-	if [ -x "${interpreter}" ]; then
-		${BINMISCCTL} add mips --interpreter "${interpreter}" \
-			--magic "\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08" \
-			--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."
-	fi
-	# register mipsle interpreter styled 'mipsel'
-	interpreter=${QEMU_DIR}/${QEMU_PREFIX}mipsel${QEMU_SUFFIX}
-	if [ -x "${interpreter}" ]; then
-		${BINMISCCTL} add mipsel --interpreter "${interpreter}" \
-			--magic "\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00" \
-			--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."
-	fi
-	# register mips64 interpreter styled 'mips64'
-	interpreter=${QEMU_DIR}/${QEMU_PREFIX}mips64${QEMU_SUFFIX}
-	if [ -x "${interpreter}" ]; then
-		${BINMISCCTL} add mips64 --interpreter "${interpreter}" \
-			--magic "\x7f\x45\x4c\x46\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08" \
-			--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."
-	fi
 	# register powerpc interpreter styled 'ppc'
 	interpreter=${QEMU_DIR}/${QEMU_PREFIX}ppc${QEMU_SUFFIX}
 	if [ -x "${interpreter}" ]; then