svn commit: r526874 - in head/shells: ksh93-devel/files ksh93/files

Cy Schubert cy at FreeBSD.org
Sun Feb 23 04:09:48 UTC 2020


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");


More information about the svn-ports-all mailing list