pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Correct way to update bmake and bootstrap-mk-files?



On Wed, 21 May 2008 16:37:11 +0100
"Jason Boissiere" <jason.boissiere%gmail.com@localhost> wrote:

> On 4 Apr 2008, at 19:13, Joerg Sonnenberger wrote:
> 
> On Thu, Apr 03, 2008 at 10:52:51PM +0100, Matthias Scheler wrote:
> 
> Please beware that the above can go horribly wrong. If it does all life as
> you know it will stop instantaneously and every molecule in your body will
> explode at the speed of light(*).
> 
> You mean like it doesn't reinstall bmake
> 
> Yes, correct. It is "bmake" that depends on "bootstrap-mk-files" and not
> the other way around. The correct sequence command should therefore read:
> 
> sudo zsh
> mkdir /safetmp
> cp -Rp /usr/pkg/bin/make /usr/pkg/share/mk /safetmp
> pkg_delete -ff bootstrap-mk-files
> pkg_delete -ff bmake
> cd /usr/pkgsrc/devel/bmake
> /safetmp/bmake -m /safetmp install
> rm -rf /safetmp
> 
> Stumbled across this discussion while trying to update bmake on OSF/1 and
> these instructions needed a little adjusting to work. My sequence of
> commands;
> 
> mkdir /safetmp
> cp -Rp /usr/pkg/bin/make /usr/pkg/share/mk /safetmp
> (failed, make not found)
> cp -Rp /usr/pkg/bin/bmake /usr/pkg/share/mk /safetmp
> pkg_delete -ff bootstrap-mk-files
> pkg_delete -ff bmake
> /safetmp/bmake -m /safetmp install
> (failed, sys.mk not found)
> /safetmp/bmake -m /safetmp/mk install
> (worked, but no sign of installing bootstrap-mk-files)
> ls /usr/pkg/share/mk
> (non-existent)
> cd ../../pkgtools/bootstrap-mk-files/
> bmake install
> (failed, no sys.mk, obviously)
> bmake -m /safetmp/mk install
> (worked, thankfully)
> 
> Wouldn't have got anywhere w/o the template though, so thanks for that.
> Hopefully this version will save someone the hassle of deleting the
> /safetmp/mk files before the new bootstrap-mk-files is installed.
> 
> Jason
> 

There is a much simpler way and less hackish way:

cd pkgtools/bootstrap-mk-files
bmake USE_DESTDIR=full package
pkg_add -uu /usr/pkgsrc/packages/All/bootstrap-mk-files...tgz
cd ../../devel/bmake
bmake USE_DESTDIR=full package
pkg_add -uu /usr/pkgsrc/packages/All/bmake...tgz

Cheers,
-Tobias


Home | Main Index | Thread Index | Old Index