Gentoo Archives: gentoo-alt

From: Michael Weiser <michael@×××××××××××××××.net>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] prefix-ifying ebuilds
Date: Wed, 27 Feb 2008 23:07:17
Message-Id: 20080227230700.GC9555@weiser.dinsnail.net
1 Hello again,
2
3 I'm trying to compile my stuff with kerberos. As it's not yet in the
4 prefix portage tree, I thought it would be a nice way to practice
5 converting ebuilds. In order to get it to compile cleanly I needed to
6 hack the ebuild like this:
7
8 @@ -42,7 +44,9 @@
9 }
10
11 src_compile() {
12 - econf \
13 + CPPFLAGS="-I${EPREFIX}/usr/include" \
14 + LDFLAGS="-L${EPREFIX}/usr/$(get_libdir)" \
15 + econf \
16 $(use_with krb4) \
17 $(use_with tcl) \
18 $(use_enable ipv6) \
19 @@ -68,7 +72,7 @@
20 src_install() {
21 emake \
22 DESTDIR="${D}" \
23 - EXAMPLEDIR=/usr/share/doc/${PF}/examples \
24 + EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
25 install || die
26
27 keepdir /var/lib/krb5kdc
28
29
30 and patch a patch (!):
31
32 @@ -4,7 +4,7 @@
33 PROG_RPATH=$(KRB5_LIBDIR)
34
35 KSU_LIBS=@KSU_LIBS@
36 -+LAZY_LDFLAGS=-Wl,-z,now
37 ++LAZY_LDFLAGS=-Wl,-bind_at_load
38
39 SRCS = \
40 $(srcdir)/krb_auth_su.c \
41
42 This seems evil[tm] to me. Is there a guide on how to got about things
43 like this?
44 --
45 Michael
46 Against!
47 --
48 gentoo-alt@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-alt] prefix-ifying ebuilds Jeremy <jer.gentoo@×××××.com>