1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:28:11 +00:00

Ports: patch config.sub instead of the configure script in the yasm port

This commit is contained in:
Tom Needham 2021-04-13 19:34:52 +01:00 committed by Andreas Kling
parent a959ccc1d0
commit 9b75b1be5f
2 changed files with 29 additions and 30 deletions

View file

@ -0,0 +1,29 @@
--- yasm-1.3.0/config/original-config.sub 2021-04-13 19:32:43.345360128 +0100
+++ yasm-1.3.0/config/config.sub 2021-04-13 19:33:00.992081544 +0100
@@ -156,7 +156,7 @@
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis | -knuth | -cray | -microblaze)
+ -apple | -axis | -knuth | -cray | -microblaze | serenity*)
os=
basic_machine=$1
;;
@@ -1368,7 +1368,7 @@
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | serenity*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@@ -1505,6 +1505,8 @@
;;
-none)
;;
+ -serenity*)
+ ;;
*)
# Get rid of the `-' at the beginning of $os.
os=`echo $os | sed 's/[^-]*-//'`

View file

@ -1,30 +0,0 @@
diff --git a/configure b/patched-configure
index d58618be9..ad8678a12 100755
--- a/configure
+++ b/patched-configure
@@ -6306,25 +6306,6 @@ IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
-$as_echo_n "checking host system type... " >&6; }
-if ${ac_cv_host+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test "x$host_alias" = x; then
- ac_cv_host=$ac_cv_build
-else
- ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
-$as_echo "$ac_cv_host" >&6; }
-case $ac_cv_host in
-*-*-*) ;;
-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
-esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host