From owner-freebsd-ports-bugs@FreeBSD.ORG  Sun Jan  8 01:50:06 2006
Return-Path: <owner-freebsd-ports-bugs@FreeBSD.ORG>
X-Original-To: freebsd-ports-bugs@hub.freebsd.org
Delivered-To: freebsd-ports-bugs@hub.freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1BE9416A41F
	for <freebsd-ports-bugs@hub.freebsd.org>;
	Sun,  8 Jan 2006 01:50:06 +0000 (GMT)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 480E943D5E
	for <freebsd-ports-bugs@hub.freebsd.org>;
	Sun,  8 Jan 2006 01:50:03 +0000 (GMT)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1])
	by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k081o2oj026664
	for <freebsd-ports-bugs@freefall.freebsd.org>;
	Sun, 8 Jan 2006 01:50:02 GMT
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k081o2vn026663;
	Sun, 8 Jan 2006 01:50:02 GMT (envelope-from gnats)
Resent-Date: Sun, 8 Jan 2006 01:50:02 GMT
Resent-Message-Id: <200601080150.k081o2vn026663@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,
	"Pedro F. Giffuni" <giffunip@asme.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id ACF3016A41F
	for <freebsd-gnats-submit@FreeBSD.org>;
	Sun,  8 Jan 2006 01:44:00 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E24B143D49
	for <freebsd-gnats-submit@FreeBSD.org>;
	Sun,  8 Jan 2006 01:43:59 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k081hxog077296
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 8 Jan 2006 01:43:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k081hx9L077295;
	Sun, 8 Jan 2006 01:43:59 GMT (envelope-from nobody)
Message-Id: <200601080143.k081hx9L077295@www.freebsd.org>
Date: Sun, 8 Jan 2006 01:43:59 GMT
From: "Pedro F. Giffuni" <giffunip@asme.org>
To: freebsd-gnats-submit@FreeBSD.org
X-Send-Pr-Version: www-2.3
Cc: 
Subject: ports/91491: Update to net-im/ymessenger port
X-BeenThere: freebsd-ports-bugs@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Ports bug reports <freebsd-ports-bugs.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
	<mailto:freebsd-ports-bugs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs>
List-Post: <mailto:freebsd-ports-bugs@freebsd.org>
List-Help: <mailto:freebsd-ports-bugs-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
	<mailto:freebsd-ports-bugs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Jan 2006 01:50:06 -0000


>Number:         91491
>Category:       ports
>Synopsis:       Update to net-im/ymessenger port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 08 01:50:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        6.0-Release
>Organization:
>Environment:
FreeBSD etoile.cable.net.co 6.0-RELEASE FreeBSD 6.0-RELEASE #7: Wed Jan  4 15:37:17 COT 2006     root@etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION  amd64
    
>Description:
              The Yahoo! messenger port doesn't work on FreeBSD-4.11 so I ended up using the linux version for a while. Now I am using FreeBSD-6.0 on amd64 so I tried to update the native port which has better chances of working.
>How-To-Repeat:
              On amd64 this still doesn't work:
/usr/libexec/ld-elf.so.1: Shared object "libgtkhtml.so.6" not found, required by "ymessenger.bin", and I'm still fighting with ldconfig :(

>Fix:
              This should work on FreeBSD-6.0R-i386, IT IS UNTESTED, but given the original port doesn't work on 4.11R it's better than what we had before:

diff -ru ymessenger.orig/Makefile ymessenger/Makefile
--- ymessenger.orig/Makefile	Sun Jan  1 17:52:39 2006
+++ ymessenger/Makefile	Sat Jan  7 20:28:12 2006
@@ -9,10 +9,10 @@
 PORTNAME=	ymessenger
 PORTVERSION=	1.0.4
 PORTREVISION=	3
-PORTEPOCH=	20020902
+PORTEPOCH=	20031003
 CATEGORIES=	net-im
 MASTER_SITES=	http://public.yahoo.com/~mmk/
-DISTNAME=	fbsd4.${PORTNAME}
+DISTNAME=	fbsd5.${PORTNAME}
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	sethk@meowfishies.com
@@ -25,32 +25,32 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 500000
-LIB_DEPENDS+=    c.4:${PORTSDIR}/misc/compat4x
+.if ${OSVERSION} >= 600000
+LIB_DEPENDS+=    c.5:${PORTSDIR}/misc/compat5x
 .endif
 
 ONLY_FOR_ARCHS=	i386
 
 GETTEXT_MAJOR=	6
 
+post-patch:
+	${REINPLACE_CMD} -e 's:%%PREFIX%%:${PREFIX}:g' ${WRKDIR}/bin/ymessenger
+	@${CHMOD} +w ${WRKDIR}/share/ymessenger/ymessenger.bin
+	${ECHO} ${GETTEXT_MAJOR} | dd bs=1 count=1 conv=notrunc seek=43202 \
+		of=${WRKDIR}/share/ymessenger/ymessenger.bin
+
 do-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/bin/ymessenger ${PREFIX}/bin
 	${MKDIR} ${PREFIX}/libexec/ymessenger
-	${INSTALL_PROGRAM} ${WRKDIR}/bin/ymessenger.bin \
+	${INSTALL_PROGRAM} ${WRKDIR}/share/ymessenger/ymessenger.bin \
 		${PREFIX}/libexec/ymessenger
 	@(set -x; for i in yahoo_gnome.png yahoo_kde.xpm \
 		ymessenger.desktop ymessenger.kdelnk; do \
-	    ${INSTALL_DATA} ${WRKDIR}/bin/$$i \
+	    ${INSTALL_DATA} ${WRKDIR}/share/ymessenger/$$i \
 		    ${PREFIX}/libexec/ymessenger; \
 	    done)
 	${MKDIR} ${PREFIX}/lib/ymessenger
-	${INSTALL_DATA} ${WRKDIR}/lib/libgtkhtml.so.0 \
+	${INSTALL_DATA} ${WRKDIR}/lib/libgtkhtml.so.6 \
 		${PREFIX}/lib/ymessenger/
-
-post-patch:
-	${REINPLACE_CMD} -e 's:%%PREFIX%%:${PREFIX}:g' ${WRKDIR}/bin/ymessenger
-	@${CHMOD} +w ${WRKDIR}/bin/ymessenger.bin
-	${ECHO} ${GETTEXT_MAJOR} | dd bs=1 count=1 conv=notrunc seek=43202 \
-		of=${WRKDIR}/bin/ymessenger.bin
 
 .include <bsd.port.post.mk>
diff -ru ymessenger.orig/distinfo ymessenger/distinfo
--- ymessenger.orig/distinfo	Sun Jan  1 17:52:39 2006
+++ ymessenger/distinfo	Sat Jan  7 20:27:27 2006
@@ -1,2 +1,3 @@
-MD5 (fbsd4.ymessenger.tgz) = 0b9da16fc58cf6072961f1fe197b1e41
-SIZE (fbsd4.ymessenger.tgz) = 933244
+MD5 (fbsd5.ymessenger.tgz) = d46390ff26cf5d01767d92efabecfc7e
+SHA256 (fbsd5.ymessenger.tgz) = 5a9b5d1fcc854b83567402ff67ad6dad0000c4c912d72f68c30352447578ef15
+SIZE (fbsd5.ymessenger.tgz) = 686647
diff -ru ymessenger.orig/files/patch-ymessenger ymessenger/files/patch-ymessenger
--- ymessenger.orig/files/patch-ymessenger	Sun Jan  1 17:52:39 2006
+++ ymessenger/files/patch-ymessenger	Sat Jan  7 20:27:27 2006
@@ -1,11 +1,10 @@
---- bin/ymessenger.orig	Mon May  6 23:06:27 2002
-+++ bin/ymessenger	Sat Aug 30 03:09:58 2003
-@@ -1,4 +1,5 @@
+--- bin/ymessenger.orig	Fri Oct  3 21:02:12 2003
++++ bin/ymessenger	Sat Jan  7 14:42:37 2006
+@@ -1,4 +1,4 @@
  #!/bin/sh
--LD_LIBRARY_PATH=/opt/ymessenger/lib:$LD_LIBRARY_PATH
+-LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
 -export LD_LIBRARY_PATH
--exec /opt/ymessenger/bin/ymessenger.bin $@
-+LD_LIBRARY_PATH=%%PREFIX%%/lib/ymessenger:$LD_LIBRARY_PATH
-+LD_PRELOAD=/usr/lib/libc_r.so:/usr/lib/libc.so
+-exec /usr/local/share/ymessenger/ymessenger.bin $@
++LD_LIBRARY_PATH=%%PREFIX%%/lib:$LD_LIBRARY_PATH
 +export LD_LIBRARY_PATH LD_PRELOAD
 +exec %%PREFIX%%/libexec/ymessenger/ymessenger.bin $@
diff -ru ymessenger.orig/pkg-plist ymessenger/pkg-plist
--- ymessenger.orig/pkg-plist	Sun Jan  1 17:52:39 2006
+++ ymessenger/pkg-plist	Sat Jan  7 20:27:27 2006
@@ -4,6 +4,6 @@
 libexec/ymessenger/yahoo_kde.xpm
 libexec/ymessenger/ymessenger.desktop
 libexec/ymessenger/ymessenger.kdelnk
-lib/ymessenger/libgtkhtml.so.0
+lib/ymessenger/libgtkhtml.so.6
 @dirrm lib/ymessenger
 @dirrm libexec/ymessenger

>Release-Note:
>Audit-Trail:
>Unformatted: