From mkm@marvin.idsi.net  Sat Feb  2 16:07:11 2002
Return-Path: <mkm@marvin.idsi.net>
Received: from marvin.idsi.net (66-168-58-99.jvl.wi.charter.com [66.168.58.99])
	by hub.freebsd.org (Postfix) with ESMTP id 11C1637B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  2 Feb 2002 16:07:00 -0800 (PST)
Received: (from mkm@localhost)
	by marvin.idsi.net (8.11.6/8.11.6) id g12M6lj21244;
	Sat, 2 Feb 2002 16:06:47 -0600 (CST)
	(envelope-from mkm)
Message-Id: <200202022206.g12M6lj21244@marvin.idsi.net>
Date: Sat, 2 Feb 2002 16:06:47 -0600 (CST)
From: "mkmi@idsi.net" <mkm@idsi.net>
Reply-To: "mkm@idsi.net" <mkm@idsi.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: graphics/blender port is broke
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         34565
>Category:       ports
>Synopsis:       graphics/blender port is broke
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 02 16:10:01 PST 2002
>Closed-Date:    Sat Nov 01 17:13:56 PST 2003
>Last-Modified:  Sat Nov 01 17:13:56 PST 2003
>Originator:     mkm
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Enron Energy Corp.
>Environment:
System: FreeBSD marvin.idsi.net 4.5-STABLE FreeBSD 4.5-STABLE #8: Sat Feb 2 14:14:04 CST 2002 mkm@marvin.idsi.net:/usr/src/sys/compile/MARVIN i386


	
>Description:
Blender is looking for libGL.so.14, which is not found, greping the plists yielded nothing.

marvin% blender
/usr/libexec/ld-elf.so.1: Shared object "libGL.so.14" not found

>How-To-Repeat:
	cd /usr/ports/graphics/blender && make install clean
>Fix:

None yet


>Release-Note:
>Audit-Trail:

From: Will Andrews <will@csociety.org>
To: "mkmi@idsi.net" <mkm@idsi.net>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/34565: graphics/blender port is broke
Date: Sat, 2 Feb 2002 19:16:25 -0500

 On Sat, Feb 02, 2002 at 04:06:47PM -0600, mkmi@idsi.net wrote:
 > Blender is looking for libGL.so.14, which is not found, greping the plists yielded nothing.
 
 That's because libGL.so.14 is installed by the Mesa port.  Likely
 you have XFREE86_VERSION=4 which uses XFree86's copy of libGL,
 which is libGL.so.1.  They should be ABI compatible, so you can
 probably symlink libGL.so.14 to libGL.so.1.
 
 > marvin% blender
 > /usr/libexec/ld-elf.so.1: Shared object "libGL.so.14" not found
 
 IMO, this is still a bug because XFree86-4[,-libraries] should
 symlink them and ports should grow the concept of shared (as in
 between packages) files.  But it's sort of a hard thing to do
 right now.  :(
 
 Regards,
 -- 
 wca

From: mkm <mkm@idsi.net>
To: Will Andrews <will@csociety.org>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/34565: graphics/blender port is broke
Date: Sat, 2 Feb 2002 16:30:52 -0600

 On Saturday 02 February 2002 06:16 pm, Will Andrews wrote:
 
 > That's because libGL.so.14 is installed by the Mesa port.  Likely
 > you have XFREE86_VERSION=4 which uses XFree86's copy of libGL,
 > which is libGL.so.1.  They should be ABI compatible, so you can
 > probably symlink libGL.so.14 to libGL.so.1.
 >
 
 bleh, it needs libGLU.so.14 as well, ill write a patch and sumbit it
 
 -- 
 
 Kyle Martin
 mkm@idsi.net

From: Will Andrews <will@csociety.org>
To: mkm <mkm@idsi.net>
Cc: Will Andrews <will@csociety.org>,
	FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/34565: graphics/blender port is broke
Date: Sat, 2 Feb 2002 19:39:50 -0500

 On Sat, Feb 02, 2002 at 04:30:52PM -0600, mkm wrote:
 > > That's because libGL.so.14 is installed by the Mesa port.  Likely
 > > you have XFREE86_VERSION=4 which uses XFree86's copy of libGL,
 > > which is libGL.so.1.  They should be ABI compatible, so you can
 > > probably symlink libGL.so.14 to libGL.so.1.
 > 
 > bleh, it needs libGLU.so.14 as well, ill write a patch and sumbit it
 
 Not surprising.  You will probably need to patch both
 XFree86-4-libraries and XFree86-4, and possible Mesa too.
 
 Regards,
 -- 
 wca

From: mkm <mkm@idsi.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: [PATCH] Re: ports/34565: graphics/blender port is broke
Date: Sat, 2 Feb 2002 16:51:58 -0600

 Fix:
 
 *** Makefile.old        Tue Sep 11 04:38:03 2001
 --- Makefile    Sat Feb  2 16:48:09 2002
 ***************
 *** 36,40 ****
 --- 36,42 ----
         ${MKDIR} ${PREFIX}/share/doc/blender
         ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/blender
         ${INSTALL_DATA} ${WRKSRC}/copyright.txt ${PREFIX}/share/doc/blender
 +       ${LN} -s ${X11BASE}/lib/libGL.so.1 {$X11BASE}/lib/libGL.so.14
 +       ${LN} -s ${X11BASE}/lib/libGLU.so.1 {$X11BASE}/lib/libGLU.so.14
   
   .include <bsd.port.mk>
 *** pkg-plist.old       Thu Mar  8 11:57:50 2001
 --- pkg-plist   Sat Feb  2 16:42:18 2002
 ***************
 *** 4,9 ****
 --- 4,11 ----
   lib/blender/plugins/sequence/showzbuf.so
   lib/blender/plugins/texture/clouds2.so
   lib/blender/plugins/texture/tiles.so
 + lib/libGL.so.14
 + lib/libGLU.so.14
   share/doc/blender/README
   share/doc/blender/copyright.txt
   @dirrm share/doc/blender
 
 
 -- 
 
 Kyle Martin
 mkm@idsi.net

From: Will Andrews <will@csociety.org>
To: mkm <mkm@idsi.net>
Cc: FreeBSD GNATS DB <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: [PATCH] Re: ports/34565: graphics/blender port is broke
Date: Sun, 3 Feb 2002 01:47:03 -0500

 On Sat, Feb 02, 2002 at 05:00:02PM -0800, mkm wrote:
 >  *** Makefile.old        Tue Sep 11 04:38:03 2001
 >  --- Makefile    Sat Feb  2 16:48:09 2002
 >  ***************
 >  *** 36,40 ****
 >  --- 36,42 ----
 >          ${MKDIR} ${PREFIX}/share/doc/blender
 >          ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/blender
 >          ${INSTALL_DATA} ${WRKSRC}/copyright.txt ${PREFIX}/share/doc/blender
 >  +       ${LN} -s ${X11BASE}/lib/libGL.so.1 {$X11BASE}/lib/libGL.so.14
 >  +       ${LN} -s ${X11BASE}/lib/libGLU.so.1 {$X11BASE}/lib/libGLU.so.14
 >    
 >    .include <bsd.port.mk>
 >  *** pkg-plist.old       Thu Mar  8 11:57:50 2001
 >  --- pkg-plist   Sat Feb  2 16:42:18 2002
 >  ***************
 >  *** 4,9 ****
 >  --- 4,11 ----
 >    lib/blender/plugins/sequence/showzbuf.so
 >    lib/blender/plugins/texture/clouds2.so
 >    lib/blender/plugins/texture/tiles.so
 >  + lib/libGL.so.14
 >  + lib/libGLU.so.14
 >    share/doc/blender/README
 >    share/doc/blender/copyright.txt
 >    @dirrm share/doc/blender
 
 As I said, this patch is wrong for several reasons:
 
 	1) Does not take into account case when you install Mesa
 	   then later remove it.
 	2) Removes files owned by the Mesa package if you install
 	   blender after installing Mesa then remove it.
 	3) Replaces files installed by the Mesa package if you
 	   install the blender package (as opposed to the port).
 
 Port maintainer would be well advised not to integrate such a
 broken patch.  If nothing else, however, the port maintainer
 might want to include a pkg-message file (or append one if it
 exists) instructing the installing user to symlink
 libGL[U,].so.14 to libGL[U,].so.1 or whatever it is X4
 installed at that time.
 
 This mess would be properly fixed if we had proper magic to
 detect Mesa.  For example, Mesa should be split out into libglut
 so there is no need for the Mesa package if X4 is installed.
 
 Regards,
 -- 
 wca

