Build of mysql-client fails.

Angus MacGyver macgyver at calibre-solutions.co.uk
Tue Mar 20 17:12:01 UTC 2007


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 at 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 at calibre-solutions.co.uk>



More information about the freebsd-alpha mailing list