diff options
-rwxr-xr-x | devel/python/DEPENDS | 29 | ||||
-rw-r--r-- | devel/python/HISTORY | 4 | ||||
-rwxr-xr-x | devel/python/INSTALL | 2 | ||||
-rwxr-xr-x | devel/python/PRE_SUB_DEPENDS | 3 | ||||
-rwxr-xr-x | devel/python/SUB_DEPENDS | 4 | ||||
-rwxr-xr-x | devel/python/UP_TRIGGERS | 32 | ||||
-rw-r--r--[-rwxr-xr-x] | devel/python/volatiles | 0 |
7 files changed, 43 insertions, 31 deletions
diff --git a/devel/python/DEPENDS b/devel/python/DEPENDS index d008b03222..4b5bcd9dc7 100755 --- a/devel/python/DEPENDS +++ b/devel/python/DEPENDS @@ -1,5 +1,24 @@ -optional_depends db "" "" "Sleepycat db support" && -optional_depends sqlite "" "" "SQLite db support" && -optional_depends tk "" "" "for Tk support" && -optional_depends expat "" "" "for XML parser module" && -optional_depends g++ "" "--with-cxx=no" "for c++ module support" +optional_depends db \ + "" \ + "" \ + "Sleepycat db support" && + +optional_depends sqlite \ + "" \ + "" \ + "sqlite db support"&& + +optional_depends tk \ + "" \ + "" \ + "for tk support" && + +optional_depends expat \ + "" \ + "" \ + "for an xml parser module" && + +optional_depends g++ \ + "" \ + "--with-cxx=no" \ + "for c++ module support" diff --git a/devel/python/HISTORY b/devel/python/HISTORY index ed828b5bc6..791e13b538 100644 --- a/devel/python/HISTORY +++ b/devel/python/HISTORY @@ -1,8 +1,4 @@ 2007-12-26 Vlad Glagolev <stealth@sourcemage.org> - * DETAILS: fixed the huge bug in spell, now python's recasting won't - include all files from the pythonic modules/apps in site-packages: - we MUST dispell every python-based spell on recasting python, and - every python-based module/app MUST be recompiled -- only by its setup * INSTALL: added gettext tools 2007-06-03 Treeve Jelbert <treeve@sourcemage.org> diff --git a/devel/python/INSTALL b/devel/python/INSTALL index 0ff45cf327..261f742452 100755 --- a/devel/python/INSTALL +++ b/devel/python/INSTALL @@ -1,4 +1,4 @@ -default_install && +default_install && if [ -f $SOURCE_DIRECTORY/spell-tmp/pydcop.py ]; then mv $SOURCE_DIRECTORY/spell-tmp/pydcop.py \ diff --git a/devel/python/PRE_SUB_DEPENDS b/devel/python/PRE_SUB_DEPENDS index 03059f4db8..47f7444a49 100755 --- a/devel/python/PRE_SUB_DEPENDS +++ b/devel/python/PRE_SUB_DEPENDS @@ -1,5 +1,4 @@ case $THIS_SUB_DEPENDS in - expat) if is_depends_enabled $SPELL expat; then return 0; fi;; +expat) if is_depends_enabled $SPELL expat; then return 0; fi;; esac - return 1 diff --git a/devel/python/SUB_DEPENDS b/devel/python/SUB_DEPENDS index c85dbd5afe..7c283e1abc 100755 --- a/devel/python/SUB_DEPENDS +++ b/devel/python/SUB_DEPENDS @@ -1,4 +1,4 @@ case $THIS_SUB_DEPENDS in - expat) echo "xml parser module requested, forcing them."; depends expat;; - *) echo "unknown sub-depends!"; return 1;; + expat) echo "xml parser module requested, forcing them."; depends expat;; + *) echo "unknown sub-depends!"; return 1;; esac diff --git a/devel/python/UP_TRIGGERS b/devel/python/UP_TRIGGERS index 90c2dfacff..0a6deb76ef 100755 --- a/devel/python/UP_TRIGGERS +++ b/devel/python/UP_TRIGGERS @@ -1,25 +1,23 @@ # up_trigger everything on minor version updates -# dispel every spell before casting python again local OLD_SPELL_VERSION -if spell_ok $SPELL; then +if spell_ok $SPELL; then OLD_SPELL_VERSION="$(installed_version $SPELL)" + # Test the second number of the version ie 4 in 2.4.3 if test "${VERSION:2:1}" != "${OLD_SPELL_VERSION:2:1}"; then message "This is a possibly incompatible update of python..." - fi - message "Figuring out what spells need to be recast, this may take a while." - for each in $(show_up_depends $SPELL); do - # Check in the install logs if python packages has been installed - if gaze install $each | grep -q "$TRACK_ROOT/usr/lib/python${OLD_SPELL_VERSION:0:3}/site-packages"; then - up_trigger $each cast_self - dispel --notriggers $each - else - # Check if the binaries link against libpython.so - if gaze install $each | xargs readelf -d 2> /dev/null | - grep -q "NEEDED.*libpython${OLD_SPELL_VERSION:0:3}"; then - up_trigger $each cast_self - dispel --notriggers $each + message "Figuring out what spells need to be recast, this may take a while." + for each in $(show_up_depends $SPELL); do + # Check in the install logs if python packages has been installed + if gaze install $each | grep -q "$TRACK_ROOT/usr/lib/python${OLD_SPELL_VERSION:0:3}/site-packages"; then + up_trigger $each cast_self + else + # Check if the binaries link against libpython.so + if gaze install $each | xargs readelf -d 2> /dev/null | + grep -q "NEEDED.*libpython${OLD_SPELL_VERSION:0:3}"; then + up_trigger $each cast_self + fi fi - fi - done + done + fi fi diff --git a/devel/python/volatiles b/devel/python/volatiles index c4f7a3c4f2..c4f7a3c4f2 100755..100644 --- a/devel/python/volatiles +++ b/devel/python/volatiles |