ports/178525: sysutils/less: correct the build option

Norihiko Murase mur1080224 at inter7.jp
Wed May 15 05:10:12 UTC 2013


The following reply was made to PR ports/178525; it has been noted by GNATS.

From: Norihiko Murase <mur1080224 at inter7.jp>
To: freebsd-gnats-submit at FreeBSD.org
Cc:  
Subject: ports/178525: sysutils/less: correct the build option
Date: Sun, 12 May 2013 06:24:44 GMT

 >Number:         178525
 >Category:       ports
 >Synopsis:       sysutils/less: correct the build option
 >Confidential:   no
 >Severity:       non-critical
 >Priority:       low
 >Responsible:    freebsd-ports-bugs
 >State:          open
 >Quarter:        
 >Keywords:       
 >Date-Required:
 >Class:          sw-bug
 >Submitter-Id:   current-users
 >Arrival-Date:   Sun May 12 06:30:00 UTC 2013
 >Closed-Date:
 >Last-Modified:
 >Originator:     Norihiko Murase
 >Release:        
 >Organization:
 >Environment:
 >Description:
 Hey! Quick fix, please.
 
 I would like you to fix the bug related to the build option 
 that resides in the port sysutils/less. This bug did slip 
 into this port at SVN Revision 317890 (related PR: ports/178261)
 for the port update (451->458).
 
 Well, the bug is (probably) simple; the line
   .if ${PORT_OPTIONS:MCOLOUR_LESS}
 should be
   .if ${PORT_OPTIONS:MCOLOR_LESS}
 because the option named "COLOR_LESS" (NOT COLO*U*R_LESS) is 
 defined as follows:
   OPTIONS_DEFINE=        COLOR_LESS
   COLOR_LESS_DESC=Enables color support via escape sequence
 
 >How-To-Repeat:
 
 >Fix:
 
 
 Patch attached with submission follows:
 
 diff -U 11 -r less_317890/Makefile less_cur/Makefile
 --- less_317890/Makefile	2013-05-12 14:35:43.000000000 +0900
 +++ less_cur/Makefile	2013-05-12 14:38:54.000000000 +0900
 @@ -15,19 +15,19 @@
  
  OPTIONS_DEFINE=	COLOR_LESS
  COLOR_LESS_DESC=Enables color support via escape sequence
  
  PLIST_FILES=	bin/less bin/lesskey bin/lessecho
  
  .include <bsd.port.options.mk>
  
  GNU_CONFIGURE=	yes
  MAN1=		less.1 lesskey.1 lessecho.1
  
 -.if ${PORT_OPTIONS:MCOLOUR_LESS}
 +.if ${PORT_OPTIONS:MCOLOR_LESS}
  CPPFLAGS+=	-DCOLOR_LESS
  
  pre-fetch:
  	@${ECHO_MSG} "Making a color version of less."
  .endif
  
  .include <bsd.port.mk>
 
 
 >Release-Note:
 >Audit-Trail:
 >Unformatted:
 _______________________________________________
 freebsd-ports-bugs at freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
 To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe at freebsd.org"


More information about the freebsd-ports-bugs mailing list