From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 13 18:50:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5D2D1065694 for ; Tue, 13 Oct 2009 18:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 978A68FC24 for ; Tue, 13 Oct 2009 18:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9DIo2Dw025539 for ; Tue, 13 Oct 2009 18:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9DIo2Ol025532; Tue, 13 Oct 2009 18:50:02 GMT (envelope-from gnats) Resent-Date: Tue, 13 Oct 2009 18:50:02 GMT Resent-Message-Id: <200910131850.n9DIo2Ol025532@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jamie Landeg Jones Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BBAC1065672 for ; Tue, 13 Oct 2009 18:49:40 +0000 (UTC) (envelope-from jamie@bishopston.net) Received: from pacha.mail.bishopston.net (pacha.mail.bishopston.net [IPv6:2001:5c0:1100:200::3]) by mx1.freebsd.org (Postfix) with ESMTP id 0793D8FC0C for ; Tue, 13 Oct 2009 18:49:39 +0000 (UTC) Received: from catflap.bishopston.net (jamie@localhost [127.0.0.1]) by catflap.bishopston.net (8.14.3/8.14.3) with ESMTP id n9DIncWL087338 for ; Tue, 13 Oct 2009 19:49:38 +0100 (BST) (envelope-from jamie@catflap.bishopston.net) Received: (from jamie@localhost) by catflap.bishopston.net (8.14.3/8.12.9/Submit) id n9DIncPx087337; Tue, 13 Oct 2009 19:49:38 +0100 (BST) Message-Id: <200910131849.n9DIncPx087337@catflap.bishopston.net> Date: Tue, 13 Oct 2009 19:49:38 +0100 (BST) From: Jamie Landeg Jones To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/139577: fix to pkgname of port mail/heirloom-mailx X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jamie Landeg Jones List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2009 18:50:03 -0000 >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: