ports/187178: devel/readline : fix PKGNAME

Christoph Moench-Tegeder cmt at burggraben.net
Sat Mar 1 14:00:01 UTC 2014


>Number:         187178
>Category:       ports
>Synopsis:       devel/readline : fix PKGNAME
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 01 14:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Christoph Moench-Tegeder
>Release:        FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD elch.exwg.net 10.0-RELEASE FreeBSD 10.0-RELEASE #2 r260689: Wed Jan 15 18:32:44 CET 2014 cmt at elch.exwg.net:/usr/obj/usr/src/sys/ELCH amd64

devel/readline readline-6.3.

>Description:
	When there are no PATCHES to readline, the PATCHLEVEL variable is
	empty ("") which results in a PKGNAME of "readline-6.3." (note
	trailing dot).
>How-To-Repeat:
	cmt at disconnector:readline$ make -V PKGNAME
	readline-6.3.
>Fix:
	Append PATCHLEVEL only when there are patches (that's what the
	enclosed patch does). Alternatively, force PATCHLEVEL to 0 in
	case there are no patches.
	Note for patch: PORTREVISION is not bumped, but I'm not sure how
	the current port version compares on future updates.

Index: Makefile
===================================================================
--- Makefile	(revision 346619)
+++ Makefile	(working copy)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	readline
-PORTVERSION=	6.3.${PATCHLEVEL}
+PORTVERSION=	6.3${"${PATCHLEVEL}"!=""?".${PATCHLEVEL}":}
 CATEGORIES=	devel
 MASTER_SITES=	GNU \
 		ftp://ftp.cwru.edu/pub/bash/


Regards,
Christoph
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list