Notebook

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

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

pkgsrc の fetch phase の問題 (2023 年 06 月下旬)

2023 年 06 月下旬に、 Raspberry Pi 4 上で動かしている NetBSD 10.0_BETA (evbarm-aarch64) で、 pkgsrc を使ってフォントをインストールしようとし たら、 GitHub からの必要なファイルのダウンロードが失敗したでござる。


# cd /usr/pkgsrc/pkgsrc_myownpkgs/plemoljp-ttf
# make install
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Fetching PlemolJP_v1.6.0.zip
=> Total size: 99003805 bytes
18446744073709551615:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c:1919:
ftp: Can't connect to `github.com:https'
fetch: Unable to fetch expected file PlemolJP_v1.6.0.zip
Trying 151.101.1.6:80 ...
Requesting http://cdn.NetBSD.org/pub/pkgsrc/distfiles/PlemolJP_v1.6.0.zip
ftp: Error retrieving file `404 Not Found'
fetch: Unable to fetch expected file PlemolJP_v1.6.0.zip
ftp: Can't LOOKUP `ftp6.NetBSD.org:http': No address associated with hostname
ftp: Can't connect to `ftp6.NetBSD.org:http'
fetch: Unable to fetch expected file PlemolJP_v1.6.0.zip
Requesting http://ftp.fr.NetBSD.org/pub/pkgsrc/distfiles/PlemolJP_v1.6.0.zip
ftp: Error retrieving file `404 Not Found'
fetch: Unable to fetch expected file PlemolJP_v1.6.0.zip
Requesting http://ftp.NetBSD.org/pub/pkgsrc/distfiles/PlemolJP_v1.6.0.zip
ftp: Error retrieving file `404 Not Found'
fetch: Unable to fetch expected file PlemolJP_v1.6.0.zip
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgsrc_myownpkgs/plemoljp-ttf

ftp コマンドが GitHub からファイルをダウンロードしようとするときに、 SSL の certificate に関連する問題が起きているようでござる。以前に似た ような問題があったので、同様に解決できると思い、 /usr/pkgsrc/security/mozilla-rootcerts-openssl をインストールしてみた でござる。


# cd /usr/pkgsrc/security/mozilla-rootcerts-openssl
# make install
===> Installing dependencies for mozilla-rootcerts-openssl-2.11
=> Tool dependency mozilla-rootcerts-1.0.20230505{,nb[0-9]*}: found mozilla-rootcerts-1.0.20230505
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for mozilla-rootcerts-openssl-2.11
===> Extracting for mozilla-rootcerts-openssl-2.11
===> Patching for mozilla-rootcerts-openssl-2.11
===> Creating toolchain wrappers for mozilla-rootcerts-openssl-2.11
===> Configuring for mozilla-rootcerts-openssl-2.11
=> Checking for portability problems in extracted files
===> Building for mozilla-rootcerts-openssl-2.11
===> Installing for mozilla-rootcerts-openssl-2.11
/usr/bin/install -d -o root -g wheel -m 755 /data/netbsd/pkgsrc/current/pkgsrc/security/mozilla-rootcerts-openssl/work/.destdir/etc/openssl/certs
cd /data/netbsd/pkgsrc/current/pkgsrc/security/mozilla-rootcerts-openssl/work && /usr/pkg/sbin/mozilla-rootcerts -d /data/netbsd/pkgsrc/current/pkgsrc/security/mozilla-rootcerts-openssl/work/.destdir install
mozilla-rootcert-0.pem
mozilla-rootcert-1.pem
mozilla-rootcert-2.pem
mozilla-rootcert-3.pem
mozilla-rootcert-4.pem
mozilla-rootcert-5.pem
mozilla-rootcert-6.pem
mozilla-rootcert-7.pem
mozilla-rootcert-8.pem
mozilla-rootcert-9.pem
mozilla-rootcert-10.pem

.....

