From owner-svn-ports-all@freebsd.org Fri Oct 28 15:08:15 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE1ADC246B8; Fri, 28 Oct 2016 15:08:15 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CAFBD1E84; Fri, 28 Oct 2016 15:08:15 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9SF8Fnh088788; Fri, 28 Oct 2016 15:08:15 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9SF8EdX088785; Fri, 28 Oct 2016 15:08:14 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201610281508.u9SF8EdX088785@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Fri, 28 Oct 2016 15:08:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r424858 - head/shells/ksh93/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2016 15:08:16 -0000 Author: sunpoet Date: Fri Oct 28 15:08:14 2016 New Revision: 424858 URL: https://svnweb.freebsd.org/changeset/ports/424858 Log: - Fix build on armv6 - While I'm here, fix diff header of patch file PR: 209457 Submitted by: Obtained from: https://github.com/att/ast/blob/beta/src/lib/libast/hash/hashalloc.c https://github.com/att/ast/blob/beta/src/lib/libast/string/tokscan.c Modified: head/shells/ksh93/files/patch-src-lib-libast-features-wchar head/shells/ksh93/files/patch-src-lib-libast-hash-hashalloc.c head/shells/ksh93/files/patch-src-lib-libast-string-tokscan.c Modified: head/shells/ksh93/files/patch-src-lib-libast-features-wchar ============================================================================== --- head/shells/ksh93/files/patch-src-lib-libast-features-wchar Fri Oct 28 14:58:53 2016 (r424857) +++ head/shells/ksh93/files/patch-src-lib-libast-features-wchar Fri Oct 28 15:08:14 2016 (r424858) @@ -1,6 +1,6 @@ ---- src/lib/libast/features/wchar.orig 2012-01-12 15:40:22.000000000 +0800 -+++ src/lib/libast/features/wchar 2012-06-12 10:05:37.278869903 +0800 -@@ -51,6 +51,7 @@ +--- src/lib/libast/features/wchar.orig 2012-01-12 07:40:22 UTC ++++ src/lib/libast/features/wchar +@@ -51,6 +51,7 @@ endif run{ cat < va) Modified: head/shells/ksh93/files/patch-src-lib-libast-string-tokscan.c ============================================================================== --- head/shells/ksh93/files/patch-src-lib-libast-string-tokscan.c Fri Oct 28 14:58:53 2016 (r424857) +++ head/shells/ksh93/files/patch-src-lib-libast-string-tokscan.c Fri Oct 28 15:08:14 2016 (r424858) @@ -1,20 +1,19 @@ ---- ./src/lib/libast/string/tokscan.c.orig 2013-12-28 22:16:20.000000000 +0100 -+++ ./src/lib/libast/string/tokscan.c 2013-12-28 22:43:28.000000000 +0100 -@@ -188,6 +188,7 @@ - char** p_string; - char* prv_f = 0; - va_list prv_ap; -+ va_listarg tmpval; - - va_start(ap, fmt); - if (!*s || *s == '\n') -@@ -233,7 +234,8 @@ +--- src/lib/libast/string/tokscan.c.orig 2006-11-07 22:29:31 UTC ++++ src/lib/libast/string/tokscan.c +@@ -233,7 +233,16 @@ tokscan(register char* s, char** nxt, co prv_f = f; f = va_arg(ap, char*); va_copy(prv_ap, ap); -- va_copy(ap, va_listval(va_arg(ap, va_listarg))); -+ tmpval = va_listval(va_arg(ap, va_listarg)); -+ va_copy(ap, tmpval); ++#if __clang__ && __SIZEOF_POINTER__ == 4 ++ { ++ va_list np; ++ ++ np = va_listval(va_arg(ap, va_listarg)); ++ va_copy(ap, np); ++ } ++#else + va_copy(ap, va_listval(va_arg(ap, va_listarg))); ++#endif continue; case 'c': p_char = va_arg(ap, char*);