Notebook

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

HTML ファイル生成日時: 2024/12/21 11:44:57.596 (台灣標準時)

pkgsrc-wip に新たなパッケージを追加する方法の記録

pkgsrc-wip に新たなパッケージを追加する方法は以下のページに丁寧に記述 されているので、それを読めばまだ存在しないパッケージを pkgsrc-wip に追 加することができるようになる。

commit のための準備

git で pkgsrc-wip の repository にアクセスできるようになるためには、 pkgsrc-wip の管理をしている人に SSH の鍵をメールで送ってアカウントを作っ てもらう必要がある。以下に、メールの送り先などの関連の情報の記述がある。

/etc/mk.conf の編集

/etc/mk.conf に以下の記述を追加する。

PKG_DEVELOPER=yes

meta-pkgs/pkg_developer のインストール

パッケージを作るために必要な url2pkg, pkglint, pkgvi, mkpatches などの 道具をインストールする。 pkgsrc を使って meta-pkgs/pkg_developer をイ ンストールすればよい。

# cd /usr/pkgsrc/meta-pkgs/pkg_developer
# cat DESCR 
This meta package provides a collection of development utilities that are
useful when working in pkgsrc packages.
# make install
# make clean

これから作る新しいパッケージのためのディレクトリの作成

これから作る新しいパッケージのためのディレクトリを作成する。ここでは、 py-nuclyr というディレクトリを作る。ディレクトリを作ったら、そこに移動 する。

# cd /usr/pkgsrc/wip
# mkdir py-nuclyr
# cd py-nuclyr

url2pkg を使ってパッケージに必要なファイルの雛形の作成

url2pkg を使ってパッケージに必要なファイルの雛形を作成する。 url2pkg の引数にソフトウェアの配布ファイルの URL を与える。

# url2pkg https://files.pythonhosted.org/packages/84/08/0468a675df3c33857876dc3b25c0197a1b5a98f48ce137a6fb1a4cd19fb5/nuclyr-0.17.tar.gz
===> Cleaning for nuclyr-0.17
=> Bootstrap dependency digest>=20211023: found digest-20211023
WARNING: [license.mk] Every package should define a LICENSE.
=> Fetching nuclyr-0.17.tar.gz
Trying 151.101.1.63:443 ...
Requesting https://files.pythonhosted.org/packages/source/n/nuclyr/nuclyr-0.17.tar.gz
Redirected to https://files.pythonhosted.org/packages/84/08/0468a675df3c33857876dc3b25c0197a1b5a98f48ce137a6fb1a4cd19fb5/nuclyr-0.17.tar.gz
Trying 151.101.1.63:443 ...
Requesting https://files.pythonhosted.org/packages/84/08/0468a675df3c33857876dc3b25c0197a1b5a98f48ce137a6fb1a4cd19fb5/nuclyr-0.17.tar.gz
100% |***********************************|   359 KiB    1.25 MiB/s    00:00 ETA
367912 bytes retrieved in 00:00 (1.25 MiB/s)
=> Checksum BLAKE2s OK for nuclyr-0.17.tar.gz
=> Checksum SHA512 OK for nuclyr-0.17.tar.gz
===> Installing dependencies for nuclyr-0.17
=> Tool dependency cwrappers>=20220403: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
===> Checking for vulnerabilities in nuclyr-0.17
===> Overriding tools for nuclyr-0.17
===> Extracting for nuclyr-0.17

Remember to run pkglint when you're done.
See ../../doc/pkgsrc.txt to get some help.
すると、 DESCR, Makefile, PLIST, distinfo のファイルが作成される。
# ls -lF
total 20
-rw-r--r--   1 root  wheel  1090 Apr  6 15:05 DESCR
-rw-r--r--   1 root  wheel   712 Apr  6 15:05 Makefile
-rw-r--r--   1 root  wheel   170 Apr  6 15:05 PLIST
-rw-r--r--   1 root  wheel   306 Apr  6 15:05 distinfo
drwxr-xr-x  11 root  wheel   512 Apr  6 15:05 work/

pkglint の実行

雛形ファイルができた状態では、まだどんな不備があるのかを確認するために、 pkglint を実行してみる。

# pkglint 
ERROR: DESCR:1: DESCR files must not have TODO lines.
WARN: DESCR:13: Line too long (should be no more than 80 characters).
NOTE: DESCR:13: Trailing whitespace.
WARN: DESCR:14: Line too long (should be no more than 80 characters).
NOTE: DESCR:14: Trailing whitespace.
WARN: DESCR:17: Line too long (should be no more than 80 characters).
WARN: DESCR:18: Line too long (should be no more than 80 characters).
WARN: DESCR:19: Line too long (should be no more than 80 characters).
WARN: Makefile:8: "INSERT_YOUR_MAIL_ADDRESS_HERE" is not a valid mail address.
WARN: Makefile:10: COMMENT should not begin with "An".
NOTE: Makefile:19: The requirement >=0 is already guaranteed by the >=1.0 from ../../math/py-numpy/buildlink3.mk:10.
1 error, 7 warnings and 3 notes found.
(Run "pkglint -e" to show explanations.)
(Run "pkglint -fs" to show what can be fixed automatically.)
(Run "pkglint -F" to automatically fix some issues.)
DESCR というファイルを編集する必要があるようだ。

