From trevor@jpj.net  Fri Jun 16 07:35:18 2000
Return-Path: <trevor@jpj.net>
Received: from blues.jpj.net (blues.jpj.net [204.97.17.146])
	by hub.freebsd.org (Postfix) with ESMTP id 74DCD37B7B4
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 16 Jun 2000 07:35:17 -0700 (PDT)
	(envelope-from trevor@jpj.net)
Received: from localhost (trevor@localhost)
	by blues.jpj.net (right/backatcha) with ESMTP id e5GEYtS04555;
	Fri, 16 Jun 2000 10:34:55 -0400 (EDT)
Message-Id: <Pine.BSI.4.21.0006161018570.1555-100000@blues.jpj.net>
Date: Fri, 16 Jun 2000 10:34:54 -0400 (EDT)
From: Trevor Johnson <trevor@jpj.net>
To: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Cc: Will Andrews <andrews@technologist.com>,
	Steve Kargl <sgk@troutmask.apl.washington.edu>,
	FreeBSD-gnats-submit@freebsd.org
In-Reply-To: <Pine.GSO.4.21.0006141940150.462-100000@nunki.dbai.tuwien.ac.at>
Subject: Re: Wine fix (was: -STABLE)

>Number:         19332
>Category:       ports
>Synopsis:       Re: Wine fix (was: -STABLE)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 16 07:40:03 PDT 2000
>Closed-Date:    Tue Jul 11 02:57:21 PDT 2000
>Last-Modified:  Tue Jul 11 02:58:23 PDT 2000
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 > The patch below fixes the problem on our FreeBSD 4.0 box. Would you
 > mind testing and installing it?
 > 
 > 
 > Index: pkg/PLIST
 > ===================================================================
 > RCS file: /home/ncvs/ports/emulators/wine/pkg/PLIST,v
 > retrieving revision 1.7
 > diff -u -r1.7 PLIST
 > --- pkg/PLIST   2000/06/10 05:04:21     1.7
 > +++ pkg/PLIST   2000/06/14 18:32:49
 > @@ -178,7 +178,7 @@
 >  lib/wine/libx11drv.so
 >  lib/wine/libx11drv.so.1
 >  lib/wine/libwine.so
 > -@exec /sbin/ldconfig -m %B
 > +@exec /sbin/ldconfig -m %B/lib/wine
 >  @dirrm include/wine
 >  @dirrm lib/wine/reg
 >  @dirrm lib/wine/documentation
 
 I had tried to do something similar, but the line I added was
 
 	@exec /sbin/ldconfig -m %D/lib/wine
 
 because I saw some ports using %D and some %B, and since the one that was
 there didn't work I took a guess.  Do you know where this syntax is
 documented?  I'd like to know, should I ever do a port that has libraries.
 
 I abbreviated my testing (maybe too much) by leaving work/ as it was, but
 just this patch wasn't enough.  However, after I also added a post-install
 target as recommended at
 http://www.freebsd.org/porters-handbook/c644.html#PORTING-LDCONFIG it
 added /usr/local/lib/wine to the ldconfig path, but did not remove it upon
 deinstallation (as evidenced by "strings /var/run/ld-elf.so.hints").  
 Looking at the ldconfig man page, I don't see obvious ways to get the
 ldconfig path nor to remove a directory from it.  After I ran "ldconfig
 -R" manually, the /usr/local/lib/wine directory (would X11BASE be more
 suitable?) remained in the hints file.  I guess extra entries in the path
 aren't considered troublesome.
 
 Anyway, I've appended the post-install change.
 --
 Trevor Johnson
 http://jpj.net/~trevor/gpgkey.txt
 
 --- Makefile.orig	Sat Jun 10 19:47:24 2000
 +++ Makefile	Fri Jun 16 14:14:40 2000
 @@ -101,5 +102,8 @@
  	${INSTALL_DATA} ${WRKSRC}/winedefault.reg ${PREFIX}/lib/wine
  	${ECHO}
  	@${SED} s+%%PREFIX%%+${PREFIX}+g <${PKGMESSAGE}
 +
 +post-install:
 +	@${LDCONFIG} -m ${PREFIX}/lib/wine
  
  .include <bsd.port.mk>
 
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: asmodai 
State-Changed-When: Tue Jul 11 02:57:21 PDT 2000 
State-Changed-Why:  
Another WINE thread botch. 


Responsible-Changed-From-To: gnats-admin->freebsd-ports 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Tue Jul 11 02:57:21 PDT 2000 
Responsible-Changed-Why:  
Inform ports. 

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