From: Ben Schweikert Date: Sun, 11 Dec 2011 20:14:02 +0000 (+0100) Subject: iasl: New package. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2032d212035db04f3ebb03ec211c199826cb9724;p=people%2Fms%2Fipfire-3.x.git iasl: New package. Needed by xen (for HVM mode). Signed-off-by: Stefan Schantl --- diff --git a/iasl/iasl.nm b/iasl/iasl.nm new file mode 100644 index 000000000..a935fb55b --- /dev/null +++ b/iasl/iasl.nm @@ -0,0 +1,56 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +name = iasl +version = 20111123 +release = 1 +thisapp = acpica-unix-%{version} + +maintainer = Ben Schweikert +groups = Development/Languages +url = http://www.acpica.org/downloads/ +license = GPL+ +summary = Cross development C compiler. + +description + iasl compiles ASL (ACPI Source Language) into AML (ACPI Machine + Language), which is suitable for inclusion as a DSDT in system + firmware. It also can disassemble AML, for debugging purposes. +end + +source_dl = http://www.acpica.org/download/ + +build + requires + ncurses-devel + bison + flex + end + + prepare_cmds + # Remove -Werror from source. + find . -type f -exec sed -ie 's!-Werror!!g' {} \; + end + + build + # Only build the compiler. + cd compiler + + # Does not support parallel build. + make + end + + install + mkdir -pv %{BUILDROOT}/usr/bin/ + + # Only install compiler. + cd compiler + make install INSTALLDIR=%{BUILDROOT}/usr/bin + end +end + +packages + package %{name} +end diff --git a/iasl/patches/Werror.patch b/iasl/patches/Werror.patch new file mode 100644 index 000000000..b882d4ba4 --- /dev/null +++ b/iasl/patches/Werror.patch @@ -0,0 +1,10 @@ +--- a/compiler/Makefile 2011-12-04 19:47:42.324530514 +0100 ++++ b/compiler/Makefile 2011-12-04 19:48:00.946530074 +0100 +@@ -227,7 +227,6 @@ + -Wall \ + -Wbad-function-cast \ + -Wdeclaration-after-statement \ +- -Werror \ + -Wformat=2 \ + -Wmissing-declarations \ + -Wmissing-prototypes \ diff --git a/iasl/patches/iasl-20110922-as-needed.patch b/iasl/patches/iasl-20110922-as-needed.patch new file mode 100644 index 000000000..a507f74ea --- /dev/null +++ b/iasl/patches/iasl-20110922-as-needed.patch @@ -0,0 +1,16 @@ + tools/acpiexec/Makefile | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/tools/acpiexec/Makefile b/tools/acpiexec/Makefile +index ba6b534..8435985 100644 +--- a/tools/acpiexec/Makefile ++++ b/tools/acpiexec/Makefile +@@ -269,7 +269,7 @@ CWARNINGFLAGS += \ + # Rules + # + $(PROG) : $(OBJECTS) +- $(CC) $(LDFLAGS) $(OBJECTS) -o $(PROG) ++ $(CC) $(OBJECTS) $(LDFLAGS) -o $(PROG) + $(COPYPROG) + + %.o : %.c $(HEADERS) $(ACPICA_HEADERS) diff --git a/iasl/patches/iasl-20110922-locale.patch b/iasl/patches/iasl-20110922-locale.patch new file mode 100644 index 000000000..920c409b7 --- /dev/null +++ b/iasl/patches/iasl-20110922-locale.patch @@ -0,0 +1,16 @@ +diff -Nuar acpica-unix-20110922.orig/compiler/Makefile acpica-unix-20110922/compiler/Makefile +--- acpica-unix-20110922.orig/compiler/Makefile 2011-09-22 15:59:34.000000000 +0000 ++++ acpica-unix-20110922/compiler/Makefile 2011-11-07 03:36:49.103281798 +0000 +@@ -258,10 +258,10 @@ + # + # Bison/Flex configuration + # +-YACC= bison ++YACC= LC_ALL=C bison + YFLAGS+= -v -d -y + +-LEX= flex ++LEX= LC_ALL=C flex + LFLAGS+= -i -s + + #