[gentoo-dev] Re: [RFC] Font eclass EAPI update and design
* Tomáš Chvátal scarab...@gentoo.org: # @FUNCTION: font_pkg_setup # @DESCRIPTION: # The font pkg_setup function. # Collision portection and Prefix compat for eapi 3. font_pkg_setup() { # make sure we get no collisions # setup is not the nicest place, but preinst doesn't cut it [[ -e ${FONTDIR}/fonts.cache-1 ]] rm -f ${FONTDIR}/fonts.cache-1 (E)ROOT is missing. # Prefix compat case ${EAPI:-0} in 0|1|2) if ! use prefix; then EPREFIX= ED=${D} EROOT=${ROOT} [[ ${EROOT} = */ ]] || EROOT+=/ fi ;; esac Don't we need this for every eclass using EPREFIX, ED and EROOT independent of EAPI? Can't we move this to prefix.eclass and inherit it? Or is the EPREFIX setting in prefix.eclass already enough?
Re: [gentoo-dev] Re: [RFC] Font eclass EAPI update and design
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dne 2.2.2010 11:18, Torsten Veller napsal(a): * Tomáš Chvátal scarab...@gentoo.org: # @FUNCTION: font_pkg_setup # @DESCRIPTION: # The font pkg_setup function. # Collision portection and Prefix compat for eapi 3. font_pkg_setup() { # make sure we get no collisions # setup is not the nicest place, but preinst doesn't cut it [[ -e ${FONTDIR}/fonts.cache-1 ]] rm -f ${FONTDIR}/fonts.cache-1 (E)ROOT is missing. Good spot. EFixed :] # Prefix compat case ${EAPI:-0} in 0|1|2) if ! use prefix; then EPREFIX= ED=${D} EROOT=${ROOT} [[ ${EROOT} = */ ]] || EROOT+=/ fi ;; esac Don't we need this for every eclass using EPREFIX, ED and EROOT independent of EAPI? Can't we move this to prefix.eclass and inherit it? Or is the EPREFIX setting in prefix.eclass already enough? Actualy dunno, i did it this way because it is the way how other eclass were altered in this matter. Maybe we could add it to base eclass and then via proper inheritance it might work. Or to prefix eclass which would be inherited elsewhere. We would have to ask prefix mages, adding them to CC :] Tomas -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktn/qgACgkQHB6c3gNBRYfwGwCdGqFw9sMuxbd3QxafWjY4i+me y/0AoJAoBg11gyZTBxIp9QyqFrK4c9pa =W3Rf -END PGP SIGNATURE-
Re: [gentoo-dev] Re: [RFC] Font eclass EAPI update and design
On 02-02-2010 11:18:32 +0100, Torsten Veller wrote: # Prefix compat case ${EAPI:-0} in 0|1|2) if ! use prefix; then EPREFIX= ED=${D} EROOT=${ROOT} [[ ${EROOT} = */ ]] || EROOT+=/ fi ;; esac Don't we need this for every eclass using EPREFIX, ED and EROOT independent of EAPI? Can't we move this to prefix.eclass and inherit it? Or is the EPREFIX setting in prefix.eclass already enough? You cannot set EROOT and ED (reliably) from prefix.eclass, unless you wrap them in phase funcs for which ROOT and D are guaranteed to be defined. OIW: The logic can be moved but a simple inherit prefix won't be enough to use EROOT and ED. -- Fabian Groffen Gentoo on a different level
[gentoo-dev] an update script for the gentoo developer
Hello fellow devs, I've created a script to help me keep my tree/overlays up-to-date, automatically regenerate metadata, update eix, etc. It's not anything too sophisticated, but it works for me, so I thought I'd share it with you guys. An updated version of the script is available at my gentoo devspace: http://dev.gentoo.org/~wired/scripts/update ./update -h gives you all available options edit the script to set the defaults to your liking. the script expects the following directory structure: ${DATA_DIR}/ main/ gentoo-x86/ gentoo/ (optional) gentoo-news/ (optional) overlays/ {various overlays} overlays_disabled/ {overlays not used} make.conf autogenerated, holds active overlay list imported in /etc/make.conf ${SCRIPT_OUTPUT} if called with -c, all output goes here the make.conf is sourced in /etc/make.conf and is generated each time the overlays/ folder gets updated. the script is constantly improved and I keep the online version up-to-date. there are some options that diff/fetch the latest version for you automatically. I'll probably add a --sync option soon to make it useful on systems without a CVS checkout. hopefully some of you will find it useful. patches and feedback always welcome :) -- Alex Alexander :: wired Gentoo Developer www.linuxized.com pgp4UPO4oVOmv.pgp Description: PGP signature