Gentoo Archives: gentoo-dev

From: "William L. Thomson Jr." <wltjr@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: gentoo-x86 commit in dev-db/firebird: ChangeLog metadata.xml firebird-2.0.3.12981.0-r1.ebuild firebird-2.0.1.12855.0-r4.ebuild firebird-2.0.1.12855.0-r5.ebuild
Date: Mon, 24 Sep 2007 17:21:14
Message-Id: 1190653819.22813.22.camel@wlt.obsidian-studios.com
In Reply to: [gentoo-dev] Re: gentoo-x86 commit in dev-db/firebird: ChangeLog metadata.xml firebird-2.0.3.12981.0-r1.ebuild firebird-2.0.1.12855.0-r4.ebuild firebird-2.0.1.12855.0-r5.ebuild by Torsten Veller
1 On Mon, 2007-09-24 at 14:22 +0200, Torsten Veller wrote:
2 > * "William L. Thomson Jr." <wltjr@g.o>:
3 > > On Sat, 2007-09-22 at 10:29 +0200, Torsten Veller wrote:
4 > > > * "William Thomson (wltjr)" <wltjr@g.o>:
5 > > > >
6 > > > > mkdir -p "${WORKDIR}/../etc" \
7 > > > ^^^^^^^^^^^^^^
8 > > > What is this?
9 > > >
10 > > > > "${WORKDIR}/usr" \
11 > > > > "${WORKDIR}/var/log/firebird" \
12 > > > > "${WORKDIR}/var/run/firebird"
13 > > > > cd "${WORKDIR}/usr"; ln -s "${WORKDIR}/${MY_P}/gen/firebird/bin"
14 > > > > cd "${WORKDIR}/../etc"; ln -s "${WORKDIR}/${MY_P}/gen/firebird" firebird
15 > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 > >
17 > > It's symlinks so the runtime changes as to Firebirds don't prevent the
18 > > build system from completing. Since the build system and normal Firebird
19 > > installs expect everything to be under one directory. Not split into
20 > > many. Nothing gets placed there, and they only act as links.
21 >
22 > Well, I don't understand why you have to work outside of WORKDIR.
23 > (${WORKDIR}/../)
24
25 Because Firebird expects everything in one dir.
26 Currently /usr/share/firebird. All paths are relative to that. I had to
27 modified relative paths by adding ../../../ to all paths. So
28 that ../../../ = / ideally. Although I think it's going to break in some
29 cases like chroots or etc. That way when it's base
30 in /usr/share/firebird, it can find stuff
31 in /etc/firebird, /usr/bin, /var/run/firebird, /var/log/firebird, etc.
32
33 So what happens is during build, those relative paths have the build
34 system looking outside of the workdir. I create dirs and symlinks so the
35 build system can find stuff inside the workdir, despite paths being
36 outside of it.
37
38 It's not pretty, maybe not ideal. But was the only way I could think of
39 to get things building, and allow for splitting up Firebird during
40 install per FHS. Without breaking runtime either.
41
42 Totally open for other suggestions and ideas of how to accomplish this.
43 I will provide feedback and info to upstream. So hopefully over time
44 this can be changed, and the hack of symlinks won't be needed during
45 build.
46
47
48 --
49 William L. Thomson Jr.
50 Gentoo/Java

Attachments

File name MIME type
signature.asc application/pgp-signature