Jon Trulson | 24 May 2013 21:10
Favicon
Gravatar

Upcoming release


Hi, we are planning another release to occur next Thursday, May 30th.

We are going to be bold and call it a beta.  :)

I have a patch for basic Xinerama support to add.

Also, I will be committing a patch enabling tirpc for all Linux
builds.

This should avoid the need to run rpcbind in insecure mode - but I
don't know whether all linuxen support this yet.  I guess we will find
out.  You will need to install (on debian and derivatives) the
libtirpc-dev package.

If anyone has any other patches they'd like to see in the beta, feel
free to post them.

--

-- 
Jon Trulson

   "I was not genomed to alter reality."
       - Sonmi 451

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
(Continue reading)

Isaac Dunham | 4 May 2013 20:09

Re: Crash in ttsession starting CDE on Ubuntu 12.04

On Fri, 26 Apr 2013 12:48:36 +0000
cdesktopenv-devel-request@... wrote:

> 
> On Fri, 26 Apr 2013 11:52:34 +0000, Marcin Cieslak wrote:
> > On Wed, 10 Apr 2013, Isaac Dunham wrote:
> > 
> > > On Tue, 09 Apr 2013 12:36:19 +0000
> > > 
> > I suppose that's the real problem here:
> > 
> > > > *** buffer overflow detected ***: /usr/dt/bin/ttsession terminated
> > 
> > Running some kind of automatic stack protection stuff?
> 
> Yes, this message is from GCC's ProPolice, enabled by default on Ubuntu.
> However, it's also on by default on OpenBSD, and I've never seen it
> crash this way.  It would be interesting to get a backtrace to see which
> function triggers the stack overflow.  You can just run ttsession on its
> own for this.

My own guess was that it failed to handle the missing fonts, which crashed it.

--

-- 
Isaac Dunham <ibid_ag@...>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
(Continue reading)

alessandro basili | 15 Apr 2013 08:16
Picon
Picon

building cde on debian squeeze

Dear all,

I have a debian/squeeze-64bit running on a VM (vbox 4.2.4r81684)

I have built the whole package following the wiki:

http://sourceforge.net/p/cdesktopenv/wiki/LinuxBuild/

and this blog:

http://andarazoroflove.org/cde-linux-install-step-by-step-on-debian-squeeze-32bit/

I manage to start dtcalc and I followed istructions to install and run
it as a single user.

Unfortunately when I execute /usr/dt/bin/Xsession as suggested for
single user's instructions I get the startup screen with a terminal
superimposed and nothing else. The hourglass is shown, but nothing happens.

This is my /var/dt/Xerrors where a segfault is shown (together with some
errors):

> X.Org X Server 1.7.7
> Release Date: 2010-05-04
> X Protocol Version 11, Revision 0
> Build Operating System: Linux 3.0.0-1-amd64 x86_64 Debian
> Current Operating System: Linux pcalb 2.6.32-5-amd64 #1 SMP Mon Feb 25 00:26:11 
> UTC 2013 x86_64
> Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-amd64 root=UUID=571dc00b-
> 4cf8-4478-a7b3-ae194e26fa7d ro quiet
(Continue reading)

Isaac Dunham | 10 Apr 2013 09:03

Re: Crash in ttsession starting CDE on Ubuntu 12.04

On Tue, 09 Apr 2013 12:36:19 +0000
cdesktopenv-devel-request@... wrote:

