2007-09-01 Albert Lee <[email protected]>
authortrisk
Sat, 01 Sep 2007 09:57:20 +0000
changeset 437 5c896c782f7a
parent 436 02399029acd3
child 438 e7d7c89edc96
2007-09-01 Albert Lee <[email protected]> * SFEtomboy.spec: Add tomboy-01-solaris.diff * patches/tomboy-01-solaris.diff: Yet another dbus-sharp patch
ChangeLog
SFEtomboy.spec
patches/tomboy-01-solaris.diff
--- a/ChangeLog	Sat Sep 01 09:37:43 2007 +0000
+++ b/ChangeLog	Sat Sep 01 09:57:20 2007 +0000
@@ -1,3 +1,8 @@
+2007-09-01  Albert Lee  <[email protected]>
+
+	* SFEtomboy.spec: Add tomboy-01-solaris.diff
+	* patches/tomboy-01-solaris.diff: Yet another dbus-sharp patch
+
 2007-09-01  Albert Lee  <[email protected]>
 
 	* SFEavahi.spec: Add SFEavahi-sharp (seperate later)
--- a/SFEtomboy.spec	Sat Sep 01 09:37:43 2007 +0000
+++ b/SFEtomboy.spec	Sat Sep 01 09:57:20 2007 +0000
@@ -9,6 +9,7 @@
 Version:      0.6.3
 Summary:      Tomboy - a desktop note-taking application
 Source:       http://download.gnome.org/sources/tomboy/0.6/tomboy-%{version}.tar.gz
+Patch1:       tomboy-01-solaris.diff
 URL:          http://www.gnome.org/projects/tomboy/
 SUNW_BaseDir: %{_basedir}
 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
@@ -47,6 +48,7 @@
 
 %prep
 %setup -q -n tomboy-%{version}
+%patch1 -p1
 
 %build
 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
@@ -194,4 +196,6 @@
 
 %changelog
 * Sat Sep 01 2007 - [email protected]
+- Add tomboy-01-solaris.diff for yet another dbus-sharp patch
+* Sat Sep 01 2007 - [email protected]
 - Initial spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/tomboy-01-solaris.diff	Sat Sep 01 09:57:20 2007 +0000
@@ -0,0 +1,28 @@
+--- tomboy-0.6.3.orig/Tomboy/dbus-sharp/dbus-sharp/src/UnixNativeTransport.cs	2007年  2月 12日 一 15:50:56
++++ tomboy-0.6.3/Tomboy/dbus-sharp/dbus-sharp/src/UnixNativeTransport.cs	2007年  8月 10日 五 17:20:14
+@@ -22,20 +22,20 @@
+ 	{
+ 		public const short AF_UNIX = 1;
+ 		//TODO: SOCK_STREAM is 2 on Solaris
+-		public const short SOCK_STREAM = 1;
++		public const short SOCK_STREAM = 2;
+ 
+ 		//TODO: some of these are provided by libsocket instead of libc on Solaris
+ 
+-		[DllImport ("libc", SetLastError=true)]
++		[DllImport ("libsocket", SetLastError=true)]
+ 			protected static extern int socket (int domain, int type, int protocol);
+ 
+-		[DllImport ("libc", SetLastError=true)]
++		[DllImport ("libsocket", SetLastError=true)]
+ 			protected static extern int connect (int sockfd, byte[] serv_addr, uint addrlen);
+ 
+-		[DllImport ("libc", SetLastError=true)]
++		[DllImport ("libsocket", SetLastError=true)]
+ 			protected static extern int bind (int sockfd, byte[] my_addr, uint addrlen);
+ 
+-		[DllImport ("libc", SetLastError=true)]
++		[DllImport ("libsocket", SetLastError=true)]
+ 			protected static extern int listen (int sockfd, int backlog);
+ 
+ 		//TODO: this prototype is probably wrong, fix it