From pav@oook.cz  Sun Apr 13 07:14:00 2003
Return-Path: <pav@oook.cz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D5A6237B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 13 Apr 2003 07:14:00 -0700 (PDT)
Received: from mail.oook.cz (gprs451.eurotel.cz [160.218.195.51])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3CCAE43F75
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 13 Apr 2003 07:13:54 -0700 (PDT)
	(envelope-from pav@oook.cz)
Received: from pav.oook.cz (localhost.oook.cz [127.0.0.1])
	by mail.oook.cz (8.12.6/8.12.6) with ESMTP id h3DECi94062032
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 13 Apr 2003 16:12:53 +0200 (CEST)
	(envelope-from pav@pav.oook.cz)
Received: (from pav@localhost)
	by pav.oook.cz (8.12.6/8.12.6/Submit) id h3DECcSW060505;
	Sun, 13 Apr 2003 16:12:38 +0200 (CEST)
Message-Id: <200304131412.h3DECcSW060505@pav.oook.cz>
Date: Sun, 13 Apr 2003 16:12:38 +0200 (CEST)
From: Pav Lucistnik <pav@oook.cz>
Reply-To: Pav Lucistnik <pav@oook.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: py-gnome2 hates installed older versions [patch]
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50900
>Category:       ports
>Synopsis:       py-gnome2 hates installed older versions [patch]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 13 07:20:07 PDT 2003
>Closed-Date:    Sun Apr 13 16:32:27 PDT 2003
>Last-Modified:  Sun Apr 13 16:32:27 PDT 2003
>Originator:     Pav Lucistnik
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD pav.oook.cz 5.0-RELEASE FreeBSD 5.0-RELEASE #1: Wed Mar 12 23:45:51 GMT 2003 root@pav.oook.cz:/usr/obj/usr/src/sys/PAV i386


>Description:
x11-toolkits/py-gnome2 have pkg-install script called in pre-build target,
checking for existency of py-gnome installation on the system. This script
prevent upgrading of py-gnome2 using portupgrade, in fact, it prevents
building py-gnome2 if any version of py-gnome or py-gnome2 is installed
on the system.

Also the script itself is technically incorrect, because it detects
any version of py-gnome as py-gnome1 because py-gnome2 installs
as py-gnome-1.99.16

>How-To-Repeat:

===>  Building for py-gnome-1.99.16_1
py-gnome-1.99.15_1  A set of Python bindings for GNOME 2
py-gnome for GTK+ 1.x was detected.
This packages cannot coexist with py-gnome.
*** Error code 1

Stop in /usr/ports/x11-toolkits/py-gnome2.

>Fix:
Move script execution to pre-install stage.

--- Makefile.orig	Thu Apr 10 22:05:45 2003
+++ Makefile	Sun Apr 13 16:01:42 2003
@@ -35,7 +35,7 @@
 EG_DST_DIR=	${PREFIX}/share/examples/py-gnome
 
 .if !defined(PACKAGE_BUILDING)
-pre-build:
+pre-install:
 	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
 .endif
 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Sun Apr 13 16:32:06 PDT 2003 
State-Changed-Why:  
I fixed the pkg-instal script.  Thanks for reporting. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50900 
>Unformatted:
