[cdesktopenv-devel] [PATCH} Adjust cpp location for FreeBSD

2012-08-12 Thread Marcin Cieslak
>From 60375c1391a3d9a42837a9c0ba6404ecfa0ea0a4 Mon Sep 17 00:00:00 2001 From: Marcin Cieslak Date: Mon, 13 Aug 2012 00:37:42 +0200 Subject: [PATCH] Adjust cpp location for FreeBSD cpp was removed from /usr/libexec with FreeBSD 5.0-RELEASE. Use __FreeBSD_version to tell imake if it's sti

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

2012-08-12 Thread Marcin Cieslak
--- cde/doc/C/Imakefile|2 +- cde/programs/Imakefile |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cde/doc/C/Imakefile b/cde/doc/C/Imakefile index 70e475c..4595a26 100644 --- a/cde/doc/C/Imakefile +++ b/cde/doc/C/Imakefile @@ -3,7 +3,7 @@ XCOMM $XConsortium: Ima

[cdesktopenv-devel] [PATCH 4/4] Compile ToolTalk on FreeBSD

2012-08-12 Thread Marcin Cieslak
Fix const correctness problems with OPT_CONST_CORRECT: tt_xdr_utils.C: In constructor '_Tt_xdr_size_stream::_Tt_xdr_size_stream()': tt_xdr_utils.C:150: error: invalid conversion from 'bool_t (*)(__rpc_xdr*, long int*)' to 'bool_t (*)(__rpc_xdr*, const long int*)' tt_xdr_utils.C:151: error: invali

[cdesktopenv-devel] [PATCH 2/4] Improve creation of shared libraries for FreeBSD

2012-08-12 Thread Marcin Cieslak
--- cde/config/cf/FreeBSD.cf |4 +++- cde/config/cf/bsdLib.rules |9 ++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/cde/config/cf/FreeBSD.cf b/cde/config/cf/FreeBSD.cf index 5e3a00d..dc37202 100644 --- a/cde/config/cf/FreeBSD.cf +++ b/cde/config/cf/FreeBSD.cf @@

[cdesktopenv-devel] [PATCH 5/7] NULL is a pointer, not string terminator

2012-08-13 Thread Marcin Cieslak
Replace some instances of NULL to '\0', when referring to string terminator. --- cde/lib/csa/api.c|2 +- cde/lib/csa/attr.c |6 +++--- cde/lib/csa/calendar.c |8 cde/lib/csa/cmsdata.c|2 +- cde/lib/csa/convert4-5.c |2 +- cde/lib/csa/convert5-4.c |

[cdesktopenv-devel] [PATCH 6/7] Cast registerrpc args to xdrproc_t explicitly

2012-08-13 Thread Marcin Cieslak
Fixes: agent.c: In function '_DtCm_init_agent': agent.c:160: warning: passing argument 5 of 'registerrpc' from incompatible pointer type agent.c:160: warning: passing argument 6 of 'registerrpc' from incompatible pointer type agent.c:167: warning: passing argument 5 of 'registerrpc' from incompat

[cdesktopenv-devel] [PATCH] lib/csa: Use ANSI C prototypes

2012-08-13 Thread Marcin Cieslak
Improve type compatibility and enable ANSI C prototypes. --- cde/lib/csa/Imakefile |6 -- cde/lib/csa/agent.c |2 +- cde/lib/csa/agent.wrapbegin |8 cde/lib/csa/agent.wrapend |7 --- cde/lib/csa/agent.x |2 +- cde/lib/csa/free.h

Re: [cdesktopenv-devel] [PATCH] lib/csa: Use ANSI C prototypes

2012-08-13 Thread Marcin Cieslak
On Mon, 13 Aug 2012, Marcin Cieslak wrote: > Improve type compatibility and enable > ANSI C prototypes. The last patch removes some old cruft for Linux - would be good if some Linux users could test it as well! //

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

2012-08-13 Thread Marcin Cieslak
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/programs/Imakefile |2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > Why are you disabling d

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

2012-08-13 Thread Marcin Cieslak
On Mon, 13 Aug 2012, 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/Imake

[cdesktopenv-devel] [PATCH] FreeBSD port: dtsearch, dtterm, dtwidget, dthelp

2012-08-13 Thread Marcin Cieslak
FreeBSD portability of dtsearch, dtterm, dtwidget, dthelp Work in progress for dtlogin and dtmail --- cde/admin/IntegTools/post_install/Imakefile|3 +++ cde/config/cf/site.def |4 +++- cde/databases/Imakefile|3 +++ cde/l

[cdesktopenv-devel] [PATCH] Compile dtksh on FreeBSD

2012-08-13 Thread Marcin Cieslak
dtksh can be now compiled on FreeBSD. Work in progress. Needs a real Korn shell to bootstrap as $(KSHELL). KSHELL is set by default to /usr/local/bin/ksh93 (generic POSIX shell may not work) Tested on: FreeBSD 9.0-BETA1 #0 r224912M amd64 Known issues: xvmstat: * sleep does not work well (SIG

Re: [cdesktopenv-devel] [PATCH] Compile dtksh on FreeBSD

2012-08-13 Thread Marcin Cieslak
MAXCHAR MAXLINE-2 /* max char per line */ >> >> -#undef isblank > > Do you still need to do this if you're renaming isblank to kshisblank() > below? It's a misleading noop in most cases, since many systems have real function now and not a macro. #undefing

