make install - file already exists problem

Hello All,

I have many "forgotten" files from ports on one system, where /var/db/pkg was destroyed. Now I'm reinstalling some ports and I'm facing problem with make check, if file is installed during make install phase. Is there any way, how to:

  • Disable this check
  • or Force make to overwrite file
  • or Search for files in /usr/local/bin which do not belong to any ports with entry in /var/db/pkg and delete them?
 
# make install
in affected port directory returns
Code:
===> Installing for autoconf-wraper-xxxx
===> Generating temporary packing list
===> Checking if devel/autoconf-wrapper already installed
ln: /usr/local/bin/autoconf: file exists
*** Error code 1

Stop in /usr/local/devel/autoconf-wrapper
 
That's not a check actually, just ln throwing error about file already existing.

If it only happens with `ln`, try overriding it:
Code:
env LN='/bin/ln -f' make install
.
 
crsd said:
That's not a check actually, just ln throwing error about file already existing.

I got it just after my post :)


If it only happens with `ln`, try overriding it:
Code:
env LN='/bin/ln -f' make install
.

Tried with alias command, didn't works. Your solution seems to be the right one, works for one port, now trying # portmaster -a which brings up many such ports as dependencies, looks good.

Thanks for your advice.
 
Back
Top