DESCR ファイルの編集

DESCR ファイルを編集する。

# vi DESCR
# cat DESCR 
A package providing useful data for nuclear physics calculations.
ここで、もう一度、 pkglint を実行してみる。
# pkglint 
WARN: Makefile:8: "INSERT_YOUR_MAIL_ADDRESS_HERE" is not a valid mail address.
WARN: Makefile:10: COMMENT should not begin with "An".
NOTE: Makefile:19: The requirement >=0 is already guaranteed by the >=1.0 from ../../math/py-numpy/buildlink3.mk:10.
2 warnings and 1 note found.
DESCR ファイルについての error や warning や note がなくなった。

Makefile ファイルの編集

Makefile についても pkglint から文句を言われていたので Makefile を編集 する。

# vi Makefile 
# cat Makefile 
# $NetBSD$

DISTNAME=       nuclyr-0.17
PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=     python # TODO: add primary category
MASTER_SITES=   ${MASTER_SITE_PYPI:=n/nuclyr/}

MAINTAINER=     pkgsrc-users@NetBSD.org
HOMEPAGE=       https://github.com/phScholz/nuclyr
COMMENT=        Utility package for nuclear physics data
LICENSE=        mit

DEPENDS+=       ${PYPKGPREFIX}-selenium>=0:../../www/py-selenium
DEPENDS+=       ${PYPKGPREFIX}-pandas>=0:../../math/py-pandas
DEPENDS+=       ${PYPKGPREFIX}-requests>=0:../../devel/py-requests

USE_LANGUAGES=  # none

BUILDLINK_API_DEPENDS.py-numpy+=        ${PYPKGPREFIX}-numpy>=1.0
.include "../../math/py-numpy/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
ここで、 pkglint を実行してみる。
# pkglint
Looks fine.
これで問題なくなったようである。

make の実行

まず make clean してまっさらな状態にする。

# make clean
===> Cleaning for py39-nuclyr-0.17
make を実行して、コンパイルが問題なく終了するかどうか試してみる。
# make
=> Bootstrap dependency digest>=20211023: found digest-20211023
=> Fetching nuclyr-0.17.tar.gz
=> Total size: 367912 bytes
=> Checksum BLAKE2s OK for nuclyr-0.17.tar.gz
=> Checksum SHA512 OK for nuclyr-0.17.tar.gz
===> Installing dependencies for py39-nuclyr-0.17
==========================================================================
The following variables will affect the build process of this package,
py39-nuclyr-0.17.  Their current value is shown below:

        * PKGSRC_BLAS_TYPES = netlib openblas openblas_pthread openblas_openmp
        * PYTHON_VERSION_DEFAULT = 39

Based on these variables, the following variables have been set:

        * BLAS_INCLUDES = -I/usr/pkg/include/netlib
        * BLAS_LIBS = -lblas
        * BLAS_TYPE = netlib
        * CBLAS_LIBS = -lcblas -lblas
        * LAPACKE_LIBS = -llapacke -llapack -lblas
        * LAPACK_LIBS = -llapack -lblas
        * PYPACKAGE = python39

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/usr/bin/make clean' after the changes.
==========================================================================
=> Tool dependency py39-setuptools-[0-9]*: found py39-setuptools-60.9.3
=> Tool dependency cwrappers>=20220403: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency py39-selenium>=0: found py39-selenium-3.141.0nb1
=> Full dependency py39-pandas>=0: found py39-pandas-1.3.5nb1
=> Full dependency py39-requests>=0: found py39-requests-2.27.1
=> Full dependency py39-numpy>=1.20.3nb1: found py39-numpy-1.21.5nb4
===> Checking for vulnerabilities in py39-nuclyr-0.17
===> Overriding tools for py39-nuclyr-0.17
===> Extracting for py39-nuclyr-0.17
===> Patching for py39-nuclyr-0.17
===> Creating toolchain wrappers for py39-nuclyr-0.17
===> Configuring for py39-nuclyr-0.17
=> Checking for portability problems in extracted files
===> Building for py39-nuclyr-0.17
(cd /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/nuclyr-0.17/ && /usr/bin/env USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= NPY_BLAS_LIBS=-lblas NPY_LAPACK_LIBS=-llapack\ -lblas NPY_CBLAS_LIBS=-lcblas\ -lblas PYTHON=/usr/pkg/bin/python3.9 CC=gcc CFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CPPFLAGS=-I/usr/pkg/include/netlib\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CXX=c++ CXXFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-Wl,-zrelro\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin:/usr/pkg/bin:/root/bin:/sbin:/usr/pkg/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc CPP=cpp CXXCPP=cpp HOME=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.home CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/itstool GDBUS_CODEGEN=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/gdbus-codegen PKG_CONFIG= PKG_CONFIG_LIBDIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/lib/pkgconfig:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config /usr/pkg/bin/python3.9  setup.py  build  -j8)
running build
running build_py
package init file 'nuclyr/__init__.py' not found (or not a regular file)
creating build
creating build/lib
creating build/lib/nuclyr
copying nuclyr/EXFOR.py -> build/lib/nuclyr
copying nuclyr/config.py -> build/lib/nuclyr
copying nuclyr/constants.py -> build/lib/nuclyr
copying nuclyr/mass.py -> build/lib/nuclyr
copying nuclyr/nndc.py -> build/lib/nuclyr
running egg_info
writing nuclyr.egg-info/PKG-INFO
writing dependency_links to nuclyr.egg-info/dependency_links.txt
writing requirements to nuclyr.egg-info/requires.txt
writing top-level names to nuclyr.egg-info/top_level.txt
reading manifest file 'nuclyr.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'nuclyr.egg-info/SOURCES.txt'
creating build/lib/nuclyr/data
creating build/lib/nuclyr/data/amdc
copying nuclyr/data/amdc/mass16.dat -> build/lib/nuclyr/data/amdc
creating build/lib/nuclyr/data/ripl
copying nuclyr/data/ripl/abundance.dat -> build/lib/nuclyr/data/ripl
copying nuclyr/data/ripl/mass-frdm95.dat -> build/lib/nuclyr/data/ripl
make が問題なく完了したようである。 もしも、 make が途中で止まってしまったら、 pkgvi コマンドを使って問題 の生じたファイルを編集し、 mkpatches; make mps を実行し、 make clean してから、また make してみる必要がある。