> Any idea?
> More information needed?
> 
> Regards,
> 
> Armin
> 
> Snippet from startlog:
> 
> --- Tue Apr  9 14:28:23 CEST 2013
> --- /usr/dt/bin/Xsession starting...
> --- Xsession started by startxsession.s
> --- setting font path...
> /usr/bin/xset:  bad font path element (#87), possible causes are:
>     Directory does not exist or has wrong permissions
>     Directory missing fonts.dir
>     Incorrect font server address or syntax
<snip>
> /usr/dt/bin/dthello: display :1108 doesn't know font -dt-interface system-medium-r-normal-xl*-*-*-*-*-*-*-*-*
> *** buffer overflow detected ***: /usr/dt/bin/ttsession terminated
> ======= Backtrace: =========
> [...]

There's your problem...Run:
find /usr/dt/ -name fonts.dir
#output should include: /usr/dt/config/xfonts/C/fonts.dir
If that's good, run 
(Continue reading)

Armin Pies | 9 Apr 2013 14:36
Favicon

Crash in ttsession starting CDE on Ubuntu 12.04

Any idea?

More information needed?

 

Regards,

 

Armin

 

Snippet from startlog:

 

--- Tue Apr  9 14:28:23 CEST 2013

--- /usr/dt/bin/Xsession starting...

--- Xsession started by startxsession.s

--- setting font path...

/usr/bin/xset:  bad font path element (#87), possible causes are:

    Directory does not exist or has wrong permissions

    Directory missing fonts.dir

    Incorrect font server address or syntax

--- sourcing /home/pies02/.dtprofile...

--- sourcing /usr/dt/config/Xsession.d/0010.dtpaths...

--- sourcing /usr/dt/config/Xsession.d/0020.dtims...

--- sourcing /usr/dt/config/Xsession.d/0030.dttmpdir...

--- sourcing /usr/dt/config/Xsession.d/0060.dtsysenv...

--- starting /usr/dt/bin/dthello -file /usr/dt/copyright &

--- starting /usr/dt/bin/dtsearchpath -ksh

--- starting /usr/dt/bin/dtappgather &

--- execing /usr/dt/bin/dtsession ...

not execing /home/pies02/.profile (see /home/pies02/.dtprofile)

/usr/dt/bin/dthello: display :1108 doesn't know font -dt-interface system-medium-r-normal-xl*-*-*-*-*-*-*-*-*

*** buffer overflow detected ***: /usr/dt/bin/ttsession terminated

======= Backtrace: =========

/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fe85e961817]

/lib/x86_64-linux-gnu/libc.so.6(+0x109710)[0x7fe85e960710]

/lib/x86_64-linux-gnu/libc.so.6(+0x10a7ce)[0x7fe85e9617ce]

/usr/dt/bin/ttsession[0x421740]

/usr/dt/bin/ttsession[0x41695e]

/usr/dt/bin/ttsession[0x4114d7]

/usr/dt/bin/ttsession[0x40a47d]

/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fe85e87876d]

/usr/dt/bin/ttsession[0x40abf9]

======= Memory map: ========

00400000-0042f000 r-xp 00000000 08:01 8782773                            /usr/dt/bin/ttsession

0062e000-0062f000 r--p 0002e000 08:01 8782773                            /usr/dt/bin/ttsession

0062f000-00630000 rw-p 0002f000 08:01 8782773                            /usr/dt/bin/ttsession

00630000-00631000 rw-p 00000000 00:00 0

00a94000-00ab5000 rw-p 00000000 00:00 0                                  [heap]

7fe85d16f000-7fe85d174000 r-xp 00000000 08:01 24904329                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0

[…]

 

Errorlog:

*** ERROR(4): dtsession: PID 28190: Tue Apr 09 14:28:35 2013

"Could not connect to ToolTalk message server:

TT_ERR_NOMP       No ttsession process is running, probably because tt_open() has not been called yet. If this code is returned from tt_open() it means ttsession could not be started, which generally means ToolTalk is not installed on this system.Exiting

...

"

*** [362]

 

*** ERROR(4): Dtwm: PID 28199: Tue Apr 09 14:28:46 2013

"Could not connect to ToolTalk:

TT_ERR_NOMP       No ttsession process is running, probably because tt_open() has not been called yet. If this code is returned from tt_open() it means ttsession could not be started, which generally means ToolTalk is not installed on this system.

"

*** [331]

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
alx | 4 Apr 2013 20:40

Dtpad server crash when closing editor window associated with primary document