[cdesktopenv-devel] [PATCH] Compile dtksh on FreeBSD

2012-08-14 Thread Marcin Cieslak
dtksh can be now compiled on FreeBSD. Work in progress. Needs a real Korn shell to bootstrap as $(KSHELL). KSHELL is set by default to /usr/local/bin/ksh93 (generic POSIX shell may not work) Tested on: FreeBSD 9.0-BETA1 #0 r224912M amd64 Known issues: xvmstat: * sleep does not work well (SIG

[cdesktopenv-devel] [PATCH 09/10] Use $(SHELL) and $(KORNSHELL) for shell scripts

2012-08-14 Thread Marcin Cieslak
Introduce KORNSHELL make variable to point to the implementation of the Korn Shell. Use $(SHELL) or $(KORNSHELL) explicitly for make programs that do not automatically call shell scripts from the current directory. --- cde/admin/IntegTools/post_install/Imakefile | 27 +

[cdesktopenv-devel] [PATCH] Compile dtksh on FreeBSD

2012-08-14 Thread Marcin Cieslak
dtksh can be now compiled on FreeBSD. Work in progress. Needs a real Korn shell to bootstrap as $(KSHELL). KSHELL is set by default to /usr/local/bin/ksh93 (generic POSIX shell may not work) Tested on: FreeBSD 9.0-BETA1 #0 r224912M amd64 Known issues: xvmstat: * sleep does not work well (SIG

Re: [cdesktopenv-devel] [PATCH] Compile dtksh on FreeBSD

2012-08-14 Thread Marcin Cieslak
On Tue, 14 Aug 2012, Marcin Cieslak wrote: > dtksh can be now compiled on FreeBSD. Work in progress. (please disregard this one) -- Live Security Virtual Conference Exclusive live event will cover all the ways toda

[cdesktopenv-devel] For FreeBSD: patch for x11-toolkits/open-motif

2012-08-14 Thread Marcin Cieslak
Hello, to sucessfully build CDE on FreeBSD a small patch is needed to configure of open-motif to make sure printing is enabled. The patch is here: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170626 (thanks to Ulrich Wilkens for providing the fix) With the patch and after rebuilding open-mo

[cdesktopenv-devel] [PATCH] Deal with *.tmp.msg after mkcatdefs failure

