ipv6

Anders F Björklund afb at algonet.se
Fri Mar 12 00:25:54 PST 2010


Space Case wrote:

> I read with interest the recent thread on ipv6, but I have the
> opposite question: how do I make smart _not_ use ipv6.
>
> I have .wgetrc say "prefer-family = IPv4", and .curlrc has "--ipv4",
> but smart is still trying to use ipv6 for some repositories.

There is CURLOPT_IPRESOLVE, but no Smart option to set it...

You should make a request (in Launchpad) for such an option,
meanwhile you can patch it in directly in smart/fetcher.py:

      handle.setopt(pycurl.IPRESOLVE, pycurl.IPRESOLVE_V4)

> I'm running opensuse factory, and this behavior (using ipv6) has
> just started in the last week.  I'm not sure what to look at next.
> The version of smart I'm running is 1.3.54-1, from the pikerhog
> suse repository.

Strange version number, but ok... Ah, it's "1.3-54.1.un"
Doesn't look too different from the other suse packages:
e.g. http://download.opensuse.org/repositories/smart/
Some extra "package-manager" helper, and lots of sysconf ?

The rest of the patches in the srpm are either not needed,
(smart-disable_deb_tests, smart-no-strict-aliasing)
or have been included upstream (1.2.1) and are redundant...
(smart-interactive-newer)

--anders




More information about the Smart mailing list