Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 1998 17:34:53 +0900 (JST)
From:      shige@kuis.kyoto-u.ac.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Cc:        shige@kuis.kyoto-u.ac.jp
Subject:   ports/8738: Update port: editors/emacs20
Message-ID:  <199811180832.RAA20902@spa.kuis.kyoto-u.ac.jp>

next in thread | raw e-mail | index | archive | help

>Number:         8738
>Category:       ports
>Synopsis:       Update port: editors/emacs20
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 18 00:40:00 PST 1998
>Last-Modified:
>Originator:     Shigeyuki FUKUSHIMA
>Organization:
Dept. of Information Science, Kyoto Univ., JAPAN
>Release:        FreeBSD 3.0-RELEASE i386
>Environment:

	FreeBSD 3.0-RELEASE i386
	FreeBSD 2.2.7-RELEASE i386

>Description:

Update port: editors/emacs20

When we want to link xpg4 library to emacs20 binary,
we apply this patch and do as follows:
  $ make USE_XPG=YES

Of course, default is USE_XPG=NO.
That is, we do not link xpg4 library by default.

Thank you.
--- shige

>How-To-Repeat:

>Fix:

diff -urN /usr/ports/editors/emacs20/Makefile emacs20/Makefile
--- /usr/ports/editors/emacs20/Makefile	Wed Sep  2 07:05:27 1998
+++ emacs20/Makefile	Wed Nov 11 21:55:24 1998
@@ -19,6 +19,12 @@
 MAN1=		emacs.1 etags.1 ctags.1
 PLIST_SUB=	EMACS_VER=20.3
 
+.if defined(USE_XPG)
+.if (${USE_XPG} == "YES")
+CONFIGURE_ENV=	CPPFLAGS='-DUSE_XPG'
+.endif
+.endif
+
 pre-build:
 	${RM} -rf ${WRKSRC}/info/*
 
diff -urN /usr/ports/editors/emacs20/patches/patch-ai emacs20/patches/patch-ai
--- /usr/ports/editors/emacs20/patches/patch-ai	Thu Jan  1 09:00:00 1970
+++ emacs20/patches/patch-ai	Wed Nov 11 21:54:00 1998
@@ -0,0 +1,22 @@
+--- src/Makefile.in.orig	Sun Aug  2 09:29:21 1998
++++ src/Makefile.in	Wed Nov 11 21:26:37 1998
+@@ -126,6 +126,10 @@
+ #define LIBS_MACHINE
+ #endif
+ 
++#ifndef LIBS_XPG
++#define LIBS_XPG
++#endif
++
+ #ifndef LIB_MATH
+ # ifdef LISP_FLOAT_TYPE
+ #  define LIB_MATH -lm
+@@ -787,7 +791,7 @@
+    duplicated symbols.  If the standard libraries were compiled
+    with GCC, we might need gnulib again after them.  */
+ LIBES = $(LOADLIBES) $(LDLIBS) $(LIBX) LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
+-   LIBS_DEBUG $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
++   LIBS_XPG LIBS_DEBUG $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
+ 
+ /* Enable recompilation of certain other files depending on system type.  */
+ 
diff -urN /usr/ports/editors/emacs20/patches/patch-aj emacs20/patches/patch-aj
--- /usr/ports/editors/emacs20/patches/patch-aj	Thu Jan  1 09:00:00 1970
+++ emacs20/patches/patch-aj	Wed Nov 11 21:53:37 1998
@@ -0,0 +1,16 @@
+--- src/s/freebsd.h.orig	Wed Nov 11 21:22:03 1998
++++ src/s/freebsd.h	Wed Nov 11 21:52:19 1998
+@@ -45,6 +45,13 @@
+ #define LIBS_SYSTEM -lutil
+ #define LIBS_TERMCAP -ltermcap
+ 
++/* Use XPG4 Library for FreeBSD */
++#if __FreeBSD_version >= 225000
++#ifdef USE_XPG
++#define LIBS_XPG -lxpg4
++#endif
++#endif
++
+ #define SYSV_SYSTEM_DIR
+ 
+ /* freebsd has POSIX-style pgrp behavior. */

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811180832.RAA20902>