[cdesktopenv-devel] OpenBSD port

2012-08-07 Thread Pascal Stumpf
Ohai. Just informing you guys that I'm currently working on an OpenBSD port. Already got most stuff building and a shitload of patches (though mostly just #ifdef's). I'll probably start making a branch in a few days, though this will need to be merged with the other porting efforts (FreeBSD ...).

Re: [cdesktopenv-devel] CDE dtksh updated to newer ksh93 release?

2012-08-08 Thread Pascal Stumpf
On Wed, 8 Aug 2012 13:57:34 +0200, Irek Szczesniak wrote: > Has anyone considered updating CDE's dtksh (Destop Korn Shell, i.e. > ksh93 with Dt, Motif and Xt APIs) to a newer ksh93 release? The > current dtksh uses ksh93d- (the minus representing an alpha version) > and is far from what I'd call "s

Re: [cdesktopenv-devel] CDE dtksh updated to newer ksh93 release?

2012-08-08 Thread Pascal Stumpf
On Wed, 8 Aug 2012 19:12:07 +0200, Irek Szczesniak wrote: > On Wed, Aug 8, 2012 at 2:14 PM, Pascal Stumpf wrote: > > On Wed, 8 Aug 2012 13:57:34 +0200, Irek Szczesniak wrote: > >> Has anyone considered updating CDE's dtksh (Destop Korn Shell, i.e. > >> ksh93 with D

Re: [cdesktopenv-devel] OpenBSD port

2012-08-09 Thread Pascal Stumpf
On Wed, 8 Aug 2012 19:53:23 -0600 (MDT), Jon Trulson wrote: > On Wed, 8 Aug 2012, Pascal Stumpf wrote: > > > On Tue, 07 Aug 2012 21:51:14 +0200, Pascal Stumpf wrote: > >> Ohai. > >> > >> Just informing you guys that I'm currently working on an OpenBS

[cdesktopenv-devel] scoping of var declarations in for loops

2012-08-09 Thread Pascal Stumpf
So here are all the patches that deal with the fact that modern compilers assume different scoping rules for variables declared in for loops. On Linux, -fpermissive has been added as a compiler flag to compensate for this old C code, but I think it is the wrong approach. Sorry, couldn't help snea

[cdesktopenv-devel] istr_string() fix

2012-08-09 Thread Pascal Stumpf
At least on OpenBSD/amd64, this macro returns a bogus value if its argument is NULL. So check for this first like the other macros in this file do, and don't cast an istring to int. diff --git a/cde/programs/dtappbuilder/src/libAButil/istr.h b/cde/programs/dtappbuilder/src/libAButil/istr.h inde

[cdesktopenv-devel] SIGCLD -> SIGCHLD

2012-08-09 Thread Pascal Stumpf
The official POSIX name for this signal is SIGCHLD. Linux probably has SIGCLD only for SysV compatibility, but BSD does not. diff --git a/cde/programs/dtexec/Main.c b/cde/programs/dtexec/Main.c index a062203..3c359f0 100644 --- a/cde/programs/dtexec/Main.c +++ b/cde/programs/dtexec/Main.c @@ -53

Re: [cdesktopenv-devel] Fix more sprintf() calls

2012-08-09 Thread Pascal Stumpf
On Thu, 09 Aug 2012 07:40:43 +0200, Marc Balmer wrote: > A few more sprintf() to snprintf() conversion. > > We need to find a proper way to replace strcpy() and strcat(), maybe > keep a local copy of strlcpy() and strlcat() from OpenBSD around > somewhere? Other suggestions? +1 Or link with -lb

[cdesktopenv-devel] BSD & Linux: use socklen_t where appropriate

2012-08-09 Thread Pascal Stumpf
This should use socklen_t where available, really ... diff --git a/cde/lib/tt/bin/ttdbserverd/db_server_svc.C b/cde/lib/tt/bin/ttdbserverd/db_server_svc.C index dd6355b..67b1ce0 100644 --- a/cde/lib/tt/bin/ttdbserverd/db_server_svc.C +++ b/cde/lib/tt/bin/ttdbserverd/db_server_svc.C @@ -217,7 +2

Re: [cdesktopenv-devel] Fix more sprintf() calls

2012-08-09 Thread Pascal Stumpf
On Thu, 09 Aug 2012 10:56:10 +0200, Pascal Stumpf wrote: > On Thu, 09 Aug 2012 07:40:43 +0200, Marc Balmer wrote: > > A few more sprintf() to snprintf() conversion. > > > > We need to find a proper way to replace strcpy() and strcat(), maybe > > keep a local copy of s

Re: [cdesktopenv-devel] config/cf and programs/dtinfo/config bits for OpenBSD

2012-08-09 Thread Pascal Stumpf
On Thu, 9 Aug 2012 12:17:43 -0600 (MDT), Jon Trulson wrote: > On Thu, 9 Aug 2012, Pascal Stumpf wrote: > > > This adds the basic config bits needed for OpenBSD. Most is just copied > > from the existing imake installation in /usr/X11R6. Additionally: > > * Allow

[cdesktopenv-devel] (no subject)

2012-08-09 Thread Pascal . Stumpf
>From 291e6880ab7f2f21f532ec4ba6a5f0510b60cb26 Mon Sep 17 00: 00:00 2001 From: Pascal Stumpf Subject: [PATCH] Rename getline() to not conflict with the standard POSIX interface of the same name. To: cdesktopenv-devel@lists.sourceforge.net Date: Thu, 09 Aug 2012 21:35:12 +0200 --- cde/con