make install の実行

make install を実行してみる。

# make install
=> Bootstrap dependency digest>=20211023: found digest-20211023
===> Checking for vulnerabilities in py39-nuclyr-0.17
===> Installing for py39-nuclyr-0.17
=> Generating pre-install file lists
=> Creating installation directories
(cd /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/nuclyr-0.17/ && /usr/bin/env DESTDIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= NPY_BLAS_LIBS=-lblas NPY_LAPACK_LIBS=-llapack\ -lblas NPY_CBLAS_LIBS=-lcblas\ -lblas PYTHON=/usr/pkg/bin/python3.9 CC=gcc CFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CPPFLAGS=-I/usr/pkg/include/netlib\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CXX=c++ CXXFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-Wl,-zrelro\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin:/usr/pkg/bin:/root/bin:/sbin:/usr/pkg/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc CPP=cpp CXXCPP=cpp HOME=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.home CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/itstool GDBUS_CODEGEN=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/gdbus-codegen PKG_CONFIG= PKG_CONFIG_LIBDIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/lib/pkgconfig:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config  /usr/pkg/bin/python3.9 setup.py  "install"  -c -O1  --root=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir)
running install
/usr/pkg/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running build
running build_py
package init file 'nuclyr/__init__.py' not found (or not a regular file)
running egg_info
writing nuclyr.egg-info/PKG-INFO
writing dependency_links to nuclyr.egg-info/dependency_links.txt
writing requirements to nuclyr.egg-info/requires.txt
writing top-level names to nuclyr.egg-info/top_level.txt
reading manifest file 'nuclyr.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'nuclyr.egg-info/SOURCES.txt'
running install_lib
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/EXFOR.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/config.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/constants.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/mass.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/nndc.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/amdc
copying build/lib/nuclyr/data/amdc/mass16.dat -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/amdc
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl
copying build/lib/nuclyr/data/ripl/abundance.dat -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl
copying build/lib/nuclyr/data/ripl/mass-frdm95.dat -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/EXFOR.py to EXFOR.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/config.py to config.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/constants.py to constants.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/mass.py to mass.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/nndc.py to nndc.cpython-39.pyc
writing byte-compilation script '/tmp/tmpw4ix2w0k.py'
/usr/pkg/bin/python3.9 /tmp/tmpw4ix2w0k.py
removing /tmp/tmpw4ix2w0k.py
running install_egg_info
Copying nuclyr.egg-info to /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info
running install_scripts
=> Automatic manual page handling
=> Generating post-install file lists
if test -d "/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info"; then  /usr/bin/find /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info -type f  -exec /bin/chmod 644 '{}' +;  fi
=> Checking file-check results for py39-nuclyr-0.17
ERROR: ************************************************************
ERROR: The following files are in /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg but not in the PLIST:
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info/PKG-INFO
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info/SOURCES.txt
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info/dependency_links.txt
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info/not-zip-safe
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info/requires.txt
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info/top_level.txt
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/EXFOR.py
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/__pycache__/EXFOR.cpython-39.opt-1.pyc
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/__pycache__/EXFOR.cpython-39.pyc
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/__pycache__/config.cpython-39.opt-1.pyc
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/__pycache__/config.cpython-39.pyc
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/__pycache__/constants.cpython-39.opt-1.pyc
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/__pycache__/constants.cpython-39.pyc
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/__pycache__/mass.cpython-39.opt-1.pyc
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/__pycache__/mass.cpython-39.pyc
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/__pycache__/nndc.cpython-39.opt-1.pyc
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/__pycache__/nndc.cpython-39.pyc
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/config.py
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/constants.py
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/amdc/mass16.dat
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl/abundance.dat
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl/mass-frdm95.dat
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/mass.py
ERROR:         /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/nndc.py
*** Error code 1

