Thanks for answer.

I have done following list of commands and it seems to
compile and install. I don't used Cargo yet, so I don't know
if it works correctly.

One weird thing is need to create symlink for python

mkdir /usr/ports/ 

#my script to get and/or update ports tree
/budowanieOpenBSD/aktualizujPorty.sh

cd /usr/ports/
git init openbsd-wip           
cd openbsd-wip/                                                              
git config core.sparseCheckout true
echo "devel/cargo" >> .git/info/sparse-checkout
echo "textproc/py-toml" >> .git/info/sparse-checkout

git remote add -f origin https://github.com/jasperla/openbsd-wip.git
git pull origin master

#edit (in my case create) /etc/mk.conf to set
#PORTSDIR_PATH=${PORTSDIR}:$(PORTSDIR)/openbsd-wip

cd /usr/ports/openbsd-wip/devel/cargo/bootstrap/
make
make install


mkdir /usr/src/myCompilations/
cd /usr/src/myCompilations/
git clone --recursive https://github.com/rust-lang/cargo
cd cargo
#if I don't create symlink, configure will fail
ln -s /usr/local/bin/python2.7 /usr/local/bin/python
./configure --local-cargo=/usr/local/libexec/cargo-bootstrap/cargo
gmake CC="/usr/local/bin/egcc" CXX="/usr/local/bin/eg++"
gmake install

Reply via email to