pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Prefer ipv4 Download (FETCH_BEFORE_ARGS ignored?)



Hello,

As my internet connection is ipv4 only, but I am also running ipv6 internally, I would prefer to avoid pkgsrc trying to fetch packages using ipv6, without disabling it totally.

My /etc/mk.conf reads:

.if defined(BSD_PKG_MK)
CFLAGS+= -mcpu=21164a
FETCH_USING= ftp
FETCH_BEFORE_ARGS= -4
...
.endif

However, FETCH_BEFORE_ARGS seems to be ignored. I've also aliased ftp to ftp -4 in the root/.profile, but that did not help either.

In rc.conf I have set:
ip6addrctl_policy=ipv4_prefer


An example, depsite all my settings:

# make install
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Fetching pciutils-3.10.0.tar.gz
=> Total size: 916996 bytes
Trying [2604:1380:4601:e00::1]:443 ...
ftp: Can't connect to `2604:1380:4601:e00::1:443': Operation timed out
...


Anything I might haved missed? NetBSD10 RC1 on alpha, in case that matters.

Thanks

Ede


Home | Main Index | Thread Index | Old Index