From: mkm <mkm@idsi.net>
To: Will Andrews <will@csociety.org>
Cc: FreeBSD GNATS DB <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: [PATCH] Re: ports/34565: graphics/blender port is broke
Date: Sat, 2 Feb 2002 23:57:58 -0600

 On Sunday 03 February 2002 12:47 am, Will Andrews wrote:
 > As I said, this patch is wrong for several reasons:
 >
 > 	1) Does not take into account case when you install Mesa
 > 	   then later remove it.
 
 Right, Mesa should be a dependent on this port.  Which currently isn't but 
 should be regardless of the patch.
 
 > 	2) Removes files owned by the Mesa package if you install
 > 	   blender after installing Mesa then remove it.
 
 No, it just makes 2 symlinks that Mesa doesn't currently make, then deletes 
 them.
 
 > 	3) Replaces files installed by the Mesa package if you
 > 	   install the blender package (as opposed to the port).
 
 Why would a pkg install different files than a port? Could you expand on 
 that? I think im obviously overlooking something.
 
 > Port maintainer would be well advised not to integrate such a
 > broken patch.  If nothing else, however, the port maintainer
 
 the "broken patch" makes the port "unbroke" 8)
 
 > might want to include a pkg-message file (or append one if it
 > exists) instructing the installing user to symlink
 > libGL[U,].so.14 to libGL[U,].so.1 or whatever it is X4
 > installed at that time.
 
 If the user manually creates those symlinks, then uninstalls Mesa and/or 
 blender at a later time, niether will claim ownership of that file and will 
 leave the dead link in the lib dir.  I _hate_ dirty /usr trees, thats how 
 things break 8)
 
 > This mess would be properly fixed if we had proper magic to
 > detect Mesa.  For example, Mesa should be split out into libglut
 > so there is no need for the Mesa package if X4 is installed.
 
 As I mentioned earlier, im looking into Mesa right now to see what can be 
 done to fix this.  Really the only issues I see with the patch is that it 
 needs a PORTREVISION bump, a Mesa depend and the fact that Mesa is the port 
 that should be patched not the blender port.  I just submitted this patch 
 because it does temporarily fix things until you/I/maintainer/whoever can 
 come up with the proper solution.
 
 -- 
 
 Kyle Martin
 mkm@idsi.net

From: Will Andrews <will@csociety.org>
To: mkm <mkm@idsi.net>
Cc: Will Andrews <will@csociety.org>,
	FreeBSD GNATS DB <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: [PATCH] Re: ports/34565: graphics/blender port is broke
