summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gabert <pappy@gentoo.org>2008-04-28 12:15:29 +0000
committerAlexander Gabert <pappy@gentoo.org>2008-04-28 12:15:29 +0000
commit3966f9ca746461dc9aa8744f3d79f7dece1fcf9c (patch)
tree12561b047d921ee714cf15b05129837cf4642498 /sys-libs
parentVersion bump, cleanup. (diff)
downloadgentoo-2-3966f9ca746461dc9aa8744f3d79f7dece1fcf9c.tar.gz
gentoo-2-3966f9ca746461dc9aa8744f3d79f7dece1fcf9c.tar.bz2
gentoo-2-3966f9ca746461dc9aa8744f3d79f7dece1fcf9c.zip
updated ebuild with fixes for locale-gen and nscd, changed march and mtune
(Portage version: 2.1.4.4)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/hardened-glibc/ChangeLog7
-rw-r--r--sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild38
2 files changed, 33 insertions, 12 deletions
diff --git a/sys-libs/hardened-glibc/ChangeLog b/sys-libs/hardened-glibc/ChangeLog
index 0abb7c0cafd9..0e79381de4ff 100644
--- a/sys-libs/hardened-glibc/ChangeLog
+++ b/sys-libs/hardened-glibc/ChangeLog
@@ -1,9 +1,12 @@
# ChangeLog for sys-libs/hardened-glibc
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/hardened-glibc/ChangeLog,v 1.2 2008/04/27 23:19:48 pappy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/hardened-glibc/ChangeLog,v 1.3 2008/04/28 12:15:29 pappy Exp $
+
+ 28 Apr 2008; <pappy@gentoo.org> hardened-glibc-2.6.1-r1.ebuild:
+ fixed built time failures and added locale-gen and nscd config files
27 Apr 2008; <pappy@gentoo.org> ChangeLog:
- hardened-glibc-2.6.1-r1.ebuild
+ added hardened-glibc-2.6.1-r1.ebuild
27 Apr 2008; <pappy@gentoo.org> ChangeLog:
these are test versions for hardened developers
diff --git a/sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild b/sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild
index f27083fc67bf..919d4914bd9d 100644
--- a/sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild
+++ b/sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild
@@ -1,8 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild,v 1.3 2008/04/28 00:22:07 pappy Exp $
-
-inherit eutils
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild,v 1.4 2008/04/28 12:15:29 pappy Exp $
# the main installation routine and patches
# from http://www.linuxfromscratch.org/hlfs
@@ -17,12 +15,22 @@ GNU_MIRROR="ftp://ftp.gnu.org/gnu"
PATCHDIST="http://dev.gentoo.org/~pappy/dist/hardened"
PATCHPATH="sys-libs/hardened-glibc/files/2.6.1"
-GENTOOPATCHES="glibc-2.6.1-GENTOOPATCHES.patch.gz"
+MYPATCHES="glibc-2.6.1-GENTOOPATCHES.patch.gz"
+LOCALEGEN="glibc-2.6.1-LOCALEGEN_NSCD.patch.gz"
+## the default upstream glibc
SRC_URI="${SRC_URI} \
${GNU_MIRROR}/glibc/glibc-2.6.1.tar.bz2"
+
+## contains a jumbo file with all patches from
+## sys-libs/glibc for this particular glibc setup
SRC_URI="${SRC_URI} \
- ${PATCHDIST}/${PATCHPATH}/${GENTOOPATCHES}"
+ ${PATCHDIST}/${PATCHPATH}/${MYPATCHES}"
+
+## contains the locale-gen utility from Debian
+## taken from sys-libs/glibc
+SRC_URI="${SRC_URI} \
+ ${PATCHDIST}/${PATCHPATH}/${LOCALEGEN}"
LICENSE="LGPL-2"
SLOT="1"
@@ -31,7 +39,7 @@ SLOT="1"
## /var/tmp/portage/sys-libs/hardened-glibc-2.6.1-r1/
## work/glibc-2.6.1/gentoo/locale/locale-gen does not exist
-KEYWORDS="-x86"
+KEYWORDS="~x86"
IUSE=""
PROVIDE="virtual/libc"
@@ -50,9 +58,12 @@ pkg_setup() {
# hardcoding the CHOST in this ebuild (for x86 stages)
export CHOST="i486-pc-linux-gnu"
- # CFLAGS+="-march=i686" for undefined reference to
- # `__sync_bool_compare_and_swap_4'
- export CFLAGS="-O2 -pipe -march=i686"
+ # need CFLAGS+="-march=i486" for
+ # undefined reference
+ # to `__sync_bool_compare_and_swap_4'
+ # error message,
+ # lets hope mtuning for i686 cpu gives some speed
+ export CFLAGS="-O2 -pipe -march=i486 -mtune=i686 -fforce-addr"
export CXXFLAGS="${CFLAGS}"
export CPPFLAGS=""
@@ -72,7 +83,14 @@ pkg_setup() {
src_compile() {
cd "${WORKDIR}/glibc-${PV}"
- epatch "${WORKDIR}/glibc-2.6.1-GENTOOPATCHES.patch"
+ einfo "adding gentoo glibc patches"
+ patch --quiet -p1 < "${WORKDIR}/glibc-2.6.1-GENTOOPATCHES.patch" || \
+ die "gentoo patches"
+
+ # somehow epatch would not apply this :(
+ einfo "adding localegen utility and nscd files"
+ patch --quiet -p1 < "${WORKDIR}/glibc-2.6.1-LOCALEGEN_NSCD.patch" || \
+ die "localegen patch"
mkdir -p "${WORKDIR}/glibc-build"
cd "${WORKDIR}/glibc-build"