2012-08-14 Thread Marcin Cieslak
BSD make interrupts shell pipeline after if it cannot run the command: rm -f Mrm.msg ln -s ../../../../imports/motif/localized/de_DE.ISO8859-1/msg/Mrm.msg Mrm.msg Running mkcatdefs for Mrm.cat with LANG set to de_DE.ISO8859-1 ( rm -f Mrm.cat Mrm.tmp.msg; LANG=de_DE.ISO8859-1; export LANG; ../

[cdesktopenv-devel] [PATCH] const char maze: unbreak ToolTalk build

2012-08-14 Thread Marcin Cieslak
Follow up to de82eebdd56c02ae200bf2d9ec60df053919e7e7 --- cde/lib/tt/lib/db/tt_db_client.C |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/lib/tt/lib/db/tt_db_client.C b/cde/lib/tt/lib/db/tt_db_client.C index 24d369c..22e210f 100644 --- a/cde/lib/tt/lib/db/tt_db_client.C

Re: [cdesktopenv-devel] [PATCH] const char maze: unbreak ToolTalk build

2012-08-14 Thread Marcin Cieslak
>> Marcin Cieslak wrote: > Follow up to de82eebdd56c02ae200bf2d9ec60df053919e7e7 > --- > cde/lib/tt/lib/db/tt_db_client.C |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/cde/lib/tt/lib/db/tt_db_client.C > b/cde/lib/tt/lib/db/tt_db_client

Re: [cdesktopenv-devel] [PATCH] Process SGML and man files

2012-08-15 Thread Marcin Cieslak
>> Ulrich Wilkens wrote: > diff --git a/cde/programs/nsgmls/parser_inst.m4 > b/cde/programs/nsgmls/parser_inst.m4 > index 4c09cb2..a325156 100644 > --- a/cde/programs/nsgmls/parser_inst.m4 > +++ b/cde/programs/nsgmls/parser_inst.m4 > @@ -26,6 +26,7 @@ > #undef SP_DEFINE_TEMPLATES > > #includ

[cdesktopenv-devel] [PATCH 14/16] FreeBSD does not need extern char *sys_errlist[]

2012-08-15 Thread Marcin Cieslak
Add preprocessor directives not to try to redefine sys_errlist[] or sys_nerr There are already definitions: extern __const char *__const sys_errlist[]; extern __const int sys_nerr; in Actually we should have something like NeedSysErrlist in imake definitions to get rid of those #ifdefs. ---

[cdesktopenv-devel] [PATCH 15/16] Modern BSDs don't need union wait

2012-08-15 Thread Marcin Cieslak
We have pid_t wait3(int *status, int options, struct rusage *rusage); on FreeBSD and we don't need (union wait) handling. Another good candidate for one #ifdef from imake templates. We have already OPT_BSD_WAIT in ToolTalk's tt_options.h --- cde/programs/dtudcexch/exportbdf.c |2

[cdesktopenv-devel] [PATCH 16/16] FreeBSD updates for dtspcd, dtfile and others

2012-08-15 Thread Marcin Cieslak
* Add libraries where necesary * Point to Freetype2 includes for dtfile * Define default manpath --- cde/programs/dtaction/Imakefile |4 cde/programs/dtcm/dtcm/Imakefile |2 +- cde/programs/dtfile/Imakefile |2 +- cde/programs/dtsearchpat

Re: [cdesktopenv-devel] running rpcbind without -i (insecure)

2012-08-15 Thread Marcin Cieslak
>> Jon Trulson wrote: > This message is in MIME format. The first part should be readable text, > while the remaining parts are likely unreadable without MIME-aware tools. > > --8323329-905150771-1345051536=:12267 > Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII > > In IRC yesterda

Re: [cdesktopenv-devel] [PATCH 14/16] FreeBSD does not need extern char *sys_errlist[]

2012-08-15 Thread Marcin Cieslak
On Wed, 15 Aug 2012, Jon Trulson wrote: > On Wed, 15 Aug 2012, Marcin Cieslak wrote: > > > Add preprocessor directives not to try > > to redefine sys_errlist[] or sys_nerr > > > > There are already definitions: > > > > extern __const char *__const sys_

Re: [cdesktopenv-devel] [PATCH 15/16] Modern BSDs don't need union wait

2012-08-15 Thread Marcin Cieslak
On Wed, 15 Aug 2012, Jon Trulson wrote: > On Wed, 15 Aug 2012, Marcin Cieslak wrote: > > > We have > > > > pid_t > > wait3(int *status, int options, struct rusage *rusage); > > > > on FreeBSD and we don't need (union wait) handling. > >

[cdesktopenv-devel] [PATCH] Fix compiler warnings in dtsession

2012-08-15 Thread Marcin Cieslak
--- cde/lib/DtSvc/DtUtil2/UserMsg.h |4 +-- cde/programs/dtsession/SmCommun.c |1 + cde/programs/dtsession/SmConMgmt.c |2 +- cde/programs/dtsession/SmGlobals.c | 50 +-- cde/programs/dtsession/SmLock.c |1 + cde/programs/dtsession/SmMa

[cdesktopenv-devel] dtsession listening on IPv6?

2012-08-15 Thread Marcin Cieslak
Hello, My 64-bit FreeBSD dtsession still does not work as it should. dtsession hangs after startup - it launches dtfile, dtwm and dthelp but no application appears. dtfile can communicate to ttsession (there are some messages shown when running ttsession -t) During my troubleshooting I noticed

Re: [cdesktopenv-devel] [PATCH] Process SGML and man files

2012-08-15 Thread Marcin Cieslak
On Wed, 15 Aug 2012, Jon Trulson wrote: > On Wed, 15 Aug 2012, Ulrich Wilkens wrote: > > > Hmm, I tested the patch on Bsd and linux, on 32 and 64 bit and i didn't got > > this error. > > But anyway, here's the patch again with the last part changed. Now nsgmls > > is > > compiled with -fpermis

[cdesktopenv-devel] [PATCH] Provide basic font aliases for FreeBSD

2012-08-15 Thread Marcin Cieslak
The following font families (or their aliases) will be used: -adobe-courier-bold-o-normal--*- -adobe-courier-bold-r-normal--*- -adobe-courier-medium-o-normal--*- -adobe-courier-medium-r-normal--*- -adobe-helvetica-bold-o-normal--*- -adobe-helvetica-bold-r-normal--*- -adobe-helvetica-medium-o-norma

Re: [cdesktopenv-devel] [PATCH] Process SGML and man files

2012-08-15 Thread Marcin Cieslak
On Thu, 16 Aug 2012, Ulrich Wilkens wrote: > Let me make a remark: > > In order to compile the documents dtdocbook also needs the external > program mkcatdefs. This is part of openmotif, but unfortunately it's not > compiled by default. So I stepped into the openmotif code, compiled it > manua

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

2012-08-15 Thread Marcin Cieslak
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 all" in "databases" and see if generated files are small and contain only the e

Re: [cdesktopenv-devel] [PATCH] Use $(KORNSHELL) for dtksh as well

2012-08-15 Thread Marcin Cieslak
On Thu, 16 Aug 2012, Ulrich Wilkens wrote: > On 08/15/12 04:39, Jon Trulson wrote: > > On Wed, 15 Aug 2012, Marcin Cieslak wrote: > > > > Applied. > > > > > This patch fails on FreeBSD 9.0 i3386 with: > > ./cdesktopenv-code/cde/programs/dtksh/ksh93

Re: [cdesktopenv-devel] Dtfile segfault (linux amd64)

2012-08-16 Thread Marcin Cieslak
On Thu, 16 Aug 2012, Lennert Van Alboom wrote: > Done; attached the (new) gdb and strace logs, as well as the valgrind log. > Hope > it sheds some light :-) thanks for helping. Thanks, I think I have a similar crash in dtpad. Also with CreateMenu. //Marcin --

[cdesktopenv-devel] [PATCH] Build missing Xm.cat Mrm.cat Uil.cat for LANG=C

2012-08-16 Thread Marcin Cieslak
We need to use mkcatdefs to build those. mkcatdefs needs to be built from the open motif source tree (localized/util/mkcatdefs.c) and installed as: cde/imports/motif/localized/util/mkcatdefs --- cde/programs/localized/templates/msg.C.tmpl |7 --- 1 file changed, 4 insertions(+), 3 deleti

