vault backup: 2024-11-08 19:28:17

This commit is contained in:
Jerry Jacobs 2024-11-08 19:28:17 +01:00
parent 00a5c47dc1
commit c4b909395d
1 changed files with 48 additions and 1 deletions

View File

@ -160,7 +160,7 @@ LDFLAGS=" -lm -lpython3" pip install numpy-git/
```
https://github.com/numpy/numpy/issues/24873#issuecomment-1807458661
`setenv LDFLAGS "-lm -lpython3" ; pip install dl/numpy-git/`
`setenv LDFLAGS "-lm -lpython3" ; pip install --config-settings=builddir=build dl/numpy-git-build-freebsd-14.1 dl/numpy-git/`
```
(homeassistant) homeassistant@mango:/data/homeassistant % setenv LDFLAGS "-lm -lpython3" ; pip install dl/numpy-git/
@ -205,4 +205,51 @@ Thanks meson and pip for throwing away the NEEDED log:
```
(homeassistant) homeassistant@mango:/data/homeassistant % cat /data/homeassistant/dl/numpy-git/.mesonpy-4rpzl4ag/build/meson-logs/meson-log.txt
cat: /data/homeassistant/dl/numpy-git/.mesonpy-4rpzl4ag/build/meson-logs/meson-log.txt: No such file or directory
```
Follow-up: the way to not clean up the build dir (and hence the log file) is:
```
pip install . --config-settings=builddir=build
```
https://github.com/mesonbuild/meson-python/issues/246#issuecomment-1354426272
So probably:
```
setenv LDFLAGS "-lm -lpython3" ; pip install --config-settings=builddir=dl/numpy-git-build-freebsd-14.1 dl/numpy-git/
```
Log is preserved...
```
A full log can be found at /data/homeassistant/dl/numpy-git/dl/numpy-git-build-freebsd-14.1/meson-logs/meson-log.txt
[end of output]
```
```
-----
Sanity check compile stderr:
ld: error: unable to find library -lpython3
cc: error: linker command failed with exit code 1 (use -v to see invocation)
-----
../../meson.build:1:0: ERROR: Compiler cc cannot compile programs.
```
Will get then
```
setenv LDFLAGS "-lm -lpython3.11" ; pip install --config-settings=builddir=dl/numpy-git-build-freebsd-14.1 dl/numpy-git/
```
Due too shared object (.so) naming:
```
(homeassistant) homeassistant@mango:/data/homeassistant % pkg list python311 | grep libpython
/usr/local/lib/libpython3.11.so
/usr/local/lib/libpython3.11.so.1
/usr/local/lib/libpython3.11.so.1.0
/usr/local/lib/libpython3.11.so.1.0-gdb.py
/usr/local/lib/python3.11/config-3.11/libpython3.11.a
```