Date: Sun, 3 Feb 2002 03:10:18 -0500

 On Sat, Feb 02, 2002 at 11:57:58PM -0600, mkm wrote:
 > Right, Mesa should be a dependent on this port.  Which currently isn't but 
 > should be regardless of the patch.
 
 Mesa dependent on blender?  I don't think so.
 
 > No, it just makes 2 symlinks that Mesa doesn't currently make, then deletes 
 > them.
 
 Hmm.  It is actually in graphics/Mesa3, but only included if
 XFree86 is 3.x.  So your patch is still broken in this respect.
 The Mesa port is broken too, but that's not addressed here.
 
 > Why would a pkg install different files than a port? Could you expand on 
 > that? I think im obviously overlooking something.
 
 Because the package is built in a clean environment.  If Mesa
 installs a symlink in that location and you build the port, your
 command as in the port would fail because the symlink already
 exists.  And then your blender plist would be broken because it's
 also claiming to own that symlink.
 
 > the "broken patch" makes the port "unbroke" 8)
 
 No, it actually breaks it (more).  If something doesn't do the
 right thing, it is by definition broken.
 
 > If the user manually creates those symlinks, then uninstalls Mesa and/or 
 > blender at a later time, niether will claim ownership of that file and will 
 > leave the dead link in the lib dir.  I _hate_ dirty /usr trees, thats how 
 > things break 8)
 
 Dirty /usr trees don't really cause problems in this case, since
 the symlink wouldn't point to an actual file if the packages are
 removed.
 
 > As I mentioned earlier, im looking into Mesa right now to see what can be 
 > done to fix this.  Really the only issues I see with the patch is that it 
 > needs a PORTREVISION bump, a Mesa depend and the fact that Mesa is the port 
 > that should be patched not the blender port.  I just submitted this patch 
 > because it does temporarily fix things until you/I/maintainer/whoever can 
 > come up with the proper solution.
 
 The port already depends on Mesa.  The patch is wrong.  It does
 not really fix the problem.
 
 By the way, I already had this long discussion with the author of
 blender and the original blender port maintainer awhile back.
 The short and long of it is that Mesa in ports needs to be fixed.
 Please don't suggest to "fix" blender like this.  Someone else
 already went down that road.
 
 Regards,
 -- 
 wca

From: mkm <mkm@idsi.net>
To: Will Andrews <will@csociety.org>
Cc: FreeBSD GNATS DB <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: [PATCH] Re: ports/34565: graphics/blender port is broke
Date: Sun, 3 Feb 2002 01:16:46 -0600

 On Sunday 03 February 2002 02:10 am, Will Andrews wrote:
 > Mesa dependent on blender?  I don't think so.
 
 No, as i said Mesa should be a dependent, not be dependent, which it is, I 
 seemed to have overlooked pkg_info -r 8)
 
 > Hmm.  It is actually in graphics/Mesa3, but only included if
 > XFree86 is 3.x.  So your patch is still broken in this respect.
 
 > The Mesa port is broken too, but that's not addressed here.
 
 Re-read the message you replied to.
 
 > Because the package is built in a clean environment.  If Mesa
 > installs a symlink in that location and you build the port, your
 > command as in the port would fail because the symlink already
 > exists.  And then your blender plist would be broken because it's
 > also claiming to own that symlink.
 >
 
 So packages that require X libs are built according to XFree86 3.x? Hrmm, I 
 see how that could get hairy.
 
 > No, it actually breaks it (more).  If something doesn't do the
 > right thing, it is by definition broken.
 
 Breaks it less, now it actually runs. (given on a XFree86-4 box).  I agree 
 that its still broke, hence why I'm working on the Mesa3 changes.
 
 > Dirty /usr trees don't really cause problems in this case, since
 > the symlink wouldn't point to an actual file if the packages are
 > removed.
 
 Always better safe than sorry, scenario: some clown out there (there are 
 many) writes code w/ a configure script to evaluate [ -e 
 /blah/blah/libGL.so.14 ] or [ -h /blah/blah/libGL.so.14 ] to check for Mesa3, 
 then someone ports it. kaboom.
 
 > > As I mentioned earlier, im looking into Mesa right now to see what can be
 > > done to fix this.  Really the only issues I see with the patch is that it
 > > needs a PORTREVISION bump, a Mesa depend and the fact that Mesa is the
 > > port that should be patched not the blender port.  I just submitted this
 > > patch because it does temporarily fix things until
 > > you/I/maintainer/whoever can come up with the proper solution.
 >
 > The port already depends on Mesa.  The patch is wrong.  It does
 > not really fix the problem.
 
 I had overlooked that depend and I am working on Mesa, see above, 
 
 > By the way, I already had this long discussion with the author of
 > blender and the original blender port maintainer awhile back.
 > The short and long of it is that Mesa in ports needs to be fixed.
 
 Then blender should be marked as a broke port until it isnt broke according 
 to your definition of broke.
 
 > Please don't suggest to "fix" blender like this.  Someone else
 > already went down that road.
 
 I mearly offered it as a temporary fix.  I don't do things half assed.  Just 
 give me a little time to work on it and all will be well. 8)
 
 -- 
 
 Kyle Martin
 mkm@idsi.net

