Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2012 13:36:39 +0900 (JST)
From:      IWAMOTO Kouichi <sue@iwmt.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/165520: devel/ncurses install failed if multiple terminfo file exists in /usr/local/share/misc
Message-ID:  <20120228043639.91F8D1044D07@mail2.iwmt.org>
Resent-Message-ID: <201202280440.q1S4e5eT079556@freefall.freebsd.org>

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

>Number:         165520
>Category:       ports
>Synopsis:       devel/ncurses install failed if multiple terminfo file exists in /usr/local/share/misc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 28 04:40:05 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     IWAMOTO Kouichi
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD tomoko.iwmt.org 8.2-STABLE FreeBSD 8.2-STABLE #0: Tue Dec 27 03:50:13 JST 2011 sue@tomoko.iwmt.org:/usr/obj/usr/src/sys/TOMOKO amd64

>Description:
If multiple terminfo file exists in /usr/local/share/misc (e.g. sysutils/jfbterm and x11/rxvt-unicode are installed),
Installing devel/ncurses fails with following error.

/usr/bin/find /usr/local/share/misc -name "*.terminfo" -print0	|        /usr/bin/xargs -0 /usr/local/bin/tic
tic: Too many file names.  Usage:
	tic [-e names] [-o dir] [-R name] [-v[n]] [-V] [-w[n]] [-1aCcfGgILNrsTtUx] source-file
*** Error code 1

Stop in /usr/ports/devel/ncurses.
*** Error code 1

Stop in /usr/ports/devel/ncurses.

>How-To-Repeat:
1. Install sysutils/jfbterm & x11/rxvt-unicode.

2. Install deve/ncurses
# cd /usr/ports/devel/ncurses
# make install

>Fix:
Apply following patch.

--- Makefile.orig	2011-05-15 00:32:37.000000000 +0900
+++ Makefile	2012-02-28 13:06:39.000000000 +0900
@@ -173,8 +173,7 @@
 .endif
 
 .if !defined(WITHOUT_TERMINFO)
-	${FIND} ${PREFIX}/share/misc -name "*.terminfo" -print0	|	\
-		${XARGS} -0 ${PREFIX}/bin/tic
+	${FIND} ${PREFIX}/share/misc -name "*.terminfo" -exec ${PREFIX}/bin/tic {} \;
 .endif
 
 .if !defined(NOPORTDOCS)

--- pkg-plist.orig	2011-03-06 18:19:31.000000000 +0900
+++ pkg-plist	2012-02-28 13:06:49.000000000 +0900
@@ -96,6 +96,6 @@
 %%TERMINFO%%share/misc/tabset/vt100
 %%TERMINFO%%share/misc/tabset/vt300
 %%TERMINFO%%share/misc/terminfo.db
-%%TERMINFO%%@exec find %D/share/misc -name "*.terminfo" -print0	| xargs -0 %D/bin/tic
+%%TERMINFO%%@exec find %D/share/misc -name "*.terminfo" -exec %D/bin/tic {} \;
 %%TERMINFO%%@dirrmtry share/misc/tabset
 @dirrm include/ncurses
>Release-Note:
>Audit-Trail:
>Unformatted:



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