Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-osx
Navigation:
Lists: gentoo-osx: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-osx@g.o
From: "m h" <sesquile@...>
Subject: [PREFIX] Portage eating variables?
Date: Tue, 25 Jul 2006 16:48:46 -0600
Has anyone else noticed that some variables disappear into the ether
under PREFIX?  One example is ebuilds that inherit webapp.eclass,
we've had to add an extra "webapp_read_config" to the
webapp_src_preinst function, otherwise the variables aren't set...
ie:

function webapp_src_preinst ()
{
        # create the directories that we need

        dodir "${MY_HTDOCSDIR}"
        dodir "${MY_HOSTROOTDIR}"
        dodir "${MY_CGIBINDIR}"
        dodir "${MY_ICONSDIR}"
        dodir "${MY_ERRORSDIR}"
        dodir "${MY_SQLSCRIPTSDIR}"
        dodir "${MY_HOOKSCRIPTSDIR}"
        dodir "${MY_SERVERCONFIGDIR}"
}

has to be changed to:
function webapp_src_preinst ()
{
    # =-=  for some reason, we need to re-source variables
        webapp_read_config

        # create the directories that we need

        dodir "${MY_HTDOCSDIR}"
        dodir "${MY_HOSTROOTDIR}"
        dodir "${MY_CGIBINDIR}"
        dodir "${MY_ICONSDIR}"
        dodir "${MY_ERRORSDIR}"
        dodir "${MY_SQLSCRIPTSDIR}"
        dodir "${MY_HOOKSCRIPTSDIR}"
        dodir "${MY_SERVERCONFIGDIR}"
}
-- 
gentoo-osx@g.o mailing list


Navigation:
Lists: gentoo-osx: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
some portage-prefix patches
Next by thread:
Intel Mac development
Previous by date:
Re: some portage-prefix patches
Next by date:
Intel Mac development


Updated Jun 17, 2009

Summary: Archive of the gentoo-osx mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.