]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
Merge remote-tracking branch 'stevee/xen-iasl'
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Dec 2011 09:25:17 +0000 (10:25 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Dec 2011 09:25:17 +0000 (10:25 +0100)
iasl/iasl.nm [new file with mode: 0644]
iasl/patches/Werror.patch [new file with mode: 0644]
iasl/patches/iasl-20110922-as-needed.patch [new file with mode: 0644]
iasl/patches/iasl-20110922-locale.patch [new file with mode: 0644]

diff --git a/iasl/iasl.nm b/iasl/iasl.nm
new file mode 100644 (file)
index 0000000..a935fb5
--- /dev/null
@@ -0,0 +1,56 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = iasl
+version    = 20111123
+release    = 1
+thisapp    = acpica-unix-%{version}
+
+maintainer = Ben Schweikert <ben.schweikert@ipfire.org>
+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 (file)
index 0000000..b882d4b
--- /dev/null
@@ -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 (file)
index 0000000..a507f74
--- /dev/null
@@ -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 (file)
index 0000000..920c409
--- /dev/null
@@ -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
+ #