pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: wip/py-torch: Suggestions needed
Am 15.07.2022 um 20:38 schrieb Mayuresh:
On Fri, Jul 15, 2022 at 10:25:38PM +0530, Mayuresh wrote:
When setup.py runs following error occurs:
fatal: not a git repository (or any of the parent directories): .git
Based on the package's README, trying something like this:
post-extract:
cd ${WRKSRC}
git submodule sync
git submodule update --init --recursive --jobs 0
Strangely I get:
# make post-extract
cd /usr/local/netbsd/work/wip/py-torch/work/pytorch-1.12.0
make: exec(cd) failed (No such file or directory)
*** Error code 1
Actually the directory is present. Not sure why cd to it gives error.
This error message is a bit tricky, as it is not 'cd' that gives the
error. Instead, the error message comes from 'make: exec(cd)'.
When make runs on NetBSD in its "native" mode, it tries to be extra fast
by not running "simple" shell commands through system(3) but uses
execvp(3) instead. There is no /bin/cd or /usr/bin/cd, as these would
not work, therefore make(1) fails with this error message.
As soon as a shell command includes a ';' or '&', make(1) falls back to
running the commands through system(3), that's why you don't get this
error for commands like 'cd /somewhere && pwd'.
The proper fix, as you already discovered, is to join the shell command
lines using backslashes.
Roland
Home |
Main Index |
Thread Index |
Old Index