Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2020 04:09:45 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r526874 - in head/shells: ksh93-devel/files ksh93/files
Message-ID:  <202002230409.01N49jHv002416@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Sun Feb 23 04:09:45 2020
New Revision: 526874
URL: https://svnweb.freebsd.org/changeset/ports/526874

Log:
  Fix i386 build.

Added:
  head/shells/ksh93-devel/files/patch-src_lib_libast_features_common   (contents, props changed)
  head/shells/ksh93/files/patch-src_lib_libast_features_common   (contents, props changed)

Added: head/shells/ksh93-devel/files/patch-src_lib_libast_features_common
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/ksh93-devel/files/patch-src_lib_libast_features_common	Sun Feb 23 04:09:45 2020	(r526874)
@@ -0,0 +1,38 @@
+--- src/lib/libast/features/common.orig	2017-11-09 11:01:26.000000000 -0800
++++ src/lib/libast/features/common	2020-02-22 20:00:11.166985000 -0800
+@@ -518,29 +518,12 @@
+ 		printf("#include <varargs.h>\n");
+ 		printf("#endif\n");
+ 		printf("#endif\n");
+-	#if TRY == 4
+-		printf("#define va_listref(p) (&(p))\t");
+-			printf("/* pass va_list to varargs function */\n");
+-		printf("#define va_listval(p) (*(p))\t");
+-			printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n");
+-		printf("#define va_listarg va_list*\t");
+-			printf("/* va_arg() va_list type */\n");
+-	#else
+-		varyfunny(&r);
+-		printf("#define va_listref(p) (p)\t");
+-			printf("/* pass va_list to varargs function */\n");
+-		if (sizeof(va_list) > sizeof(void*))
+-			printf("#define va_listval(p) (*(p))\t");
+-		else
+-			printf("#define va_listval(p) (p)\t");
+-			printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n");
+-	#if TRY == 2
+-		printf("#define va_listarg va_list*\t");
+-	#else
+-		printf("#define va_listarg va_list\t");
+-	#endif /*TRY == 2*/
+-			printf("/* va_arg() va_list type */\n");
+-	#endif /*TRY == 4*/
++	printf("#define va_listref(p) (&(p))\t");
++		printf("/* pass va_list to varargs function */\n");
++	printf("#define va_listval(p) (*(p))\t");
++		printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n");
++	printf("#define va_listarg va_list*\t");
++		printf("/* va_arg() va_list type */\n");
+ 	
+ 	#if _UWIN
+ 		printf("#ifndef va_copy\n");

Added: head/shells/ksh93/files/patch-src_lib_libast_features_common
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/ksh93/files/patch-src_lib_libast_features_common	Sun Feb 23 04:09:45 2020	(r526874)
@@ -0,0 +1,38 @@
+--- src/lib/libast/features/common.orig	2017-11-09 11:01:26.000000000 -0800
++++ src/lib/libast/features/common	2020-02-22 20:00:11.166985000 -0800
+@@ -518,29 +518,12 @@
+ 		printf("#include <varargs.h>\n");
+ 		printf("#endif\n");
+ 		printf("#endif\n");
+-	#if TRY == 4
+-		printf("#define va_listref(p) (&(p))\t");
+-			printf("/* pass va_list to varargs function */\n");
+-		printf("#define va_listval(p) (*(p))\t");
+-			printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n");
+-		printf("#define va_listarg va_list*\t");
+-			printf("/* va_arg() va_list type */\n");
+-	#else
+-		varyfunny(&r);
+-		printf("#define va_listref(p) (p)\t");
+-			printf("/* pass va_list to varargs function */\n");
+-		if (sizeof(va_list) > sizeof(void*))
+-			printf("#define va_listval(p) (*(p))\t");
+-		else
+-			printf("#define va_listval(p) (p)\t");
+-			printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n");
+-	#if TRY == 2
+-		printf("#define va_listarg va_list*\t");
+-	#else
+-		printf("#define va_listarg va_list\t");
+-	#endif /*TRY == 2*/
+-			printf("/* va_arg() va_list type */\n");
+-	#endif /*TRY == 4*/
++	printf("#define va_listref(p) (&(p))\t");
++		printf("/* pass va_list to varargs function */\n");
++	printf("#define va_listval(p) (*(p))\t");
++		printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n");
++	printf("#define va_listarg va_list*\t");
++		printf("/* va_arg() va_list type */\n");
+ 	
+ 	#if _UWIN
+ 		printf("#ifndef va_copy\n");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002230409.01N49jHv002416>