Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2009 19:49:38 +0100 (BST)
From:      Jamie Landeg Jones <jamie@bishopston.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/139577: fix to pkgname of port mail/heirloom-mailx
Message-ID:  <200910131849.n9DIncPx087337@catflap.bishopston.net>
Resent-Message-ID: <200910131850.n9DIo2Ol025532@freefall.freebsd.org>

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

>Number:         139577
>Category:       ports
>Synopsis:       fix to pkgname of port mail/heirloom-mailx
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 13 18:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Jamie Landeg Jones
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
http://www.bishopston.com/jamie/
>Environment:
System: FreeBSD catflap.bishopston.net 7.2-STABLE FreeBSD 7.2-STABLE #0: Fri Jul 17 14:13:53 BST 2009 root@catflap.bishopston.net:/usr/obj/usr/src/sys/CATFLAP i386


	
>Description:

Since the switching of SourceForge ports to the new File Release System, this port has
been installing its pkginfo into /var/db/pkg/-mailx-12.4_1 instead of /var/db/pkg/heirloom-mailx-12.4_1

This caused pkgdb -F to go nuts, therefore this is relatively serious when port updating.

Probably needs revision bump to fix the problem for any users that have installed this port
since the update on 22 Aug 2009 01:28:34

However, if they HAVE, they will also need to manually do a rm -r /var/db/pkg/-mailx-* for things
to get back to normal, so maybe such information should be put into ports/UPDATING or maybe
added to the makefile itself (yuck) ?

	
>How-To-Repeat:

Install /usr/ports/mail/heirloom-mailx

It will appear to install ok, and work ok, but pkgdb -F goes wonky.
Also, port will not deinstall, because of incorrect pkgname


	
>Fix:

make a note in /usr/ports/UPDATING to rm -rf /var/db/pkg/-mail-* or maybe temporarily
get the makefile to do it?

apply this patch to mail/heirloom-mailx/Makefile:

--- Makefile.orig	2009-08-22 01:27:45.000000000 +0100
+++ Makefile	2009-10-13 19:11:08.000000000 +0100
@@ -5,12 +5,13 @@
 # $FreeBSD: ports/mail/heirloom-mailx/Makefile,v 1.55 2009/08/22 00:27:45 amdmi3 Exp $
 #
 
-PORTNAME=	mailx
+PORTNAME=	heirloom-mailx
 PORTVERSION=	12.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	mail ipv6
-MASTER_SITES=	SF/heirloom/heirloom-${PORTNAME}/${PORTVERSION}
-PKGNAMEPREFIX=	${MASTER_SITE_SUBDIR}-
+MASTER_SITES=	SF/heirloom/${PORTNAME}/${PORTVERSION}
+DISTNAME=	mailx-${PORTVERSION}
+INTALLL_WRKSRC=	
 
 MAINTAINER=	avl@FreeBSD.org
 COMMENT=	BSD mail utility with MIME, IMAP, POP3, SMTP and S/MIME extensions
@@ -29,10 +30,10 @@
 		CPPFLAGS="${CPPFLAGS}" \
 		LDFLAGS="${LDFLAGS}"
 
-MAN1=		${PORTNAME}.1
+MAN1=		mailx.1
 PORTDOCS=	AUTHORS COPYING ChangeLog README TODO
 
-PLIST_FILES=	bin/${PORTNAME} \
+PLIST_FILES=	bin/mailx \
 		"@unexec if cmp -s %D/etc/nail.rc %D/etc/nail.rc.default; then ${RM} -f %D/etc/nail.rc; fi " \
 		"etc/nail.rc.default" \
 		"@exec [ -f %B/nail.rc ] || ${CP} %B/%f %B/nail.rc"
@@ -47,7 +48,7 @@
 .endif
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/mailx ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
 	${INSTALL_DATA} ${WRKSRC}/nail.rc ${PREFIX}/etc/nail.rc.default
 .if !exists(${PREFIX}/etc/nail.rc)
>Release-Note:
>Audit-Trail:
>Unformatted:



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