[Y-devel] Y-0.2 patched into running on FreeBSD 4.9
JP Dinger jpd at dsb.tudelft.nl
Sun Feb 22 20:14:10 GMT 2004
[snippety]
> >You probably want to add the proper FreeBSD support or use a posix or
> >SUS compatible construct. Or both, and let the auto*-tools sort out
> >the difference. <runs awaaaay/>
>
> You mean backport the C99 support to 4.x? Hmmmm. That could be tricky,
> but is probably the best route.
Well, maybe, but another is to not jump on the latest and greatest
standards (yeah yeah it's 5 years old. That's young in the unix world)
and make-do with almost the same but from a slightly older specification.
I mean, one of my patches was just the inclusion of a differently-named
file, and the other was empty: the entire useful content was already
included through other files. How come?
> Sigh, autotools. I don't understand the nature of the things, but we
> should probably let autotools figure out when we need to hack and when
> we can use the standard way.
If only they'd not be so baroque themselves. :-)
> <snip libiterm patch>
> I'll see what I can do with libiterm once I actually get Y to build. If
> I actually get Y to build. I think I know where my spring break is
> going....
I've got Y sans yiterm running here. It feels a bit sluggish, to my
surprise. ISTR 0.1 being faster (but dumping core all over).
There are a number of things that you need. For one, the linux-only
fbdev and evdev can be tossed out right away, they'll never compile.
***
--- Y-0.2-config/modules/drivers/video/Makefile Sat Feb 21 14:54:28 2004
+++ Y-0.2/modules/drivers/video/Makefile Sun Feb 22 01:19:20 2004
@@ -174,7 +174,7 @@
INCLUDES = -I$(top_srcdir) -I$(top_builddir)
CLEANFILES = *.bb *.bbg *.gcov *.da
AM_CPPFLAGS = -D_REENTRANT
-SUBDIRS = sdl fbdev
+SUBDIRS = sdl
all: all-recursive
.SUFFIXES:
***
--- Y-0.2-config/modules/drivers/input/Makefile Sat Feb 21 14:54:28 2004
+++ Y-0.2/modules/drivers/input/Makefile Sun Feb 22 01:20:50 2004
@@ -174,7 +174,7 @@
INCLUDES = -I$(top_srcdir) -I$(top_builddir)
CLEANFILES = *.bb *.bbg *.gcov *.da
AM_CPPFLAGS = -D_REENTRANT
-SUBDIRS = evdev
+SUBDIRS =
all: all-recursive
.SUFFIXES:
***
The libYc++ Versions issue was resolved by just not doing anything
with it at all (I love zen solutions):
***
--- Y-0.2-config/libYc++/Makefile Sat Feb 21 14:54:27 2004
+++ Y-0.2/libYc++/Makefile Sun Feb 22 20:16:53 2004
@@ -232,7 +232,6 @@
Y/c++/gridlayout.cc \
Y/c++/menu.cc
-libYc___la_LDFLAGS = -Wl,-Bsymbolic -Wl,--version-script=$(srcdir)/Versions -Wl,--no-undefined
libYc___la_DEPENDENCIES = Versions
EXTRA_libYc___la_SOURCES = Versions
all: all-am
***
Well, then some loose ends, such as the clock not finding \pi:
(If you use M_PI you need <math.h> or <cmath>, you know.)
***
--- Y-0.2-config/clients/clock/clock.cc Sat Feb 21 02:45:10 2004
+++ Y-0.2/clients/clock/clock.cc Sun Feb 22 20:18:26 2004
@@ -5,6 +5,7 @@
#include <time.h>
#include <sys/time.h>
+#include <cmath>
#include <sigc++/func_slot.h>
#include <sigc++/bind.h>
***
And last and maybe least, there is another linux-vs-world issue in the
startup script. I include only the .in version in the clients/tools
directory, it seems to me the rest would be analogous.
***
--- Y-0.2-config/clients/tools/startY.in Sat Feb 21 02:45:10 2004
+++ Y-0.2/clients/tools/startY.in Sun Feb 22 14:48:32 2004
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
@@ -7,14 +7,14 @@
yconfigfile=${YCONFIGFILE:-$sysconfdir/Y/default.conf}
-yunixsocket=$( grep 'LoadModule[ \t]\+"driver/ipc/unix"' $yconfigfile \
- | sed 's/^.*socket=\([^ \t]\+\)/\1/' )
+yunixsocket=$( grep 'LoadModule[ \t][ \t]*"driver/ipc/unix"' $yconfigfile \
+ | sed 's/^.*socket=\([^ \t][^ \t]*\)/\1/' )
-if [ x$yunixsocket == x ] ; then
+if [ "x$yunixsocket" = "x" ] ; then
yunixsocket=/tmp/.Y-0
fi
-if [ -S $yunixsocket ] ; then
+if [ -S "$yunixsocket" ] ; then
echo "*** A server is already running on $yunixsocket"
exit 1
fi
***
I gave up trying to catch the right micros~1 font (rpm instructions don't
appeal very much to me) so I applied the patches Seth Randall gave in
this list ( Message-ID: <40358B2A.9010708 at acm.org> ) but I did it by hand
so I don't know if they'll still work for 0.2 as given (they were for 0.1).
I already had a working config for 0.1 so I didn't have problems there.
I did add yclock, ycalculator and ysample in $HOME/.yinit, yiterm doesn't
run and thus you'd be stuck with just an empty screen.
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved