packages: librhtv/librhtv-fcntl.patch (NEW), librhtv/librhtv-ncurses.patch ...

witekfl witekfl at pld-linux.org
Sat Mar 17 20:48:39 CET 2012


Author: witekfl                      Date: Sat Mar 17 19:48:39 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- not commited files

---- Files affected:
packages/librhtv:
   librhtv-fcntl.patch (NONE -> 1.1)  (NEW), librhtv-ncurses.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/librhtv/librhtv-fcntl.patch
diff -u /dev/null packages/librhtv/librhtv-fcntl.patch:1.1
--- /dev/null	Sat Mar 17 20:48:39 2012
+++ packages/librhtv/librhtv-fcntl.patch	Sat Mar 17 20:48:34 2012
@@ -0,0 +1,29 @@
+--- tvision/classes/x11/x11src.cc.old	2011-05-18 11:59:30.000000000 +0200
++++ tvision/classes/x11/x11src.cc	2011-05-18 12:03:37.000000000 +0200
+@@ -2881,7 +2881,7 @@ TScreen::appHelperHandler TScreenX11::Op
+     h=(helperHandler *)appHelperHandlers->at(hNum);
+ 
+  // Open the remote server
+- int nullH=open("/dev/null",O_WRONLY|O_BINARY|O_CREAT|O_TRUNC,S_IREAD|S_IWRITE);
++ int nullH=open("/dev/null",O_WRONLY|O_BINARY|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR);
+  if (nullH==-1)
+    {
+     appHelperError=5;
+@@ -2924,7 +2924,7 @@ Boolean TScreenX11::CloseHelperApp(appHe
+    }
+ 
+  char buf[80];
+- int nullH=open("/dev/null",O_WRONLY|O_BINARY|O_CREAT|O_TRUNC,S_IREAD|S_IWRITE);
++ int nullH=open("/dev/null",O_WRONLY|O_BINARY|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR);
+  if (nullH==-1)
+    {
+     appHelperError=5;
+@@ -2968,7 +2968,7 @@ Boolean TScreenX11::SendFileToHelper(app
+  int len=160+strlen(file);
+  int page;
+  AllocLocalStr(buf,len);
+- int nullH=open("/dev/null",O_WRONLY|O_BINARY|O_CREAT|O_TRUNC,S_IREAD|S_IWRITE);
++ int nullH=open("/dev/null",O_WRONLY|O_BINARY|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR);
+  if (nullH==-1)
+    {
+     appHelperError=5;

================================================================
Index: packages/librhtv/librhtv-ncurses.patch
diff -u /dev/null packages/librhtv/librhtv-ncurses.patch:1.1
--- /dev/null	Sat Mar 17 20:48:39 2012
+++ packages/librhtv/librhtv-ncurses.patch	Sat Mar 17 20:48:34 2012
@@ -0,0 +1,20 @@
+--- tvision/config.pl.old	2011-05-18 12:17:36.000000000 +0200
++++ tvision/config.pl	2011-05-18 12:19:48.000000000 +0200
+@@ -255,7 +255,7 @@ if ($OS eq 'UNIX')
+    $aux='';
+    $aux.=" -L".$conf{'X11LibPath'}." $libs" if @conf{'HAVE_X11'} eq 'yes';
+    $aux.=' -lgpm' if @conf{'HAVE_GPM'} eq 'yes';
+-   $aux.=(($OSf eq 'QNXRtP') ? ' -lncursesS' : ' -lncurses') unless $conf{'ncurses'} eq 'no';
++   $aux.=(($OSf eq 'QNXRtP') ? ' -lncursesS' : ' -lncursesw -ltinfow') unless $conf{'ncurses'} eq 'no';
+    $aux.=" $stdcxx -lm -lc";
+    $aux.=' -lpthread' if $conf{'HAVE_LINUX_PTHREAD'} eq 'yes';
+    $aux.=' '.$AllegroLibs if ($conf{'HAVE_ALLEGRO'} eq 'yes');
+@@ -870,7 +870,7 @@ sub LookForNCurses
+  # Assume it is -lncurses
+  if ($OSf ne 'QNXRtP')
+  {
+-  $conf{'NameCurses'}='ncurses'
++  $conf{'NameCurses'}='ncursesw'
+  }
+  else
+  {
================================================================


More information about the pld-cvs-commit mailing list