Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Feb 1999 05:45:02 +0900 (JST)
From:      hokada@isl.melco.co.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/10294: site-start.el is not updated while installing yatex
Message-ID:  <199902272045.FAA51799@hokada.isl.melco.co.jp>

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

>Number:         10294
>Category:       ports
>Synopsis:       site-start.el is not updated while installing yatex
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 27 12:50:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Hideaki Okada
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
MITSUBISHI Electric Corp.
>Environment:

	(Fresh) FreeBSD 3.1-RELEASE i386

>Description:

	INSTALL script should modify site-start.el to add a new path 
	for yatex in load-path.
	But it is not modified, because INSTALL script's statements doing 
	that modification is executed only when yatex is already installed.

>How-To-Repeat:

	Install yatex on the system with fresh site-start.el .

>Fix:
	
	Apply attached patch.
	(Or you can find the problem if you see diffs between revision
	1.2 and 1.3 of files/INSTALL.tmpl .)

--- files/INSTALL.tmpl.org	Sat Nov 21 03:19:10 1998
+++ files/INSTALL.tmpl	Sun Feb 28 05:08:48 1999
@@ -49,11 +49,12 @@
 	for file in `${ECHO}  ${infofiles} | ${SED} "s,:, ,g"`; do
 		install-info ${infodir}/${file} ${infodir}/dir
 	done
-	if [ X"${sitestartdir}" != X ] && \
-	    [ "`${GREP} \"^${OptionStart}\"  ${sitestartdir}/site-start.el`" ]; then 
-	    ${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
-	    ${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak
-	    ${CP} ${sitestartdir}/site-start.el.bak ${sitestartdir}/site-start.el
+	if [ X"${sitestartdir}" != X ]; then
+	    if [ "`${GREP} \"^${OptionStart}\"  ${sitestartdir}/site-start.el`" ]; then 
+		${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
+		${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak
+		${CP} ${sitestartdir}/site-start.el.bak ${sitestartdir}/site-start.el
+	    fi
 	    ${ECHO} "Adding entry for \"${pkgname}\" to ${sitestartdir}/site-start.el"
 	    ${ECHO} "${OptionStart}" >> ${sitestartdir}/site-start.el
 	    /usr/bin/printf "%ADDSITESTART%" | \

>Release-Note:
>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?199902272045.FAA51799>