When dtpad is started in server mode CreateFirstPad doesn't clone initial  
resources like it happens for all subsequent document instances that are  
created using FindOrCreatePad. When a window associated with primary  
document is being closed RestoreInitialServerResources ends up freeing  
invalid pointer raising SIGABRT. Please see attachment for proposed patch.
Attachment (dtpad.patch): application/octet-stream, 1287 bytes
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Ulrich Wilkens | 29 Mar 2013 17:41
Picon

[PATCH] Build dtksh on more OSs


Hello,

here's the announced patch for dtksh. It allows building on many
more platforms.

The patch has been tested on:

- FreeBSD 9.0 i386 + amd64
- FreeBSD >= 9.1 i386 + amd64
- OpenBSD 5.1 i386
- Xubuntu 12.04 i386 + amd64
- Debian Squeeze 6.0 i386   *)
- Fedora 17 i386

On other linux distributions it may also work.

*) The ksh of Debian Squeeze (ksh93s) seems to be broken. Dtksh cannot
    be build with this version. I installed the ksh package from Debian
    Wheezy (ksh93u) and then it's ok.

-- 
Ulrich Wilkens
Email: mail@...

>From 3aadeb5bbc5547ea0bd1be2565724e9b455b9a47 Mon Sep 17 00:00:00 2001
From: Ulrich Wilkens <mail@...>
Date: Tue, 26 Mar 2013 04:08:13 +0100
Subject: [PATCH] Build dtksh on more OSs

---
 cde/programs/Imakefile                             |    2 +-
 cde/programs/dtksh/Imakefile                       |    9 ++++-----
 cde/programs/dtksh/ksh93/Imakefile                 |    2 +-
 cde/programs/dtksh/ksh93/ship/shipiffe.sh          |    2 +-
 .../dtksh/ksh93/src/lib/libast/comp/conf.tab       |    4 ++++
 cde/programs/dtksh/ksh93/src/lib/libast/conf.tab   |    4 ++++
 .../dtksh/ksh93/src/lib/libast/features/lib        |    4 ++--
 .../dtksh/ksh93/src/lib/libast/features/tty        |    2 ++
 .../dtksh/ksh93/src/lib/libast/include/ast.h       |    8 ++++++++
 .../dtksh/ksh93/src/lib/libast/include/ast_std.h   |    2 ++
 .../dtksh/ksh93/src/lib/libast/include/sfio.h      |    2 ++
 .../dtksh/ksh93/src/lib/libast/sfio/sfvprintf.c    |    2 +-
 .../dtksh/ksh93/src/lib/libcmd/features/symlink    |    9 ++++++++-
 13 files changed, 40 insertions(+), 12 deletions(-)

diff --git a/cde/programs/Imakefile b/cde/programs/Imakefile
index f628ce3..b04800f 100644
--- a/cde/programs/Imakefile
+++ b/cde/programs/Imakefile
 <at>  <at>  -10,7 +10,7  <at>  <at>  EXTRADIRS = types localized tttypes $(NSGMLSDIR) util
 XCOMM some of these cannot be built on linux yet.
 XCOMM dtksh dtinfo
 #if defined(LinuxArchitecture)
-DTKSHDIR = 
+DTKSHDIR = dtksh
 DTINFODIR = 
 DTCMDIR = dtcm
 DTLOGINDIR = dtlogin
diff --git a/cde/programs/dtksh/Imakefile b/cde/programs/dtksh/Imakefile
index f5071a3..b20ae7a 100644
--- a/cde/programs/dtksh/Imakefile
+++ b/cde/programs/dtksh/Imakefile
 <at>  <at>  -61,16 +61,15  <at>  <at>  EXTRA_INCLUDES = -I$(DTHELPSRC) -I$(DTPRINTSRC)
 .NO_PARALLEL:
 #endif

+#ifdef LinuxArchitecture
+SYS_LIBRARIES = -lm -ldl
+#endif
+
 #define IHaveSubdirs
 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

