Jon Trulson [Sun, 5 Jan 2020 23:20:35 +0000 (16:20 -0700)]
configure: detect and use jpeg library
Jon Trulson [Sat, 4 Jan 2020 16:23:40 +0000 (09:23 -0700)]
FreeBSD 12: get CDE to build and run
With this patch, CDE (autotools) builds and runs on fbsd 12 now.
fbsd11 should work too, but not yet tested.
You must use gmake - ie:
./configure MAKE=gmake
gmake
Seems all of the BSD's will need to use gmake for now.
Jon Trulson [Fri, 3 Jan 2020 05:14:23 +0000 (22:14 -0700)]
configure: get the language enable options working
Jon Trulson [Fri, 3 Jan 2020 02:14:16 +0000 (19:14 -0700)]
configure: fix some bsd issues
1. On OpenBSD, and check is made for only bison or byacc. yacc is
present, but not usable apparently. So - need to install bison on the
BSD's.
2. the libjpeg.h check fails as it is located in a non-standard
location (/usr/local) on BSD systems. Just remove the check for now
until we have a better way to check that stuff (like X11 and Xm
headers too).
Jon Trulson [Fri, 3 Jan 2020 01:28:02 +0000 (18:28 -0700)]
configure: add some more error checking/reporting for required programs
A list of major things like ksh, cpp, etc are saved in a list if they
are not found. If this list is non-empty when configure is nearly
done, an error message is displayed listing the missing programs.
This is less annoying than stopping after every missing programs.
Also, removed the X11/Xm header checks for now. Those need to take
into account X_CFLAGS in some way since these files are located in
dirfferent areas on different OS's (obsd puts them in
/usr/X11R6/include for example).
Jon Trulson [Mon, 16 Dec 2019 00:36:19 +0000 (17:36 -0700)]
configure: make sure X_EXTRA_LIBS and X_PRE_LIBS are accounted for
Peter Howkins [Thu, 2 Jan 2020 23:59:53 +0000 (23:59 +0000)]
Add a few configure checks to make sure various programs and headers
needed for build are available.
Jon Trulson [Sun, 15 Dec 2019 22:18:41 +0000 (15:18 -0700)]
Merge branch 'master' into autotools-conversion
Chase [Sun, 15 Dec 2019 21:02:21 +0000 (15:02 -0600)]
extra.h: remove unused prototypes
Chase [Sun, 15 Dec 2019 16:28:22 +0000 (10:28 -0600)]
dtksh: remove needless OS defines
Chase [Sun, 15 Dec 2019 16:22:54 +0000 (10:22 -0600)]
dtkcmds.c: avoid c99 collision
Chase [Sun, 15 Dec 2019 16:19:37 +0000 (10:19 -0600)]
dtksh: remove unused files and functions
Jon Trulson [Sun, 15 Dec 2019 19:47:57 +0000 (12:47 -0700)]
configure: set a compiler search option
... and move the PROG_CC and PROG_CXX checks toward the beginning.
Without the move the compiler search arguments are ignored. We search
for 'cc gcc clang' and 'c++ g++ clang++', in that order for CC and CXX
respectively.
This means there should be no need to override the CC
and CXX variables on the configure command line for BSD systems.
On OpenBSD for example, cc links to clang. On Linux, cc links to
gcc. You can still override these if you like with CC=... and
CXX=... on the configure command line.
gmake (MAKE=gmake) still needs to be used on the BSD's though.
With these and previous changes, CDE builds, installs, and runs
correctly on OpenBSD 6.5 now.
Jon Trulson [Sun, 15 Dec 2019 19:34:00 +0000 (12:34 -0700)]
_common.dt.tmsg: remove unportable quote hackery
Jon Trulson [Sun, 15 Dec 2019 02:58:34 +0000 (19:58 -0700)]
localized: use proper mkcatdefs for the Motif catalogs
Jon Trulson [Sun, 15 Dec 2019 02:14:52 +0000 (19:14 -0700)]
dtsession: do not hardcode -lcrypt on link
Jon Trulson [Sun, 15 Dec 2019 02:05:35 +0000 (19:05 -0700)]
gencat: get rid of -o option, not needed and not supported on some systems
Jon Trulson [Sun, 15 Dec 2019 02:04:22 +0000 (19:04 -0700)]
configure: fix another bsd related typo
Jon Trulson [Sun, 15 Dec 2019 01:22:49 +0000 (18:22 -0700)]
dtlogin: build on openbsd
Jon Trulson [Sat, 14 Dec 2019 21:21:41 +0000 (14:21 -0700)]
dtopen/Makefile.am: fix typo in link for pdf handler
Jon Trulson [Sat, 14 Dec 2019 02:01:21 +0000 (19:01 -0700)]
configure: first stab at a BSD (openbsd 6.5) build
Jon Trulson [Thu, 5 Dec 2019 01:24:04 +0000 (18:24 -0700)]
dtopen: install symlinked helpers
With this commit, CDE can install and run now. There are still some
programs/ that are not yet built:
dthelp dtksh dtappbuilder dtdocbook dtinfo nsgmls ttsnoop
and of course documentation (doc/). But this is a great start. For
the first time, things build, install, AND run correctly :)
Jon Trulson [Thu, 5 Dec 2019 01:09:22 +0000 (18:09 -0700)]
library versioning: use proper format and specify for ALL libraries
Jon Trulson [Wed, 4 Dec 2019 23:36:09 +0000 (16:36 -0700)]
programs/Makefile.am: add missing palettes/ dir
Jon Trulson [Wed, 4 Dec 2019 22:47:28 +0000 (15:47 -0700)]
fontaliases: redo the way these are built, and actually install them
Use a common make include file to do most of the work and set the
appropriate LANG from localized/templates/ . This should simplify it
quite a bit and reduce duplication.
Also we were not even installing them, so now we are.
Jon Trulson [Wed, 4 Dec 2019 21:28:44 +0000 (14:28 -0700)]
cpp revisited: look for a cpp binary in various locations for use at runtime
Certain programs like dtlogin and tt_type_comp need access to the
system's cpp command to process certain files at runtime. tradcpp is
not installed on most systems, and is intended for use as a imake-cpp
replacement which is all we are using it for. We still need an
honest cpp for the CDE components to use.
Now, we look in various places for a 'cpp' command and set CPP_COMMAND
to it's value. This way tt_type_comp and other CDE programs can do
required processing at runtime.
Jon Trulson [Wed, 4 Dec 2019 20:43:18 +0000 (13:43 -0700)]
dtwm: don't install Dtwm.defs - that is processed/handled by localization
Jon Trulson [Wed, 4 Dec 2019 20:22:11 +0000 (13:22 -0700)]
icons: install in proper C/ subdir
Jon Trulson [Wed, 4 Dec 2019 20:21:31 +0000 (13:21 -0700)]
Fix palette and backdrops installation in dt/shared with proper symlinks
Jon Trulson [Wed, 4 Dec 2019 01:12:22 +0000 (18:12 -0700)]
tradcpp: upgrade to 0.5.3
Jon Trulson [Wed, 4 Dec 2019 00:14:32 +0000 (17:14 -0700)]
dtsession/SrvPalette.c: delete trailing whitespace
Jon Trulson [Wed, 4 Dec 2019 00:10:35 +0000 (17:10 -0700)]
dtsession/SrvPalette.c: fix bogus error handling when selection is lost
Jon Trulson [Tue, 3 Dec 2019 21:06:18 +0000 (14:06 -0700)]
dtlogin/dtsession: fix up some script perms, add proper OS defines
Jon Trulson [Tue, 3 Dec 2019 20:07:19 +0000 (13:07 -0700)]
dtlogin: set correct OS defines for Xsession, fix linux maildir
Jon Trulson [Tue, 3 Dec 2019 20:06:21 +0000 (13:06 -0700)]
videoTypes.dt: remove duplicate LABEL in Print action
Jon Trulson [Tue, 3 Dec 2019 06:01:28 +0000 (23:01 -0700)]
dtsession: add missing dtsession_res script
Jon Trulson [Tue, 3 Dec 2019 06:01:08 +0000 (23:01 -0700)]
dtwm: fix installation
Jon Trulson [Tue, 3 Dec 2019 06:00:16 +0000 (23:00 -0700)]
dtlogin: fixup some of the options
Jon Trulson [Tue, 3 Dec 2019 05:13:39 +0000 (22:13 -0700)]
dtlogin: install Xsession properly
Jon Trulson [Tue, 3 Dec 2019 02:59:44 +0000 (19:59 -0700)]
Get tttypes installed correctly.
There is a problem with CPP_PROGRAM - using $CPP or $GENCPP (tradcpp)
always fails in tt_type_comp with the error:
"nclude ", line 8: syntax error
If I define it to /lib/cpp (previous hardcoded value) then it seems to
work fine. Only the dtinfo and dtinfo_start ptypes use #include, and
therefore show this error. Needs investigation.
Jon Trulson [Tue, 3 Dec 2019 02:31:02 +0000 (19:31 -0700)]
Get the dt types installed properly on make install
Jon Trulson [Tue, 3 Dec 2019 02:20:36 +0000 (19:20 -0700)]
Get the palettes installed properly on make install
Jon Trulson [Tue, 3 Dec 2019 02:06:31 +0000 (19:06 -0700)]
Get the message catalogs installed properly on make install
Jon Trulson [Mon, 2 Dec 2019 21:33:05 +0000 (14:33 -0700)]
Get /usr/dt/config populated correctly on make install
Jon Trulson [Mon, 2 Dec 2019 20:08:52 +0000 (13:08 -0700)]
Install backdrops in proper location, install localization for them
Jon Trulson [Mon, 2 Dec 2019 20:08:06 +0000 (13:08 -0700)]
app-defaults.am: tweak installation
Jon Trulson [Mon, 2 Dec 2019 05:26:47 +0000 (22:26 -0700)]
Get app-defaults installing correctly
Jon Trulson [Mon, 2 Dec 2019 01:57:07 +0000 (18:57 -0700)]
linux.cf: always use bison
For some reason, whenever OSMajorVersion was >= 2 (this equates to a
2.x kernel or above), yacc would be used instead of bison.
On Ubuntu, and probably other linux systems, yacc is just a shell
wrapper around bison, so let's just use that directly.
Jon Trulson [Sun, 1 Dec 2019 20:44:02 +0000 (13:44 -0700)]
tt_type_comp: incorporate master CPP_PROGRAM fix into Makefile.am
Jon Trulson [Sun, 1 Dec 2019 20:31:21 +0000 (13:31 -0700)]
Merge branch 'master' into autotools-conversion
Jon Trulson [Sun, 1 Dec 2019 05:21:48 +0000 (22:21 -0700)]
programs/dtimsstart/Makefile.am: fix typo
Jon Trulson [Sun, 1 Dec 2019 03:45:50 +0000 (20:45 -0700)]
localization: disable parallel builds for app-defaults, types, and config
These use the 'merge' utility which hardcodes temp files and the like
- it cannot be run with other instances without generating bogus
errors and occasionally coredumping. :(
Jon Trulson [Sun, 1 Dec 2019 03:08:11 +0000 (20:08 -0700)]
localization: finish up with getting message catalogs building
There are still some issues here - specifically with the C
dtbuilder/dtcodegen catalogs. They may be broken due to dtbuilder not
being built yet.
Also, once dtinfo can be built, the msgs and app-defaults for it
should be re-enabled.
I also see gencat coredumping in localization/ while doing a multicore
(-jX) make. Regular single core builds seem to work fine.
Jon Trulson [Sun, 1 Dec 2019 03:06:58 +0000 (20:06 -0700)]
root Makefile.am: disable doc/ for now
Jon Trulson [Sun, 1 Dec 2019 03:04:06 +0000 (20:04 -0700)]
localized: temporarily disable dtinfo appdefaults
Jon Trulson [Sun, 1 Dec 2019 00:12:15 +0000 (17:12 -0700)]
localized: make palettes build
Jon Trulson [Sun, 1 Dec 2019 00:00:34 +0000 (17:00 -0700)]
localized: make types build
Jon Trulson [Sun, 1 Dec 2019 00:00:00 +0000 (17:00 -0700)]
localized: make backdrops build
Jon Trulson [Sat, 30 Nov 2019 23:18:45 +0000 (16:18 -0700)]
localized: make configs build
Marcin Cieślak [Sat, 30 Nov 2019 03:51:40 +0000 (03:51 +0000)]
dtdocbook/instant: fix buffer overlow on German umlaut in latin-1
One-off error:
Old buffer length was 6 for one character (3 * 1 + 3)
We need one more byte par character in the buffer for
the hex representation of it.
+0 '"'
+1 '\\'
+2 'x'
+3 'f'
+4 'c'
+5 '"'
+6 0x0 << overflow
tcl combined with RCHECK will abort because memory blocks
are allocated contiguously and we overwrite the magic marker
of the next block.
Nina Didenko [Sun, 24 Nov 2019 07:42:05 +0000 (10:42 +0300)]
tt_type_comp: use CppCmd definition
Hi.
This patch makes tt_type_comp respect CppCmd
Thanks!
Jon Trulson [Mon, 25 Nov 2019 01:53:41 +0000 (18:53 -0700)]
localization: make FR, DE, IT, and ES app-defaults/ build
Jon Trulson [Mon, 25 Nov 2019 00:52:29 +0000 (17:52 -0700)]
localized/C/app-defaults: make it build
Jon Trulson [Mon, 25 Nov 2019 00:43:50 +0000 (17:43 -0700)]
merge, mkcatdefs: add missing includes, clean up trailing whitespace
Jon Trulson [Mon, 25 Nov 2019 00:01:57 +0000 (17:01 -0700)]
dthello: build the resource file Dthello
Jon Trulson [Sat, 23 Nov 2019 00:35:21 +0000 (17:35 -0700)]
dtprintinfo: fix a mulit-core build race, for realz this time
Jon Trulson [Sat, 23 Nov 2019 00:14:27 +0000 (17:14 -0700)]
dtopen: make it build
Also, move localized subdir to last in current list of programs/ SUBDIRS
Jon Trulson [Sat, 23 Nov 2019 00:07:34 +0000 (17:07 -0700)]
dttypes: make it build
Jon Trulson [Fri, 22 Nov 2019 23:58:58 +0000 (16:58 -0700)]
tttypes: make it build
Jon Trulson [Fri, 22 Nov 2019 21:33:34 +0000 (14:33 -0700)]
types: make it build
Jon Trulson [Fri, 22 Nov 2019 20:42:02 +0000 (13:42 -0700)]
Fix up a couple issues with multi-core builds and 2 race conditions
Jon Trulson [Fri, 22 Nov 2019 20:13:41 +0000 (13:13 -0700)]
dtpdmd: make it build
Jon Trulson [Fri, 22 Nov 2019 20:01:36 +0000 (13:01 -0700)]
dtsr: make it build; configure: fix cpu detection
Jon Trulson [Fri, 22 Nov 2019 19:09:55 +0000 (12:09 -0700)]
dtpdm: make it build
Jon Trulson [Fri, 22 Nov 2019 03:06:29 +0000 (20:06 -0700)]
dtimsstart: make it build
Jon Trulson [Fri, 22 Nov 2019 02:54:09 +0000 (19:54 -0700)]
programs: disable ttsnoop for now
Jon Trulson [Fri, 22 Nov 2019 02:53:30 +0000 (19:53 -0700)]
dtdspmsg: make it build
Jon Trulson [Fri, 22 Nov 2019 02:47:38 +0000 (19:47 -0700)]
fontaliases: make it build, and rework somewhat
Jon Trulson [Fri, 22 Nov 2019 00:43:27 +0000 (17:43 -0700)]
dtprintinfo: make it build
Also, it was easier just to use a single Makefile.am rather than one for
every subdir, so thats what we did here.
Jon Trulson [Thu, 21 Nov 2019 21:14:59 +0000 (14:14 -0700)]
configure: rework libXinerama detection a bit, remove hardcoded -lXinerama's
Make -lXinerama a dep on libDtXinerama so it doen't need to be
specified in Makefile.am files or in LIBS as it was being done
previously.
This still needs a little work, ideally Xinerama should be completely
optional and only enabled if present. But we can save that for
later.
Jon Trulson [Thu, 21 Nov 2019 21:13:48 +0000 (14:13 -0700)]
dtmailpr: fix vla warning
Nina Didenko [Wed, 20 Nov 2019 19:50:06 +0000 (22:50 +0300)]
installCDE: don't hardcode path to whoami
Hi.
Patch removes hardcoded paths to echo and whoami in installation scripts.
Thanks.
Jon Trulson [Thu, 21 Nov 2019 01:35:03 +0000 (18:35 -0700)]
Remove $(TIRPCINC) from all Makefile.am files - it no longer exists
Also, restructure some of the dependencies in the lib/tt binaries. We
will link with libtt (which will include libtirpc as a dependency),
and XTOOLLIB - all the right X11 stuff without needing to add it to
every OS. Removed several uneeded OS specializations ("if LINUX",
etc) as a result.
Jon Trulson [Thu, 21 Nov 2019 01:26:59 +0000 (18:26 -0700)]
configure: rework the way TIRPC is detected and handled
Previously we would detect whether TIRPC is installed or not, and set
TIRPCINC to the include directory with the -DOPT_TIRPC macro defined.
Then, pretty much every Makefile.am needs to be sure that $(TIRPCINC) is
specified in the cpp/c/cxx flags.
Since we can never be sure that an RPC header file might be indirectly
included, a better approach is to simply add TIRPCINC to the global
list of CXXFLAGS and CFLAGS in configure.ac for everybody. This way,
it is always specified properly on tirpc systems, and we don't need to
always add it to every individual Makefile.am since everyone will get
it by default.
TIRPCLIB is still marked as a dep in libtt, so as long as libtt is
linked, you should automatically get the tirpc library too. This is
still unchanged.
Jon Trulson [Thu, 21 Nov 2019 00:54:12 +0000 (17:54 -0700)]
dtcreate: make it build
Jon Trulson [Thu, 21 Nov 2019 00:46:20 +0000 (17:46 -0700)]
dtconfig: make it build
Jon Trulson [Thu, 21 Nov 2019 00:37:34 +0000 (17:37 -0700)]
dtconfig: get rid of obsolete imb/ and hp/ configs
Jon Trulson [Thu, 21 Nov 2019 00:09:46 +0000 (17:09 -0700)]
dtprintegrate: make it build
Jon Trulson [Wed, 20 Nov 2019 23:32:42 +0000 (16:32 -0700)]
dtappintegrate: make it build
Jon Trulson [Wed, 20 Nov 2019 23:09:46 +0000 (16:09 -0700)]
dtsearchpath: make it build
Jon Trulson [Wed, 20 Nov 2019 22:33:17 +0000 (15:33 -0700)]
dtcm: make it build
Jon Trulson [Wed, 20 Nov 2019 20:19:44 +0000 (13:19 -0700)]
dtspcd/dtterm: use proper DT_INCDIR rather than hardcoding the location
Jon Trulson [Wed, 20 Nov 2019 02:59:20 +0000 (19:59 -0700)]
dtscreen: make it build
Jon Trulson [Wed, 20 Nov 2019 02:58:55 +0000 (19:58 -0700)]
dtscreen/Dtscreen.src: remove __hpux specialization
Jon Trulson [Wed, 20 Nov 2019 02:43:34 +0000 (19:43 -0700)]
dtspcd: make it build
Jon Trulson [Wed, 20 Nov 2019 02:30:20 +0000 (19:30 -0700)]
dtaction: make it build
Jon Trulson [Wed, 20 Nov 2019 02:27:47 +0000 (19:27 -0700)]
dtcalc: make it build
Jon Trulson [Wed, 20 Nov 2019 02:15:17 +0000 (19:15 -0700)]
dtterm/util: delete this non-used stuff
Jon Trulson [Wed, 20 Nov 2019 02:14:38 +0000 (19:14 -0700)]
dtterm: make it build
Jon Trulson [Wed, 20 Nov 2019 01:38:51 +0000 (18:38 -0700)]
dticon: make it build