From projeler-commits at pardus.org.tr Tue Jan 1 18:49:55 2008
From: projeler-commits at pardus.org.tr (projeler-commits at pardus.org.tr)
Date: Tue, 1 Jan 2008 18:49:55 +0200 (EET)
Subject: [Projeler-commits] r449 - in PSP: gcc-psp pspsdk pspsdk-headers
pspsdk-headers/files pspsdk/files
Message-ID: <20080101164955.A5E9A7C0358@liste.uludag.org.tr>
Author: caglar
Date: Tue Jan 1 18:49:55 2008
New Revision: 449
Added:
PSP/pspsdk-headers/files/
PSP/pspsdk-headers/files/2350:2351.patch
PSP/pspsdk/files/
PSP/pspsdk/files/2350:2351.patch
Modified:
PSP/gcc-psp/actions.py
PSP/gcc-psp/pspec.xml
PSP/pspsdk-headers/pspec.xml
PSP/pspsdk/pspec.xml
Log:
heta olmuş...
Modified: PSP/gcc-psp/actions.py
=================================================================
--- PSP/gcc-psp/actions.py (original)
+++ PSP/gcc-psp/actions.py Tue Jan 1 18:49:55 2008
@@ -29,17 +29,17 @@
shelltools.system("%s/%s/configure --prefix=/opt/psp --target=psp --enable-languages=\"c,c++\" --with-newlib --enable-cxx-flags=\"-G0\"" % (get.workDIR(), WorkDir))
else:
shelltools.system("%s/%s/configure --prefix=/opt/psp --target=psp --enable-languages=\"c\" --with-newlib --without-headers --disable-libssp" % (get.workDIR(), WorkDir))
-
+
def build():
unset()
shelltools.cd("%s/build-psp/" % get.workDIR())
if get.ENV("BOOTSTRAP") is None:
- autotools.make()
- else:
autotools.make("CFLAGS_FOR_TARGET=\"-G0\"")
-
+ else:
+ autotools.make()
+
def install():
shelltools.cd("%s/build-psp/" % get.workDIR())
Modified: PSP/gcc-psp/pspec.xml
=================================================================
--- PSP/gcc-psp/pspec.xml (original)
+++ PSP/gcc-psp/pspec.xml Tue Jan 1 18:49:55 2008
@@ -20,6 +20,7 @@
zlib
ncurses
texinfo
+ mpfr
gettext
Modified: PSP/pspsdk-headers/pspec.xml
=================================================================
--- PSP/pspsdk-headers/pspec.xml (original)
+++ PSP/pspsdk-headers/pspec.xml Tue Jan 1 18:49:55 2008
@@ -16,6 +16,9 @@
gcc-psp
+
+ 2350:2351.patch
+
Modified: PSP/pspsdk/pspec.xml
=================================================================
--- PSP/pspsdk/pspec.xml (original)
+++ PSP/pspsdk/pspec.xml Tue Jan 1 18:49:55 2008
@@ -20,6 +20,9 @@
newlib-psp
doxygen
+
+ 2350:2351.patch
+
From projeler-commits at pardus.org.tr Thu Jan 3 16:34:18 2008
From: projeler-commits at pardus.org.tr (projeler-commits at pardus.org.tr)
Date: Thu, 3 Jan 2008 16:34:18 +0200 (EET)
Subject: [Projeler-commits] r450 - in PyWireless: . PyWireless
Message-ID: <20080103143418.8899E86406E@liste.uludag.org.tr>
Author: caglar
Date: Thu Jan 3 16:34:18 2008
New Revision: 450
Modified:
PyWireless/PyWireless/comarInterface.py
PyWireless/_PyWireless.py
Log:
try to use new comar
Modified: PyWireless/PyWireless/comarInterface.py
=================================================================
--- PyWireless/PyWireless/comarInterface.py (original)
+++ PyWireless/PyWireless/comarInterface.py Thu Jan 3 16:34:18 2008
@@ -18,41 +18,55 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
''' COMAR modules '''
+
import comar
+import os
+import dbus
class comarInterface:
- def __init__(self):
+ def __init__(self, winId):
''' initialize comar link '''
- self.link = comar.Link()
-
+ self.winId = winId
+ try:
+ bus = dbus.SystemBus()
+ obj = bus.get_object("tr.org.pardus.comar", "/package/wireless_tools", introspect=False)
+ self.link = dbus.Interface(obj, dbus_interface="tr.org.pardus.comar.Net.Link")
+ except dbus.DBusException:
+ pass
+
+ def obtainAuth(self, action):
+ import sys
+ bus = dbus.SessionBus()
+ obj = bus.get_object("org.gnome.PolicyKit", "/")
+ iface = dbus.Interface(obj, "org.freedesktop.PolicyKit.AuthenticationAgent")
+ return iface.ObtainAuthorization(action, self.winId, os.getpid())
+
def listConnections(self):
''' list all wireless connections '''
- self.link.call_package('Net.Link.connections', 'wireless-tools')
- return self.link.read_cmd()[2].split('\n')
-
+ return self.link.connections()
+
def isActive(self, connection):
''' is this active one? '''
- self.link.call_package('Net.Link.getState', 'wireless-tools', [ 'name', connection ])
- status = self.link.read_cmd()[2].split('\n')
- if status[1] == 'up':
- return True
- else:
- return False
-
+ return (self.link.connectionInfo(str(connection))["state"] == 'up')
+
def activeConnection(self):
''' what is active connection? '''
for connection in self.listConnections():
- self.link.call_package('Net.Link.getState', 'wireless-tools', [ 'name', connection ])
- status = self.link.read_cmd()[2].split('\n')
- if status[1] == 'up':
- return status[0]
-
+ if self.link.connectionInfo(str(connection))["state"] == 'up':
+ return connection
+
def activateConnection(self, connection):
''' activate given connection '''
- self.link.call_package("Net.Link.setState", "wireless-tools", [ "name", connection, "state", "up" ])
- self.link.read_cmd()
+ try:
+ self.link.setState(str(connection), "up")
+ except:
+ self.obtainAuth("tr.org.pardus.comar.net.link.set")
+ self.link.setState(str(connection), "up")
def deactivateConnection(self, connection):
''' deactivate given connection '''
- self.link.call_package("Net.Link.setState", "wireless-tools", [ "name", connection, "state", "down" ])
- self.link.read_cmd()
+ try:
+ self.link.setState(str(connection), "down")
+ except:
+ self.obtainAuth("tr.org.pardus.comar.net.link.set")
+ self.link.setState(str(connection), "down")
Modified: PyWireless/_PyWireless.py
=================================================================
--- PyWireless/_PyWireless.py (original)
+++ PyWireless/_PyWireless.py Thu Jan 3 16:34:18 2008
@@ -35,12 +35,14 @@
from PyWireless.dcopInterface import *
from PyWireless.comarInterface import *
+import dbus.mainloop.qt3
+
class SystemTray(KSystemTray):
def __init__(self, *args):
apply(KSystemTray.__init__, (self,) + args)
''' comarInterface instance '''
- self.comarInterface = comarInterface()
+ self.comarInterface = comarInterface(self.winId())
''' wirelessInterface instance '''
self.wirelessInterface = wirelessInterface()
@@ -61,7 +63,7 @@
self.connect(self.time, SIGNAL('timeout()'), self.timeoutSlot)
self.time.start(3000)
- self.connect(app, SIGNAL("shutDown()", self.slotQuit))
+ self.connect(app, SIGNAL("shutDown()"), self.slotQuit)
''' Popup Menu '''
connectionsMenu = KPopupMenu(self.contextMenu())
@@ -193,6 +195,8 @@
app = KUniqueApplication(True, True, True)
trayWindow = SystemTray(None, appName)
+ dbus.mainloop.qt3.DBusQtMainLoop(set_as_default=True)
+
app.setMainWidget(trayWindow)
''' Enter main loop '''
From projeler-commits at pardus.org.tr Thu Jan 10 16:32:28 2008
From: projeler-commits at pardus.org.tr (projeler-commits at pardus.org.tr)
Date: Thu, 10 Jan 2008 16:32:28 +0200 (EET)
Subject: [Projeler-commits] r451 - PSP/newlib-psp/files
Message-ID: <20080110143228.55BA67C03E2@liste.uludag.org.tr>
Author: caglar
Date: Thu Jan 10 16:32:28 2008
New Revision: 451
Modified:
PSP/newlib-psp/files/newlib-1.15.0-PSP.patch
Log:
ignore
Modified: PSP/newlib-psp/files/newlib-1.15.0-PSP.patch
=================================================================
--- PSP/newlib-psp/files/newlib-1.15.0-PSP.patch (original)
+++ PSP/newlib-psp/files/newlib-1.15.0-PSP.patch Thu Jan 10 16:32:28 2008
@@ -41,6 +41,15 @@
mips*-*-*)
noconfigdirs="$noconfigdirs gprof ${libgcj}"
;;
+@@ -3685,7 +3688,7 @@
+ # For an installed makeinfo, we require it to be from texinfo 4.4 or
+ # higher, else we use the "missing" dummy.
+ if ${MAKEINFO} --version \
+- | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
++ | egrep 'texinfo[^0-9]*([1-9][0-9]|4\.([4-9]|[1-9][0-9])|[5-9])' >/dev/null 2>&1; then
+ :
+ else
+ MAKEINFO="$MISSING makeinfo"
diff -burN newlib-1.15.0/configure.in newlib-psp/configure.in
--- newlib-1.15.0/configure.in 2006-12-12 01:38:04.000000000 +0000
+++ newlib-psp/configure.in 2007-09-30 17:47:32.000000000 +0100
@@ -54,6 +63,15 @@
mips*-*-*)
noconfigdirs="$noconfigdirs gprof ${libgcj}"
;;
+@@ -2234,7 +2237,7 @@
+ # For an installed makeinfo, we require it to be from texinfo 4.4 or
+ # higher, else we use the "missing" dummy.
+ if ${MAKEINFO} --version \
+- | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
++ | egrep 'texinfo[^0-9]*([1-9][0-9]|4\.([4-9]|[1-9][0-9])|[5-9])' >/dev/null 2>&1; then
+ :
+ else
+ MAKEINFO="$MISSING makeinfo"
diff -burN newlib-1.15.0/newlib/Makefile.am newlib-psp/newlib/Makefile.am
--- newlib-1.15.0/newlib/Makefile.am 2006-06-05 18:42:57.000000000 +0100
+++ newlib-psp/newlib/Makefile.am 2007-09-30 17:47:32.000000000 +0100