On Mon, 2007-09-24 at 14:22 +0200, Torsten Veller wrote:
> * "William L. Thomson Jr." <[EMAIL PROTECTED]>:
> > On Sat, 2007-09-22 at 10:29 +0200, Torsten Veller wrote:
> > > * "William Thomson (wltjr)" <[EMAIL PROTECTED]>:
> > > >
> > > >         mkdir -p "${WORKDIR}/../etc" \
> > >                   ^^^^^^^^^^^^^^
> > > What is this?
> > > 
> > > >                 "${WORKDIR}/usr" \
> > > >                 "${WORKDIR}/var/log/firebird" \
> > > >                 "${WORKDIR}/var/run/firebird"
> > > >         cd "${WORKDIR}/usr"; ln -s "${WORKDIR}/${MY_P}/gen/firebird/bin"
> > > >         cd "${WORKDIR}/../etc"; ln -s "${WORKDIR}/${MY_P}/gen/firebird" 
> > > > firebird
> > >         
> > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > 
> > It's symlinks so the runtime changes as to Firebirds don't prevent the
> > build system from completing. Since the build system and normal Firebird
> > installs expect everything to be under one directory. Not split into
> > many. Nothing gets placed there, and they only act as links.
> 
> Well, I don't understand why you have to work outside of WORKDIR.
> (${WORKDIR}/../)

Because Firebird expects everything in one dir.
Currently /usr/share/firebird. All paths are relative to that. I had to
modified relative paths by adding ../../../ to all paths. So
that ../../../ = / ideally. Although I think it's going to break in some
cases like chroots or etc. That way when it's base
in /usr/share/firebird, it can find stuff
in /etc/firebird, /usr/bin, /var/run/firebird, /var/log/firebird, etc.

So what happens is during build, those relative paths have the build
system looking outside of the workdir. I create dirs and symlinks so the
build system can find stuff inside the workdir, despite paths being
outside of it.

It's not pretty, maybe not ideal. But was the only way I could think of
to get things building, and allow for splitting up Firebird during
install per FHS. Without breaking runtime either.

Totally open for other suggestions and ideas of how to accomplish this.
I will provide feedback and info to upstream. So hopefully over time
this can be changed, and the hack of symlinks won't be needed during
build.


-- 
William L. Thomson Jr.
Gentoo/Java

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to