From: Will Andrews <will@csociety.org>
To: mkm <mkm@idsi.net>
Cc: Will Andrews <will@csociety.org>,
	FreeBSD GNATS DB <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: [PATCH] Re: ports/34565: graphics/blender port is broke
Date: Sun, 3 Feb 2002 05:10:09 -0500

 On Sun, Feb 03, 2002 at 01:16:46AM -0600, mkm wrote:
 > So packages that require X libs are built according to XFree86 3.x? Hrmm, I 
 > see how that could get hairy.
 
 No, that's not what I said.  I said that what Mesa installs
 depends on the XFree86 version it's built against.
 
 > > No, it actually breaks it (more).  If something doesn't do the
 > > right thing, it is by definition broken.
 > 
 > Breaks it less, now it actually runs. (given on a XFree86-4 box).  I agree 
 > that its still broke, hence why I'm working on the Mesa3 changes.
 
 If it breaks other ports in more than zero quite possible cases,
 it is still broken from a packaging perspective.
 
 > Always better safe than sorry, scenario: some clown out there (there are 
 > many) writes code w/ a configure script to evaluate [ -e 
 > /blah/blah/libGL.so.14 ] or [ -h /blah/blah/libGL.so.14 ] to check for Mesa3, 
 > then someone ports it. kaboom.
 
 I agree that it's better safe than sorry, but I still think your
 patch is wrong for other reasons.  :)
 
 > > By the way, I already had this long discussion with the author of
 > > blender and the original blender port maintainer awhile back.
 > > The short and long of it is that Mesa in ports needs to be fixed.
 > 
 > Then blender should be marked as a broke port until it isnt broke according 
 > to your definition of broke.
 
 The port would not be broken by my definition if the maintainer
 adds a pkg-message file to notify the user that due to brokenness
 in the Mesa/XFree86 stuff, they will have to install the symlink
 manually, if required.  This will make them aware of the issue
 and to make sure they take care of it in the future should they
 not require the symlink any more.  It's not a perfect solution,
 which is why...
 
 > I mearly offered it as a temporary fix.  I don't do things half assed.  Just 
 > give me a little time to work on it and all will be well. 8)
 
 ...you're working on that now.  8^)
 
 -- 
 wca

From: mkm <mkm@idsi.net>
To: Will Andrews <will@csociety.org>
Cc: FreeBSD GNATS DB <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: [PATCH] Re: ports/34565: graphics/blender port is broke
Date: Sun, 3 Feb 2002 02:18:16 -0600

 On Sunday 03 February 2002 04:10 am, Will Andrews wrote:
 > ...you're working on that now.  8^)
 
 feh, still, current-port < my-patch < mesa-fix
 -- 
 
 Kyle Martin
 mkm@idsi.net

From: Will Andrews <will@csociety.org>
To: mkm <mkm@idsi.net>
Cc: Will Andrews <will@csociety.org>,
	FreeBSD GNATS DB <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: [PATCH] Re: ports/34565: graphics/blender port is broke
