Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2007 16:54:22 +0000
From:      Angus MacGyver <macgyver@calibre-solutions.co.uk>
To:        freebsd-alpha@FreeBSD.org
Subject:   Re: Build of mysql-client fails.
Message-ID:  <1174409662.9801.6.camel@yavin4.calibre-solutions.co.uk>
In-Reply-To: <1174350212.9985.3.camel@falcon.calibre-solutions.co.uk>
References:  <1174350212.9985.3.camel@falcon.calibre-solutions.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2007-03-20 at 00:23 +0000, Angus MacGyver wrote:
> Hi guys, 
> 
> Can anyone point me in the correct direction to fix this please.
> 
> I need to upgrade my SQL server to that I can keep things running for
> somewhat longer.
> 
> Machine is LX164, FreeBSD 5.4 (old i know) and the latest cvsup of
> the /usr/ports as of yesterday..
> 
> Cheers
> 
> AM
> 
> root@system_name:/usr/ports/databases/mysql50-client> make package
> ===>  Building package for mysql-client-5.0.37
> Creating package /usr/ports/packages/All/mysql-client-5.0.37.tbz
> Registering depends: ldconfig_compat-1.0_8.
> Registering conflicts: mysql-client-3.* mysql-client-4.*
> mysql-client-5.1.*.
> Creating bzip'd tar ball in
> '/usr/ports/packages/All/mysql-client-5.0.37.tbz'
> tar: could not chdir to '(null)'
> 
> pkg_create: make_dist: tar command failed with code 256
> *** Error code 1
> 


Replying to my own post... tut.. :-)

Solution found, bit of a hack, but never-the-less works.

cd /usr/ports/databases/mysql50-client/work

vi .PLIST.mktmp

find line two lines from bottom, 

@cwd (null) 
to 

@cwd /usr/local


make the file unwritable by anyone (chmod 000) and then run the make
package.

the make package then doesn't overwrite .PLIST.mktmp with junk from the
build.

Regards

AM


--

Angus MacGyver <macgyver@calibre-solutions.co.uk>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1174409662.9801.6.camel>