From d8bc603462d93448e8443aa8a465cb16c0526e34 Mon Sep 17 00:00:00 2001 From: Joshua Kinard Date: Sun, 18 Sep 2005 07:53:49 +0000 Subject: Modify getdvhoff's ebuild to statically link against klibc, resulting in an ~8.8kb binary. Keep 0.12 around as stable until we bump klibc to stable. Package-Manager: portage-2.0.51.22-r2 --- sys-boot/getdvhoff/ChangeLog | 8 ++++- sys-boot/getdvhoff/Manifest | 4 ++- sys-boot/getdvhoff/files/digest-getdvhoff-0.12-r1 | 1 + sys-boot/getdvhoff/getdvhoff-0.12-r1.ebuild | 37 +++++++++++++++++++++++ 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 sys-boot/getdvhoff/files/digest-getdvhoff-0.12-r1 create mode 100644 sys-boot/getdvhoff/getdvhoff-0.12-r1.ebuild (limited to 'sys-boot') diff --git a/sys-boot/getdvhoff/ChangeLog b/sys-boot/getdvhoff/ChangeLog index 66430d04a4aa..af5dcf9c713b 100644 --- a/sys-boot/getdvhoff/ChangeLog +++ b/sys-boot/getdvhoff/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-boot/getdvhoff # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/getdvhoff/ChangeLog,v 1.1 2005/09/11 21:46:41 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/getdvhoff/ChangeLog,v 1.2 2005/09/18 07:53:49 kumba Exp $ + +*getdvhoff-0.12-r1 (18 Sep 2005) + + 18 Sep 2005; Joshua Kinard +getdvhoff-0.12-r1.ebuild: + Modify getdvhoff's ebuild to statically link against klibc, resulting in an + ~8.8kb binary. Keep 0.12 around as stable until we bump klibc to stable. *getdvhoff-0.12 (12 Sep 2005) diff --git a/sys-boot/getdvhoff/Manifest b/sys-boot/getdvhoff/Manifest index c42a7f283f28..5b8adc2f30fb 100644 --- a/sys-boot/getdvhoff/Manifest +++ b/sys-boot/getdvhoff/Manifest @@ -1,4 +1,6 @@ MD5 56ea2ed24e32f64ee1a0a47b30b7a666 metadata.xml 381 -MD5 2ea932cb404f292d480e3aa620ac8123 ChangeLog 428 +MD5 7cf6d6d6728446a1c28dc2393fda70f9 ChangeLog 691 MD5 67829998d739d4b20aa8750c15c4f5f9 getdvhoff-0.12.ebuild 947 +MD5 8ba5c85f56b6e05e3b97a2b633774954 getdvhoff-0.12-r1.ebuild 1198 MD5 88674627604ab17ce796f5165025f350 files/digest-getdvhoff-0.12 65 +MD5 88674627604ab17ce796f5165025f350 files/digest-getdvhoff-0.12-r1 65 diff --git a/sys-boot/getdvhoff/files/digest-getdvhoff-0.12-r1 b/sys-boot/getdvhoff/files/digest-getdvhoff-0.12-r1 new file mode 100644 index 000000000000..1b9aafae5bae --- /dev/null +++ b/sys-boot/getdvhoff/files/digest-getdvhoff-0.12-r1 @@ -0,0 +1 @@ +MD5 5a48a9f0be673cda454ea04e3798019b sgibootcd-0.12.tar.bz2 3588 diff --git a/sys-boot/getdvhoff/getdvhoff-0.12-r1.ebuild b/sys-boot/getdvhoff/getdvhoff-0.12-r1.ebuild new file mode 100644 index 000000000000..122beb43d74f --- /dev/null +++ b/sys-boot/getdvhoff/getdvhoff-0.12-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/getdvhoff/getdvhoff-0.12-r1.ebuild,v 1.1 2005/09/18 07:53:49 kumba Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Utility for use on LiveCDs to calculate offset of the ext2 partition for losetup" +HOMEPAGE="ftp://ftp.linux-mips.org/pub/linux/mips/people/skylark/" +SRC_URI="ftp://ftp.linux-mips.org/pub/linux/mips/people/skylark/sgibootcd-${PV}.tar.bz2" +LICENSE="as-is" +SLOT="0" +KEYWORDS="-* ~mips" +IUSE="" +DEPEND="dev-libs/klibc" +RESTRICT="" +S="${WORKDIR}/sgibootcd-${PV}" +MY_S="${S}/helpers" + + +src_compile() { + cd ${MY_S} + local mycc="$(tc-getCC)" + local mysrc="getdvhoff.c" + local klloc="/usr/lib/klibc" + local klobjs="${klloc}/lib/crt0.o ${klloc}/lib/libc.a" + local klcflags="-march=mips3 -Os -fno-pic -mno-abicalls -I${klloc}/include -I${klloc}/include/bits32 -D__KLIBC__ -nostdlib" + + [ -f "${MY_S}/getdvhoff" ] && rm -f ${MY_S}/${PN} + einfo "${mycc} ${klcflags} ${mysrc} ${klobjs} -o ${PN} -N" + ${mycc} ${klcflags} ${mysrc} ${klobjs} -o ${PN} -N +} + +src_install() { + cd ${MY_S} + dodir /usr/lib/${PN} + cp ${MY_S}/${PN} ${D}/usr/lib/${PN} +} -- cgit v1.2.3-65-gdbad