[cdesktopenv-devel] [PATCH] Rename getline() to not conflict with the standard POSIX interface of the same name.

2012-08-09 Thread Pascal Stumpf
--- cde/config/makedepend/def.h |2 +- cde/config/makedepend/main.c |2 +- cde/config/makedepend/parse.c |4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cde/config/makedepend/def.h b/cde/config/makedepend/def.h index 85ef815..1678222 100644 --- a/cde/config/

[cdesktopenv-devel] [PATCH] recognise OpenBSD version

2012-08-09 Thread Pascal Stumpf
--- cde/config/imake/imakemdep.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/cde/config/imake/imakemdep.h b/cde/config/imake/imakemdep.h index 2ec32e2..2c97383 100644 --- a/cde/config/imake/imakemdep.h +++ b/cde/config/imake/imakemdep.h @@ -637,6 +637,10 @@ char *c

[cdesktopenv-devel] [PATCH] Provide support for installation under OpenBSD. Don't override PATH in the install script, it may hide needed tools, and the location of these binaries is highly OS-depende

2012-08-09 Thread Pascal Stumpf
Also, allow overriding some variables in the install script. --- cde/admin/IntegTools/dbTools/installCDE.src | 19 +-- cde/admin/IntegTools/post_install/Imakefile |3 + cde/databases/CDE-FONTS.udb | 24 + cde/databases/CDE-SHLIBS.src| 72

[cdesktopenv-devel] [PATCH] SIGPWR is not present everywhere.

2012-08-09 Thread Pascal Stumpf
--- cde/lib/DtSearch/dtsrapi.c|4 +++- cde/lib/DtSearch/userint.c|2 ++ cde/programs/dtsr/dtsrclean.c |2 ++ cde/programs/dtsr/tomita.c|2 ++ 4 files changed, 9 insertions(+), 1 deletions(-) diff --git a/cde/lib/DtSearch/dtsrapi.c b/cde/lib/DtSearch/dtsrapi.c index 27

[cdesktopenv-devel] [PATCH] Imakefile diffs for OpenBSD.

2012-08-09 Thread Pascal Stumpf
e tcl library by defining TclLibrary; and don't build dttype on OpenBSD (needs to be modified to not use advance/compile). >From b35cab339f7be714ecb9ef2640c29886c4ff9af5 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Thu, 9 Aug 2012 22:06:51 +0200 Subject: [PATCH] Imakefile diff

Re: [cdesktopenv-devel] FAILED: [PATCH] Rename getline() to not conflict with the standard POSIX interface of the same name.

2012-08-09 Thread Pascal Stumpf
On Thu, 9 Aug 2012 14:06:35 -0600 (MDT), Jon Trulson wrote: > On Thu, 9 Aug 2012, Pascal Stumpf wrote: > > This one failed to apply, probably corrupted. If it's easier, you can > simply attach the patches as MIME attachments. > > Or look into setting up 'git send-em

[cdesktopenv-devel] OpenBSD fixes for lib/DtSvc

2012-08-09 Thread Pascal Stumpf
I'll sort the remaining fixes per subdirectory. This fixes another for loop, adds appropriate #ifdefs, provides a prototype for _DtsDbListDB() and defines MAXINT to INT_MAX (BSD doesn't have values.h). >From a894f50454343b091cc9a93fc49fc86e59d4de86 Mon Sep 17 00:00:00 2001 From:

[cdesktopenv-devel] OpenBSD fixes for lib/DtTerm

2012-08-09 Thread Pascal Stumpf
This does not work fully yet, but at least makes it compile. I will revisit later on when the 64bit issues are fixed. Also, people doing ports to other BSDs will still need to revisit this for their OS. >From c04bd0616dc453dc4e69f3c2e8bb3564d58f6790 Mon Sep 17 00:00:00 2001 From: Pascal Stu

[cdesktopenv-devel] Fixes for DtPrint and csa

2012-08-10 Thread Pascal Stumpf
Easy fixes ... >From bbbe3785e3452784ca69ebf2f0ffe679567a48ab Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Fri, 10 Aug 2012 14:02:30 +0200 Subject: [PATCH] OpenBSD fixes for DtPrint and csa. --- cde/include/EUSCompat.h |2 +- cde/lib/DtPrint/PrintSetupB.c |5 + cde/

Re: [cdesktopenv-devel] OpenBSD fixes for lib/DtTerm

2012-08-10 Thread Pascal Stumpf
On Fri, 10 Aug 2012 06:02:37 -0600 (MDT), Jon Trulson wrote: > On Thu, 9 Aug 2012, Pascal Stumpf wrote: > > > This does not work fully yet, but at least makes it compile. I will > > revisit later on when the 64bit issues are fixed. Also, people doing > > ports to other

[cdesktopenv-devel] Tooltalk patches for OpenBSD

2012-08-10 Thread Pascal Stumpf
Mostly #ifdefs and missing casts. >From e9781d995dd7d659a6aa1624af79d6513c8ed4ad Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Fri, 10 Aug 2012 14:07:06 +0200 Subject: [PATCH] Tooltalk fixes for OpenBSD. This consists mainly of #ifdefs, casts and some small type nits. --- cde/lib/tt/

[cdesktopenv-devel] dtterm pty allocation fix

2012-08-10 Thread Pascal Stumpf
This should be applied in addition to my previous DtTerm patches. >From 5d97aa0dec2fd18a1a206311b6ee54a518e34424 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Fri, 10 Aug 2012 14:29:28 +0200 Subject: [PATCH] Allow dtterm to at least allocate a pty on OpenBSD. Display is still mang

[cdesktopenv-devel] fixes for DtWidget, dtaction and dtappbuilder

2012-08-10 Thread Pascal Stumpf
another round of easy fixes. >From 82ebb6b7a5a234557863149d01e8c71b7704c1c3 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Fri, 10 Aug 2012 14:35:23 +0200 Subject: [PATCH] OpenBSD fixes for DtWidget, dtaction, dtappbuilder. --- cde/lib/DtWidget/Editor.c |

[cdesktopenv-devel] dtcm fixes for BSD

2012-08-10 Thread Pascal Stumpf
timezone() is actually a function on BSD. >From a6cbfea115d4a669e5235e06bf03f567affddb73 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Fri, 10 Aug 2012 14:44:57 +0200 Subject: [PATCH] OpenBSD fixes for dtcm. There are no global "timezone" and "tzname" symbols o

[cdesktopenv-devel] dtfile patches

2012-08-10 Thread Pascal Stumpf
Fixes for dtfile. Still not completely functional, but I will work on that. >From 94ccfbe81d142582e120d3e3cb0c50ff1cb795bc Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Fri, 10 Aug 2012 15:09:04 +0200 Subject: [PATCH] Fixes for dtfile on OpenBSD, plus missing prototypes. Use statfs()

Re: [cdesktopenv-devel] [PATCH] dtcreate: fix exit with TT_ERR_PTYPE and fix several sprintf related segfaults.

2012-08-11 Thread Pascal Stumpf
On Sat, 11 Aug 2012 04:16:49 -0400, William Schaub wrote: > On 08/11/2012 03:56 AM, William Schaub wrote: > > On 08/11/2012 03:18 AM, Marc Balmer wrote: > >> A few comments: > >> > >> Since sizeof(char) is 1, it is not needed to write > >> > >> malloc(... + 5 * sizeof(char)) > >> > >> but just > >>

[cdesktopenv-devel] Next round of OpenBSD patches

2012-08-11 Thread Pascal Stumpf
dtcalc, dthelp, dtimsstart. Please also keep in mind that the Imakefile diffs really need to be committed in order to make things for me easier on OpenBSD. >From 4aedd5a34ef2edd6f375be23753902fe659ae248 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sat, 11 Aug 2012 13:38:22 +0200 Subj

[cdesktopenv-devel] dtinfo on OpenBSD

2012-08-11 Thread Pascal Stumpf
See patch. >From e1739161c2bc99c37ccce4b74d1ef42f45279e77 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sat, 11 Aug 2012 13:43:57 +0200 Subject: [PATCH] Make dtinfo work on OpenBSD. strstream.h is now called "strstream" and is obsolete, but use it anyway until all code is c

[cdesktopenv-devel] dtlogin on OpenBSD

2012-08-11 Thread Pascal Stumpf
See patch. >From 6081cf4c4ad8370c69bf0571a61d8adccc007712 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sat, 11 Aug 2012 13:49:07 +0200 Subject: [PATCH] Make dtlogin compile on OpenBSD. Most importantly, we *cannot* do the utmp stuff this code is attempting. It is SysV-specific. ---

[cdesktopenv-devel] dtmail on OpenBSD

2012-08-11 Thread Pascal Stumpf
See patch. >From 2ec9c4b8b1368229eaf4e458808d6121d882595a Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sat, 11 Aug 2012 13:57:26 +0200 Subject: [PATCH] Current state of my dtmail work. Mostly #ifdefs and casts; also, do not redefine strcasestr(). This will probably be needed for Linux

[cdesktopenv-devel] dtpdmd, dtprintinfo

2012-08-11 Thread Pascal Stumpf
See patch. >From 80a1a1b8552b51b0d4acc18e6756d5da5d8350dd Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sat, 11 Aug 2012 14:01:14 +0200 Subject: [PATCH] OpenBSD patches for dtpdmd and dtprintinfo. Casts, #ifdefs, SIGCLD ... --- cde/programs/dtpdmd/manager.c |

[cdesktopenv-devel] dtsearchpath, dtscreen, dtsession

2012-08-11 Thread Pascal Stumpf
See patch. >From 13e8eae8cc80c5e694c45ce0b10e37418fd7fb5b Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sat, 11 Aug 2012 14:04:50 +0200 Subject: [PATCH] Patches for dtscreen, dtsearchpath, dtsession on OBSD. Do not redefine round(3), and provide a manpath for OpenBSD. (this is one of

[cdesktopenv-devel] localisations

2012-08-11 Thread Pascal Stumpf
See patch. >From 8f32716f7b34ab01357b42e6040596b1b967653b Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sat, 11 Aug 2012 14:08:03 +0200 Subject: [PATCH] OpenBSD #ifdefs for imake templates for localisations. --- cde/programs/localized/templates/French.tmpl |2 +- cde/progr

[cdesktopenv-devel] nsgmls

2012-08-11 Thread Pascal Stumpf
See patch. >From d6d86e42f39b750f965608e359b9d05efc1c7732 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sat, 11 Aug 2012 14:09:40 +0200 Subject: [PATCH] Make nsgmls compile on OpenBSD. As far as I can tell, the duplicate instantiations from entmgr_inst.m4 are unnecessary and only ca

[cdesktopenv-devel] ttsnoop

2012-08-11 Thread Pascal Stumpf
See patch. >From 5cb4665c3777b64fd1b6d56d9ec947dcef91301b Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sat, 11 Aug 2012 14:12:47 +0200 Subject: [PATCH] OpenBSD patches for ttsnoop. Mostly adding std:: for strstream interfaces. --- cde/programs/ttsnoop/DtTt.C |

Re: [cdesktopenv-devel] dtinfo on OpenBSD

2012-08-11 Thread Pascal Stumpf
On Sat, 11 Aug 2012 13:52:08 +0200, Marc Balmer wrote: > Wouldn't it be better to avoid the multiplication in malloc here, too? > > i.e. instead of > > > sets = (std::ostrstream **) > > + malloc(sizeof(std::ostrstream *) * sets_max); > > use > > > sets = (std::ostrstream **) >

[cdesktopenv-devel] dtmail actually does compile on OpenBSD ...

2012-08-12 Thread Pascal Stumpf
Seems there were some other changes that made it work, so disabling it was unnecessary. >From e12c05fd2b51777d4b11f024f59613a4dfb7ec75 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 12 Aug 2012 14:45:34 +0200 Subject: [PATCH] dtmail actually does work now on OpenBSD due to other chan

[cdesktopenv-devel] DtHelp: Do not use internal libjpeg

2012-08-12 Thread Pascal Stumpf
See patch. >From e14f3e896a38ec560e6ce897ebe7b3035bced4cf Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 12 Aug 2012 15:25:22 +0200 Subject: [PATCH] Do not use internal libjpeg. Nowadays, OpenMotif is itself linked to libjpeg, so pulling in another version of it causes symbol s

[cdesktopenv-devel] warning fixes for libDtSearch

2012-08-12 Thread Pascal Stumpf
into or from a one-byte buffer. To be honest, I don't have any idea how this code is even supposed to work. Can someone else have a look? >From e01905229716f81f97075426d097430346b58523 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 12 Aug 2012 18:51:53 +0200 Subject: [PATCH] Low-ha

[cdesktopenv-devel] cpp -traditional

2012-08-12 Thread Pascal Stumpf
See patch. >From 4789df8593794a186533aa2d7e31a66bfb429de4 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 12 Aug 2012 19:33:25 +0200 Subject: [PATCH] Use cpp -traditional. StandardCppOptions do not get respected here, so change the default CppCmd to cpp -traditional like for Free

[cdesktopenv-devel] security fix for udbToAny.ksh

2012-08-12 Thread Pascal Stumpf
Always use mktemp(1) for generating a random filename in a shell script. >From 5e7ecc7fc1615b2992bfbf8b16d4eaa74023d153 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 12 Aug 2012 20:27:32 +0200 Subject: [PATCH] Do not use the PID as a way of generating a "random" filename.

[cdesktopenv-devel] Fix sym2num on OpenBSD

2012-08-12 Thread Pascal Stumpf
See patch. >From c9fc412775e5665336170332478605b641ab8d3e Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 12 Aug 2012 21:27:19 +0200 Subject: [PATCH] sym2num: add path to cpp on OpenBSD. --- cde/programs/dtprintinfo/sym2num |3 +++ 1 files changed, 3 insertions(+), 0 deleti

Re: [cdesktopenv-devel] [PATCH] some tweaks for configRun: add -h/--usage option, use portable print instead of echo \c, etc.

2012-08-12 Thread Pascal Stumpf
On Sun, 12 Aug 2012 14:41:42 -0600 (MDT), Jon Trulson wrote: > On Sun, 12 Aug 2012, Douglas Mencken wrote: > > >> I am pretty sure that 'echo -n' and 'echo -e' work everywhere. Why > >> not use those instead? > > > > printf is available everywhere; "echo -n" is an exotic, "echo -e" is > > much mo

[cdesktopenv-devel] WIP: dtbuilder on 64bit, fix it on 32bit

2012-08-13 Thread Pascal Stumpf
Please test this patch on 32bit, it should fix the dtbuilder crashes people were seeing. Also note that dtbuilder still crashes on 64bit ... >From 8c68bec54adb88c223e170e3945d40028f2b9c85 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 13 Aug 2012 17:35:34 +0200 Subject: [PATCH] WIP

Re: [cdesktopenv-devel] [PATCH 3/4] Skip building m-guides and dtksh for FreeBSD

2012-08-13 Thread Pascal Stumpf
On Mon, 13 Aug 2012 16:54:39 +0200, Joshuah Hurst wrote: > On Mon, Aug 13, 2012 at 12:59 PM, Marcin Cieslak wrote: > > On Mon, 13 Aug 2012, Irek Szczesniak wrote: > > > >> On Mon, Aug 13, 2012 at 4:01 AM, Marcin Cieslak wrote: > >> > --- > >> > cde/doc/C/Imakefile|2 +- > >> > cde/progra

Re: [cdesktopenv-devel] WIP: dtbuilder on 64bit, fix it on 32bit

2012-08-13 Thread Pascal Stumpf
On Mon, 13 Aug 2012 15:10:51 -0400, William Schaub wrote: > On 08/13/2012 11:42 AM, Pascal Stumpf wrote: > > Please test this patch on 32bit, it should fix the dtbuilder crashes > > people were seeing. Also note that dtbuilder still crashes on 64bit ... > > > Seems to

[cdesktopenv-devel] fix dtmail build on OpenBSD

2012-08-19 Thread Pascal Stumpf
See patch. >From 5837eaeaa8bc310c049c4f796868ac6fdd38ba24 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 19 Aug 2012 18:19:40 +0200 Subject: [PATCH] OpenBSD still uses GNU iconv, so the second argument to iconv(3) is not const. --- cde/programs/dtmail/libDtMail/Common/Sessio

[cdesktopenv-devel] dtksh on OpenBSD

2012-08-19 Thread Pascal Stumpf
This works on OpenBSD too. >From ab5069cde5883590fbf211b7dea73fe776c82239 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 19 Aug 2012 18:33:42 +0200 Subject: [PATCH] Build dtksh on OpenBSD. This needs ksh93 to bootstrap, available in the openbsd-wip for now as a port, due to be commit

Re: [cdesktopenv-devel] [EARLY PATCH] FreeBSD: Early support for the installer

2012-08-19 Thread Pascal Stumpf
On Thu, 16 Aug 2012 04:22:10 +0200, Marcin Cieslak wrote: > This is work in progress - please > do not merge into master yet. > > Note to users: please check > if you are affected by awk bug > in udbParseLib.awk if you can. > > Just remove this line: > > DUMMY = $0 > > and run "make clean

[cdesktopenv-devel] fix localized build on OpenBSD

2012-08-19 Thread Pascal Stumpf
See patch. >From 6dc2b168d18080e924334933fdae17574abe Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 19 Aug 2012 19:35:38 +0200 Subject: [PATCH] Fix localized build on OpenBSD. Use the same set of langs as on Linux and FreeBSD (no Japanese), don't redefine a needed macro

Re: [cdesktopenv-devel] fix localized build on OpenBSD

2012-08-19 Thread Pascal Stumpf
On Sun, 19 Aug 2012 18:59:35 +, Marcin Cieslak wrote: > On Sun, 19 Aug 2012, Pascal Stumpf wrote: > > > See patch. > > > Just curious, why is this: > > + LC_CTYPE=""; \

Re: [cdesktopenv-devel] fix localized build on OpenBSD

2012-08-20 Thread Pascal Stumpf
On Sun, 19 Aug 2012 20:25:12 +, Marcin Cieslak wrote: > On Sun, 19 Aug 2012, Pascal Stumpf wrote: > > > Well, LANG already gets reset to a sensible value. If it does indeed > > work on FreeBSD with LC_CTYPE set, then this is probably an OS-dependent > > problem. >

Re: [cdesktopenv-devel] [PATCH] Use KORNSHELL variable instead of /bin/ksh

2012-08-23 Thread Pascal Stumpf
On Thu, 23 Aug 2012 17:49:26 +0200, Marcin Cieslak wrote: > This patch removes instances of hardcoded > invocation of /bin/ksh and allows to > replace it with, for, example, > /usr/local/bin/ksh93 > > Also "ksh93" is accepted whenever "ksh" is. Have you looked at whether ksh is actually required

Re: [cdesktopenv-devel] [PATCH] Correction of paths for BSDs

2012-08-29 Thread Pascal Stumpf
Just one inline comment. On Thu, 30 Aug 2012 02:35:35 +0200, Ulrich Wilkens wrote: > This patch fixes some paths which are wrong for BSD systems. > > -- > Ulrich Wilkens > Email: m...@uwilkens.de > > > >From 957de1fd41ff2ca5bd8c79f50e3d3919ea614487 Mon Sep 17 00:00:00 2001 > From: Ulrich Wilke

Re: [cdesktopenv-devel] [PATCH] Two fixes for dtmail

2012-08-30 Thread Pascal Stumpf
On Wed, 29 Aug 2012 22:06:05 -0400 (EDT), Christopher Turkel wrote: > > > > > > > > -Original Message- > From: Ulrich Wilkens > To: cdesktopenv-devel > Sent: Wed, Aug 29, 2012 9:52 pm > Subject: [cdesktopenv-devel] [PATCH] Two fixes for dtmail > > > This one fixes a bug where

Re: [cdesktopenv-devel] OpenBSD

2012-09-09 Thread Pascal Stumpf
On Thu, 6 Sep 2012 19:31:02 -0400 (EDT), Christopher Turkel wrote: > Hi > > Can someone tell me the status of the OpenBSD port? If there are any > special build instructions that should be on the wiki, etc. I don't have time on my hands to work on it right now, but I'll try to update my port in o

Re: [cdesktopenv-devel] [PATCH] dtfile: Add missing prototypes

2012-09-19 Thread Pascal Stumpf
On Tue, 18 Sep 2012 14:06:01 -0600 (MDT), Jon Trulson wrote: > On Tue, 18 Sep 2012, Marcin Cieslak wrote: > > > On Tue, 18 Sep 2012, Jon Trulson wrote: > > > >> Though I've added a follow on patch that disables building XmPrivate.h > >> on Linux systems, where it will always fail since linux does

[cdesktopenv-devel] fix CDE compilation with __guard_local on OpenBSD

2012-09-24 Thread Pascal Stumpf
>From 061fd82a233136724c3c5e591f379e58fcc5de0b Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 24 Sep 2012 21:50:19 +0200 Subject: [PATCH] Add csu objects to shared libraries on OpenBSD. This is required by recent changes to the stack protector code in gcc, generating references

Re: [cdesktopenv-devel] fix CDE compilation with __guard_local on OpenBSD

2012-09-25 Thread Pascal Stumpf
On Mon, 24 Sep 2012 18:33:39 -0600 (MDT), Jon Trulson wrote: > On Mon, 24 Sep 2012, Pascal Stumpf wrote: > > This one would not apply (corrupt?) Next try. > > > -- > Jon Trulson > > The Higgs Field is what make atoms matter. >

[cdesktopenv-devel] ToolTalk broken on OpenBSD

2012-10-14 Thread Pascal Stumpf
Something has seriously broken ttsession on OpenBSD (and anything using it). Either segfaulting and leaving zombie processes or immediately locking up on startup. I probably won't have time to look into it until next weekend, but if anyone has an idea or wants to help debugging ... -

Re: [cdesktopenv-devel] ToolTalk broken on OpenBSD

2012-11-18 Thread Pascal Stumpf
On Mon, 15 Oct 2012 18:10:26 -0600 (MDT), Jon Trulson wrote: > On Mon, 15 Oct 2012, Pascal Stumpf wrote: > > > Something has seriously broken ttsession on OpenBSD (and anything using > > it). Either segfaulting and leaving zombie processes or immediately > > locking up

[cdesktopenv-devel] AvoidNullMakeCommand on OpenBSD

2012-11-18 Thread Pascal Stumpf
Avoid make warnings. >From c4a36262a853bd642712a05b0bcac76850ac5ab3 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 18 Nov 2012 18:25:07 +0100 Subject: [PATCH] set AvoidNullMakeCommand on OpenBSD to avoid make warnings --- cde/config/cf/OpenBSD.cf |2 ++ 1 files changed

[cdesktopenv-devel] Don't add csu objects to linker cmd line on OpenBSD any more

2012-11-18 Thread Pascal Stumpf
See patch. >From 73705ef733cb78741ab706fb6d0051585bed44b8 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 18 Nov 2012 18:36:48 +0100 Subject: [PATCH] Remove hack adding csu objects to the linker command line on OpenBSD. This is no longer needed now that $(CC) is used to link sha

[cdesktopenv-devel] Motif manpages

2012-11-18 Thread Pascal Stumpf
We currently build and install an extra copy of all motif manpages. This is unnecessary at best; this documentation should be packaged with openmotif. It might well be outdated too (haven't checked). >From 8dad62f325824c8126dd14824807265e4f4692d2 Mon Sep 17 00:00:00 2001 From: Pascal Stum

[cdesktopenv-devel] Use /usr/sbin/sendmail as mailer on OpenBSD

2012-11-18 Thread Pascal Stumpf
See patch. >From d3b6c7761900ae0241cd446af4586442874d71d5 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 19 Nov 2012 00:26:54 +0100 Subject: [PATCH] Use /usr/sbin/sendmail as default mailer on OpenBSD. --- cde/programs/dtmail/libDtMail/RFC/RFCTransport.C |2 ++ 1 files changed

[cdesktopenv-devel] dtfile(1): Use FILE_MAP_OPTIMIZE on OpenBSD

2012-11-19 Thread Pascal Stumpf
See patch. Other OSes might want to do this as well ... >From 3f0f3a4909692ededd08892260140fd6c8f97f7d Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 19 Nov 2012 16:22:47 +0100 Subject: [PATCH] On OpenBSD, use FILE_MAP_OPTIMIZED. This has the effect of not performing a tt call e

[cdesktopenv-devel] pclose() -> fclose()

2012-11-19 Thread Pascal Stumpf
See patch. >From cc22d0438465eb8d099acba27d3c4f6e382c920d Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 19 Nov 2012 16:29:10 +0100 Subject: [PATCH] pclose() -> fclose() We're not doing anything with the exit status anyway, and waiting for the shell to terminate sometimes h

Re: [cdesktopenv-devel] ToolTalk broken on OpenBSD

2012-11-19 Thread Pascal Stumpf
On Mon, 19 Nov 2012 19:37:53 -0700 (MST), Jon Trulson wrote: > On Sun, 18 Nov 2012, Pascal Stumpf wrote: > > > On Mon, 15 Oct 2012 18:10:26 -0600 (MDT), Jon Trulson wrote: > >> On Mon, 15 Oct 2012, Pascal Stumpf wrote: > >> > >>> Something has seriously

Re: [cdesktopenv-devel] pclose() -> fclose()

2012-11-20 Thread Pascal Stumpf
On Mon, 19 Nov 2012 19:46:48 -0700 (MST), Jon Trulson wrote: > On Mon, 19 Nov 2012, Pascal Stumpf wrote: > > > See patch. > > > > This one I'm not so sure about... pclose might be doing other cleanups > under the hood, so should be used... Can you determine

[cdesktopenv-devel] dtgreet: do not crash if LANG is not set

2012-11-20 Thread Pascal Stumpf
See patch. >From 45619657fa4d16f365e62cd8e25435ae58c7a650 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 20 Nov 2012 19:42:33 +0100 Subject: [PATCH] dtgreet: Do not crash if LANG is not set in the environment. In that case, catopen() will have never been called, and we'd feed

[cdesktopenv-devel] dtlogin: Set NATIVEXBINDIR on OpenBSD

2012-11-20 Thread Pascal Stumpf
See patch. >From 0b5f95e1faf6690e03490cf62d7433101518a08e Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 20 Nov 2012 20:08:34 +0100 Subject: [PATCH] Set NATIVEXBINDIR on OpenBSD. --- cde/programs/dtlogin/Imakefile |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --

[cdesktopenv-devel] BSD: Correct path to xterm

2012-11-20 Thread Pascal Stumpf
See patch. >From a7618c2b2eb9b35d5b9ef0d9236fb6527f42490b Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 20 Nov 2012 22:03:30 +0100 Subject: [PATCH] Correct paths to xterm as failsafe client on the BSDs. --- cde/programs/dtlogin/session.c |6 +- 1 files changed, 5 inserti

[cdesktopenv-devel] dtlogin: Imakefile: Respect CDE_{INSTALL, CONFIGUR}ATION_TOP

2012-11-20 Thread Pascal Stumpf
Not sure about this one. The comment says not to change the values there, but there is no other way to change them. FWIW, hardcoding /etc/dt and /usr/dt is wrong. >From 799c908071f5065e348c844db4b0404126c1fccb Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 20 Nov 2012 22:42:29 +0

Re: [cdesktopenv-devel] ToolTalk broken on OpenBSD

2012-11-21 Thread Pascal Stumpf
On Tue, 20 Nov 2012 17:14:19 -0700 (MST), Jon Trulson wrote: > On Tue, 20 Nov 2012, Pascal Stumpf wrote: > > > On Mon, 19 Nov 2012 19:37:53 -0700 (MST), Jon Trulson wrote: > >> On Sun, 18 Nov 2012, Pascal Stumpf wrote: > >> > >>> On Mon, 15 Oct 20

[cdesktopenv-devel] Introduce DTKORNSHELL

2012-11-22 Thread Pascal Stumpf
See patch. >From 05a7f71bd30d43dd4c041ff8c3e15ee48a16ebd7 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Thu, 22 Nov 2012 15:49:51 +0100 Subject: [PATCH] Introduce DTKORNSHELL, analogous to KORNSHELL. DTKORNSHELL is used to specify the install location of dtksh on your system, prevent

[cdesktopenv-devel] Fix memory fault in instant(1) with OpenBSD's malloc(3) 'S'

2012-11-22 Thread Pascal Stumpf
option See patch. >From d3086c6ddf0b925a2f95f2cebd82b82f400179c5 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Thu, 22 Nov 2012 14:27:26 +0100 Subject: [PATCH] Keep track of the length of the string in ExpandVariables(). On OpenBSD, the 'S' option to malloc(3) enable

[cdesktopenv-devel] dtaction: sys group?

2012-11-22 Thread Pascal Stumpf
Dtaction is installed as group "sys". Does anyone know why? I assume the group has a very different meaning on different Unices ... -- Monitor your physical, virtual and cloud infrastructure from a single web console. Ge

[cdesktopenv-devel] Fix a dtterm crash

2012-11-27 Thread Pascal Stumpf
See patch. >From 8df4600ea26b7b995378eb20fb000fa21293c8ea Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 27 Nov 2012 21:12:23 +0100 Subject: [PATCH] Avoid negative array subscript; break out of the loop if that happens. --- cde/lib/DtTerm/TermPrim/TermPrim.c | 2 ++ 1 file changed

Re: [cdesktopenv-devel] porting on Autotools initiative

2013-02-03 Thread Pascal Stumpf
On Sun, 3 Feb 2013 11:43:32 -0800 (PST), 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 work in this way. > Currently I have lib dir ported on autotools completely. Actually the

Re: [cdesktopenv-devel] Crash in ttsession starting CDE on Ubuntu 12.04

2013-04-26 Thread Pascal Stumpf
On Fri, 26 Apr 2013 11:52:34 +, Marcin Cieslak wrote: > On Wed, 10 Apr 2013, Isaac Dunham wrote: > > > On Tue, 09 Apr 2013 12:36:19 + > > > I suppose that's the real problem here: > > > > *** buffer overflow detected ***: /usr/dt/bin/ttsession terminated > > Running some kind of automat

[cdesktopenv-devel] Warnings in DtSvc

2013-07-21 Thread Pascal Stumpf
See attached patch; there's a few TODOs left, but it's a start. >From 9fc0ef60b8a2ab04ab4a4df20924195398b0ef50 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Sun, 21 Jul 2013 22:55:09 +0200 Subject: [PATCH] Kill lots of warnings in DtSvc. --- cde/lib/DtSvc/DtEncap/MemoryM

[cdesktopenv-devel] -fpermissive in programs/nsgmls

2013-07-22 Thread Pascal Stumpf
see patch. >From da96c25f0a9fbc1508918576ac2787df0d4734e8 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 22 Jul 2013 13:07:00 +0200 Subject: [PATCH] Do not use -fpermissive in programs/nsgmls. It's not needed. --- cde/programs/nsgmls/Imakefile | 3 +-- 1 file changed, 1 i

[cdesktopenv-devel] sync warning flags between cc and c++ on OpenBSD

2013-07-22 Thread Pascal Stumpf
see patch >From 232a01484abf338ee04265ef1c4a2a977913410d Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 22 Jul 2013 13:38:58 +0200 Subject: [PATCH] sync warning flags betseen cc and c++ on OpenBSD --- cde/config/cf/OpenBSD.cf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/

[cdesktopenv-devel] A few more warnings in DtPrint

2013-07-22 Thread Pascal Stumpf
See patch. >From 59e8fe9e98c9dc38e1634911dd954ef8ca18eb7e Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 22 Jul 2013 14:31:46 +0200 Subject: [PATCH] kill a few more warnings in DtPrint --- cde/include/Xm/XmPrivate.h | 12 cde/include/Xm/extractprototype.awk |

[cdesktopenv-devel] Do not hardcode /usr/dt in print.dt.

2013-07-22 Thread Pascal Stumpf
See patch. >From 83f8b45219b5f06c85149db3024c3f91da0d43ad Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 22 Jul 2013 21:56:37 +0200 Subject: [PATCH] Do not hardcode /usr/dt in print.dt. --- cde/programs/types/print.dt.src | 14 +++--- 1 file changed, 7 insertions(+)

[cdesktopenv-devel] Xreset.src: do not hardcode /usr/dt

2013-07-22 Thread Pascal Stumpf
See patch. >From 02cd31e286597a38a3194819969aeb470a639249 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 22 Jul 2013 21:59:15 +0200 Subject: [PATCH] Xreset.src: Do not hardcode /usr/dt. --- cde/programs/dtlogin/config/Xreset.src | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[cdesktopenv-devel] Remove hardcoded /usr/dt from dtlogin/config

2013-07-22 Thread Pascal Stumpf
See patch. >From 25a49969a94615a7e4abcc000332caa1704a0b17 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 22 Jul 2013 22:14:45 +0200 Subject: [PATCH] s,/usr/dt,CDE_INSTALLATION_TOP,g in dtlogin/config --- cde/programs/dtlogin/config/0015.sun.env.src| 4 ++-- cde/progr

[cdesktopenv-devel] Simplify programs/Imakefile

2013-07-22 Thread Pascal Stumpf
See patch. >From cffb50d896a962f1183fef1e9b5575c234be27df Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 22 Jul 2013 22:03:34 +0200 Subject: [PATCH] Simplify programs/Imakefile a bit. dtksh, dtlogin and dtcm build everywhere. --- cde/programs/Imakefile | 22 +-

[cdesktopenv-devel] adapt _common.ksh.src

2013-07-22 Thread Pascal Stumpf
See patch. >From 358cc571410cabcb40c2734d3cf59679aa7b3e1d Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 22 Jul 2013 23:39:13 +0200 Subject: [PATCH] Adapt dtlogin/config/_common.ksh.src for OpenBSD: * ps(1) is totally different on BSD and Linux. The OSF commandline works f

[cdesktopenv-devel] error.ds.src: don't hardcode /usr/dt

2013-07-22 Thread Pascal Stumpf
See patch. >From c44219dedcaf7102752a480a987ae82e9023c758 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 23 Jul 2013 00:19:04 +0200 Subject: [PATCH] error.ds.src: don't hardcode /usr/dt --- cde/programs/types/error.ds.src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[cdesktopenv-devel] security fix for dtappintegrate

2013-07-22 Thread Pascal Stumpf
see patch. >From 30cf6ace3e74a135dd98f8dcbcad70b6f605edb7 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 23 Jul 2013 00:59:23 +0200 Subject: [PATCH] SECURITY fix for dtappintegrate: Use mktemp(1) to generate a template. Using a fixed filename in /tmp is just begging for a syml

[cdesktopenv-devel] iostream.h deprecation warnings in dtsearchpath

2013-07-23 Thread Pascal Stumpf
See patch. >From a14899dc8d36ab1cd0b72f8a891aed01c38bcc88 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 23 Jul 2013 13:21:51 +0200 Subject: [PATCH] Kill iostream.h deprecation warnings on *BSD. --- cde/programs/dtsearchpath/libCliSrv/TTFile.C | 6 +++--- cde/programs/dtsearchp

[cdesktopenv-devel] ttsnoop warnings

2013-07-23 Thread Pascal Stumpf
See patch. >From c13ad5f7e0ff04c49033710eb85372c136932022 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 23 Jul 2013 13:49:26 +0200 Subject: [PATCH] ttsnoop: deal with iostream.h and missing sentinels. Replacing strstream may be possible, but requires more work and a bet

[cdesktopenv-devel] OpenBSD.cf patch

2013-07-23 Thread Pascal Stumpf
See patch. >From 4b0a4e16261b741bd19b2d48e0f4fc897693ee7c Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 23 Jul 2013 22:32:35 +0200 Subject: [PATCH] OpenBSD.cf: don't include xorg.cf (leftover) --- cde/config/cf/OpenBSD.cf | 12 1 file changed, 12 deletions(-) di

[cdesktopenv-devel] dtksh on OpenBSD/powerpc

2013-07-23 Thread Pascal Stumpf
See patch. >From 5b66a72464c5a626071232cb5c7eedf074bf1a11 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 23 Jul 2013 23:19:16 +0200 Subject: [PATCH] Make dtksh build on OpenBSD/powerpc. --- cde/programs/dtksh/ksh93/src/lib/libast/hash/hashalloc.c | 4 ++-- cde/programs/dtksh/ksh93/

[cdesktopenv-devel] fix dtdocbook on powerpc

2013-07-23 Thread Pascal Stumpf
See patch. >From c92585e7135656a3874cc3226e94580de106 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Wed, 24 Jul 2013 00:55:59 +0200 Subject: [PATCH] include unistd.h for read(2) prototype. Fixes dtdocbook on PowerPC. There are a lot more warnings here, but this one was an actual

[cdesktopenv-devel] Add a TODO file.

2013-07-24 Thread Pascal Stumpf
See patch. Feel free to add stuff/work on anything on the list. :) >From 557d0b9b5008e05bf8dfe1fddd6d8d940158950d Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Wed, 24 Jul 2013 14:54:53 +0200 Subject: [PATCH] Add TODO. --- cde/TODO |

[cdesktopenv-devel] dtlogin: correct path to getty on OpenBSD

2013-07-25 Thread Pascal Stumpf
See patch. >From 3d0308efe8544503baec6ad2005226b0c47a1b46 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Thu, 25 Jul 2013 12:28:33 +0200 Subject: [PATCH] dtlogin: correct path to getty. --- cde/programs/dtlogin/dm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cde/programs/dtlo

  1   2   >