-#if defined(LinuxArchitecture)
-SUBDIRS = examples
-KSH93OBJ =
-#else
 SUBDIRS = examples ksh93
 KSH93OBJ = $(KSH93SRC)/ksh93.o
-#endif

 MakeSubdirs($(SUBDIRS))

diff --git a/cde/programs/dtksh/ksh93/Imakefile b/cde/programs/dtksh/ksh93/Imakefile
index 9e10032..3677918 100644
--- a/cde/programs/dtksh/ksh93/Imakefile
+++ b/cde/programs/dtksh/ksh93/Imakefile
 <at>  <at>  -56,7 +56,7  <at>  <at>  ALL_SUBS = *

 ksh93src:
 	$(RM) $(SHIP_DIR)/$(ALL_SUBS)/$(ALL_SUBS)/BUILT; \
-	SHELL=$(KORNSHELL) CC=$(CC) CCFLAGS="$(CCFLAGS)" $(KORNSHELL) ship/shipin $(FORCE_SHIP)
+	SHELL=$(KORNSHELL) CC="$(CC)" CCFLAGS="$(CCFLAGS)" $(KORNSHELL) ship/shipin $(FORCE_SHIP)

 ksh93.o: $(OBJS)
 	$(LD) -r -o $ <at>  $(OBJS)
diff --git a/cde/programs/dtksh/ksh93/ship/shipiffe.sh b/cde/programs/dtksh/ksh93/ship/shipiffe.sh
index 41a10a6..a443980 100644
--- a/cde/programs/dtksh/ksh93/ship/shipiffe.sh
+++ b/cde/programs/dtksh/ksh93/ship/shipiffe.sh
 <at>  <at>  -1103,7 +1103,7  <at>  <at>  $inc
 					*)	e='-e /[\\\\/]sys[\\\\/]'$x'\.h"/d' ;;
 					esac
 					if	$cc -E $tmp.c <&$nullin >$tmp.i
-					then	i=`sed -e '/^#[line 	]*[0-9][0-9]*[ 	][ 	]*"[\\\\/].*[\\\\/]'$x'\.h"/!d' $e -e
s'/.*"\(.*\)".*/\1/' -e 's,\\\\,/,g' -e 's,///*,/,g' $tmp.i | sort -u`
+					then	i=`sed -e '/^#[line 	]*[0-9][0-9]*[ 	][ 	]*"[\\\\/].*[\\\\/]'$x'\.h"/!d' $e -e
'/\/bits\//d' -e s'/.*"\(.*\)".*/\1/' -e 's,\\\\,/,g' -e 's,///*,/,g' $tmp.i | sort -u`
 						for i in $i
 						do	break
 						done
diff --git a/cde/programs/dtksh/ksh93/src/lib/libast/comp/conf.tab b/cde/programs/dtksh/ksh93/src/lib/libast/comp/conf.tab
index b63580f..90f87ad 100644
--- a/cde/programs/dtksh/ksh93/src/lib/libast/comp/conf.tab
+++ b/cde/programs/dtksh/ksh93/src/lib/libast/comp/conf.tab
 <at>  <at>  -235,7 +235,11  <at>  <at>  OPEN_MAX_CEIL		50	AST	XX 1 L		OPEN_MAX
 OS_VERSION		119	AES	SC 1 FSU
 PAGESIZE		51	POSIX	SC 1 L		PAGE_SIZE 4096
 	#if _lib_getpagesize
+	#if defined(linux)
+	extern int		getpagesize(void);
+	#else
 	extern ssize_t		getpagesize(void);
+	#endif
 	#define _LOCAL_PAGESIZE	getpagesize()
 	#endif
 PAGE_SIZE		101	XOPEN	SC 1 L		PAGESIZE