Stop.
make[1]: stopped in /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/py-nuclyr
PLIST ファイルに不備があり、 make install がエラーで止まってしまった。

PLIST ファイルの生成

make print-PLIST を実行し、 PLIST ファイルを生成する。

# make print-PLIST
@comment $NetBSD$
${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
${PYSITELIB}/nuclyr/EXFOR.py
${PYSITELIB}/nuclyr/EXFOR.pyc
${PYSITELIB}/nuclyr/EXFOR.pyo
${PYSITELIB}/nuclyr/config.py
${PYSITELIB}/nuclyr/config.pyc
${PYSITELIB}/nuclyr/config.pyo
${PYSITELIB}/nuclyr/constants.py
${PYSITELIB}/nuclyr/constants.pyc
${PYSITELIB}/nuclyr/constants.pyo
${PYSITELIB}/nuclyr/data/amdc/mass16.dat
${PYSITELIB}/nuclyr/data/ripl/abundance.dat
${PYSITELIB}/nuclyr/data/ripl/mass-frdm95.dat
${PYSITELIB}/nuclyr/mass.py
${PYSITELIB}/nuclyr/mass.pyc
${PYSITELIB}/nuclyr/mass.pyo
${PYSITELIB}/nuclyr/nndc.py
${PYSITELIB}/nuclyr/nndc.pyc
${PYSITELIB}/nuclyr/nndc.pyo
# make print-PLIST > PLIST
# cat PLIST 
@comment $NetBSD$
${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
${PYSITELIB}/nuclyr/EXFOR.py
${PYSITELIB}/nuclyr/EXFOR.pyc
${PYSITELIB}/nuclyr/EXFOR.pyo
${PYSITELIB}/nuclyr/config.py
${PYSITELIB}/nuclyr/config.pyc
${PYSITELIB}/nuclyr/config.pyo
${PYSITELIB}/nuclyr/constants.py
${PYSITELIB}/nuclyr/constants.pyc
${PYSITELIB}/nuclyr/constants.pyo
${PYSITELIB}/nuclyr/data/amdc/mass16.dat
${PYSITELIB}/nuclyr/data/ripl/abundance.dat
${PYSITELIB}/nuclyr/data/ripl/mass-frdm95.dat
${PYSITELIB}/nuclyr/mass.py
${PYSITELIB}/nuclyr/mass.pyc
${PYSITELIB}/nuclyr/mass.pyo
${PYSITELIB}/nuclyr/nndc.py
${PYSITELIB}/nuclyr/nndc.pyc
${PYSITELIB}/nuclyr/nndc.pyo
# ls -lF
total 20
-rw-r--r--   1 root  wheel    66 Apr  6 15:15 DESCR
-rw-r--r--   1 root  wheel   680 Apr  6 15:20 Makefile
-rw-r--r--   1 root  wheel   853 Apr  6 15:33 PLIST
-rw-r--r--   1 root  wheel   306 Apr  6 15:05 distinfo
drwxr-xr-x  16 root  wheel  1536 Apr  6 15:33 work/
PLIST ファイルを生成することができた。

make install の再度の実行

make install を再度実行してみる。

# pkglint 
Looks fine.
# make clean
===> Cleaning for py39-nuclyr-0.17
# make install
=> Bootstrap dependency digest>=20211023: found digest-20211023
=> Checksum BLAKE2s OK for nuclyr-0.17.tar.gz
=> Checksum SHA512 OK for nuclyr-0.17.tar.gz
===> Installing dependencies for py39-nuclyr-0.17
==========================================================================
The following variables will affect the build process of this package,
py39-nuclyr-0.17.  Their current value is shown below:

        * PKGSRC_BLAS_TYPES = netlib openblas openblas_pthread openblas_openmp
        * PYTHON_VERSION_DEFAULT = 39

Based on these variables, the following variables have been set:

        * BLAS_INCLUDES = -I/usr/pkg/include/netlib
        * BLAS_LIBS = -lblas
        * BLAS_TYPE = netlib
        * CBLAS_LIBS = -lcblas -lblas
        * LAPACKE_LIBS = -llapacke -llapack -lblas
        * LAPACK_LIBS = -llapack -lblas
        * PYPACKAGE = python39

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/usr/bin/make clean' after the changes.
==========================================================================
=> Tool dependency py39-setuptools-[0-9]*: found py39-setuptools-60.9.3
=> Tool dependency cwrappers>=20220403: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency py39-selenium>=0: found py39-selenium-3.141.0nb1
=> Full dependency py39-pandas>=0: found py39-pandas-1.3.5nb1
=> Full dependency py39-requests>=0: found py39-requests-2.27.1
=> Full dependency py39-numpy>=1.20.3nb1: found py39-numpy-1.21.5nb4
===> Checking for vulnerabilities in py39-nuclyr-0.17
===> Overriding tools for py39-nuclyr-0.17
===> Extracting for py39-nuclyr-0.17
===> Patching for py39-nuclyr-0.17
===> Creating toolchain wrappers for py39-nuclyr-0.17
===> Configuring for py39-nuclyr-0.17
=> Checking for portability problems in extracted files
===> Building for py39-nuclyr-0.17
(cd /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/nuclyr-0.17/ && /usr/bin/env USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= NPY_BLAS_LIBS=-lblas NPY_LAPACK_LIBS=-llapack\ -lblas NPY_CBLAS_LIBS=-lcblas\ -lblas PYTHON=/usr/pkg/bin/python3.9 CC=gcc CFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CPPFLAGS=-I/usr/pkg/include/netlib\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CXX=c++ CXXFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-Wl,-zrelro\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin:/usr/pkg/bin:/root/bin:/sbin:/usr/pkg/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc CPP=cpp CXXCPP=cpp HOME=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.home CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/itstool GDBUS_CODEGEN=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/gdbus-codegen PKG_CONFIG= PKG_CONFIG_LIBDIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/lib/pkgconfig:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config /usr/pkg/bin/python3.9  setup.py  build  -j8)
running build
running build_py
package init file 'nuclyr/__init__.py' not found (or not a regular file)
creating build
creating build/lib
creating build/lib/nuclyr
copying nuclyr/EXFOR.py -> build/lib/nuclyr
copying nuclyr/config.py -> build/lib/nuclyr
copying nuclyr/constants.py -> build/lib/nuclyr
copying nuclyr/mass.py -> build/lib/nuclyr
copying nuclyr/nndc.py -> build/lib/nuclyr
running egg_info
writing nuclyr.egg-info/PKG-INFO
writing dependency_links to nuclyr.egg-info/dependency_links.txt
writing requirements to nuclyr.egg-info/requires.txt
writing top-level names to nuclyr.egg-info/top_level.txt
reading manifest file 'nuclyr.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'nuclyr.egg-info/SOURCES.txt'
creating build/lib/nuclyr/data
creating build/lib/nuclyr/data/amdc
copying nuclyr/data/amdc/mass16.dat -> build/lib/nuclyr/data/amdc
creating build/lib/nuclyr/data/ripl
copying nuclyr/data/ripl/abundance.dat -> build/lib/nuclyr/data/ripl
copying nuclyr/data/ripl/mass-frdm95.dat -> build/lib/nuclyr/data/ripl
===> Installing for py39-nuclyr-0.17
=> Generating pre-install file lists
=> Creating installation directories
(cd /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/nuclyr-0.17/ && /usr/bin/env DESTDIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= NPY_BLAS_LIBS=-lblas NPY_LAPACK_LIBS=-llapack\ -lblas NPY_CBLAS_LIBS=-lcblas\ -lblas PYTHON=/usr/pkg/bin/python3.9 CC=gcc CFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CPPFLAGS=-I/usr/pkg/include/netlib\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CXX=c++ CXXFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-Wl,-zrelro\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin:/usr/pkg/bin:/root/bin:/sbin:/usr/pkg/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc CPP=cpp CXXCPP=cpp HOME=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.home CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/itstool GDBUS_CODEGEN=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/gdbus-codegen PKG_CONFIG= PKG_CONFIG_LIBDIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/lib/pkgconfig:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config  /usr/pkg/bin/python3.9 setup.py  "install"  -c -O1  --root=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir)
running install
/usr/pkg/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running build
running build_py
package init file 'nuclyr/__init__.py' not found (or not a regular file)
running egg_info
writing nuclyr.egg-info/PKG-INFO
writing dependency_links to nuclyr.egg-info/dependency_links.txt
writing requirements to nuclyr.egg-info/requires.txt
writing top-level names to nuclyr.egg-info/top_level.txt
reading manifest file 'nuclyr.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'nuclyr.egg-info/SOURCES.txt'
running install_lib
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/EXFOR.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/config.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/constants.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/mass.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/nndc.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/amdc
copying build/lib/nuclyr/data/amdc/mass16.dat -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/amdc
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl
copying build/lib/nuclyr/data/ripl/abundance.dat -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl
copying build/lib/nuclyr/data/ripl/mass-frdm95.dat -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/EXFOR.py to EXFOR.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/config.py to config.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/constants.py to constants.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/mass.py to mass.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/nndc.py to nndc.cpython-39.pyc
writing byte-compilation script '/tmp/tmpvfkn2_67.py'
/usr/pkg/bin/python3.9 /tmp/tmpvfkn2_67.py
removing /tmp/tmpvfkn2_67.py
running install_egg_info
Copying nuclyr.egg-info to /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info
running install_scripts
=> Automatic manual page handling
=> Generating post-install file lists
if test -d "/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info"; then  /usr/bin/find /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info -type f  -exec /bin/chmod 644 '{}' +;  fi
=> Checking file-check results for py39-nuclyr-0.17
=> Checking for non-existent script interpreters in py39-nuclyr-0.17
=> Checking file permissions in py39-nuclyr-0.17
warning: /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/amdc/mass16.dat: group-writable file.
error: /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/amdc/mass16.dat: world-writable file.
warning: /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl/abundance.dat: group-writable file.
error: /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl/abundance.dat: world-writable file.
warning: /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl/mass-frdm95.dat: group-writable file.
error: /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl/mass-frdm95.dat: world-writable file.
3 errors and 3 warnings.
*** Error code 1

Stop.
make[1]: stopped in /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/py-nuclyr
ここで、また問題が発生した。幾つかのファイルが group-writable だったり world-writable のようである。

Makefile の修正

ソフトウェアの配布ファイルの中に含まれるファイルのパーミッションが group-writable だったり world-writable だったりすることが問題なので、 それを解決するように Makefile を修正する。以下の記述を Makefile に追加 すれば、配布ファイルをダウンロードし、展開した後に、 chmod コマンドを 実行してくれるようになる。

post-extract:
        ${CHMOD} -R go-w ${WRKSRC}
Makefile を修正する。
# vi Makefile
# cat Makefile
# $NetBSD$

DISTNAME=       nuclyr-0.17
PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=     python # TODO: add primary category
MASTER_SITES=   ${MASTER_SITE_PYPI:=n/nuclyr/}

MAINTAINER=     pkgsrc-users@NetBSD.org
HOMEPAGE=       https://github.com/phScholz/nuclyr
COMMENT=        Utility package for nuclear physics data
LICENSE=        mit

DEPENDS+=       ${PYPKGPREFIX}-selenium>=0:../../www/py-selenium
DEPENDS+=       ${PYPKGPREFIX}-pandas>=0:../../math/py-pandas
DEPENDS+=       ${PYPKGPREFIX}-requests>=0:../../devel/py-requests

USE_LANGUAGES=  # none

post-extract:
        ${CHMOD} -R go-w ${WRKSRC}

BUILDLINK_API_DEPENDS.py-numpy+=        ${PYPKGPREFIX}-numpy>=1.0
.include "../../math/py-numpy/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

pkglint による確認

pkglint を使って問題がないかどうか確認する。

# pkglint 
WARN: Makefile:20: Makefile lines should not start with space characters.
ERROR: Makefile:20: Unknown Makefile line format: "        ${CHMOD} -R go-w ${WRKSRC}".
1 error and 1 warning found.
(Run "pkglint -e" to show explanations.)
スペースではなく、タブを使わないといけない、と怒られてしまった。修正し て、再度、 pkglint を実行する。
# pkglint 
Looks fine.
今度は、問題なくなった。

make install の実行

make clean; make install を実行する。

# make clean
===> Cleaning for py39-nuclyr-0.17
# make install
=> Bootstrap dependency digest>=20211023: found digest-20211023
=> Checksum BLAKE2s OK for nuclyr-0.17.tar.gz
=> Checksum SHA512 OK for nuclyr-0.17.tar.gz
===> Installing dependencies for py39-nuclyr-0.17
==========================================================================
The following variables will affect the build process of this package,
py39-nuclyr-0.17.  Their current value is shown below:

        * PKGSRC_BLAS_TYPES = netlib openblas openblas_pthread openblas_openmp
        * PYTHON_VERSION_DEFAULT = 39

Based on these variables, the following variables have been set:

        * BLAS_INCLUDES = -I/usr/pkg/include/netlib
        * BLAS_LIBS = -lblas
        * BLAS_TYPE = netlib
        * CBLAS_LIBS = -lcblas -lblas
        * LAPACKE_LIBS = -llapacke -llapack -lblas
        * LAPACK_LIBS = -llapack -lblas
        * PYPACKAGE = python39

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/usr/bin/make clean' after the changes.
==========================================================================
=> Tool dependency py39-setuptools-[0-9]*: found py39-setuptools-60.9.3
=> Tool dependency cwrappers>=20220403: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency py39-selenium>=0: found py39-selenium-3.141.0nb1
=> Full dependency py39-pandas>=0: found py39-pandas-1.3.5nb1
=> Full dependency py39-requests>=0: found py39-requests-2.27.1
=> Full dependency py39-numpy>=1.20.3nb1: found py39-numpy-1.21.5nb4
===> Checking for vulnerabilities in py39-nuclyr-0.17
===> Overriding tools for py39-nuclyr-0.17
===> Extracting for py39-nuclyr-0.17
/bin/chmod -R go-w /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/nuclyr-0.17
===> Patching for py39-nuclyr-0.17
===> Creating toolchain wrappers for py39-nuclyr-0.17
===> Configuring for py39-nuclyr-0.17
=> Checking for portability problems in extracted files
===> Building for py39-nuclyr-0.17
(cd /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/nuclyr-0.17/ && /usr/bin/env USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= NPY_BLAS_LIBS=-lblas NPY_LAPACK_LIBS=-llapack\ -lblas NPY_CBLAS_LIBS=-lcblas\ -lblas PYTHON=/usr/pkg/bin/python3.9 CC=gcc CFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CPPFLAGS=-I/usr/pkg/include/netlib\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CXX=c++ CXXFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-Wl,-zrelro\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin:/usr/pkg/bin:/root/bin:/sbin:/usr/pkg/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc CPP=cpp CXXCPP=cpp HOME=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.home CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/itstool GDBUS_CODEGEN=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/gdbus-codegen PKG_CONFIG= PKG_CONFIG_LIBDIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/lib/pkgconfig:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config /usr/pkg/bin/python3.9  setup.py  build  -j8)
running build
running build_py
package init file 'nuclyr/__init__.py' not found (or not a regular file)
creating build
creating build/lib
creating build/lib/nuclyr
copying nuclyr/EXFOR.py -> build/lib/nuclyr
copying nuclyr/config.py -> build/lib/nuclyr
copying nuclyr/constants.py -> build/lib/nuclyr
copying nuclyr/mass.py -> build/lib/nuclyr
copying nuclyr/nndc.py -> build/lib/nuclyr
running egg_info
writing nuclyr.egg-info/PKG-INFO
writing dependency_links to nuclyr.egg-info/dependency_links.txt
writing requirements to nuclyr.egg-info/requires.txt
writing top-level names to nuclyr.egg-info/top_level.txt
reading manifest file 'nuclyr.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'nuclyr.egg-info/SOURCES.txt'
creating build/lib/nuclyr/data
creating build/lib/nuclyr/data/amdc
copying nuclyr/data/amdc/mass16.dat -> build/lib/nuclyr/data/amdc
creating build/lib/nuclyr/data/ripl
copying nuclyr/data/ripl/abundance.dat -> build/lib/nuclyr/data/ripl
copying nuclyr/data/ripl/mass-frdm95.dat -> build/lib/nuclyr/data/ripl
===> Installing for py39-nuclyr-0.17
=> Generating pre-install file lists
=> Creating installation directories
(cd /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/nuclyr-0.17/ && /usr/bin/env DESTDIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= NPY_BLAS_LIBS=-lblas NPY_LAPACK_LIBS=-llapack\ -lblas NPY_CBLAS_LIBS=-lcblas\ -lblas PYTHON=/usr/pkg/bin/python3.9 CC=gcc CFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CPPFLAGS=-I/usr/pkg/include/netlib\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 CXX=c++ CXXFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.9 COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-Wl,-zrelro\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/bin:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin:/usr/pkg/bin:/root/bin:/sbin:/usr/pkg/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc CPP=cpp CXXCPP=cpp HOME=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.home CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/itstool GDBUS_CODEGEN=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.tools/bin/gdbus-codegen PKG_CONFIG= PKG_CONFIG_LIBDIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/lib/pkgconfig:/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.cwrapper/config  /usr/pkg/bin/python3.9 setup.py  "install"  -c -O1  --root=/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir)
running install
/usr/pkg/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running build
running build_py
package init file 'nuclyr/__init__.py' not found (or not a regular file)
running egg_info
writing nuclyr.egg-info/PKG-INFO
writing dependency_links to nuclyr.egg-info/dependency_links.txt
writing requirements to nuclyr.egg-info/requires.txt
writing top-level names to nuclyr.egg-info/top_level.txt
reading manifest file 'nuclyr.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'nuclyr.egg-info/SOURCES.txt'
running install_lib
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/EXFOR.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/config.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/constants.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/mass.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
copying build/lib/nuclyr/nndc.py -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/amdc
copying build/lib/nuclyr/data/amdc/mass16.dat -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/amdc
creating /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl
copying build/lib/nuclyr/data/ripl/abundance.dat -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl
copying build/lib/nuclyr/data/ripl/mass-frdm95.dat -> /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/data/ripl
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/EXFOR.py to EXFOR.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/config.py to config.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/constants.py to constants.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/mass.py to mass.cpython-39.pyc
byte-compiling /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr/nndc.py to nndc.cpython-39.pyc
writing byte-compilation script '/tmp/tmpor3ofpjy.py'
/usr/pkg/bin/python3.9 /tmp/tmpor3ofpjy.py
removing /tmp/tmpor3ofpjy.py
running install_egg_info
Copying nuclyr.egg-info to /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info
running install_scripts
=> Automatic manual page handling
=> Generating post-install file lists
if test -d "/data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info"; then  /usr/bin/find /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.destdir/usr/pkg/lib/python3.9/site-packages/nuclyr-0.17-py3.9.egg-info -type f  -exec /bin/chmod 644 '{}' +;  fi
=> Checking file-check results for py39-nuclyr-0.17
=> Checking for non-existent script interpreters in py39-nuclyr-0.17
=> Checking file permissions in py39-nuclyr-0.17
=> Checking for PIE in py39-nuclyr-0.17
=> Checking for RELRO in py39-nuclyr-0.17
=> Checking for missing run-time search paths in py39-nuclyr-0.17
=> Checking for work-directory references in py39-nuclyr-0.17
=> Creating binary package /data1/netbsd/pkgsrc/nb00/pkgsrc/wip/py-nuclyr/work/.packages/py39-nuclyr-0.17.tgz
===> Building binary package for py39-nuclyr-0.17
=> Creating binary package /tmp/packages/All/py39-nuclyr-0.17.tgz
===> Installing binary package of py39-nuclyr-0.17
新しく作ったパッケージのインストールが完了した。pkg_info コマンドで、 本当にインストールできたのか確認してみる。
# pkg_info | grep nuclyr
py39-nuclyr-0.17    Utility package for nuclear physics data
確かにインストールできている。

nuclyr モジュールを試してみる

インストールした nuclyr モジュールを試してみる。

# python3.9
Python 3.9.12 (main, Apr  4 2022, 09:16:48) 
[GCC 10.3.0] on netbsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> import nuclyr.mass
>>> massexcess_1H, err_massexcess_1H = nuclyr.mass.massExcess (1, 1)
>>> massexcess_4He, err_massxecess_4He = nuclyr.mass.massExcess (2, 4)
>>> print ("mass excess of 1H =", massexcess_1H, "MeV")
mass excess of 1H = 7.289 MeV
>>> print ("mass excess of 4He =", massexcess_4He, "MeV")
mass excess of 4He = 2.425 MeV
>>> exit ()
期待通りに動いているようである。

py-nuclyr を pkgsrc-wip に commit する

py-nuclyr という新たなパッケージを作ることができたので、できたものを pkgsrc-wip に commit する。

# make clean
===> Cleaning for py39-nuclyr-0.17
# cd ..
# pwd
# /usr/pkgsrc/wip
# git status
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add ..." to include in what will be committed)
        py-nuclyr/

nothing added to commit but untracked files present (use "git add" to track)
# git add py-nuclyr
# git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged ..." to unstage)
        new file:   py-nuclyr/DESCR
        new file:   py-nuclyr/Makefile
        new file:   py-nuclyr/PLIST
        new file:   py-nuclyr/distinfo

# vi Makefile
# grep py-nuclyr Makefile 
SUBDIR+=        py-nuclyr
# git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged ..." to unstage)
        new file:   py-nuclyr/DESCR
        new file:   py-nuclyr/Makefile
        new file:   py-nuclyr/PLIST
        new file:   py-nuclyr/distinfo

Changes not staged for commit:
  (use "git add ..." to update what will be committed)
  (use "git restore ..." to discard changes in working directory)
        modified:   Makefile

# git add Makefile
# git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged ..." to unstage)
        modified:   Makefile
        new file:   py-nuclyr/DESCR
        new file:   py-nuclyr/Makefile
        new file:   py-nuclyr/PLIST
        new file:   py-nuclyr/distinfo

# git commit
[master fd8fbdbc53] py-nuclyr: newly created package for nuclear physics calculations using Python
 5 files changed, 57 insertions(+)
 create mode 100644 py-nuclyr/DESCR
 create mode 100644 py-nuclyr/Makefile
 create mode 100644 py-nuclyr/PLIST
 create mode 100644 py-nuclyr/distinfo
# git push
Enter passphrase for key '/home/abcxyz/.ssh/pkgsrc_wip_abcxyz': 
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 16 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 1.49 KiB | 1.49 MiB/s, done.
Total 8 (delta 2), reused 0 (delta 0), pack-reused 0
To wip.pkgsrc.org:/pkgsrc-wip.git
   e431834063..fd8fbdbc53  master -> master
Makefile には、以下の行を書き込んだ。
SUBDIR+=        py-nuclyr
git commit を実行したときには、以下の内容を書き込んだ。
py-nuclyr: newly created package for nuclear physics calculations using Python
これで、 pkgsrc-wip に自分で作ったパッケージが追加された。

参考文献



Frequently accessed files

  1. Computer___Python/20220518_0.html
  2. Computer___Network/20230726_00.html
  3. Misc___Taiwan/20240207_00.html
  4. Computer___Network/20230516_00.html
  5. Computer___FreeBSD/20220621_0.html
  6. Computer___Python/20220715_0.html
  7. Computer___Network/20230508_00.html
  8. Food___Taiwan/20220429_0.html
  9. Computer___Network/20240130_00.html
  10. Computer___NetBSD/20220817_3.html
  11. Computer___Python/20220410_0.html
  12. Computer___Network/20240416_00.html
  13. Computer___NetBSD/20230119_00.html
  14. Computer___Debian/20210223_1.html
  15. Computer___Python/20221013_0.html
  16. Computer___Python/20210124_0.html
  17. Computer___NetBSD/20220428_0.html
  18. Computer___NetBSD/20220818_1.html
  19. Computer___NetBSD/20240101_02.html
  20. Science___Math/20220420_0.html
  21. Computer___Python/20240101_00.html
  22. Computer___NetBSD/20220808_0.html
  23. Computer___TeX/20230503_00.html
  24. Science___Astronomy/20220503_0.html
  25. Computer___NetBSD/20230515_00.html
  26. Computer___Network/20220413_1.html
  27. Computer___NetBSD/20210127_0.html
  28. Computer___TeX/20231107_00.html
  29. Computer___Python/20220816_1.html
  30. Computer___Python/20230717_01.html


HTML file generated by Kinoshita Daisuke.