I recently installed version 10.0 on my thinkpad X260 and I have a recurring problem with pkgsrc which is that any program I try to compile takes too long to download and install the build dependencies.
It should be said that in my mk.conf configuration I have specified that the build dependencies are not built from source, but use precompiled binaries, but despite that, it creates a bottleneck on every dependency that needs to be downloaded.
For example, when I tried to compile sc-im and nnn the total time of the build process of the packages were 1 hour 51 minutes and 15 minutes respectively , where the longest time corresponded to downloading the dependencies. The compilation time took the least time.
In this other example, I tried to build xterm, but I had to cancel the process because as you can see, a bottleneck was created when trying to download the first dependency.
Here is a short video of the failed attempt to build xterm
These are the characteristics of my laptop
OS: NetBSD
Release: 10.0
Version: NetBSD 10.0 (GENERIC) #0
Arch: amd64
Host: X260
Shell: ksh93
User: skynet
Packages: 332
Uptime: 1d 23h 33m
RAM: 16239 MB
Loadavg: 0.32 0.23 0.18
CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
Cores: 4 of 4 processors online
-> Core [1]: 62.0 °C
-> Core [2]: 55.0 °C
And finally, this is my mk.conf settings
# Fri May 3 12:07:57 CST 2024
.ifdef BSD_PKG_MK # begin pkgsrc settings
ABI= 64
PKGSRC_USE_MKTOOLS?= yes
ALLOW_VULNERABLE_PACKAGES= no
MAKE_JOBS= 4
PKG_DEVELOPER?= no
PKGSRC_RUN_TEST?= no
FETCH_USING?= curl
FETCH_BEFORE_ARGS?= -passive-ftp
FETCH_RESUME_ARGS?= -c
FETCH_OUTPUT_ARGS?= -O
PKG_RESUME_TRANSFERS?= yes
FETCH_FAILOVER?= yes
MASTER_SORT_RANDOM?= no
MASTER_SORT= .es .en .pt .eu .it .ch .at .fr .de .nl .uk .at .be .cz .pl .se .fi .no .dk
BINPKG_SITES= https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/$${arch}/$${rel}
DEPENDS_TARGET= bin-install
BIN_INSTALL_FLAGS= -uv
LINUX_LOCALES?= en es
# Directorio para paquetes grandes como Firefox
WRKOBJDIR= /tmp/pkgs
CFLAGS+= -pipe -march=native -mtune=native -mfpmath=sse -msse3
CPUCFLAGS+= -pipe -march=native -mtune=native -mfpmath=sse -msse3
CLEANDEPENDS= yes
PKGSRC_COMPILER= ccache gcc
CCACHE_DIR= /home/skynet/Datos/.pkgsrc_cache
SKIP_LICENSE_CHECK= yes
GNU_CONFIGURE_QUIET= yes
INSTALL_UNSTRIPPED= no
ENABLE_OPTIONS= editline lua lang-es latex sunaudio xterm-256color xterm-luit wide-curses
DISABLE_OPTIONS= -bluray -cdparanoia -dvdcss -dvdnav -dvdread -qt -qt4 -qt5 -qt6 -vulkan -wayland -fax -lang-af -lang-be -lang-bg -lang-br -lang-bs -lang-ca -lang-cs -lang-cy -lang-da -lang-de -lang-el -lang-en-gb -lang-eo -lang-et -lang-fa -lang-fi -lang-fo -lang-fr -lang-ga -lang-gl -lang-gn -lang-gu -lang-he -lang-hi -lang-hr -lang-hu -lang-id -lang-is -lang-it -lang-ja -lang-ko -lang-ku -lang-lt -lang-lv -lang-mr -lang-nb -lang-nl -lang-no -lang-pl -lang-pt -lang-pt-br -lang-rm lang-ro -lang-ru -lang-sk -lang-sl -lang-sq -lang-sr -lang-te -lang-th -lang-tl -lang-uk -lang-uk-au -lang-zh -lang-zh-cn -lang-za-tw -pulseaudio -samba -vdpau -debug -javascript -dbug-info -gnome -kde -kde4
PKG_DEFAULT_OPTIONS+= ${ENABLE_OPTIONS} ${DISABLE_OPTIONS}
PKG_OPTIONS.xterm+= pcre freetype xpm luit
PKG_OPTIONS.firefox115+= -webrtc
PKG_OPTIONS.ffmpeg6+= fdk-aac openssl -ass -bluray -gnutls -x11
PKG_OPTIONS.nnn+= -mouse -x11
PKG_OPTIONS.mpv+= -vaapi
LUA_VERSION_DEFAULT= 54
.endif # end pkgsrc settings
EDIT:
The problem has been solved.
The reason for the problem was due to IPV6 misconfiguration, it was solved by following the suggestions in this other thread