diff --git a/cde/programs/dtksh/ksh93/src/lib/libast/conf.tab b/cde/programs/dtksh/ksh93/src/lib/libast/conf.tab
index 394908e..e3edc0d 100644
--- a/cde/programs/dtksh/ksh93/src/lib/libast/conf.tab
+++ b/cde/programs/dtksh/ksh93/src/lib/libast/conf.tab
 <at>  <at>  -239,7 +239,11  <at>  <at>  OPEN_MAX_CEIL		50	AST	XX 1 L		OPEN_MAX
 OS_VERSION		119	AES	SC 1 FSU
 PAGESIZE		51	POSIX	SC 1 L		PAGE_SIZE 4096
 	#if _lib_getpagesize
+	#if defined(linux)
+	extern int		getpagesize(void);
+	#else
 	extern ssize_t		getpagesize(void);
+	#endif
 	#define _LOCAL_PAGESIZE	getpagesize()
 	#endif
 PAGE_SIZE		101	XOPEN	SC 1 L		PAGESIZE
diff --git a/cde/programs/dtksh/ksh93/src/lib/libast/features/lib b/cde/programs/dtksh/ksh93/src/lib/libast/features/lib
index 3c5d508..bbe2725 100644
--- a/cde/programs/dtksh/ksh93/src/lib/libast/features/lib
+++ b/cde/programs/dtksh/ksh93/src/lib/libast/features/lib
 <at>  <at>  -5,10 +5,10  <at>  <at>  lib	_cleanup,BSDsetpgrp,atexit,bcopy,bzero,confstr,dirread,dup2,fchmod
 lib	fcntl,fnmatch,fork,fsync,getconf,getdents,getdirentries,getdtablesize
 lib	getgroups,getpagesize,getrlimit,getuniverse,index,killpg,link
 lib	localeconv,lstat,mbtowc,memccpy
-lib	memchr,memcmp,memcpy,memdup,memmove,memset,mkdir,mkfifo,mknod,mktemp
+lib	memchr,memcmp,memcpy,memmove,memset,mkdir,mkfifo,mknod,mktemp
 lib	mount,on_exit,onexit,opendir,pathconf,readlink,remove,rename,rindex
 lib	rmdir,rewinddir,setlocale,setpgid,setpgrp,setpgrp2,setreuid,setsid
-lib	setuid,sigaction,sigprocmask,sigsetmask,sigunblock,sigvec
+lib	setuid,sigaction,sigprocmask,sigsetmask,sigvec
 lib	socketpair,spawnve,spawnveg,strchr,strcoll,strdup,strerror,strrchr
 lib	strtod,strtol,strtoul,strxfrm,symlink,sysconf
 lib	telldir,tmpnam,tzset,universe,unlink,utime,vfork
diff --git a/cde/programs/dtksh/ksh93/src/lib/libast/features/tty b/cde/programs/dtksh/ksh93/src/lib/libast/features/tty
index fa55870..9a75fc8 100644
--- a/cde/programs/dtksh/ksh93/src/lib/libast/features/tty
+++ b/cde/programs/dtksh/ksh93/src/lib/libast/features/tty
 <at>  <at>  -16,5 +16,7  <at>  <at>  cat{
 	#else
 	#undef	ioctl
 	#endif
+	#if !defined(linux)
 	extern int		ioctl(int, int, ...);
+	#endif
 }end
diff --git a/cde/programs/dtksh/ksh93/src/lib/libast/include/ast.h b/cde/programs/dtksh/ksh93/src/lib/libast/include/ast.h
index 11bad2b..ffe0b39 100644
--- a/cde/programs/dtksh/ksh93/src/lib/libast/include/ast.h
+++ b/cde/programs/dtksh/ksh93/src/lib/libast/include/ast.h
 <at>  <at>  -121,9 +121,17  <at>  <at> 
  * workaround botched headers that assume <stdio.h>
  */

+#if defined(linux)
+#ifndef __FILE
+#define __FILE	FILE
+#endif
+#endif
+
+#if !defined(CSRG_BASED)
 #ifndef FILE
 #define FILE	Sfio_t
 #endif
