Giuseppe Cocomazzi
2017-08-28 08:44:58 UTC
Hi list,
I have ported GNU APL to the OpenBSD operating system, and I kindly ask
you to consider the possibility of merging the following changes to the
source tree, in order to enable a better support for the OS. As you can
see, only few lines are needed.
Also, I recollected some info about the steps needed to configure
the environment (fonts, keyboard), not necessarily addressed
at users of this OS but of any Unix-like system in general:
http://sbudella.altervista.org/blog/20170821-apl-openbsd.html
And here are the two patches:
--- configure.orig Fri Mar 17 16:03:06 2017
+++ configure Mon Jul 17 17:11:15 2017
@@ -21413,7 +21413,7 @@ echo
#
echo "configure: creating $srcdir/src//buildtag.hh"
rm -f $srcdir/src/buildtag.hh
-cd $srcdir/src ; source ./buildtag ; cd ..
+cd $srcdir/src ; . ./buildtag ; cd ..
# create src/makefile.h
#
--- src/Common.cc.orig Fri Mar 17 15:46:53 2017
+++ src/Common.cc Mon Jul 17 16:37:56 2017
@@ -81,6 +81,11 @@ void
init_1(const char * argv0, bool log_startup)
{
rlimit rl;
+
+#ifndef RLIMIT_AS
+# define RLIMIT_AS RLIMIT_DATA
+#endif
+
getrlimit(RLIMIT_AS, &rl);
total_memory = rl.rlim_cur;
--
Giuseppe Cocomazzi
My self is steam
http://sbudella.altervista.org
I have ported GNU APL to the OpenBSD operating system, and I kindly ask
you to consider the possibility of merging the following changes to the
source tree, in order to enable a better support for the OS. As you can
see, only few lines are needed.
Also, I recollected some info about the steps needed to configure
the environment (fonts, keyboard), not necessarily addressed
at users of this OS but of any Unix-like system in general:
http://sbudella.altervista.org/blog/20170821-apl-openbsd.html
And here are the two patches:
--- configure.orig Fri Mar 17 16:03:06 2017
+++ configure Mon Jul 17 17:11:15 2017
@@ -21413,7 +21413,7 @@ echo
#
echo "configure: creating $srcdir/src//buildtag.hh"
rm -f $srcdir/src/buildtag.hh
-cd $srcdir/src ; source ./buildtag ; cd ..
+cd $srcdir/src ; . ./buildtag ; cd ..
# create src/makefile.h
#
--- src/Common.cc.orig Fri Mar 17 15:46:53 2017
+++ src/Common.cc Mon Jul 17 16:37:56 2017
@@ -81,6 +81,11 @@ void
init_1(const char * argv0, bool log_startup)
{
rlimit rl;
+
+#ifndef RLIMIT_AS
+# define RLIMIT_AS RLIMIT_DATA
+#endif
+
getrlimit(RLIMIT_AS, &rl);
total_memory = rl.rlim_cur;
--
Giuseppe Cocomazzi
My self is steam
http://sbudella.altervista.org