ChangeLog

# ChangeLog for dev-libs/dietlibc
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/ChangeLog,v 1.76 2008/09/03 10:11:40 hollow Exp $

03 Sep 2008; Benedikt Böhm
dietlibc-0.32_pre20080829.ebuild:
fix #236417

*dietlibc-0.32_pre20080829 (29 Aug 2008)

29 Aug 2008; Benedikt Böhm
+dietlibc-0.32_pre20080829.ebuild:
new snapshot wrt #227429

14 Mar 2008; Benedikt Böhm metadata.xml:
fix metadata

*dietlibc-0.31_pre20070612 (12 Jun 2007)

12 Jun 2007; Benedikt Böhm
-dietlibc-0.31_pre20070611.ebuild, +dietlibc-0.31_pre20070612.ebuild:
another prerelease; should fix #181261

*dietlibc-0.31_pre20070611 (11 Jun 2007)

11 Jun 2007; Benedikt Böhm
+dietlibc-0.31_pre20070611.ebuild:
custom tarball with patches already included, see
http://svn.linux-vserver.org/projects/dietlibc/

23 May 2007; Raúl Porcel dietlibc-0.30-r2.ebuild:
alpha stable wrt #179408

23 May 2007; Jeroen Roovers dietlibc-0.30-r2.ebuild:
Stable for HPPA (bug #179408).

22 May 2007; Christian Heim
dietlibc-0.31_pre20070503.ebuild:
Removing the MAKEOPTS override, seems to work now.

*dietlibc-0.31_pre20070503 (03 May 2007)

03 May 2007; Benedikt Böhm -files/gcc-33.patch,
-files/0.25-gcc34.patch, -dietlibc-0.25.ebuild, -dietlibc-0.29.ebuild,
+dietlibc-0.31_pre20070503.ebuild:
add pre release for new SSP stuff; remove old cruft where possible

20 Apr 2007; Gustavo Zacarias
dietlibc-0.30-r2.ebuild:
Stable on sparc

21 Jan 2007; Benedikt Böhm dietlibc-0.30-r2.ebuild:
fix #163059

20 Jan 2007; Christian Heim dietlibc-0.30-r2.ebuild:
Moving dietlibc-0.30-r2 stable on amd64 and x86.

16 Oct 2006; Jason Wever dietlibc-0.30.ebuild:
Stable on SPARC.

24 Sep 2006; Michael Hanselmann dietlibc-0.30.ebuild:
Stable on ppc.

*dietlibc-0.30-r2 (08 Sep 2006)

08 Sep 2006; Benedikt Böhm -dietlibc-0.30-r1.ebuild,
+dietlibc-0.30-r2.ebuild:
and hopefully fix PIC mess on x86 too

*dietlibc-0.30-r1 (07 Sep 2006)

07 Sep 2006; Benedikt Böhm +dietlibc-0.30-r1.ebuild:
hopefully fix SSP/PIE/STACKGAP mess (also fixes #138468); fix executable
stacks; fix CFLAGS handling

04 Sep 2006; Joshua Jackson dietlibc-0.30.ebuild:
Stable x86; bug #140905

*dietlibc-0.30 (22 Jun 2006)

22 Jun 2006; Benedikt Böhm
-dietlibc-0.30_pre20060501-r1.ebuild, -dietlibc-0.30_pre20060621.ebuild,
+dietlibc-0.30.ebuild:
version bump

*dietlibc-0.30_pre20060621 (21 Jun 2006)

21 Jun 2006; Benedikt Böhm
+dietlibc-0.30_pre20060621.ebuild:
new cvs snapshot

*dietlibc-0.30_pre20060501-r1 (03 May 2006)

03 May 2006; Benedikt Böhm
-dietlibc-0.30_pre20060501.ebuild, +dietlibc-0.30_pre20060501-r1.ebuild:
fix ppc rename patch

*dietlibc-0.30_pre20060501 (02 May 2006)

02 May 2006; Benedikt Böhm -files/gcc-33-r2.patch,
-dietlibc-0.27.ebuild, -dietlibc-0.29-r1.ebuild,
+dietlibc-0.30_pre20060501.ebuild:
new cvs snapshot; should fix 114796 + 111880; cleanup

11 Apr 2006; Christian Heim dietlibc-0.29-r1.ebuild:
Fixing SRC_URI, cleaning up the patch-mess; Logic cleanup

*dietlibc-0.29-r1 (06 Apr 2006)

06 Apr 2006; Christian Heim +dietlibc-0.29-r1.ebuild:
Adding a reworked ebuild; need to get other arches to test the ebuild

07 Jan 2006; Christian Heim metadata.xml:
Updating Copyright header, dev-libs/dietlibc is now managed by vserver-devs@g.o

24 Dec 2005; Simon Stelling dietlibc-0.28.ebuild:
stable on amd64

*dietlibc-0.29 (04 Sep 2005)

04 Sep 2005; Michael Hanselmann +dietlibc-0.29.ebuild:
Bumped version and fixed compilation on 32-bit userland with 64-bit kernel on
ppc.

07 Aug 2005; Jason Wever dietlibc-0.28.ebuild:
Stable on SPARC.

03 Aug 2005; Bryan Østergaard dietlibc-0.28.ebuild:
Stable on alpha.

31 Jul 2005; Tobias Scherbaum
dietlibc-0.28.ebuild:
ppc stable

20 Jul 2005; Rene Nussbaumer dietlibc-0.28.ebuild:
Stable on hppa. Added fix for hppa of not available gcc option.

20 Jul 2005; Markus Rothe dietlibc-0.28.ebuild:
Stable on ppc64

12 Jul 2005; dietlibc-0.28.ebuild:
- marked 0.28 stable on x86

16 May 2005; Daniel Black dietlibc-0.25.ebuild,
dietlibc-0.27.ebuild, dietlibc-0.28.ebuild:
removed gcc.eclass usage as per bug #92745.

09 Apr 2005; Tom Gall
dietlibc-0.27.ebuild:
stable on ppc64

*dietlibc-0.28 (08 Mar 2005)

08 Mar 2005; Mike Frysinger
+files/dietlibc-0.28-Makefile.patch, +files/gcc-33-r3.patch,
+dietlibc-0.28.ebuild:
Version bump.

21 Jan 2005; Bryan Østergaard dietlibc-0.25.ebuild:
Stable on alpha.

27 Dec 2004; Markus Rothe dietlibc-0.27.ebuild:
Added ~ppc64 to KEYWORDS

05 Dec 2004; files/ssp.c, dietlibc-0.27.ebuild:
- Fixed misc ssp problems introduced from dietlibc-0.26-r1 -> dietlibc-0.27-r0
which were causing genkernel failures for hardened users. bug #73112

14 Oct 2004; Guy Martin dietlibc-0.25.ebuild:
Stable on hppa.

*dietlibc-0.27 (01 Oct 2004)

01 Oct 2004; Robin H. Johnson +files/gcc-33-r2.patch,
+dietlibc-0.27.ebuild:
Version bump, add debug support, do CFLAGS properly, do gcc3[34] patch
properly, ssp.c merged upstream, mips in unstable, and add cross-compile
stuff.

*dietlibc-0.26-r1 (21 Aug 2004)

21 Aug 2004; files/dietlibc-0.26-ssp.patch,
dietlibc-0.26-r1.ebuild:
more patch work needed for ssp on sparc/sparc64. sparc64 is building sparc32
crt files. x86_64 seems more like a gcc-3.4.x compile problem. For now we will
only patch for x86

13 Aug 2004; Jason Wever dietlibc-0.25.ebuild:
Stable on sparc.

07 Aug 2004; :
Made dietlibc propolice/ssp aware on arches sparc/sparc64/x86_64/i386. Also
made feeble attempt to version bump to 0.27 but that failed something fierce

19 Jul 2004; Jeremy Huddleston dietlibc-0.23.ebuild:
|| die for sparc's make in src_compile().

*dietlibc-0.26 (18 Jul 2004)

18 Jul 2004; Daniel Black +dietlibc-0.26.ebuild
dietlibc-0.24.ebuild, dietlibc-0.25.ebuild:
version bump as per bug #54790. May not work properly. No 3.4 patch applied -
wasn't sure if necessary. x86 stable for 0.24 and 0.25

01 Jun 2004; Mike Frysinger +files/0.25-gcc34.patch,
dietlibc-0.25.ebuild:
Add gcc-3.4 patch #51053 by Imad R. Faiad.

*dietlibc-0.25 (29 May 2004)

29 May 2004; Travis Tilley +dietlibc-0.25.ebuild:
version bump - works with gcc 3.4

25 Mar 2004; Jason Wever dietlibc-0.24.ebuild:
Added fix for bug #45716.

25 Mar 2004; Jason Wever dietlibc-0.24.ebuild,
files/dietlibc-sparc64-makefile.patch:
Fix for bug #45601 and adjusted Makefile so that the usage of the sparc32
command isn't needed anymore.

19 Feb 2004; Michael Sterrett dietlibc-0.23.ebuild,
dietlibc-0.24.ebuild, files/gcc-33.patch:
add patch from Frank Eibisch to correct wrapper not to use old options for gcc
3 (bug #41763); some repoman cleanup

17 Feb 2004; David Holm dietlibc-0.24.ebuild:
Added to ~ppc.

14 Dec 2003; Alexander Gabert dietlibc-0.24.ebuild:
added filter-flags logic for propolice

06 Dec 2003; Jason Wever dietlibc-0.22-r2.ebuild,
dietlibc-0.23.ebuild, dietlibc-0.24.ebuild:
Marked stable on sparc.

22 Nov 2003; Michael Sterrett dietlibc-0.24.ebuild:
inherit fixheadtails and do ht_fix_all (bug 34125)

*dietlibc-0.24 (21 Nov 2003)

21 Nov 2003; Michael Sterrett dietlibc-0.24.ebuild,
files/0.24-dirent-prototype.patch:
version bump

21 Oct 2003; dietlibc-0.23.ebuild:
bumping 0.23 to stable on x86 per request, and added a metadata.xml

07 Oct 2003; Jason Wever dietlibc-0.22-r2.ebuild,
dietlibc-0.23.ebuild:
Ebuild touchups for sparc because of new rev of sys-devel/sparc32

29 Sep 2003; Jason Wever dietlibc-0.22-r2.ebuild,
dietlibc-0.23.ebuild:
Added sparc64 fix for bug #27171.

*dietlibc-0.23 (12 Sep 2003)

20 Dec 2003; Guy Martin dietlibc-0.23.ebuild,
files/dietlibc-0.23-hppa.patch:
Added hppa patch. Fix #32701.

12 Sep 2003; dietlibc-0.23.ebuild,
files/0.23-dirent-prototype.patch:
version bump, this release fixes a ton of outstanding bugs upstream. seems the
dirent patch never made it's way back to fefe.de, new gentoo dirent patch
created to keep offsets happy.

11 Aug 2003; Will Woods dietlibc-0.22-r2.ebuild:
Marked stable for alpha

25 May 2003; Martin Holzer dietlibc-0.20.ebuild,
dietlibc-0.21.ebuild, dietlibc-0.22-r1.ebuild, dietlibc-0.22-r2.ebuild,
dietlibc-0.22.ebuild:
now uses mirror://kernel

*dietlibc-0.22-r2 (14 May 2003)

16 Jun 2003; Mike Frysinger :
Added a small prototype patch ... prototypes used 'long int' while
actual function used 'off_t' ... set them both to 'off_t'.

14 May 2003; John Mylchreest dietlibc-0.22-r2.ebuild:
Updated dietlibc to compile with -fstack-protector

*dietlibc-0.22-r1 (30 Mar 2003)

30 Mar 2003; Daniel Ahlberg dietlibc-0.22-r1.ebuild :
Forgot to apply a patch. Applied patch is from Debian's dietblic-0.22-2 release.

*dietlibc-0.22 (28 Mar 2003)

28 Mar 2003; Guy Martin dietlibc-0.22.ebuild :
Added ~hppa to KEYWORDS.

28 Mar 2003; Daniel Ahlberg dietlibc-0.22.ebuild :
Security update.

06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords

*dietlibc-0.21 (29 Oct 2002)


29 Oct 2002; Daniel Ahlberg :
Version bump. Ebuild contributed by fridtjof@fbunet.de, ppc patch by
Nicolas Kaiser . All in #9484

*dietlibc-0.20 (27 Sep 2002)
Version bump that includes security fix. Ebuild contributed by fridtjof@fbunet.de.

*dietlibc-0.16 (29 Mar 2002)

29 Mar 2002; Thilo Bangert ChangeLog :

completely reworked ebuild


*dietlibc-0.16 (28 Mar 2002)

28 Mar 2002; Thilo Bangert ChangeLog :

bumped version, use emake || die instead of try make

Manifest

AUX 0.24-dirent-prototype.patch 668 RMD160 c86dd2b8860952d5f850acea204359aa48bd3ebc SHA1 08f416adc9e9727183905bd5ca1e8352122d4593 SHA256 b8ceebd840995c757098e57d3e71ec17266d02e62badc717d7e4afa95e00deb5
AUX dietlibc-0.26-ssp.patch 1632 RMD160 59f3ca58604b643f3e777f3484183e3a9469c990 SHA1 c25125a3ac737b88c9f26db2ed6aeeb347ac9048 SHA256 e7327c2b4f0872f27257d6960250adce01b330f3ae7fdab8ce30eab981cf69f1
AUX dietlibc-0.28-Makefile.patch 529 RMD160 4b66ccd46900965111fbaa0f7712fa61d921bdcb SHA1 b81202d1aaa9b93640adc1307598adb719440c2a SHA256 4307ae87429c4d431d0770532b4a7e96e209e2247baa884a7bb90cfc306a647d
AUX dietlibc-sparc64-makefile.patch 499 RMD160 a7f21fcc3a96646fed11cf19e09683d35bc4ad83 SHA1 8c619b218f6e9e1834d377bc7be4b18b9cee456b SHA256 59d73b59df80ec83758b5bf6ffeb7cefd1359705e128cc2392f1b1603e2c3074
AUX gcc-33-r3.patch 451 RMD160 a0576ea89a560174f11004814001f0782ec9a1a4 SHA1 2d7f06e3a660afe5b70af58000f0f86ad25dcdc6 SHA256 3deaf13c0d56375c8f6002b349214178386f4441664540cde2c07a5a09498396
AUX ssp.c 3065 RMD160 4d1f9aeb0d7d63978b717b7487dfbf17b9fd046a SHA1 ce38c67dc73f304f0036513b484436b83fb4c7f8 SHA256 a35ab2cd397c28d850667d99ca39eab1c521c141c9bb4826fb9c91310406d52c
DIST dietlibc-0.28.tar.bz2 560540 RMD160 242cbcd5b7e7f341713f587598cddc9d6ee39f59 SHA1 ac67fca8e57f495e9834dfc77f3e3df227488774 SHA256 2b5cba7bad7ef6a4c0e83303c78cbf426e1fe01a5a69aeae801d714d6fdc002c
DIST dietlibc-0.30-patches-r0.tar.bz2 13466 RMD160 aef639595e93bd319744901aa87ae15d331709f2 SHA1 f71163605ea54cef6a336a2c360beec38234858e SHA256 bdc14a428b53dcd57bbce2337198e43473964624021d5a4918c5147753e75251
DIST dietlibc-0.30.tar.bz2 567046 RMD160 98d4e20e106f60835ed4a22d3013d9a34957f18a SHA1 cab8631f8ca1902d6668584f72f71706bee020eb SHA256 2c8733825d364d374f0179a403a57e4a382fbb9852431228ef19062a5de183b5
DIST dietlibc-0.31_pre20070503.tar.bz2 564475 RMD160 e8b3a8c5cc337f85104679bf920fe82d3ee115cc SHA1 f536c00b30bc40f1063f64a5092815b2b4efe4f4 SHA256 988e04fd628ed90b259e08489cd86e1fa705e83632a145bd05197935c9c9b7f9
DIST dietlibc-0.31_pre20070612.tar.bz2 565685 RMD160 c8d4aa98e68131a1fdca4e93d6e287aeddc07204 SHA1 2adccb512537b8e4f51e759f42857ef11a8dabb3 SHA256 a35b72a0af0feba4b1a3c5550714fb8b9fa581f3c62dc2bef035aeda3be61106
DIST dietlibc-0.32_pre20080829.tar.bz2 576627 RMD160 e78723da90ba19f5ab878dd9efdcac9d37f06cf1 SHA1 276b908ba86bf95cedcb1b14d54269b495a9a7ab SHA256 6df1125497c139a60ad56037d90666647c34c714e4620ce50704bc430a290ff5
DIST dietlibc-patches-0.30-r2.tar.bz2 31582 RMD160 6cd2a89cb47131360ed6e6a8cbcbe79aad84b18a SHA1 9c0bb84a7449edbfaccf0cbe694ccf8f57e26566 SHA256 03a3ea9bba39fb78511a59e80bcbdafdc82a0859b31b6af925854052a79f06fe
DIST dietlibc-patches-0.31_pre20070503.tar.bz2 26838 RMD160 f3f85d514a117fb1b8e8f73801e1332b33f9224d SHA1 bdac1e39bebb53a14ef7e39c564baab86a1bce33 SHA256 00aeabb7bb41807e577a1e08095270f5f660139b369d078ca8ee697ca6795012
EBUILD dietlibc-0.28.ebuild 1574 RMD160 477bbf6ac0ac6a8c88ecec756f9ac7cd76aa381c SHA1 19e09f5fc6951ed45a1a057a337e7f73ef86e069 SHA256 3c7622b1aeef75690a38a0a7ea3e937043a3c6e6b0a04a3687c3ee64cb3c90f9
EBUILD dietlibc-0.30-r2.ebuild 1495 RMD160 ff2129e72221ba0c48af10c1a7914d3d756357fa SHA1 d504b63210f2ecbf19c8110ad19c54b56f7d9b90 SHA256 590eeea02efef70d952a34af892e797366dc5c05c9a01547795180a51ea77c4e
EBUILD dietlibc-0.30.ebuild 1313 RMD160 20799b3ac51920bc5b3f9fd8216ce3cd72d690d4 SHA1 4bf3749e2c24bb186fde24104dab8b21b5762b01 SHA256 dc11441e50be541b55358f24d8a4c092968938d0c546bc905cf39b5b8416866c
EBUILD dietlibc-0.31_pre20070503.ebuild 1298 RMD160 9f2116ff75aa459aa8eed8c8c949f215651bdc06 SHA1 1d896abcc24649c07479b5a8e389d79e9a6a2018 SHA256 efdf8797dff9281e245c0dd90f15541bd9da70ba62f6416d1507279edbb998a5
EBUILD dietlibc-0.31_pre20070612.ebuild 1176 RMD160 1bde563ab5cd747785707655f646bffccf786d7e SHA1 5ac8a93fe709a45357387c02a2f8bd18ad5bedd3 SHA256 b6f2e7995a63cd6bfd1e3662bea134af3a63ceffb3837c8d89103ce35727c42c
EBUILD dietlibc-0.32_pre20080829.ebuild 1373 RMD160 49d84510234fb19f17b8568895a6b2e9b918a940 SHA1 508ebf864cf88fff8def912f32ca78bf8ce5814e SHA256 88ab1e00d78818485cc942bbc66002860c3fad1a6faa8be19682c15548314450
MISC ChangeLog 11063 RMD160 8ff9e37451e76d98b1741d3d492b54e015c3e413 SHA1 ea95cac6b7be6578b02eda43d0cff6a674eab072 SHA256 17e1fff7a52dc177ef1df9fb8b9fa88563039df0b382fece027beca1cbc45357
MISC metadata.xml 410 RMD160 063e81d4d38be2fa6f093828b42a0ee3e5b2b582 SHA1 e73d09647dcac3413d7bccb6f1d2a0bc50e60f48 SHA256 3fc38345f9430d71c6369f84fc1b6248bc8aa0ec74cb4ae5b2797fe01cf48721

dietlibc-0.28.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.28.ebuild,v 1.11 2007/08/25 22:37:39 vapier Exp $

inherit eutils flag-o-matic

DESCRIPTION="A minimal libc"
HOMEPAGE="http://www.fefe.de/dietlibc/"
SRC_URI="mirror://kernel/linux/libs/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
IUSE="debug"

DEPEND=""

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}"/0.24-dirent-prototype.patch
epatch "${FILESDIR}"/gcc-33-r3.patch
epatch "${FILESDIR}"/dietlibc-sparc64-makefile.patch #45601

filter-flags -fstack-protector -fstack-protector-all

# Ok so let's make dietlibc ssp aware (Aug 7 2004) -solar
cp ${FILESDIR}/ssp.c "${S}"/lib/ || die "Failed to copy ssp.c into lib for compile"
epatch "${FILESDIR}"/dietlibc-0.26-ssp.patch

replace-sparc64-flags #45716

# Fix for not available gcc option on hppa (20 Jul 2005) KillerFox
test_flag -fno-stack-protector && append-flags -D__dietlibc__ -fno-stack-protector-all -fno-stack-protector
epatch "${FILESDIR}"/dietlibc-0.28-Makefile.patch
}

src_compile() {
local make_opt=""
use debug && make_opt="DEBUG=1"
emake CFLAGS="${CFLAGS}" ${make_opt} || die "emake failed"
}

src_install() {
make install DESTDIR="${D}" || die "make install failed"
dobin "${D}"/usr/diet/bin/* || die "dobin"
doman "${D}"/usr/diet/man/*/* || die "doman"
rm -r "${D}"/usr/diet/{man,bin}
dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
}

dietlibc-0.30-r2.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.30-r2.ebuild,v 1.7 2007/05/23 13:38:49 armin76 Exp $

inherit eutils flag-o-matic

DESCRIPTION="A minimal libc"
HOMEPAGE="http://www.fefe.de/dietlibc/"
SRC_URI="mirror://gentoo/${P}.tar.bz2
http://dev.gentoo.org/~phreak/distfiles/${PN}-patches-${PVR}.tar.bz2
http://dev.gentoo.org/~hollow/distfiles/${PN}-patches-${PVR}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ~ppc64 sparc x86"
IUSE="debug"

DEPEND=""

pkg_setup() {
# Replace sparc64 related C[XX]FLAGS (see bug #45716)
use sparc && replace-sparc64-flags

# gcc-hppa suffers support for SSP, compilation will fail
# (do we still need this? SSP is disabled, see below)
use hppa && strip-unsupported-flags

# we use dietlibs STACKGAP in favor of the broken SSP implementation
filter-flags -fstack-protector -fstack-protector-all

# debug flags
use debug && append-flags -g
}

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}"/patches/*.patch
}

src_compile() {
# parallel make is b0rked
emake -j1 CFLAGS="${CFLAGS}" || die "make failed"
}

src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dobin "${D}"/usr/diet/bin/* || die "dobin failed"
doman "${D}"/usr/diet/man/*/* || die "doman failed"
rm -r "${D}"/usr/diet/{man,bin}
dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
}

dietlibc-0.30.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.30.ebuild,v 1.5 2007/08/25 22:37:39 vapier Exp $

inherit eutils flag-o-matic

DESCRIPTION="A minimal libc"
HOMEPAGE="http://www.fefe.de/dietlibc/"
SRC_URI="mirror://gentoo/${P}.tar.bz2
http://dev.gentoo.org/~phreak/distfiles/${P}-patches-${PR}.tar.bz2
http://dev.gentoo.org/~hollow/distfiles/${P}-patches-${PR}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 arm ~hppa ~mips ppc ~ppc64 sparc x86"
IUSE="debug"

DEPEND=""

pkg_setup() {
# Replace sparc64 related C[XX]FLAGS (see bug #45716)
use sparc && replace-sparc64-flags

# gcc-hppa suffers support for SSP, compilation will fail
use hppa && strip-unsupported-flags
}

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}"/patches/*.patch
}

src_compile() {
local my_cflags="${CFLAGS} -fno-pie"
use debug && my_cflags="${my_cflags} -g"
make CFLAGS="${my_cflags}" || die "make failed"
}