[cdesktopenv-devel] dtsession/DtSvc corrupting environment?

2012-08-16 Thread Marcin Cieslak
Hello, After enabling session log in .dtprofile: export dtstart_sessionlogfile="somefile I noticed that applications complain about broken environment passed to them: dthelpview: environment corrupt; missing value for `yA ^[[?1;2c Indeed, after additional debug logging it seems like space allo

Re: [cdesktopenv-devel] [PATCH] Build missing Xm.cat Mrm.cat Uil.cat for LANG=C

2012-08-17 Thread Marcin Cieslak
On Thu, 16 Aug 2012, Jon Trulson wrote: > On Fri, 17 Aug 2012, Marcin Cieslak wrote: > > > We need to use mkcatdefs to build those. > > > > mkcatdefs needs to be built from the open motif > > source tree (localized/util/mkcatdefs.c) > > and installed as:

Re: [cdesktopenv-devel] New dependency in linux/configRun?

2012-08-17 Thread Marcin Cieslak
On Fri, 17 Aug 2012, Marc Balmer wrote: > Since today, the script in linux/configRun calls a binary lpstat, which > is not installed on my Debian squeeze 32 bit system. > > I did not find out which package does provide lpstat, can someone > enlighten me, please? There is a bunch of tools and a l

Re: [cdesktopenv-devel] More dtcreate fixes

2012-08-17 Thread Marcin Cieslak
On Thu, 16 Aug 2012, Frederic Koehler wrote: > Fix some more obvious bugs; unfortunately, they don't seem to be behind > dtcreate's current brokenness. > I would be careful here: @@ -278,6 +278,7 @@ charlinebuf[1024],**wordPairs,**execstr; { ActionDataptr->

[cdesktopenv-devel] amd64 segfaults interfacing with libXm

2012-08-17 Thread Marcin Cieslak
On Fri, 17 Aug 2012, Lennert Van Alboom wrote: > Dtmail segfaults when configuring it for IMAP mail server retrieval. > Any help is appreciated. I have traced and fixed my problem with dtpad crash on startup which is I think similar issue to what you reported before and maybe now. Some of the

Re: [cdesktopenv-devel] dtsession/DtSvc corrupting environment?

2012-08-17 Thread Marcin Cieslak
On Thu, 16 Aug 2012, Jon Trulson wrote: > On Thu, 16 Aug 2012, Jon Trulson wrote: > > > On Thu, 16 Aug 2012, Marcin Cieslak wrote: > > > > > Hello, > > > > > > After enabling session log in .dtprofile: > > > > [...] > > > &g

[cdesktopenv-devel] Action "ExitSession" not found

2012-08-17 Thread Marcin Cieslak
Slowly by dtsession is getting somewhere on my FreeBSD/amd64. Now I get Action "Dthelpgen_delay" not found and Action "ExitSession" not found Also front panel does not start. I could start dtterm/dtpad by hand and even dtstyle works. Any ideas where to search for the missing actions? //Marc

Re: [cdesktopenv-devel] Action "ExitSession" not found

2012-08-18 Thread Marcin Cieslak
On Fri, 17 Aug 2012, Jon Trulson wrote: > On Fri, 17 Aug 2012, Marcin Cieslak wrote: > > > Any ideas where to search for the > > missing actions? > > > > What do you get when you run 'dttypes'? I believe these are installed > in appconfig/types/$LANG

Re: [cdesktopenv-devel] keyboard and xorg

2012-08-18 Thread Marcin Cieslak
On Sat, 18 Aug 2012, Antonis Tsolomitis wrote: > > Hello to all. > > I do not know..., is this the right list to report bugs? Or there will > be another service for bugs? Yes, we just started :) > setxkbmap -layout us,gr -option grp:alt_shift_toggle -option > terminate:ctrl_alt_bksp -option gr

Re: [cdesktopenv-devel] keyboard and xorg

2012-08-18 Thread Marcin Cieslak
On Sat, 18 Aug 2012, Antonis Tsolomitis wrote: > > >> setxkbmap -layout us,gr -option grp:alt_shift_toggle -option > >> terminate:ctrl_alt_bksp -option grp_led:scroll -option eurosign:5 > >> -option eurosign:e -option ctrl:swapcaps > > What locale are you running? > > It does the same either in

Re: [cdesktopenv-devel] [PATCH] Provide basic font aliases for FreeBSD

2012-08-19 Thread Marcin Cieslak
On Sun, 19 Aug 2012, Ulrich Wilkens wrote: > > The font -b&h-lucidasans-medium-r-normal-sans-*- doesn't seem to exist > on a freshly installed system with xorg port. Did you use an additional > port for it? Or can you replace it with another font? > For example with -b&h-lucidabright-medium-r-n

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

2012-08-19 Thread Marcin Cieslak
On Sun, 19 Aug 2012, Pascal Stumpf wrote: > See patch. Just curious, why is this: + LC_CTYPE=""; \@@\ + export LC_CTYPE; \@@\ necessary? I build CDE having LANG=pl_PL.UTF-8 without visi

[cdesktopenv-devel] TT_ERR_PROCID with dtmail/dtpad

2012-08-19 Thread Marcin Cieslak
Seems like I have to run dtmail both setuid root and setgid mail (with setgid only I get a well known error), but here is something different: After I go to Mailbox -> Mail Options and then "Apply" I get the dialog box saying: Action: Mailer[Error] The request to service this action has failed f

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