+#endif

 /*
  * exit() support -- this matches shell exit codes
diff --git a/cde/programs/dtksh/ksh93/src/lib/libast/include/ast_std.h b/cde/programs/dtksh/ksh93/src/lib/libast/include/ast_std.h
index e11431c..0835df5 100644
--- a/cde/programs/dtksh/ksh93/src/lib/libast/include/ast_std.h
+++ b/cde/programs/dtksh/ksh93/src/lib/libast/include/ast_std.h
 <at>  <at>  -137,7 +137,9  <at>  <at> 
 #define _SKIP_SFSTDIO_H
 #else
 #define _SFSTDIO_H
+#if !defined(linux)
 #define FILE	int
+#endif
 #if defined(__STDPP__directive) && defined(__STDPP__hide)
 #if !_std_def_calloc
 __STDPP__directive pragma pp:hide calloc
diff --git a/cde/programs/dtksh/ksh93/src/lib/libast/include/sfio.h b/cde/programs/dtksh/ksh93/src/lib/libast/include/sfio.h
index e51c073..1176f2f 100644
--- a/cde/programs/dtksh/ksh93/src/lib/libast/include/sfio.h
+++ b/cde/programs/dtksh/ksh93/src/lib/libast/include/sfio.h
 <at>  <at>  -149,9 +149,11  <at>  <at> 
 #define _STDIO_INCLUDED	1
 #endif

+#if !defined(CSRG_BASED)
 #ifndef FILE
 #define FILE	Sfio_t
 #endif
+#endif
 #endif /* __cplusplus */

 typedef struct _sfio_	Sfile_t, Sfio_t, SFIO;
diff --git a/cde/programs/dtksh/ksh93/src/lib/libast/sfio/sfvprintf.c b/cde/programs/dtksh/ksh93/src/lib/libast/sfio/sfvprintf.c
index 214bb50..7ec0b91 100644
--- a/cde/programs/dtksh/ksh93/src/lib/libast/sfio/sfvprintf.c
+++ b/cde/programs/dtksh/ksh93/src/lib/libast/sfio/sfvprintf.c
 <at>  <at>  -301,7 +301,7  <at>  <at>  loop_fa :
 			GETARG(form,form,argf,args,char*,char*,'1',t_user,n_user);
 			if(!form)
 				form = "";
-#if defined(CSRG_BASED) && !defined(__LP64__)
+#if (defined(CSRG_BASED) && !defined(__LP64__)) || (defined(linux) && !defined(__LP64__))
 			GETARG(argsp,argsp,argf,args,va_list*,va_list*,'2',t_user,n_user);
 			memcpy((Void_t*)(&(fa->args)), (Void_t*)(&args), sizeof(va_list));
 			memcpy((Void_t*)(&args), (Void_t*)argsp, sizeof(va_list));
diff --git a/cde/programs/dtksh/ksh93/src/lib/libcmd/features/symlink b/cde/programs/dtksh/ksh93/src/lib/libcmd/features/symlink
index 6d054b8..2c2ceb6 100644
--- a/cde/programs/dtksh/ksh93/src/lib/libcmd/features/symlink
+++ b/cde/programs/dtksh/ksh93/src/lib/libcmd/features/symlink
 <at>  <at>  -1 +1,8  <at>  <at> 
-lib	lchmod,lchown
+lib	lchown
+tst	lib_lchmod note{ lchmod() in default lib(s) }end link{
+	#include <sys/stat.h>
+	main()
+	{	lchmod("/tmp/lchmod_test", 0755);
+		return 0;
+	}
+}end
--

-- 
1.7.9.5

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Karsten Pedersen | 25 Feb 2013 22:24
Picon
Favicon

FreeBSD - Fix compiling on 8.3-RELEASE (utmpx.h)

Hi all,



Another patch I have found whilst digging around my HD...


The following patch will allow CDE to build on FreeBSD 8.3 (Still in production).
The issue being that FreeBSD versions before 9 only have utmp.h rather than utmpx.h


Not sure if it is a good solution but it might be nice to keep CDE compiling on older versions of operating systems.


Best regards,


Karsten



8<----------------------------

diff --git a/cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c b/cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c index 35cc726..b740140 100644 --- a/cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c +++ b/cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c <at> <at> -61,7 +61,9 <at> <at> static char rcs_id[] = "$TOG: TermPrimSetUtmp.c /main/10 1998/04/03 17:11:42 mgr #endif /* sun */ #ifdef __FreeBSD__ +#if OSMAJORVERSION > 8 #define UT_UTMPX +#endif #define UT_HOST ut_host #define UT_NO_pututline #endif diff --git a/cde/programs/dtlogin/account.c b/cde/programs/dtlogin/account.c index 649161d..3999de3 100644 --- a/cde/programs/dtlogin/account.c +++ b/cde/programs/dtlogin/account.c <at> <at> -57,7 +57,7 <at> <at> #endif #include <fcntl.h> -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) && OSMAJORVERSION > 8 #include <utmpx.h> #else #include <utmp.h> diff --git a/cde/programs/dtlogin/dm.c b/cde/programs/dtlogin/dm.c index 9e7b960..87fab04 100644 --- a/cde/programs/dtlogin/dm.c +++ b/cde/programs/dtlogin/dm.c <at> <at> -53,7 +53,7 <at> <at> # include <sys/signal.h> # include <sys/stat.h> -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) && OSMAJORVERSION > 8 # include <utmpx.h> #else # include <utmp.h> <at> <at> -1697,7 +1697,7 <at> <at> GettyMessage( struct display *d, int msgnum ) int GettyRunning( struct display *d ) { -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) && OSMAJORVERSION > 8 struct utmpx utmp; /* local struct for new entry */ struct utmpx *u; /* pointer to entry in utmp file */ #else <at> <at> -1722,7 +1722,7 <at> <at> GettyRunning( struct display *d ) return FALSE; -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) && OSMAJORVERSION > 8 bzero(&utmp, sizeof(struct utmpx)); #else bzero(&utmp, sizeof(struct utmp)); diff --git a/cde/programs/dtlogin/fontpath.c b/cde/programs/dtlogin/fontpath.c index 43173ba..87e490a 100644 --- a/cde/programs/dtlogin/fontpath.c +++ b/cde/programs/dtlogin/fontpath.c <at> <at> -39,7 +39,7 <at> <at> # include <signal.h> # include <X11/Xatom.h> # include <setjmp.h> -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) && OSMAJORVERSION > 8 # include <utmpx.h> #else # include <utmp.h> diff --git a/cde/programs/dtlogin/session.c b/cde/programs/dtlogin/session.c index 0a2cd86..b36d277 100644 --- a/cde/programs/dtlogin/session.c +++ b/cde/programs/dtlogin/session.c <at> <at> -65,7 +65,7 <at> <at> # include <signal.h> # include <X11/Xatom.h> # include <setjmp.h> -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) && OSMAJORVERSION > 8 # include <utmpx.h> #else # include <utmp.h>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Karsten Pedersen | 25 Feb 2013 22:07
Picon
Favicon

Removing the coloured box around workspace buttons

Hi all,

Thought I should send this patch into the mailing list before I lose it again.

Using the default colour pallet, there used to be a green box around the workspace buttons. The following patch removes this as shown in the following screenshot.

http://oi49.tinypic.com/205a15c.jpg

As I recall, the colour used to be based on the same as the toolbar of other windows.

Best regards,

Karsten
diff --git a/cde/programs/dtwm/UI.c b/cde/programs/dtwm/UI.c index be0684c..1d057d0 100644 --- a/cde/programs/dtwm/UI.c +++ b/cde/programs/dtwm/UI.c <at> <at> -2112,6 +2112,11 <at> <at> SwitchCreate (BoxData * box_data) panel.inactive_pixel_set->fg); XtSetArg (al[ac], XmNbackgroundPixmap, pixmap); ac++; } + else + { + XtSetArg (al[ac], XmNbackground, panel.primary_pixel_set->bg); ac++; + XtSetArg (al[ac], XmNforeground, panel.primary_pixel_set->fg); ac++; + } switch_data->rc = XmCreateRowColumn (box_data->switch_form, "switch_rc", al, ac);

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Oleksiy Ch | 5 Feb 2013 23:49
Picon
Favicon

