Notebook

これは日々の作業を通して学んだことや毎日の生活で気づいたことをを記録しておく備忘録である。

HTML ファイル生成日時: 2025/11/23 20:31:30.065 (台灣標準時)

pkgsrc の scipy

しばらく前から pkgsrc を使って Scipy をインストールしようとすると、以 下のように失敗するでござる。


# cd /usr/pkgsrc/math/py-scipy
# make install

.....

=> Generating post-install file lists
pkg_create: can't stat `/usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/PKG-INFO'
pkg_create: can't stat `/usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/SOURCES.txt'
pkg_create: can't stat `/usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/dependency_links.txt'
pkg_create: can't stat `/usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/not-zip-safe'
pkg_create: can't stat `/usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/requires.txt'
pkg_create: can't stat `/usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/top_level.txt'
if test -d "/usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info"; then  /usr/bin/find /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info -type f  -exec /bin/chmod 644 '{}' +;  fi
=> Checking file-check results for py39-scipy-1.8.1nb1
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg:
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/PKG-INFO
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/SOURCES.txt
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/dependency_links.txt
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/not-zip-safe
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/requires.txt
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/SciPy-1.8.1-py3.9.egg-info/top_level.txt
ERROR: ************************************************************
ERROR: The following files are in /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg but not in the PLIST:
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/scipy-1.8.1-py3.9.egg-info/PKG-INFO
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/scipy-1.8.1-py3.9.egg-info/SOURCES.txt
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/scipy-1.8.1-py3.9.egg-info/dependency_links.txt
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/scipy-1.8.1-py3.9.egg-info/not-zip-safe
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/scipy-1.8.1-py3.9.egg-info/requires.txt
ERROR:         /usr/pkgsrc/math/py-scipy/work/.destdir/usr/pkg/lib/python3.9/site-packages/scipy-1.8.1-py3.9.egg-info/top_level.txt
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/math/py-scipy
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/math/py-scipy

PLIST ファイルを生成し直してみると、以下のようになったでござる。


# make print-PLIST > /tmp/PLIST
# diff PLIST /tmp/PLIST 
1,7c1,7
< @comment $NetBSD: PLIST,v 1.22 2022/04/09 12:15:31 adam Exp $
< ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
< ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
< ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
< ${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
< ${PYSITELIB}/${EGG_INFODIR}/requires.txt
< ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
---
> @comment $NetBSD$
> ${PYSITELIB}/scipy-${PKGVERSION}-py${PYVERSSUFFIX}.egg-info/PKG-INFO
> ${PYSITELIB}/scipy-${PKGVERSION}-py${PYVERSSUFFIX}.egg-info/SOURCES.txt
> ${PYSITELIB}/scipy-${PKGVERSION}-py${PYVERSSUFFIX}.egg-info/dependency_links.txt
> ${PYSITELIB}/scipy-${PKGVERSION}-py${PYVERSSUFFIX}.egg-info/not-zip-safe
> ${PYSITELIB}/scipy-${PKGVERSION}-py${PYVERSSUFFIX}.egg-info/requires.txt
> ${PYSITELIB}/scipy-${PKGVERSION}-py${PYVERSSUFFIX}.egg-info/top_level.txt

どのようにするのが正しい作法なのかよくわからないのでござるが、以下のよ うにすれば取り敢えずインストールはできるでござる。


# make print-PLIST > PLIST
# make clean; make install



Frequently accessed files

  1. Misc___Taiwan/20240207_00.html
  2. Computer___TeX/20231107_00.html
  3. Computer___TeX/20230726_01.html
  4. Misc___Taiwan/20240819_00.html
  5. Misc___Taiwan/20240903_01.html
  6. Computer___NetBSD/20250307_00.html
  7. Computer___TeX/20240411_00.html
  8. Misc___Japan/20240718_00.html
  9. Computer___Network/20251123_00.html
  10. Computer___Network/20240130_00.html
  11. Computer___Hardware/20240820_00.html
  12. Computer___Network/20240416_00.html
  13. Book___Chinese/20240424_00.html
  14. Computer___Python/20220715_0.html
  15. Computer___NetBSD/20240101_02.html
  16. Computer___NetBSD/20220506_0.html
  17. Computer___NetBSD/20240805_03.html
  18. Computer___Python/20210204_1.html
  19. Computer___NetBSD/20230119_00.html
  20. Computer___NetBSD/20230121_00.html
  21. Computer___Network/20231225_00.html
  22. Computer___TeX/20240410_00.html
  23. Computer___TeX/20240414_00.html
  24. Computer___NetBSD/20241223_00.html
  25. Misc___Taiwan/20210215_0.html
  26. Computer___NetBSD/20240810_00.html
  27. Food___Taiwan/20230622_27.html
  28. Food___Taiwan/20220830_5.html
  29. Computer___Network/20241214_00.html
  30. Food___Taiwan/20230622_13.html


HTML file generated by Kinoshita Daisuke.