Mailing List Archive

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
* "William Thomson (wltjr)" <wltjr@gentoo.org>:
> wltjr 07/09/21 02:15:03
>
> Modified: ChangeLog metadata.xml
> Added: firebird-2.0.3.12981.0-r1.ebuild
> Removed: firebird-2.0.1.12855.0-r4.ebuild
> firebird-2.0.1.12855.0-r5.ebuild
> Log:
> Major changes, Firebird is no longer installed in opt :). Added paths patch. Took over as sole maintainer since I am doing all the work anyway ;)
> (Portage version: 2.1.3.9)
>
> 1.1 dev-db/firebird/firebird-2.0.3.12981.0-r1.ebuild
>
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r1.ebuild?rev=1.1&view=markup
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r1.ebuild?rev=1.1&content-type=text/plain
>
> src_unpack() {
> if use doc; then
> # Unpack docs
> mkdir "${WORKDIR}/manuals"
> cd "${WORKDIR}/manuals"
> unpack ib_b60_doc.zip
> cd "${WORKDIR}"
> fi
>
> unpack "${MY_P}.tar.bz2"
>
> 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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> cd "${S}"


> pkg_postinst() {
> # Hack to fix ownership/perms
> chown -fR firebird:firebird /etc/firebird /usr/share/firebird
> chmod 750 /etc/firebird
>

ROOT!=/ ?

> pkg_config() {
> cd /usr/share/firebird

same

--
.: Torsten | :.
--
gentoo-dev@gentoo.org mailing list
Re: 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 [ In reply to ]
On Saturday 22 September 2007, Steve Long wrote:
> Torsten Veller wrote:
> >> pkg_postinst() {
> >> # Hack to fix ownership/perms
> >> chown -fR firebird:firebird /etc/firebird /usr/share/firebird
> >> chmod 750 /etc/firebird
> >
> > ROOT!=/ ?
> >
> >> pkg_config() {
> >> cd /usr/share/firebird
> >
> > same
>
> Does the above only apply to phases other than compile and install?
> (I think that's where the confusion arises, or at least it did for me.)

ROOT is always used in pkg_* functions, not /
-mike
Re: 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 [ In reply to ]
On Sat, 2007-09-22 at 10:29 +0200, Torsten Veller wrote:
> * "William Thomson (wltjr)" <wltjr@gentoo.org>:
> >
> > 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.

I know it's not pretty or ideal, but didn't have to many other ways to
go about it. At least not that I am familiar with or could think of.

> > pkg_postinst() {
> > # Hack to fix ownership/perms
> > chown -fR firebird:firebird /etc/firebird /usr/share/firebird
> > chmod 750 /etc/firebird
> >
>
> ROOT!=/ ?
>
> > pkg_config() {
> > cd /usr/share/firebird
>
> same

What should I be using instead? I see what your talking about wrt to
chroots and etc. Not even sure that's relevant or needed anymore. Was to
correct some past issues and hopefully can be removed ASAP.

The pkg_config part might remain not sure there.

--
William L. Thomson Jr.
Gentoo/Java
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 [ In reply to ]
* "William L. Thomson Jr." <wltjr@gentoo.org>:
> On Sat, 2007-09-22 at 10:29 +0200, Torsten Veller wrote:
> > * "William Thomson (wltjr)" <wltjr@gentoo.org>:
> > >
> > > 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}/../)

--
.: Torsten Veller | :.
--
gentoo-dev@gentoo.org mailing list
Re: 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 [ In reply to ]
On Mon, 2007-09-24 at 14:22 +0200, Torsten Veller wrote:
> * "William L. Thomson Jr." <wltjr@gentoo.org>:
> > On Sat, 2007-09-22 at 10:29 +0200, Torsten Veller wrote:
> > > * "William Thomson (wltjr)" <wltjr@gentoo.org>:
> > > >
> > > > 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
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 [ In reply to ]
Torsten Veller wrote:
>> pkg_postinst() {
>> # Hack to fix ownership/perms
>> chown -fR firebird:firebird /etc/firebird /usr/share/firebird
>> chmod 750 /etc/firebird
>>
>
> ROOT!=/ ?
>
>> pkg_config() {
>> cd /usr/share/firebird
>
> same
>
Does the above only apply to phases other than compile and install?
(I think that's where the confusion arises, or at least it did for me.)


--
gentoo-dev@gentoo.org mailing list
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 [ In reply to ]
William L. Thomson Jr. wrote:
> On Sat, 2007-09-22 at 10:29 +0200, Torsten Veller wrote:
>>> pkg_postinst() {
>>> # Hack to fix ownership/perms
>>> chown -fR firebird:firebird /etc/firebird /usr/share/firebird
>>> chmod 750 /etc/firebird
>>>
>> ROOT!=/ ?
>>
>>> pkg_config() {
>>> cd /usr/share/firebird
>> same
>
> What should I be using instead? I see what your talking about wrt to
> chroots and etc. Not even sure that's relevant or needed anymore. Was to
> correct some past issues and hopefully can be removed ASAP.

Just replace the root / with ${ROOT}. ie:

pkg_postinst() {
# Hack to fix ownership/perms
chown -fR firebird:firebird "${ROOT}"etc/firebird "${ROOT}"usr/share/firebird
chmod 750 "${ROOT}"etc/firebird

pkg_config() {
cd "${ROOT}"usr/share/firebird



--
fonts / wxWindows / gcc-porting / treecleaners
9B81 6C9F E791 83BB 3AB3 5B2D E625 A073 8379 37E8 (0x837937E8)

--
gentoo-dev@gentoo.org mailing list