Merged from trunk 10692:10696
authorFabian Groffen <grobian@gentoo.org>
Tue, 17 Jun 2008 18:49:17 +0000 (18:49 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 17 Jun 2008 18:49:17 +0000 (18:49 -0000)
   | 10693  | Do not preserve the master link of a library to avoid         |
   | genone | packages being linked against preserved libs on rebuilds      |

   | 10694  | Remove eblank nonsense                                        |
   | genone |                                                               |

   | 10695  | Remove eblank nonsense                                        |
   | genone |                                                               |

   | 10696  | remove stray line                                             |
   | genone |                                                               |

svn path=/main/branches/prefix/; revision=10697

bin/isolated-functions.sh
cnf/make.globals
pym/portage/dbapi/vartree.py
pym/portage/elog/messages.py
pym/portage/elog/mod_echo.py
pym/portage/output.py

index 2df4a8d03e12ee4ab6a5975322e352bd28b975ab..b0a6d114ecd31c765c6ae5a289f8a72e214121c4 100755 (executable)
@@ -168,7 +168,7 @@ elog_base() {
        local messagetype
        [ -z "${1}" -o -z "${T}" -o ! -d "${T}/logging" ] && return 1
        case "${1}" in
-               BLANK|INFO|WARN|ERROR|LOG|QA)
+               INFO|WARN|ERROR|LOG|QA)
                        messagetype="${1}"
                        shift
                        ;;
@@ -181,15 +181,6 @@ elog_base() {
        return 0
 }
 
-eblank() {
-       [[ ${LAST_E_CMD} == "eblank" ]] && return 0
-       elog_base BLANK
-       [[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
-       echo -e " ${BLANK}*${NORMAL}"
-       LAST_E_CMD="eblank"
-       return 0
-}
-
 eqawarn() {
        elog_base QA "$*"
        [[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
index cc9f4a01b88489ca68a3e73fb51e5c8a495984f1..e5e949adcf29bf327edb7c514029a28b6cf0e192 100644 (file)
@@ -91,7 +91,7 @@ DEFAULT_PATH="@DEFAULT_PATH@"
 PORTAGE_WORKDIR_MODE="0700"
 
 # Some defaults for elog
-PORTAGE_ELOG_CLASSES="blank log warn error"
+PORTAGE_ELOG_CLASSES="log warn error"
 PORTAGE_ELOG_SYSTEM="save_summary echo"
 
 PORTAGE_ELOG_MAILURI="@rootuser@"
index 24c2522ed85330664259a9f88c44740ae745ecb8..5279b8d810436c82a56389d52405b63f7ca67ede 100644 (file)
@@ -180,6 +180,15 @@ class LinkageMap(object):
                self._libs = libs
                self._obj_properties = obj_properties
 
+       def isMasterLink(self, obj):
+               basename = os.path.basename(obj)
+               if obj not in self._obj_properties:
+                       obj = os.path.realpath(obj)
+                       if obj not in self._obj_properties:
+                               raise KeyError("%s not in object list" % obj)
+               soname = self._obj_properties[obj][3]
+               return (len(basename) < len(soname))
+               
        def listLibraryObjects(self):
                rValue = []
                if not self._libs:
@@ -2116,6 +2125,9 @@ class dblink(object):
                        if not has_external_consumers(lib, old_contents, candidates):
                                candidates.remove(lib)
                                continue
+                       if linkmap.isMasterLink(lib):
+                               candidates.remove(lib)
+                               continue
                        # only preserve the lib if there is no other copy to use for each consumer
                        keep = False
                        for c in linkmap.findConsumers(lib):
index 3bf1fb1bbdb58827a388b82f2110758202f6ae9a..2daacd1031bc52adfe2ea0286c0798f476fbee48 100644 (file)
@@ -43,8 +43,10 @@ def collect_ebuild_messages(path):
                                writemsg("!!! malformed entry in " + \
                                        "log file: '%s'\n" % filename, noiselevel=-1)
                                continue
+
                        if lastmsgtype is None:
                                lastmsgtype = msgtype
+                       
                        if msgtype == lastmsgtype:
                                msgcontent.append(msg)
                        else:
index 1c83600a45e80b59fb36599afd38660b6e2fcba8..30d88f005067224f973864f68af17a8231bd7747 100644 (file)
@@ -33,8 +33,7 @@ def finalize(mysettings=None):
                                                "WARN": printer.ewarn,
                                                "ERROR": printer.eerror,
                                                "LOG": printer.einfo,
-                                               "QA": printer.ewarn,
-                                               "BLANK": printer.eblank}
+                                               "QA": printer.ewarn}
                                if isinstance(msgcontent, basestring):
                                        msgcontent = [msgcontent]
                                for line in msgcontent:
index 4d0ab42ec9716c5e545e639fdb954c082e12b9d9..482747e35ecebb9fcb70ac48c857517873327c01 100644 (file)
@@ -544,20 +544,6 @@ class EOutput(object):
                        sys.stdout.flush()
                self.__last_e_cmd = "ewarn"
 
-       def eblank(self, msg):
-               """
-               Shows a blank line. Consecutive eblank calls are all collapsed
-               into a single blank line.
-               """
-               if self.__last_e_cmd == "eblank":
-                       return
-               if not self.quiet:
-                       if self.__last_e_cmd == "ebegin":
-                               sys.stdout.write("\n")
-                       sys.stdout.write(colorize("BLANK", " * ") + "\n")
-                       sys.stdout.flush()
-               self.__last_e_cmd = "eblank"
-
        def ewend(self, errno, *msg):
                """
                Indicates the completion of a process, optionally displaying a message