Date: Sun, 3 Feb 2002 05:28:53 -0500

 On Sun, Feb 03, 2002 at 02:18:16AM -0600, mkm wrote:
 > feh, still, current-port < my-patch < mesa-fix
 
 There must be a problem with my mail filters.  I presume you
 meant to swap "current-port" and "my-patch", above.  I must have
 some really crack-induced regular expression going on here.
 Could you please confirm that?  Thanks.
 
 This not the Jedi mind trick you are looking for...
 -- 
 wca
 ;)

From: "David W. Chapman Jr." <dwcjr@inethouston.net>
To: freebsd-gnats-submit@FreeBSD.org, mkm@idsi.net, will@freebsd.org
Cc:  
Subject: Re: ports/34565: graphics/blender port is broke
Date: Sun, 01 Sep 2002 17:25:59 -0500

 This is a lengthy pr, where do we stand on it?  Does the issue still exist?
 

From: Will Andrews <will@csociety.org>
To: "David W. Chapman Jr." <dwcjr@inethouston.net>
Cc: freebsd-gnats-submit@FreeBSD.org, mkm@idsi.net, will@freebsd.org
Subject: Re: ports/34565: graphics/blender port is broke
Date: Sun, 1 Sep 2002 15:27:13 -0700

 On Sun, Sep 01, 2002 at 05:25:59PM -0500, David W. Chapman Jr. wrote:
 > This is a lengthy pr, where do we stand on it?  Does the issue still exist?
 
 http://www.blender3d.com/
 
 It's going to be GPL'd soon.
 
 regards
 -- 
 wca

From: "David W. Chapman Jr." <dwcjr@inethouston.net>
To: Will Andrews <will@csociety.org>
Cc: "David W. Chapman Jr." <dwcjr@inethouston.net>,
	freebsd-gnats-submit@FreeBSD.org, mkm@idsi.net, will@freebsd.org
Subject: Re: ports/34565: graphics/blender port is broke
Date: Sun, 1 Sep 2002 17:30:55 -0500

 On Sun, Sep 01, 2002 at 03:27:13PM -0700, Will Andrews wrote:
 > On Sun, Sep 01, 2002 at 05:25:59PM -0500, David W. Chapman Jr. wrote:
 > > This is a lengthy pr, where do we stand on it?  Does the issue still exist?
 > 
 > http://www.blender3d.com/
 > 
 > It's going to be GPL'd soon.
 
 I am a little confused.  I thought the issue was with the library 
 versions because X 4 installs its own gl libraries?
 
 ------
 David W. Chapman Jr.
 dwcjr@inethouston.net	Raintree Network Services, Inc. <www.inethouston.net>
 dwcjr@freebsd.org	FreeBSD Committer <www.FreeBSD.org>

From: Will Andrews <will@csociety.org>
To: "David W. Chapman Jr." <dwcjr@inethouston.net>
Cc: Will Andrews <will@csociety.org>,
	freebsd-gnats-submit@FreeBSD.org, mkm@idsi.net, will@freebsd.org
Subject: Re: ports/34565: graphics/blender port is broke
Date: Sun, 1 Sep 2002 15:41:55 -0700

 On Sun, Sep 01, 2002 at 05:30:55PM -0500, David W. Chapman Jr. wrote:
 > I am a little confused.  I thought the issue was with the library 
 > versions because X 4 installs its own gl libraries?
 
 That's an old issue.  I believe it's been resolved, but the fact
 that the binary used libGL.so.14 is a relic.  Hopefully with the
 release of source code, it won't be a problem any more.
 
 regards,
 -- 
 wca
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Sun Aug 17 16:24:30 PDT 2003 
State-Changed-Why:  
Is this still an issue with the latest version of the 
port? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34565 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sat Nov 1 17:13:48 PST 2003 
State-Changed-Why:  
Feedback timeout 

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