[tor-bugs] #21116 [Core Tor/Tor]: fix building on raspbian wheezy

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Dec 31 13:13:41 UTC 2016


#21116: fix building on raspbian wheezy
------------------------------+-----------------
     Reporter:  hein          |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+-----------------
 I need the attached patch to build tor raspbian wheezy with

 deb-src http://deb.torproject.org/torproject.org wheezy main

 --- /home/hein/emacs-
 backups/!home!hein!src!tor-0.2.9.8!src!test!test_util.c.~1~
 2016-12-07 08:09:23.000000000 -0800
 +++ src/test/test_util.c        2016-12-31 04:57:49.261173627 -0800
 @@ -5074,7 +5074,8 @@

    fd1 = tor_open_socket_with_extensions(domain, SOCK_STREAM, 0, 0, 0);
    int err = tor_socket_errno(fd1);
 -  if (fd1 < 0 && err == SOCK_ERRNO(EPROTONOSUPPORT)) {
 +  if (fd1 < 0 && (err == SOCK_ERRNO(EPROTONOSUPPORT) ||
 +                  err == SOCK_ERRNO(EAFNOSUPPORT))) {
      /* Assume we're on an IPv4-only or IPv6-only system, and give up now.
 */
      goto done;
    }

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21116>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list