Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 1997 17:19:07 +0300 (EET DST)
From:      Ruslan Shevchenko <rssh@cki.ipri.kiev.ua>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/3915: xruss installation fail.
Message-ID:  <199706201419.RAA03252@cki.ipri.kiev.ua>
Resent-Message-ID: <199706201540.IAA08353@hub.freebsd.org>

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

>Number:         3915
>Category:       ports
>Synopsis:       xruss installation fail.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 20 08:40:01 PDT 1997
>Last-Modified:
>Originator:     Ruslan Shevchenko
>Organization:

   @=                                        mailto:rssh@cki.ipri.kiev.ua
    //RSSH                                   http://www.ipri.kiev.ua/~rssh
>Release:        2.2.1-RELEASE
>Environment:

  FreeBSD 2.2.1 with default X11R6 setup.

>Description:

  Xrus  fail during install, if /usr/X11R6/locale/locale.alias or
  /usr/X11R6/locale/locale.dir is absent or locale.alias is empty
   

>How-To-Repeat:

  cd /usr/ports/russian/X.locale
  make install

>Fix:
	

 The next is "quick and dirty" fix. In reality, the problem is more complex.

diff -udr X.language.origin/Makefile X.language/Makefile
--- X.language.origin/Makefile	Thu Jun 19 12:12:19 1997
+++ X.language/Makefile	Thu Jun 19 13:29:25 1997
@@ -48,27 +48,43 @@
 		}; \
 	fi
 	${INSTALL_DATA} ${FILESDIR}/xmodmap ${XLIB}/xinit/.Xmodmap
-	if [ -d ${XLIB}/locale ] ; then \
+	if [ -d ${XLIB}/locale ] ; then  \
+		echo 11; \
+		${MKDIR} ${XLIB}/locale; \
 		if [ ! -d ${XLIB}/locale/koi8-r ] ; then \
 			mkdir ${XLIB}/locale/koi8-r; \
 			chown ${BINOWN}.${BINGRP} ${XLIB}/locale/koi8-r; \
 			chmod 755 ${XLIB}/locale/koi8-r; \
 		fi; \
+		echo 12; \
 		if [ ! -f ${XLIB}/locale/koi8-r/XLC_LOCALE ] ; then \
 			${INSTALL_DATA} ${FILESDIR}/koi8-r ${XLIB}/locale/koi8-r/XLC_LOCALE; \
 		fi; \
+		echo 13; \
 		if [ ! -f ${XLIB}/locale/tbl_data/tabkoi8-r ] ; then \
 			${INSTALL_DATA} ${FILESDIR}/tabkoi8-r ${XLIB}/locale/tbl_data; \
 		fi; \
+		echo 14; \
+		if [ ! -f ${XLIB}/locale/locale.alias ]  ; then \
+			${ECHO} C	C >> ${XLIB}/locale/locale.alias; \
+		fi ; \
 		grep -q KOI8-R ${XLIB}/locale/locale.alias || { \
 			cp ${XLIB}/locale/locale.alias ${XLIB}/locale/locale.alias.bak; \
-			grep -v -f ${FILESDIR}/replace_alias_list < ${XLIB}/locale/locale.alias.bak > ${XLIB}/locale/locale.alias; \
+			echo 141; \
+			grep -v -f ${FILESDIR}/replace_alias_list < ${XLIB}/locale/locale.alias.bak > ${XLIB}/locale/locale.alias || exit 0; \
+			echo 142; \
 			cat ${FILESDIR}/locale_alias_list >> ${XLIB}/locale/locale.alias; \
+			echo 143; \
 		}; \
+		echo 15; \
+		if [ ! -f ${XLIB}/locale/locale.dir ] ; then \
+			touch ${XLIB}/locale/locale.dir ;    \
+		fi ; \
 		grep -q KOI8-R ${XLIB}/locale/locale.dir || { \
 			cp ${XLIB}/locale/locale.dir ${XLIB}/locale/locale.dir.bak; \
 			cat ${FILESDIR}/locale_dir_list >> ${XLIB}/locale/locale.dir; \
 		}; \
+		echo 16;\
 	fi
 	if [ ! -d ${XLIB}/nls ] ; then \
 		mkdir ${XLIB}/nls; \
>Audit-Trail:
>Unformatted:



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