src_install() {
make DESTDIR="${D}" install || die "make install failed"
dobin "${D}"/usr/diet/bin/* || die "dobin failed"
doman "${D}"/usr/diet/man/*/* || die "doman failed"
rm -r "${D}"/usr/diet/{man,bin}
dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
}

dietlibc-0.31_pre20070503.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.31_pre20070503.ebuild,v 1.2 2007/05/22 16:06:53 phreak Exp $

inherit eutils flag-o-matic

DESCRIPTION="A minimal libc"
HOMEPAGE="http://www.fefe.de/dietlibc/"
SRC_URI="mirror://gentoo/${P}.tar.bz2
http://dev.gentoo.org/~phreak/distfiles/${PN}-patches-${PVR}.tar.bz2
http://dev.gentoo.org/~hollow/distfiles/${PN}-patches-${PVR}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug"

DEPEND=""

pkg_setup() {
# Replace sparc64 related C[XX]FLAGS (see bug #45716)
use sparc && replace-sparc64-flags

# gcc-hppa suffers support for SSP, compilation will fail
use hppa && strip-unsupported-flags

# debug flags
use debug && append-flags -g
}

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}"/patches/*.patch
}

src_compile() {
emake CFLAGS="${CFLAGS}" || die "make failed"
}

src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dobin "${D}"/usr/diet/bin/* || die "dobin failed"
doman "${D}"/usr/diet/man/*/* || die "doman failed"
rm -r "${D}"/usr/diet/{man,bin}
dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
}