poll: build system for CDE

Hello guys,

Let me raise one question: what is a best preferred build system you consider for CDE and in general?
I address this question to people having experience with maintaining *nix software in general and writing code in particular.

Generally should CDE stay with Imake or move to other solution keeping simple as possible. Ugly gnu auto* or hand made simple and elegant configure ?
What is your choice and vision? Please share your thoughts.

Thanks,
Alex Che
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Isaac Dunham | 4 Feb 2013 07:39

porting on Autotools initiative


Oleksiy Ch wrote:

> HI,
> 
> I examined CDE it contains ancient Imakefiles. I think it must be
> ported on Autotools as Motif did, but in a more wise way. I made some

WHY??!

> work in this way. Currently I have lib dir ported on autotools
> completely. Actually the main thing is configure.ac, it's 95% of code.
> It absorbed much from config/cf/*. So with configure.ac the core part
> of porting is done. Current configure.ac makes checks but don't abort
> on check fail. It's temporary.
> 
> 
> Patch in attachment.
> 
> Comments?

I agree with Pascal Stumpf's analysis.
Autotools works, except when it doesn't.

(sorry, rant coming...)
Then you end up with things like
-cross compiles FTBFS because it assumes that means 
sizeof(long) < sizeof(*void) (seen in Apache/APR), and then complains that the compiler is not standards
conformant because sizeof long must equal or exceed sizeof *void. I don't know of any system that actually
has this problem.
-checking for malloc (!) gets stuck in an infinite loop (seen in Oleo)
Make the obvious change (comment it out; I use obvious loosely), and it breaks the sylk file exporter. The
real fix is to change the test, install autotools, and regenerate configure. Good luck figuring that out
if you're a user, even one somewhat familiar with patching sources and fixing shell scripts.
And of course, that requires GNU m4 1.4+ "because we need 
--prefix-builtins" even though GNU documents that -P is equivalent, and OpenBSD, NetBSD, and now FreeBSD
have their own m4 versions support -P.
Never mind that GNU m4 doesn't want to build on arbitrary systems because it uses freadahead from gnulib,
which compiles on about 6 platforms; the alternative stub used to just abort().

-while we're on the subject of fixing things, I should mention the bug [1] filed by Debian's Samba maintainer:
"automake: configure has mode 755"
"...This is obviously completely inappropriate, as the code produced by automake is something that
should never been seen by human eyes..."

-send it an OS name that is not expressed the way GNU wants, and good luck having anything build. (config.sub
and config.guess, I'm looking at you)

-it claims to handle varying tools, but this frequently amounts to checking whether the GNU version is
installed, and telling the user 
"You need to install the GNU version"
If you're wondering why 
busybox sed --version 
outputs
This is not GNU sed version 4.0
this is the reason (that matches the regexes used to check, so software builds)

-In fact, it frequently ends up dragging in more dependencies on GNU tools (gmake, gm4, bash, and the list
goes on)

-it claims to test for features, but half the time the tests are along the lines of 
#ifdef __linux__
#ifdef __glibc__
..
#else
/* assume libc5 */
#endif

Which you might as well use imake for, and you'd get to building a lot sooner.

And this is packagers' and porters' time, not just developers.
In other words, 
AUTOCONF DOESN'T MAKE THINGS EASIER FOR USERS, unless you're talking about an extremely limited set of variations.

And by the way, libtool is rather annoying too, because it doesn't properly handle certain things (for
example, they exported an AIX misfeature so they broke static linking in most build systems...)

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=140837
--

-- 
Isaac Dunham <ibid_ag@...>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan

Gmane