mozilla-rootcert-90.pem => 26312675.0
mozilla-rootcert-91.pem => 1320b215.0
mozilla-rootcert-92.pem => 0b7c536a.0
mozilla-rootcert-93.pem => ff34af3f.0
mozilla-rootcert-94.pem => 0f6fa695.0
mozilla-rootcert-95.pem => 5d3033c5.0
mozilla-rootcert-96.pem => 3e44d2f7.0
mozilla-rootcert-97.pem => 7aaf71c0.0
mozilla-rootcert-98.pem => 6fa5da56.0
mozilla-rootcert-99.pem => 0bf05006.0
/bin/chmod go+r /data/netbsd/pkgsrc/current/pkgsrc/security/mozilla-rootcerts-openssl/work/.destdir/etc/openssl/certs/*.pem
/bin/chmod go+r /data/netbsd/pkgsrc/current/pkgsrc/security/mozilla-rootcerts-openssl/work/.destdir/etc/openssl/certs/*.crt
=> Automatic manual page handling
=> Checking for non-existent script interpreters in mozilla-rootcerts-openssl-2.11
=> Checking file permissions in mozilla-rootcerts-openssl-2.11
=> Checking for PIE in mozilla-rootcerts-openssl-2.11
=> Checking for RELRO in mozilla-rootcerts-openssl-2.11
=> Checking for missing run-time search paths in mozilla-rootcerts-openssl-2.11
=> Checking for work-directory references in mozilla-rootcerts-openssl-2.11
=> Creating binary package /data/netbsd/pkgsrc/current/pkgsrc/security/mozilla-rootcerts-openssl/work/.packages/mozilla-rootcerts-openssl-2.11.tgz
===> Building binary package for mozilla-rootcerts-openssl-2.11
=> Creating binary package /tmp/packages/All/mozilla-rootcerts-openssl-2.11.tgz
===> Installing binary package of mozilla-rootcerts-openssl-2.11
# make clean
# pkg_info | grep mozilla
mozilla-rootcerts-1.0.20230505 Root CA certificates from the Mozilla Project
mozilla-rootcerts-openssl-2.11 Wedge for installing and managing mozilla-rootcerts

security/mozilla-rootcerts-openssl をインストールした上で、 plemoljp-ttf をインストールしようと、問題なくインストールされるように なったでござる。


# cd /usr/pkgsrc/pkgsrc_myownpkgs/plemoljp-ttf
# make install
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Fetching PlemolJP_v1.6.0.zip
=> Total size: 99003805 bytes
Requesting https://github.com/yuru7/PlemolJP/releases/download/v1.6.0/PlemolJP_v1.6.0.zip
Redirected to https://objects.githubusercontent.com/github-production-release-asset-2e65be/389310324/bc500a97-69bf-4307-84a2-035d67dc0136?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230624%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230624T021659Z&X-Amz-Expires=300&X-Amz-Signature=82327cbaec5240a55b179434a695e02c0a7b46ddf59b6a6cce6894f5225be7b8&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=389310324&response-content-disposition=attachment%3B%20filename%3DPlemolJP_v1.6.0.zip&response-content-type=application%2Foctet-stream
Trying 185.199.108.133:443 ...
Requesting https://objects.githubusercontent.com/github-production-release-asset-2e65be/389310324/bc500a97-69bf-4307-84a2-035d67dc0136?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230624%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230624T021659Z&X-Amz-Expires=300&X-Amz-Signature=82327cbaec5240a55b179434a695e02c0a7b46ddf59b6a6cce6894f5225be7b8&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=389310324&response-content-disposition=attachment%3B%20filename%3DPlemolJP_v1.6.0.zip&response-content-type=application%2Foctet-stream
100% |***********************************| 96683 KiB    1.32 MiB/s    00:00 ETA
99003805 bytes retrieved in 01:11 (1.32 MiB/s)
=> Checksum BLAKE2s OK for PlemolJP_v1.6.0.zip
=> Checksum SHA512 OK for PlemolJP_v1.6.0.zip
===> Installing dependencies for plemoljp-ttf-1.6.0
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for plemoljp-ttf-1.6.0
===> Extracting for plemoljp-ttf-1.6.0
===> Patching for plemoljp-ttf-1.6.0
===> Creating toolchain wrappers for plemoljp-ttf-1.6.0
===> Installing for plemoljp-ttf-1.6.0
=> Generating pre-install file lists
=> Creating installation directories
=> Installing all .otf and .ttf files from /data/netbsd/pkgsrc/current/pkgsrc/pkgsrc_myownpkgs/plemoljp-ttf/work/PlemolJP_v1.6.0
/usr/bin/find /data/netbsd/pkgsrc/current/pkgsrc/pkgsrc_myownpkgs/plemoljp-ttf/work/PlemolJP_v1.6.0 -name .destdir -prune -o -name '*.[tT][tT][fFcC]' -exec  /usr/bin/install -c -o root -g wheel -m 644 "{}" /data/netbsd/pkgsrc/current/pkgsrc/pkgsrc_myownpkgs/plemoljp-ttf/work/.destdir/usr/pkg/share/fonts/X11/TTF ";"
/usr/bin/find /data/netbsd/pkgsrc/current/pkgsrc/pkgsrc_myownpkgs/plemoljp-ttf/work/PlemolJP_v1.6.0 -name .destdir -prune -o -name '*.[oO][tT][fFcC]' -exec  /usr/bin/install -c -o root -g wheel -m 644 "{}" /data/netbsd/pkgsrc/current/pkgsrc/pkgsrc_myownpkgs/plemoljp-ttf/work/.destdir/usr/pkg/share/fonts/X11/OTF ";"
=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for plemoljp-ttf-1.6.0
=> Checking for non-existent script interpreters in plemoljp-ttf-1.6.0
=> Checking file permissions in plemoljp-ttf-1.6.0
=> Checking for PIE in plemoljp-ttf-1.6.0
=> Checking for RELRO in plemoljp-ttf-1.6.0
=> Checking for missing run-time search paths in plemoljp-ttf-1.6.0
=> Checking for work-directory references in plemoljp-ttf-1.6.0
=> Creating binary package /data/netbsd/pkgsrc/current/pkgsrc/pkgsrc_myownpkgs/plemoljp-ttf/work/.packages/plemoljp-ttf-1.6.0.tgz
===> Building binary package for plemoljp-ttf-1.6.0
=> Creating binary package /tmp/packages/All/plemoljp-ttf-1.6.0.tgz
===> Installing binary package of plemoljp-ttf-1.6.0
# make clean
# pkg_info | grep plemoljp
plemoljp-ttf-1.6.0  PlemolJP font suitable for programming

参考文献



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.