dietlibc-0.31_pre20070612.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.31_pre20070612.ebuild,v 1.1 2007/06/12 07:00:16 hollow Exp $

inherit eutils flag-o-matic

DESCRIPTION="A minimal libc"
HOMEPAGE="http://www.fefe.de/dietlibc/"
SRC_URI="http://people.linux-vserver.org/~hollow/dietlibc/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug"

DEPEND=""

DIETHOME=/usr/diet

pkg_setup() {
# Replace sparc64 related C[XX]FLAGS (see bug #45716)
use sparc && replace-sparc64-flags

# gcc-hppa suffers support for SSP, compilation will fail
use hppa && strip-unsupported-flags

# debug flags
use debug && append-flags -g
}

src_compile() {
emake prefix=${DIETHOME} CFLAGS="${CFLAGS}" || die "make failed"
}

src_install() {
emake prefix=${DIETHOME} DESTDIR="${D}" install || die "make install failed"
dobin "${D}"${DIETHOME}/bin/* || die "dobin failed"
doman "${D}"${DIETHOME}/man/*/* || die "doman failed"
rm -r "${D}"${DIETHOME}/{man,bin}
dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
}

dietlibc-0.32_pre20080829.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.32_pre20080829.ebuild,v 1.2 2008/09/03 10:11:40 hollow Exp $

