Re: [60013] trunk/dports/databases/db46/Portfile

View: New views
4 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: [60013] trunk/dports/databases/db46/Portfile

by Bryan Blackburn-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 28, 2009 at 09:02:59PM -0700, blair@... said:

> Revision: 60013
>           http://trac.macports.org/changeset/60013
> Author:   blair@...
> Date:     2009-10-28 21:02:59 -0700 (Wed, 28 Oct 2009)
> Log Message:
> -----------
> Defend against people having stuff in /usr/local that prevents db46
> from properly building.  If somebody wants to supply a patch to
> prevent db46 from picking stuff up from /usr/local, then I'll gladly
> accept it.

Can this test be made a bit more specific, say /usr/local/include/db.h
and/or /usr/local/lib/libdb.a for example?  Otherwise, this is going to fail
in many places where there is otherwise nothing bad in /usr/local.

Note that the general issue with /usr/local is gcc and not db46-specific,
and as far as I know, nobody's found a clean way to avoid it as yet.

Bryan


[...]
_______________________________________________
macports-dev mailing list
macports-dev@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Re: [60013] trunk/dports/databases/db46/Portfile

by Blair Zajac :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 29, 2009, at 1:05 AM, Bryan Blackburn wrote:

> On Wed, Oct 28, 2009 at 09:02:59PM -0700, blair@... said:
>> Revision: 60013
>>          http://trac.macports.org/changeset/60013
>> Author:   blair@...
>> Date:     2009-10-28 21:02:59 -0700 (Wed, 28 Oct 2009)
>> Log Message:
>> -----------
>> Defend against people having stuff in /usr/local that prevents db46
>> from properly building.  If somebody wants to supply a patch to
>> prevent db46 from picking stuff up from /usr/local, then I'll gladly
>> accept it.
>
> Can this test be made a bit more specific, say /usr/local/include/db.h
> and/or /usr/local/lib/libdb.a for example?  Otherwise, this is going  
> to fail
> in many places where there is otherwise nothing bad in /usr/local.
>
> Note that the general issue with /usr/local is gcc and not db46-
> specific,
> and as far as I know, nobody's found a clean way to avoid it as yet.

Of the ports I maintain, db46 seems to be the main one that stuff in /
usr/local causes issues.

But I haven't looked to see what stuff in there can cause a problem.  
I guess we could do a search for db*.

Blair

_______________________________________________
macports-dev mailing list
macports-dev@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Re: [60013] trunk/dports/databases/db46/Portfile

by Mark Hattam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 29 Oct 2009, at 08:05, Bryan Blackburn wrote:

> On Wed, Oct 28, 2009 at 09:02:59PM -0700, blair@... said:
>> Revision: 60013
>>          http://trac.macports.org/changeset/60013
>> Author:   blair@...
>> Date:     2009-10-28 21:02:59 -0700 (Wed, 28 Oct 2009)
>> Log Message:
>> -----------
>> Defend against people having stuff in /usr/local that prevents db46
>> from properly building.  If somebody wants to supply a patch to
>> prevent db46 from picking stuff up from /usr/local, then I'll gladly
>> accept it.
>
> Can this test be made a bit more specific, say /usr/local/include/db.h
> and/or /usr/local/lib/libdb.a for example?  Otherwise, this is going  
> to fail
> in many places where there is otherwise nothing bad in /usr/local.
>
> Note that the general issue with /usr/local is gcc and not db46-
> specific,
> and as far as I know, nobody's found a clean way to avoid it as yet.
>
> Bryan


er .. yes ... what fails in my instance?

iMac:~ $ sudo port upgrade outdated
--->  Computing dependencies for db46
--->  Fetching db46
--->  Attempting to fetch patch.4.6.21.1 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
--->  Attempting to fetch patch.4.6.21.2 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
--->  Attempting to fetch patch.4.6.21.3 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
--->  Attempting to fetch patch.4.6.21.4 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
--->  Attempting to fetch db-4.6.21.tar.gz from http://arn.se.distfiles.macports.org/db4/4.6.21_6
--->  Attempting to fetch db-4.6.21.tar.gz from http://distfiles.macports.org/db4/4.6.21_6
--->  Verifying checksum(s) for db46
--->  Extracting db46
Error: Move /usr/local out of the way then make this port.
Error: Target org.macports.extract returned: /usr/local is in the way
Error: Unable to upgrade port: 1


iMac:local $ ls -laR /usr/local/
total 0
drwxr-xr-x   5 root  wheel  170  5 Sep 21:59 .
drwxr-xr-x@ 12 root  wheel  408  5 Sep 22:08 ..
drwxr-xr-x   2 root  wheel   68 11 Sep 23:43 bin
drwxr-xr-x   3 root  wheel  102  5 Sep 21:59 man
drwxr-xr-x   2 root  wheel   68 11 Sep 23:43 sbin

/usr/local//bin:
total 0
drwxr-xr-x  2 root  wheel   68 11 Sep 23:43 .
drwxr-xr-x  5 root  wheel  170  5 Sep 21:59 ..

/usr/local//man:
total 0
drwxr-xr-x  3 root  wheel  102  5 Sep 21:59 .
drwxr-xr-x  5 root  wheel  170  5 Sep 21:59 ..
drwxr-xr-x  2 root  501     68 11 Sep 23:43 man8

/usr/local//man/man8:
total 0
drwxr-xr-x  2 root  501     68 11 Sep 23:43 .
drwxr-xr-x  3 root  wheel  102  5 Sep 21:59 ..

/usr/local//sbin:
total 0
drwxr-xr-x  2 root  wheel   68 11 Sep 23:43 .
drwxr-xr-x  5 root  wheel  170  5 Sep 21:59 ..


Mark
_______________________________________________
macports-dev mailing list
macports-dev@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Re: [60013] trunk/dports/databases/db46/Portfile

by Bryan Blackburn-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 29, 2009 at 08:45:52PM +0000, Mark Hattam said:

>
> On 29 Oct 2009, at 08:05, Bryan Blackburn wrote:
>
> >On Wed, Oct 28, 2009 at 09:02:59PM -0700, blair@... said:
> >>Revision: 60013
> >>         http://trac.macports.org/changeset/60013
> >>Author:   blair@...
> >>Date:     2009-10-28 21:02:59 -0700 (Wed, 28 Oct 2009)
> >>Log Message:
> >>-----------
> >>Defend against people having stuff in /usr/local that prevents db46
> >>from properly building.  If somebody wants to supply a patch to
> >>prevent db46 from picking stuff up from /usr/local, then I'll gladly
> >>accept it.
> >
> >Can this test be made a bit more specific, say /usr/local/include/db.h
> >and/or /usr/local/lib/libdb.a for example?  Otherwise, this is
> >going to fail
> >in many places where there is otherwise nothing bad in /usr/local.
> >
> >Note that the general issue with /usr/local is gcc and not db46-
> >specific,
> >and as far as I know, nobody's found a clean way to avoid it as yet.
> >
> >Bryan
>
>
> er .. yes ... what fails in my instance?

I made the test more specific in r60031 so try again after a selfupdate in
30 minutes or so.  See also ticket #22291:

<http://trac.macports.org/ticket/22291>

Bryan


[...]
>
>
> Mark
_______________________________________________
macports-dev mailing list
macports-dev@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev