SF.net SVN: gar:[22625] csw/mgar/pkg
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Tue Dec 3 22:38:24 CET 2013
Revision: 22625
http://gar.svn.sourceforge.net/gar/?rev=22625&view=rev
Author: dmichelsen
Date: 2013-12-03 21:38:24 +0000 (Tue, 03 Dec 2013)
Log Message:
-----------
yodl/trunk: Initial commit, still dumps core
Added Paths:
-----------
csw/mgar/pkg/yodl/
csw/mgar/pkg/yodl/Makefile
csw/mgar/pkg/yodl/branches/
csw/mgar/pkg/yodl/tags/
csw/mgar/pkg/yodl/trunk/
csw/mgar/pkg/yodl/trunk/Makefile
csw/mgar/pkg/yodl/trunk/checksums
csw/mgar/pkg/yodl/trunk/files/
csw/mgar/pkg/yodl/trunk/files/0001-getcwd-with-size-0-return-EINVAL-on-Solaris-even-whe.patch
csw/mgar/pkg/yodl/trunk/files/0002-realpath-does-not-like-second-argument-to-be-NULL-on.patch
csw/mgar/pkg/yodl/trunk/files/INSTALL.im
Added: csw/mgar/pkg/yodl/Makefile
===================================================================
--- csw/mgar/pkg/yodl/Makefile (rev 0)
+++ csw/mgar/pkg/yodl/Makefile 2013-12-03 21:38:24 UTC (rev 22625)
@@ -0,0 +1,2 @@
+%:
+ $(MAKE) -C trunk $*
Property changes on: csw/mgar/pkg/yodl/trunk
___________________________________________________________________
Added: svn:ignore
+ work
Added: csw/mgar/pkg/yodl/trunk/Makefile
===================================================================
--- csw/mgar/pkg/yodl/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/yodl/trunk/Makefile 2013-12-03 21:38:24 UTC (rev 22625)
@@ -0,0 +1,48 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = yodl
+VERSION = 3.03.0
+GARTYPE = v2
+
+DESCRIPTION = Your Own Document Language
+
+MASTER_SITES = $(SF_MIRROR)
+DISTFILES += $(NAME)_$(VERSION).orig.tar.gz
+DISTFILES += INSTALL.im
+
+PATCHFILES += 0001-getcwd-with-size-0-return-EINVAL-on-Solaris-even-whe.patch
+PATCHFILES += 0002-realpath-does-not-like-second-argument-to-be-NULL-on.patch
+
+EXPANDVARS += INSTALL.im
+
+REINPLACEMENTS += icmake
+REINPLACE_MATCH_icmake = /usr/bin/icmake
+REINPLACE_WITH_icmake = $(bindir)/icmake
+REINPLACE_FILES_icmake += build
+
+CONFIGURE_SCRIPTS = custom
+BUILD_SCRIPTS = custom
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+
+include gar/category.mk
+
+configure-custom:
+ cp $(WORKDIR)/INSTALL.im $(WORKSRC)/INSTALL.im
+ @$(MAKECOOKIE)
+
+build-custom:
+ cd $(WORKSRC) && CFLAGS="$(CFLAGS)" ./build programs
+ cd $(WORKSRC) && CFLAGS="$(CFLAGS)" ./build man
+ cd $(WORKSRC) && CFLAGS="$(CFLAGS)" ./build manual
+ cd $(WORKSRC) && CFLAGS="$(CFLAGS)" ./build macros
+ @$(MAKECOOKIE)
+
+install-custom:
+ cd $(WORKSRC) && ./build install programs $(DESTDIR)
+ cd $(WORKSRC) && ./build install man $(DESTDIR)
+ cd $(WORKSRC) && ./build install manual $(DESTDIR)
+ cd $(WORKSRC) && ./build install macros $(DESTDIR)
+ cd $(WORKSRC) && ./build install docs $(DESTDIR)
+ @$(MAKECOOKIE)
Property changes on: csw/mgar/pkg/yodl/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: csw/mgar/pkg/yodl/trunk/checksums
===================================================================
--- csw/mgar/pkg/yodl/trunk/checksums (rev 0)
+++ csw/mgar/pkg/yodl/trunk/checksums 2013-12-03 21:38:24 UTC (rev 22625)
@@ -0,0 +1 @@
+7df95988902055c98b2d784dd701efa8 yodl_3.03.0.orig.tar.gz
Added: csw/mgar/pkg/yodl/trunk/files/0001-getcwd-with-size-0-return-EINVAL-on-Solaris-even-whe.patch
===================================================================
--- csw/mgar/pkg/yodl/trunk/files/0001-getcwd-with-size-0-return-EINVAL-on-Solaris-even-whe.patch (rev 0)
+++ csw/mgar/pkg/yodl/trunk/files/0001-getcwd-with-size-0-return-EINVAL-on-Solaris-even-whe.patch 2013-12-03 21:38:24 UTC (rev 22625)
@@ -0,0 +1,29 @@
+From 48efd8d53f9ed778146fcc524eafa1709a11ad08 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Tue, 3 Dec 2013 22:33:16 +0100
+Subject: [PATCH] getcwd with size 0 return EINVAL on Solaris, even when
+ pointer is NULL
+
+---
+ src/new/newgetcwd.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/new/newgetcwd.c b/src/new/newgetcwd.c
+index 345ceb0..274b558 100644
+--- a/src/new/newgetcwd.c
++++ b/src/new/newgetcwd.c
+@@ -1,9 +1,10 @@
+ #include "new.ih"
+ #include <stdio.h>
++#include <limits.h>
+
+ char *new_getcwd()
+ {
+- char *cwd = getcwd(NULL, 0);
++ char *cwd = getcwd(NULL, PATH_MAX+1);
+
+ if (cwd == NULL)
+ {
+--
+1.8.3.4
+
Added: csw/mgar/pkg/yodl/trunk/files/0002-realpath-does-not-like-second-argument-to-be-NULL-on.patch
===================================================================
--- csw/mgar/pkg/yodl/trunk/files/0002-realpath-does-not-like-second-argument-to-be-NULL-on.patch (rev 0)
+++ csw/mgar/pkg/yodl/trunk/files/0002-realpath-does-not-like-second-argument-to-be-NULL-on.patch 2013-12-03 21:38:24 UTC (rev 22625)
@@ -0,0 +1,27 @@
+From bc05f7210190d5e757f78c375d5566f9412f3590 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Tue, 3 Dec 2013 22:37:07 +0100
+Subject: [PATCH] realpath does not like second argument to be NULL on Solaris
+
+---
+ src/lexer/lchdir.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/lexer/lchdir.c b/src/lexer/lchdir.c
+index afa3a0a..3117d23 100644
+--- a/src/lexer/lchdir.c
++++ b/src/lexer/lchdir.c
+@@ -6,8 +6,9 @@ void l_noChdir(Lexer *lp, char const *pathname)
+ void l_chdir(Lexer *lp, char const *pathname)
+ {
+ // fprintf(stderr, "CHANGING WD\n");
++ char resolved_name[PATH_MAX];
+
+- char *resolved = realpath(media_filename(lp->d_media_ptr), NULL);
++ char *resolved = realpath(media_filename(lp->d_media_ptr), resolved_name);
+
+ if (resolved == NULL)
+ out_of_memory();
+--
+1.8.3.4
+
Added: csw/mgar/pkg/yodl/trunk/files/INSTALL.im
===================================================================
--- csw/mgar/pkg/yodl/trunk/files/INSTALL.im (rev 0)
+++ csw/mgar/pkg/yodl/trunk/files/INSTALL.im 2013-12-03 21:38:24 UTC (rev 22625)
@@ -0,0 +1,78 @@
+// Uncomment the following #define if you want to use the following exensive
+// set of compilation options:
+// -O0 -g3 -ansi -pedantic -fno-common -pipe -W -Wall -Wcast-align
+// -Wcast-qual -Wconversion -Wformat=2 -Winline -Wnested-externs
+// -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef
+// -Wno-unused-parameter -Waggregate-return -Wnested-externs
+//
+//#define EXTENSIVE_OPTIONS
+
+// Alternatively, uncomment the following #define to compile the programs with
+// the -pg option, so that gprof can be used for profiling purposes.
+// If neither is defined, COPT is used (see build).
+// EXTENSIVE_OPTIONS takes priority over PROFILING.
+//
+//#define PROFILING
+
+
+string BASE;
+
+ // BASE is the directory below which ALL yodl files will be stored.
+
+ // For an operational non-Debian installation, you probably must be
+ // `root', and BASE "/usr" or BASE "/usr/local" is suggested (see
+ // below). `BASE' itself is not used outside of this file, so feel free to
+ // define BIN, STD_INCLUDE, MAN, DOC, and DOCDOC (below) in any which way
+ // you like.
+
+ // However, make sure that BIN, STD_INCLUDE, MAN, DOC and DOCDOC all are
+ // absolute paths
+
+string BIN;
+ // the directory in which yodl will be stored
+
+string STD_INCLUDE;
+ // STD_INCLUDE is the directory in which the skeleton files
+ // will be stored
+
+string MAN;
+ // MAN is the directory in which the manual page will be stored
+
+string DOC;
+ // DOC is the directory in which all other documentation except for the
+ // manual and examples will be stored
+
+string DOCDOC;
+ // DOCDOC is the directory in which the manual and examples will be stored
+
+string COMPILER;
+ // COMPILER specifies the compiler to use. yodl is coined as
+ // belonging to the Debian `unstable' distribution, which may use a
+ // different version of the compiler you currently have in your
+ // system. E.g., in july 2006 the Debian `testing' version of the compiler
+ // was 4.0.4, but the `unstable' version's compiler was 4.1.2. By defining
+ // COMPILER with a specific version (e.g., COMPILER=g++-4.1) that
+ // particular version can be used. The distributed definition uses the
+ // `default' compiler version.
+
+//#define PROFILE "-pg"
+ // Uncomment the above #define to construct a binary program that can be
+ // used with the gprof profiler. When specified, no stripping is performed
+ // at ./build program strip (see INSTALL)
+
+void setLocations()
+{
+ BASE = "";
+
+ // make sure that BIN, STD_INCLUDE, MAN, DOC and DOCDOC all are
+ // absolute paths
+
+ BIN = "@bindir@";
+ DOC = "@docdir@/yodl";
+ DOCDOC = "@docdir@/yodl";
+ MAN = "@mandir@";
+ STD_INCLUDE = "@sharedstatedir@/yodl";
+
+ COMPILER = "@CC@";
+}
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list