inherit eutils flag-o-matic

DESCRIPTION="A minimal libc"
HOMEPAGE="http://www.fefe.de/dietlibc/"
SRC_URI="http://people.linux-vserver.org/~hollow/dietlibc/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug"

DEPEND=""

DIETHOME=/usr/diet

pkg_setup() {
# Replace sparc64 related C[XX]FLAGS (see bug #45716)
use sparc && replace-sparc64-flags

# gcc-hppa suffers support for SSP, compilation will fail
use hppa && strip-unsupported-flags

# debug flags
use debug && append-flags -g

# Makefile does not append CFLAGS
append-flags -nostdinc -W -Wall -Wextra -Wchar-subscripts \
-Wmissing-prototypes -Wmissing-declarations -Wno-switch \
-Wno-unused -Wredundant-decls
}

src_compile() {
emake prefix=${DIETHOME} CFLAGS="${CFLAGS}" -j1 || die "make failed"
}

src_install() {
emake prefix=${DIETHOME} DESTDIR="${D}" -j1 install || die "make install failed"
dobin "${D}"${DIETHOME}/bin/* || die "dobin failed"
doman "${D}"${DIETHOME}/man/*/* || die "doman failed"
rm -r "${D}"${DIETHOME}/{man,bin}
dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
}

files

metadata.xml




vserver

The diet libc is a libc that is optimized for small size. It can be
used to create small statically linked binaries for Linux on alpha, arm,
hppa, ia64, i386, mips, s390, sparc, sparc64, ppc and x86_64.