From owner-freebsd-ports Wed Nov 18 00:39:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA03642 for freebsd-ports-outgoing; Wed, 18 Nov 1998 00:39:57 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA03633 for ; Wed, 18 Nov 1998 00:39:56 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA06607; Wed, 18 Nov 1998 00:40:00 -0800 (PST) Received: from spa.kuis.kyoto-u.ac.jp (lab4imgw.kuis.kyoto-u.ac.jp [130.54.23.230]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA03071 for ; Wed, 18 Nov 1998 00:35:30 -0800 (PST) (envelope-from shige@kuis.kyoto-u.ac.jp) Received: from onikobe.kuis.kyoto-u.ac.jp (onikobe.kuis.kyoto-u.ac.jp [130.54.22.183]) by spa.kuis.kyoto-u.ac.jp (8.8.8/3.6Wspa) with ESMTP id RAA20902; Wed, 18 Nov 1998 17:32:50 +0900 (JST) Received: (from shige@localhost) by onikobe.kuis.kyoto-u.ac.jp (8.9.1/3.7Wpl1-amphitrite) id RAA07361; Wed, 18 Nov 1998 17:34:53 +0900 (JST) Message-Id: <199811180832.RAA20902@spa.kuis.kyoto-u.ac.jp> Date: Wed, 18 Nov 1998 17:34:53 +0900 (JST) From: shige@kuis.kyoto-u.ac.jp Reply-To: shige@kuis.kyoto-u.ac.jp To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: shige@kuis.kyoto-u.ac.jp X-Send-Pr-Version: 3.2 Subject: ports/8738: Update port: editors/emacs20 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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