diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2005-05-11 21:36:02 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2005-05-11 21:36:02 +0000 |
commit | 4c5027cdf42e5653c2106619cfd2bb692369d3b1 (patch) | |
tree | dbbf180cb4f334e457f000a2c711762619e75192 /dev-lang | |
parent | Removed gtk USE flag (diff) | |
download | gentoo-2-4c5027cdf42e5653c2106619cfd2bb692369d3b1.tar.gz gentoo-2-4c5027cdf42e5653c2106619cfd2bb692369d3b1.tar.bz2 gentoo-2-4c5027cdf42e5653c2106619cfd2bb692369d3b1.zip |
Changes to ghc-updater, to make it a bit more useful for the update to ghc-6.4.
(Portage version: 2.0.51.21)
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/ghc/ChangeLog | 5 | ||||
-rwxr-xr-x | dev-lang/ghc/files/ghc-updater | 37 |
2 files changed, 32 insertions, 10 deletions
diff --git a/dev-lang/ghc/ChangeLog b/dev-lang/ghc/ChangeLog index 08279fd15362..7a14d77c8bcf 100644 --- a/dev-lang/ghc/ChangeLog +++ b/dev-lang/ghc/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-lang/ghc # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc/ChangeLog,v 1.58 2005/05/09 16:00:09 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc/ChangeLog,v 1.59 2005/05/11 21:36:02 kosmikus Exp $ + + 11 May 2005; Andres Loeh <kosmikus@gentoo.org> files/ghc-updater: + Changes to ghc-updater, to make it a bit more useful for the update to ghc-6.4. 09 May 2005; Markus Rothe <corsair@gentoo.org> +files/ghc-6.4-powerpc.patch, ghc-6.4.ebuild: diff --git a/dev-lang/ghc/files/ghc-updater b/dev-lang/ghc/files/ghc-updater index c2111b476f02..a1bd116ef8f5 100755 --- a/dev-lang/ghc/files/ghc-updater +++ b/dev-lang/ghc/files/ghc-updater @@ -178,19 +178,24 @@ eloginfo "Calculating Upgrade Package List .." PKGS_OK="" PKGS_MASKED="" +PKGS_BLOCKED="" PKGS_MISSING="" MASKED_STRING="been masked" +BLOCKED_STRING="is blocking" MISSING_STRING="there are no masked or unmasked ebuilds to satisfy" for pkg in ${PKGS_TO_REMERGE}; do - emerge_output="$(emerge -p \~$pkg 2>&1)" + emerge_output="$(emerge -p '>='$pkg 2>&1)" if $(echo "${emerge_output}" | grep "${MASKED_STRING}" > /dev/null); then PKGS_MASKED="${PKGS_MASKED} $pkg" - elogecho "$pkg is masked" + elogecho ">=$pkg is masked" + elif $(echo "${emerge_output}" | grep "${BLOCKED_STRING}" > /dev/null); then + PKGS_BLOCKED="${PKGS_BLOCKED} $pkg" + elogecho ">=$pkg is blocked" elif $(echo "${emerge_output}" | grep "${MISSING_STRING}" > /dev/null); then PKGS_MISSING="${PKGS_MISSING} $pkg" - elogecho "$pkg is missing from portage" + elogecho ">=$pkg is missing from portage" else PKGS_OK="${PKGS_OK} $pkg" PKGS_COUNT_REMERGE=$((PKGS_COUNT_REMERGE + 1)) @@ -207,7 +212,7 @@ PKGS_OK_SORTED="$(${PORTAGE_PYTHON} ${PORTDIR}/dev-lang/python/files/depreorder. eloginfo "Preparing to merge these packages in this order:" for pkg in $PKGS_OK_SORTED; do - elogecho "$pkg" + elogecho ">=$pkg" done # we emerge each package seperately to ensure we know exactly which ones might @@ -218,7 +223,7 @@ PKGS_FAILED="" if [ "${PRETEND}" != "1" ]; then for pkg in ${PKGS_OK_SORTED}; do eloginfo "Starting to merge ($COUNT/$PKGS_COUNT_REMERGE) $pkg .." - if ! emerge --oneshot --nodeps \~$pkg; then + if ! emerge --oneshot --nodeps '>='$pkg; then PKGS_FAILED="${PKGS_FAILED} $pkg" elogerr "Failed merging $pkg ($COUNT/$PKGS_COUNT_REMERGE)!" fi @@ -228,11 +233,13 @@ fi # final output stuff OUTPUT_PKGS_MASKED="" -for pkg in ${PKGS_MASKED}; do OUTPUT_PKGS_MASKED="${OUTPUT_PKGS_MASKED} \~$pkg"; done +for pkg in ${PKGS_MASKED}; do OUTPUT_PKGS_MASKED="${OUTPUT_PKGS_MASKED} '>='$pkg"; done +OUTPUT_PKGS_BLOCKED="" +for pkg in ${PKGS_BLOCKED}; do OUTPUT_PKGS_BLOCKED="${OUTPUT_PKGS_BLOCKED} $pkg"; done OUTPUT_PKGS_MISSING="" for pkg in ${PKGS_MISSING}; do OUTPUT_PKGS_MISSING="${OUTPUT_PKGS_MISSING} $pkg"; done OUTPUT_PKGS_FAILED="" -for pkg in ${PKGS_FAILED}; do OUTPUT_PKGS_FAILED="${OUTPUT_PKGS_FAILED} \~$pkg"; done +for pkg in ${PKGS_FAILED}; do OUTPUT_PKGS_FAILED="${OUTPUT_PKGS_FAILED} '>='$pkg"; done if [ -n "${PKGS_FAILED}" -o -n "${PKGS_MISSING}" -o -n "${PKGS_MASKED}" ]; then echo @@ -250,12 +257,24 @@ if [ -n "${PKGS_FAILED}" -o -n "${PKGS_MISSING}" -o -n "${PKGS_MASKED}" ]; then ewarn " emerge -p ${OUTPUT_PKGS_MASKED}" echo fi + if [ -n "${OUTPUT_PKGS_BLOCKED}" ]; then + echo + ewarn " Blocked Packages:" + ewarn " -----------------" + ewarn " These packages are currently blocked; they might not yet" + ewarn " be compatible with the current ghc. You can run ghc-updater" + ewarn " again at a later time." + echo + for x in ${OUTPUT_PKGS_BLOCKED}; do + echo " ${x}" + done + fi if [ -n "${OUTPUT_PKGS_MISSING}" ]; then echo ewarn " Missing Packages:" ewarn " -----------------" - ewarn " These packages need to be updated because their versions do" - ewarn " not exist in portage anymore." + ewarn " These packages cannot be updated because they do not exist" + ewarn " in portage anymore." echo for x in ${OUTPUT_PKGS_MISSING}; do echo " ${x}" |