Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2017 22:05:57 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453935 - in head/sysutils/acpica-tools: . files
Message-ID:  <201711102205.vAAM5vG1027289@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Fri Nov 10 22:05:57 2017
New Revision: 453935
URL: https://svnweb.freebsd.org/changeset/ports/453935

Log:
  Fix build on arm.

Added:
  head/sysutils/acpica-tools/files/
  head/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l   (contents, props changed)
Modified:
  head/sysutils/acpica-tools/Makefile

Modified: head/sysutils/acpica-tools/Makefile
==============================================================================
--- head/sysutils/acpica-tools/Makefile	Fri Nov 10 21:57:56 2017	(r453934)
+++ head/sysutils/acpica-tools/Makefile	Fri Nov 10 22:05:57 2017	(r453935)
@@ -14,8 +14,6 @@ COMMENT=	Tools from the ACPI Component Architecture (A
 LICENSE=	BSD3CLAUSE GPLv2
 LICENSE_COMB=	dual
 
-BROKEN_armv6=		fails to compile: comparison of constant -1 with expression of type char is always true
-BROKEN_aarch64=		fails to compile: comparison of constant -1 with expression of type char is always true
 BROKEN_powerpc64=	fails to compile: comparison is always true due to limited range of data type
 
 USES=		gmake

Added: head/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l	Fri Nov 10 22:05:57 2017	(r453935)
@@ -0,0 +1,26 @@
+--- source/compiler/aslsupport.l.orig	2017-09-29 15:34:59 UTC
++++ source/compiler/aslsupport.l
+@@ -525,7 +525,7 @@ static void
+ count (
+     int                 Type)
+ {
+-    int                 i;
++    int                 c, i;
+ 
+ 
+     switch (Type)
+@@ -547,10 +547,12 @@ count (
+         break;
+     }
+ 
+-    for (i = 0; (yytext[i] != 0) && (yytext[i] != EOF); i++)
++    i = 0;
++    while ((c = yytext[i]) != 0 && c != EOF)
+     {
+-        AslInsertLineBuffer (yytext[i]);
++        AslInsertLineBuffer (c);
+         *Gbl_LineBufPtr = 0;
++        i++;
+     }
+ }
+ 



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