summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-10 04:09:01 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-10 04:09:01 +0000
commit4f7b8195825ef35e87af02a47c96b40ca5dbffe1 (patch)
treeec36cadf32fa7ba1562a91a0cbd2ac028bb7e9ab /sys-fs/mdadm
parentDisallowing -ftracer to avoid bug#122192, thanks to Markus Gothe for reporting (diff)
downloadgentoo-2-4f7b8195825ef35e87af02a47c96b40ca5dbffe1.tar.gz
gentoo-2-4f7b8195825ef35e87af02a47c96b40ca5dbffe1.tar.bz2
gentoo-2-4f7b8195825ef35e87af02a47c96b40ca5dbffe1.zip
Fix building on big endian systems #122269.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'sys-fs/mdadm')
-rw-r--r--sys-fs/mdadm/ChangeLog6
-rw-r--r--sys-fs/mdadm/files/mdadm-2.3.1-endian.patch24
-rw-r--r--sys-fs/mdadm/mdadm-2.3.1.ebuild3
3 files changed, 31 insertions, 2 deletions
diff --git a/sys-fs/mdadm/ChangeLog b/sys-fs/mdadm/ChangeLog
index b5e9efadf711..6a784a4ba814 100644
--- a/sys-fs/mdadm/ChangeLog
+++ b/sys-fs/mdadm/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-fs/mdadm
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.23 2006/02/09 02:47:44 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.24 2006/02/10 04:09:01 vapier Exp $
+
+ 10 Feb 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/mdadm-2.3.1-endian.patch, mdadm-2.3.1.ebuild:
+ Fix building on big endian systems #122269.
*mdadm-2.3.1 (09 Feb 2006)
diff --git a/sys-fs/mdadm/files/mdadm-2.3.1-endian.patch b/sys-fs/mdadm/files/mdadm-2.3.1-endian.patch
new file mode 100644
index 000000000000..e0a35cfbb174
--- /dev/null
+++ b/sys-fs/mdadm/files/mdadm-2.3.1-endian.patch
@@ -0,0 +1,24 @@
+Screw Redhat !
+
+http://bugs.gentoo.org/122269
+
+--- mdadm.h
++++ mdadm.h
+@@ -72,16 +72,7 @@
+ #include "bitmap.h"
+
+ #include <endian.h>
+-/* #include "asm/byteorder.h" Redhat don't like this so... */
+-#if __BYTE_ORDER == __LITTLE_ENDIAN
+-# include <linux/byteorder/little_endian.h>
+-#elif __BYTE_ORDER == __BIG_ENDIAN
+-# include <linux/byteorder/big_endian.h>
+-#elif __BYTE_ORDER == __PDP_ENDIAN
+-# include <linux/byteorder/pdp_endian.h>
+-#else
+-# error "unknown endianness."
+-#endif
++#include <asm/byteorder.h>
+
+
+
diff --git a/sys-fs/mdadm/mdadm-2.3.1.ebuild b/sys-fs/mdadm/mdadm-2.3.1.ebuild
index 054796dcf80f..7b70385c2ef0 100644
--- a/sys-fs/mdadm/mdadm-2.3.1.ebuild
+++ b/sys-fs/mdadm/mdadm-2.3.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-2.3.1.ebuild,v 1.1 2006/02/09 02:47:44 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-2.3.1.ebuild,v 1.2 2006/02/10 04:09:01 vapier Exp $
inherit eutils flag-o-matic
@@ -20,6 +20,7 @@ DEPEND="${RDEPEND}
src_unpack() {
unpack ${A}
cd "${S}"
+ epatch "${FILESDIR}"/${P}-endian.patch #122269
epatch "${FILESDIR}"/${PN}-1.9.0-dont-make-man.patch
use static && append-ldflags -static
}