summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Seidel <tuxus@gentoo.org>2004-04-16 21:00:30 +0000
committerJan Seidel <tuxus@gentoo.org>2004-04-16 21:00:30 +0000
commit73762f6dd2e6a2b92e49e96aefdcc01b776d31a8 (patch)
tree572e00f375bb7426c1a9b9c88954ddf7271bd294 /dev-libs
parentadded s390 keywords (Manifest recommit) (diff)
downloadgentoo-2-73762f6dd2e6a2b92e49e96aefdcc01b776d31a8.tar.gz
gentoo-2-73762f6dd2e6a2b92e49e96aefdcc01b776d31a8.tar.bz2
gentoo-2-73762f6dd2e6a2b92e49e96aefdcc01b776d31a8.zip
files/elfutils-0.94-alpha-mips-atime.diff: Fix 0.94 compilation on mips and alpha
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/elfutils/ChangeLog6
-rw-r--r--dev-libs/elfutils/elfutils-0.94-r1.ebuild6
-rw-r--r--dev-libs/elfutils/files/elfutils-0.94-alpha-mips-atime.diff21
3 files changed, 30 insertions, 3 deletions
diff --git a/dev-libs/elfutils/ChangeLog b/dev-libs/elfutils/ChangeLog
index 2e1b099c36c1..589b3037faf7 100644
--- a/dev-libs/elfutils/ChangeLog
+++ b/dev-libs/elfutils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/elfutils
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.35 2004/04/11 11:27:52 cretin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.36 2004/04/16 21:00:30 tuxus Exp $
+
+ 16 Apr 2004; <tuxus@gentoo.org> elfutils-0.94-r1.ebuild:
+ files/elfutils-0.94-alpha-mips-atime.diff: Fix 0.94 compilation on mips and
+ alpha
11 Apr 2004; <cretin@gentoo.org> elfutils-0.94-r1.ebuild:
Stable on all archs
diff --git a/dev-libs/elfutils/elfutils-0.94-r1.ebuild b/dev-libs/elfutils/elfutils-0.94-r1.ebuild
index 10ff4ee821f2..7a59bbc4b741 100644
--- a/dev-libs/elfutils/elfutils-0.94-r1.ebuild
+++ b/dev-libs/elfutils/elfutils-0.94-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.94-r1.ebuild,v 1.4 2004/04/11 11:27:52 cretin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.94-r1.ebuild,v 1.5 2004/04/16 21:00:30 tuxus Exp $
inherit eutils
@@ -10,7 +10,7 @@ SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="OpenSoftware"
SLOT="0"
-KEYWORDS="x86 sparc amd64 ppc alpha"
+KEYWORDS="x86 sparc amd64 ppc alpha mips"
IUSE="nls"
DEPEND=">=sys-libs/glibc-2.3.2
@@ -26,6 +26,8 @@ src_unpack() {
sed -e 's:-Werror::g' \
${x}.orig > ${x}
done
+
+ use mips || use alpha && epatch ${FILESDIR}/${P}-alpha-mips-atime.diff
}
src_compile() {
diff --git a/dev-libs/elfutils/files/elfutils-0.94-alpha-mips-atime.diff b/dev-libs/elfutils/files/elfutils-0.94-alpha-mips-atime.diff
new file mode 100644
index 000000000000..d91bb76b3af8
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.94-alpha-mips-atime.diff
@@ -0,0 +1,21 @@
+--- elfutils-0.94/src/strip.c.old 2003-09-26 08:01:49.000000000 +0200
++++ elfutils-0.94/src/strip.c 2004-02-22 22:20:42.000000000 +0100
+@@ -265,8 +265,16 @@
+
+ /* If we have to preserve the timestamp, we need it in the
+ format utimes() understands. */
+- TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);
+- TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);
++
++#if defined ( __alpha ) || defined ( __mips)
++ tv[0].tv_sec = pre_st.st_atime;
++ tv[0].tv_usec = 0;
++ tv[1].tv_sec = pre_st.st_mtime;
++ tv[1].tv_usec = 0;
++#else
++ TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);
++ TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);
++#endif
+ }
+
+ /* Open the file. */