2012-08-19 Thread Marcin Cieslak
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. No, I do not change any of LC_* variables. I was not sure what is your goal here. If we just wa

[cdesktopenv-devel] [PATCH] Add mkcatdefs and book.* to .gitignore

2012-08-19 Thread Marcin Cieslak
--- cde/.gitignore |4 1 file changed, 4 insertions(+) diff --git a/cde/.gitignore b/cde/.gitignore index 6b4a79a..7b78641 100644 --- a/cde/.gitignore +++ b/cde/.gitignore @@ -144,6 +144,7 @@ programs/localized/ko_KR.dt-eucKR/msg/*.tmp.msg programs/localized/sv_SE.ISO8859-1/msg/*.tmp.ms

Re: [cdesktopenv-devel] CDE from git master + Marcin Cieslak's patches bringup on freebsd9 64bit

2012-08-19 Thread Marcin Cieslak
On Sun, 19 Aug 2012, Jubal Skaggs wrote: > Here we go, after applying Marcin's patches, I can bring up Xsession using > these notes - can we make a wiki page for FreeBSD? :-) Thanks for writing this up! > 1. Install freebsd9-amd64, get lib32 and ports > > 2. Add your hostname to the localhost

Re: [cdesktopenv-devel] [PATCH] DtWidget: Improve portability of Motif interface

2012-08-20 Thread Marcin Cieslak
On Sun, 19 Aug 2012, Jon Trulson wrote: > I propose that I take those header from the LGPL motif I have, add the > appropriate license headers, and put them in imports/motif/include/ You are right - I included them to push my change out fast (I dislike WIP to be stuck forever in my working tree)

Re: [cdesktopenv-devel] [PATCH] DtWidget: Improve portability of Motif interface

2012-08-20 Thread Marcin Cieslak
On Mon, 20 Aug 2012, Jon Trulson wrote: > On Mon, 20 Aug 2012, Marcin Cieslak wrote: > > > On Sun, 19 Aug 2012, Jon Trulson wrote: > > > > > I propose that I take those header from the LGPL motif I have, add the > > > appropriate license headers, a

Re: [cdesktopenv-devel] CDE from git master + Marcin Cieslak's patches bringup on freebsd9 64bit

2012-08-20 Thread Marcin Cieslak
On Mon, 20 Aug 2012, Jon Trulson wrote: > On Mon, 20 Aug 2012, Christopher Turkel wrote: > > > Since I'm not a coder, can someone tell me how to apply the FreeBSD patches > > mentioned in those two emails? > > > > > > The easiest way is using 'git am '... > > To avoid possible issues with furt

[cdesktopenv-devel] CDE git repository with Marcin Cieslak's patches for FreeBSD

2012-08-21 Thread Marcin Cieslak
On Tue, 21 Aug 2012, Marcin Cieslak wrote: > On Mon, 20 Aug 2012, Jon Trulson wrote: > > > On Mon, 20 Aug 2012, Christopher Turkel wrote: > > > > > Since I'm not a coder, can someone tell me how to apply the FreeBSD > > > patches mentioned in those two

Re: [cdesktopenv-devel] Compiz or Compositing compatibility?

2012-08-22 Thread Marcin Cieslak
On Wed, 22 Aug 2012, Martin wrote: > Hey, > > First off when i do login to CDE nothing appears except the help for how to > use CDE, i am not sure where the issue lies as i followed the installation > instructions on sourceforge to a "T". What is your $LANG? (If you have a chance to open the ter

[cdesktopenv-devel] Various build failures as of today

2012-08-22 Thread Marcin Cieslak
After cleaning ".depend" files (necessary because I have linked motif includes differently) I am getting various build failures: 1) making all in programs/localized/C/app-defaults... Extracting NLS messages for: Dthelpview ../../../../programs/localized/util/merge -lang C Dthelpview.tmsg < Dthe

Re: [cdesktopenv-devel] Various build failures as of today

2012-08-22 Thread Marcin Cieslak
On Wed, 22 Aug 2012, Marcin Cieslak wrote: > After cleaning ".depend" files (necessary because I have > linked motif includes differently) I am getting > various build failures: Another one: 3) rm -f ttdesktop.o CC -c -O2 -I../../lib -I../../../.. -I../../../../

Re: [cdesktopenv-devel] Various build failures as of today [solved]

2012-08-22 Thread Marcin Cieslak
On Wed, 22 Aug 2012, Marcin Cieslak wrote: > After cleaning ".depend" files (necessary because I have > linked motif includes differently) I am getting > various build failures: (...) Seems like I was working a lot in the unclean environment - some required dtlogin files wer

Re: [cdesktopenv-devel] 64 bit pointer issue in the ToolTalk ISAM library

2012-08-22 Thread Marcin Cieslak
>> Chris Wareham wrote: > Hi folks, > > I've been cleaning up the code in the ToolTalk ISAM library > (cde/lib/tt/mini_isam), and writing some tests around it. However, I've > run into a nasty 64 bit pointer issue on LP64 systems that I'm unsure > how to fix. > > The source file cde/lib/tt/mini_is

[cdesktopenv-devel] On TI-RPC, TLI and IPv6

2012-08-22 Thread Marcin Cieslak
I've had a brief look at the possibility of adding IPv6 support to ToolTalk. It is necessary for me as rpc.ttdbserver when invoked from FreeBSD's inetd will likely receive an AF_INET6 ::1 socket instead of AF_INET 127.0.0.1. The TI-RPC stack that supports NFSv4 and IPv6 has imported lots of Sun's

[cdesktopenv-devel] [PATCH] examples/tt now runs on FreeBSD

2012-08-22 Thread Marcin Cieslak
--- cde/.gitignore |3 +++ cde/examples/tt/Makefile.FreeBSD | 45 ++ cde/examples/tt/broadcast.c | 36 +- 3 files changed, 69 insertions(+), 15 deletions(-) create mode 100644 cde/examples/tt/Makefile.F

Re: [cdesktopenv-devel] New src tarball in a couple weeks?

2012-08-22 Thread Marcin Cieslak
On Wed, 22 Aug 2012, Jon Trulson wrote: > The current src tarball up on SF is... well, way out of date compared > to where git master is now. > > I'd like to get some fixes into master and make a new one in around 2 > weeks. Does that seem reasonable? > > Specifically, I'd like: > > 1) *BSD fi

Re: [cdesktopenv-devel] Error processing book.esis by instant / couldn't create error file for command

2012-08-22 Thread Marcin Cieslak
On Wed, 22 Aug 2012, Jon Trulson wrote: > On Wed, 22 Aug 2012, Marcin Cieslak wrote: > > BTW - why don't guides build yet on fbsd? Still locale issues? Sorry, I meant "help" not "guides": making all in doc/C... + mkdir -p help-sdl + mkdir -p cde.dti

[cdesktopenv-devel] [PATCH 27/27] 64bit: Fix crash in dtexec

2012-08-23 Thread Marcin Cieslak
No ANSI prototype for malloc() caused the returned pointer to be truncated to 32 bits. --- cde/lib/DtSvc/DtUtil2/DtGetMessage.c |1 + cde/lib/DtSvc/DtUtil2/MsgLog.c |2 +- cde/programs/dtexec/Main.c | 19 +++ 3 files changed, 13 insertions(+), 9 deletions(

[cdesktopenv-devel] [PATCH 25/27] Use FreeBSD-specific invocation of /bin/ps

2012-08-23 Thread Marcin Cieslak
--- cde/programs/dtlogin/config/_common.ksh.src |4 +++- cde/programs/dtprintinfo/util/Process.C |2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtlogin/config/_common.ksh.src b/cde/programs/dtlogin/config/_common.ksh.src index 90154a6..b3b73ea 100644

[cdesktopenv-devel] [PATCH 26/27] FreeBSD: scan /usr/local/lib/X11/fonts/ for fontpath

2012-08-23 Thread Marcin Cieslak
--- cde/programs/dtlogin/config/_common.ksh.src | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtlogin/config/_common.ksh.src b/cde/programs/dtlogin/config/_common.ksh.src index b3b73ea..6386d13 100644 --- a/cde/programs/dtlogin/config

Re: [cdesktopenv-devel] New src tarball in a couple weeks?

2012-08-23 Thread Marcin Cieslak
On Thu, 23 Aug 2012, David Cantrell wrote: > > - fix shared library scheme - now apps link to > > > > libtt.so => /usr/dt/lib/libtt.so (0x800fbe000) > > libDtSvc.so => /usr/dt/lib/libDtSvc.so (0x800d57000) > > > > instead of the libtt.so.2, libDtSvc.so.2 (as I think it should be) > > Ar

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

2012-08-23 Thread Marcin Cieslak
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. Tested using the following /bin/ksh: 8< WHAT=`ps -o command= -p $PPID` msg="Something tried to call /bin/ksh: $PP

[cdesktopenv-devel] Looking for working help files (.sdl)

2012-08-23 Thread Marcin Cieslak
Hello, for anyone of you who have the help system working: - I am looking for good .sdl files (for example /usr/dt/appconfig/help/C/Intromgr.sdl) to compare with what I have. Donations welcome - you can them to my ftp server: saper.info login: ftp password: ftp directory: /incoming/cde or ftp

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

2012-08-23 Thread Marcin Cieslak
On Thu, 23 Aug 2012, Pascal Stumpf wrote: > 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 > > > >

[cdesktopenv-devel] [PATCH] FreeBSD: Use -O instead of -O2

2012-08-23 Thread Marcin Cieslak
--- cde/config/cf/FreeBSD.cf |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cde/config/cf/FreeBSD.cf b/cde/config/cf/FreeBSD.cf index 3817be6..3671171 100644 --- a/cde/config/cf/FreeBSD.cf +++ b/cde/config/cf/FreeBSD.cf @@ -125,14 +125,14 @@ XCOMM operating system: OSN

Re: [cdesktopenv-devel] [PATCH] FreeBSD: Use -O instead of -O2

2012-08-24 Thread Marcin Cieslak
On Thu, 23 Aug 2012, Jon Trulson wrote: > On Thu, 23 Aug 2012, Marcin Cieslak wrote: > > Applied, but why? Yes, from my limited testing it turns out that libDtHelp had trouble reading help volumes (dthelpgen couldn't find any). When I recompiled with -g everything worked; afte

[cdesktopenv-devel] [PATCH] Add pax files generated by dtksh to .gitignore

2012-08-24 Thread Marcin Cieslak
It seems that after changing -O2 to -O for FreeBSD pax started to build successfully. Interesting. --- cde/.gitignore |6 ++ 1 file changed, 6 insertions(+) diff --git a/cde/.gitignore b/cde/.gitignore index 1ebea60..b7b872c 100644 --- a/cde/.gitignore +++ b/cde/.gitignore @@ -799,6 +799,

[cdesktopenv-devel] [PATCH] Rudimentary LSBBitOrder for FreeBSD

2012-08-30 Thread Marcin Cieslak
--- cde/config/cf/FreeBSD.cf | 13 + 1 file changed, 13 insertions(+) diff --git a/cde/config/cf/FreeBSD.cf b/cde/config/cf/FreeBSD.cf index 3671171..ebaa743 100644 --- a/cde/config/cf/FreeBSD.cf +++ b/cde/config/cf/FreeBSD.cf @@ -52,6 +52,19 @@ XCOMM operating system: OSName (OSM

[cdesktopenv-devel] [PATCH] Define AMD64Architecture for FreeBSD

2012-08-30 Thread Marcin Cieslak
--- cde/config/cf/Imake.cf |5 + 1 file changed, 5 insertions(+) diff --git a/cde/config/cf/Imake.cf b/cde/config/cf/Imake.cf index 456d365..9e93abf 100644 --- a/cde/config/cf/Imake.cf +++ b/cde/config/cf/Imake.cf @@ -193,6 +193,11 @@ XCOMM $TOG: Imake.cf /main/30 1998/04/28 13:55:25 bars

[cdesktopenv-devel] [PATCH 33/35] Introduce

2012-08-30 Thread Marcin Cieslak
We need ANSI C prototypes of certain Motif functions that are not published in the official header files. header file contains the prototypes extracted from the Motif source. To re-create : 1) Make sure you have sources of libXm (lib/Xm directory of the Motif distribution) accessible via import

[cdesktopenv-devel] [PATCH 35/35] DtWidget: Improve portability of Motif interface

2012-08-30 Thread Marcin Cieslak
- Add missing includes and prototypes - Improve type compatibility - Use for unofficial libXm headers With this patch, dtpad no longer crashes on startup on FreeBSD/amd64 because of a truncated 64-bit pointer. --- cde/lib/DtWidget/ComboBox.c |4 cde/lib/DtWidget/Control.c |

[cdesktopenv-devel] [PATCH 34/35] Fix warnings in dtwm

2012-08-30 Thread Marcin Cieslak
- Improve pointer/int compatibility - Include unpublished Dt headers in Dt - Use for unpublished Motif functions There are still warnings left generated because ElementValue.parsed_value should really be a union. There are also some warnings left because of XtPointer casting and some unused vari

Re: [cdesktopenv-devel] [PATCH 33/35] Introduce

2012-08-30 Thread Marcin Cieslak
>> Jon Trulson wrote: > On Fri, 31 Aug 2012, Marcin Cieslak wrote: > >> We need ANSI C prototypes of certain Motif >> functions that are not published in the official >> header files. >> >> header file contains >> the prototypes extracted from the

[cdesktopenv-devel] [PATCH] Allow building on FreeBSD

2012-09-06 Thread Marcin Cieslak
- build shared libraries with major number only (libtt.so.2) - don't build dtlogin and dtinfo FreeBSD support for the installer: - work around awk issue - create post_install FreeBSD scripts - install only cmsd on /etc/inetd.conf skip dtspc and ttdbserver for now Note to users: please check if

Re: [cdesktopenv-devel] [PATCH] Allow building on FreeBSD

2012-09-07 Thread Marcin Cieslak
On Thu, 6 Sep 2012, Ulrich Wilkens wrote: > Hi, I have a little remark to programs/Imakefile > It's not necessary to disable dtlogin on FreeBSD. Yesterday I submitted a > patch for it (and for dtcm). It compiles now and it runs, tested on 32bit and > 64bit. And why did you introduce a new variabl

[cdesktopenv-devel] [PATCH] FreeBSD: Fix dtlogin failsafe session

2012-09-07 Thread Marcin Cieslak
We need to have /usr/local as the proper X11 prefix to start mwm and xterm --- cde/programs/dtlogin/config/Xfailsafe.src |4 cde/programs/dtlogin/session.c|2 ++ 2 files changed, 6 insertions(+) diff --git a/cde/programs/dtlogin/config/Xfailsafe.src b/cde/programs/dtlogi

[cdesktopenv-devel] git am question (was: FreeBSD: Fix dtlogin failsafe session)

2012-09-09 Thread Marcin Cieslak
On Fri, 7 Sep 2012, Jon Trulson wrote: > On Fri, 7 Sep 2012, Marcin Cieslak wrote: > > > We need to have /usr/local as the proper > > X11 prefix to start mwm and xterm > > Applied. Thanks! I have a git question here: My patch was 87ce24fc6ae07be01dd3bf9bd1ed5694336

Re: [cdesktopenv-devel] git am question (was: FreeBSD: Fix dtlogin failsafe session)

2012-09-09 Thread Marcin Cieslak
ommits were created? commit 1e4e442df186df4e5319f7bd31b4e8e217dec49a Merge: 87ce24f bd70163 Author: Marcin Cieslak Date: Sun Sep 9 10:57:30 2012 +0200 Merge remote-tracking branch 'origin/master' commit bd70163b09ff59331bceba9506c7cc51962571f1 Author: Marcin Cieslak Date: Fri Sep

Re: [cdesktopenv-devel] git am question (was: FreeBSD: Fix dtlogin failsafe session)

2012-09-09 Thread Marcin Cieslak
On Sun, 9 Sep 2012, Jon Trulson wrote: > How did you get this output? On my master, being the same as the upstream master at 1a51479e382c29a4859b16e9e1a060c06130bd2d I have added necessary changes and commited them. This way 87ce24fc6ae07be01dd3bf9bd1ed569433654803 was created. Then I did: git

Re: [cdesktopenv-devel] Fix for dtexec

2012-09-09 Thread Marcin Cieslak
On Sun, 9 Sep 2012, Mike Stroyan wrote: > The root of the problem is an assumption in dtexec that fstat will report the > number of readable > characters in a pipe as the st_size. Recent linux kernels always return 0 for > st_size of a pipe. Can we make it conditional on Linux only? It seems tha

[cdesktopenv-devel] [PATCH] FreeBSD: Don't set MANPATH, use OS configuration

2012-09-10 Thread Marcin Cieslak
- make installer to set up man(1) paths using /usr/local/etc/man.d/* - don't override empty/unset MANPATH with compiled in default --- .../IntegTools/post_install/freebsd/configMin.src | 16 cde/programs/dtlogin/config/0060.dtsysenv.src |2 ++ cde/programs/dtsearchpath

[cdesktopenv-devel] [PATCH] BSD: Add /usr/local/bin to the default PATH on login

2012-09-10 Thread Marcin Cieslak
--- cde/programs/dtlogin/config/Xconfig.src |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtlogin/config/Xconfig.src b/cde/programs/dtlogin/config/Xconfig.src index 2f2d430..16cbe4b 100644 --- a/cde/programs/dtlogin/config/Xconfig.src +++ b/cde/programs/dt

Re: [cdesktopenv-devel] Fix for dtexec

2012-09-10 Thread Marcin Cieslak
On Mon, 10 Sep 2012, Marc Balmer wrote: > yes, why make it conditional if the new code works on all platforms? Yes, it works for me as well. Sorry for noise. //Marcin -- Live Security Virtual Conference Exclusive live e

[cdesktopenv-devel] [PATCH] Improve MANPATH control

2012-09-17 Thread Marcin Cieslak
* Revert changes to programs/dtsearchpath/libCliSrv/UnixEnv.C introduced by c3cb5b8aa6997138dfa06da39142bf793baeae60 that could have produced disappearing Application Manager icons on FreeBSD * Introduce SearchPath:useSystemPath() virtual method to tell dtsearchpath to leave some environmen

Re: [cdesktopenv-devel] [PATCH] Improve MANPATH control

2012-09-17 Thread Marcin Cieslak
On Mon, 17 Sep 2012, Marcin Cieslak wrote: > diff --git a/cde/databases/CDE-MAN.udb b/cde/databases/CDE-MAN.udb > index fed33d4..6915999 100644 > --- a/cde/databases/CDE-MAN.udb > +++ b/cde/databases/CDE-MAN.udb > @@ -1288,6 +1288,10 @@ doc/C/man/man4/mwmrc.4 > install_ta

Re: [cdesktopenv-devel] [PATCH] BSD > BSD|linux: Add /usr/local/bin to the default PATH on login

2012-09-17 Thread Marcin Cieslak
On Mon, 17 Sep 2012, Isaac Dunham wrote: > Though it might be better to exploit /etc/profile... Is dtlogin sourcing /etc/profile at all? //Marcin -- Live Security Virtual Conference Exclusive live event will cover al

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

2012-09-17 Thread Marcin Cieslak
Add missing prototypes and header files to the dtfile code in order to move closer towards 64-bit compatibility. Extract the following functions from Motif internal headers: _XmGetWidgetExtData _XmRecordEvent _XmStringUngenerate _XmTextFieldSetDestination _XmGetActiveTopLevelMenu Extract manuall

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

2012-09-18 Thread Marcin Cieslak
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 not build > with motif sources symlinked into imports/ Ok, thank you. I don't think this is a Linux-specfic problem - I

Re: [cdesktopenv-devel] Regeneration of with XmPrivate.h

2012-09-19 Thread Marcin Cieslak
On Tue, 18 Sep 2012, Jon Trulson wrote: > On Tue, 18 Sep 2012, Marcin Cieslak wrote: > > Well, it will be a problem for anyone that does not have a built motif > src tree symlinked into imports... This is necessary only to developers needing to update XmPrivate.h only. The build

[cdesktopenv-devel] [PATCH] dttypes should not crash on 64-bit system

2012-09-21 Thread Marcin Cieslak
Casting (int) to (char **) will not prevent crash on a 64-bit system. A proper ANSI prototype has been added. --- cde/programs/util/dttypes/dttypes.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cde/programs/util/dttypes/dttypes.c b/cde/programs/util/dttypes/dttypes.c

[cdesktopenv-devel] [PATCH] Fix dtfile crash on 64 bit

2012-09-21 Thread Marcin Cieslak
When asking for data using XtVaGetValue() make sure that there is enough place for the return value (which is sometimes XtPointer). Providing pointer to (int) is not enough. Introduce unions to cast XtPointer into the requested data type. --- cde/programs/dtfile/File.c |2 +- cde/prog

  1   2   3   >