From owner-freebsd-ports Sat Feb 27 12:50:17 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 77FB71516B for ; Sat, 27 Feb 1999 12:50:16 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id MAA29943; Sat, 27 Feb 1999 12:50:00 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from hokada.isl.melco.co.jp (INS89.fujisawa-ap2.dti.ne.jp [210.170.180.171]) by hub.freebsd.org (Postfix) with ESMTP id 4F45B1503B for ; Sat, 27 Feb 1999 12:44:39 -0800 (PST) (envelope-from hokada@hokada.isl.melco.co.jp) Received: (from hokada@localhost) by hokada.isl.melco.co.jp (8.9.2/8.9.2) id FAA51799; Sun, 28 Feb 1999 05:45:02 +0900 (JST) (envelope-from hokada) Message-Id: <199902272045.FAA51799@hokada.isl.melco.co.jp> Date: Sun, 28 Feb 1999 05:45:02 +0900 (JST) From: hokada@isl.melco.co.jp Reply-To: hokada@isl.melco.co.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/10294: site-start.el is not updated while installing yatex Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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