Changeset 3516


Ignore:
Timestamp:
Jul 4, 2007, 4:08:15 AM (18 years ago)
Author:
bird
Message:

Some OS/2 hacks and a fix for the simplified Os/2 logging.

Location:
trunk/essentials/sys-apps/prefix-portage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/sys-apps/prefix-portage/kNIX-bootstrap.kmk

    r3503 r3516  
    425425endif
    426426        $(APPEND) $@ 'CXXFLAGS="$${CFLAGS}"'
    427         $(APPEND) $@ 'PORTDIR_OVERLAY="$(PATH_ROOT)/kNIXPortage $(PATH_ROOT)/prefix-overlay"'
     427        $(APPEND) $@ '## @todo Figure why this ain't working while the next works...'
     428        $(APPEND) $@ '#PORTDIR_OVERLAY="$(PATH_ROOT)/kNIXPortage $(PATH_ROOT)/prefix-overlay"'
     429        $(APPEND) $@ 'PORTDIR_OVERLAY="$(PATH_ROOT)/kNIXPortage"'
    428430        $(APPEND) $@ 'GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo http://128.213.5.34/gentoo http://mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo"'
    429431        $(APPEND) $@ 'USE="-nls"'
  • trunk/essentials/sys-apps/prefix-portage/pym/portage/__init__.py

    r3514 r3516  
    23732373                # bird: XXX: pty and termios.tcgetattr doesn't work/exist on OS/2 yet.
    23742374                if sys.platform == "os2knix":
    2375                         pr, pw = os.pipe()
     2375                        (pr, pw) = os.pipe()
    23762376                        fd_pipes.setdefault(0, sys.stdin.fileno())
    23772377                        mypids.extend(portage.process.spawn(('tee', '-i', '-a', logfile),
     
    23802380                        fd_pipes[1] = pw
    23812381                        fd_pipes[2] = pw
     2382                        output_pid = mypids[-1]
     2383                        slave_fd = pw
    23822384                        keywords["fd_pipes"] = fd_pipes
    23832385                else:
  • trunk/essentials/sys-apps/prefix-portage/pym/portage/dbapi/porttree.py

    r3511 r3516  
    131131                try:
    132132                        for mydir in (self.depcachedir,):
     133                                # bird: XXX: doesn't quite work, so skip it for now.
     134                                if sys.platform == "os2knix":
     135                                        continue
    133136                                if ensure_dirs(mydir, gid=portage_gid, mode=dirmode, mask=modemask):
    134137                                        writemsg("Adjusting permissions recursively: '%s'\n" % mydir,
  • trunk/essentials/sys-apps/prefix-portage/pym/portage/news.py

    r3511 r3516  
    123123                if update:
    124124                        self.updateItems(repoid)
    125                
    126125                unreadfile = os.path.join(self.UNREAD_PATH, "news-"+repoid+".unread")
    127126                try:
     
    133132                                       
    134133                                if os.path.exists(unreadfile):
    135                                         unread = open(unreadfile).readlines()
     134                                        # bird: XXX: set file mode or something fails somewhere in readlines.
     135                                        import sys
     136                                        if sys.platform == "os2knix":
     137                                                import errno
     138                                                try:
     139                                                        unread = open(unreadfile, "r+").readlines()
     140                                                except IOError, e:
     141                                                        unread = ""
     142                                                        pass
     143                                        else:
     144                                                unread = open(unreadfile).readlines()
    136145                                        if len(unread):
    137146                                                return len(unread)
Note: See TracChangeset for help on using the changeset viewer.