diff --git a/erlang-ppc.patch b/erlang-ppc.patch new file mode 100644 index 0000000..fafc3e5 --- /dev/null +++ b/erlang-ppc.patch @@ -0,0 +1,12 @@ +Index: otp_src_R14B04/erts/configure +=================================================================== +--- otp_src_R14B04.orig/erts/configure ++++ otp_src_R14B04/erts/configure +@@ -5249,6 +5249,7 @@ case $chk_arch_ in + x86_64) ARCH=amd64;; + amd64) ARCH=amd64;; + macppc) ARCH=ppc;; ++ powerpc) ARCH=ppc;; + ppc) ARCH=ppc;; + ppc64) ARCH=ppc64;; + "Power Macintosh") ARCH=ppc;; diff --git a/erlang.changes b/erlang.changes index 1a85f13..a3ccda6 100644 --- a/erlang.changes +++ b/erlang.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 25 14:05:47 UTC 2012 - dvaleev@suse.com + +- fix ppc architecture detection + ------------------------------------------------------------------- Fri Jun 29 09:54:00 UTC 2012 - idonmez@suse.com diff --git a/erlang.spec b/erlang.spec index 4c997c8..d0933a5 100644 --- a/erlang.spec +++ b/erlang.spec @@ -36,6 +36,7 @@ Patch0: otp-R14B04-rpath.patch Patch1: otp-R13B04-sslrpath.patch # PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines Patch2: otp-R14B-implfun.patch +Patch3: erlang-ppc.patch BuildRequires: gcc-c++ BuildRequires: ncurses-devel BuildRequires: openssh @@ -186,6 +187,7 @@ A Graphics System used to write platform independent user interfaces. %patch0 -p1 -b .rpath %patch1 -p1 -b .sslrpath %patch2 -p1 -b .implfun +%patch3 -p1 chmod -R u+w . # enable dynamic linking for ssl