NetBSD Problem Report #40241

From riastradh@slate.localdomain  Sat Dec 20 21:38:42 2008
Return-Path: <riastradh@slate.localdomain>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 780DE63B121
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 20 Dec 2008 21:38:42 +0000 (UTC)
Message-Id: <20081220213841.4DD8876CC0@slate.localdomain>
Date: Sat, 20 Dec 2008 21:38:41 +0000 (UTC)
From: Taylor R Campbell <campbell@mumble.net>
Reply-To: Taylor R Campbell <campbell@mumble.net>
To: gnats-bugs@gnats.NetBSD.org
Subject: [UPDATE] net/tor 0.2.0.31 -> 0.2.0.32
X-Send-Pr-Version: 3.95

>Number:         40241
>Category:       pkg
>Synopsis:       [UPDATE] net/tor 0.2.0.31 -> 0.2.0.32
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 20 21:40:00 +0000 2008
>Closed-Date:    Sun Dec 21 11:11:41 +0000 2008
>Last-Modified:  Sun Dec 21 11:15:02 +0000 2008
>Originator:     Taylor R Campbell <campbell@mumble.net>
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD slate.localdomain 4.0_STABLE NetBSD 4.0_STABLE (RIABWI) #35: Sun Nov 16 12:42:48 EST 2008 riastradh@Oberon.local:/Users/riastradh/os/netbsd/4/obj/sys/arch/macppc/compile/RIABWI macppc
Architecture: powerpc
Machine: macppc
>Description:

	(Apologies if this is duplicated; I neglected to fill the
	header fields completely in my first attempt, and submitted a
	PR without a working from, reply-to, or originator address.)

	Update net/tor from tor-0.2.0.31 to tor-0.2.0.32.  Release
	notes are at

	  <http://blog.torproject.org/blog/tor-0.2.0.32-released>.

	The noteworthy change affecting pkgsrc is that Tor no longer
	accepts a `Group' option; instead it uses the group id and
	supplementary group ids of the account named by the `User'
	option.  This requires a minor change to the rc.d script.

>How-To-Repeat:
>Fix:

	Apply the following patch:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/tor/Makefile,v
retrieving revision 1.57
diff -p -u -r1.57 Makefile
--- Makefile	16 Oct 2008 21:52:16 -0000	1.57
+++ Makefile	20 Dec 2008 21:16:56 -0000
@@ -1,8 +1,7 @@
 # $NetBSD: Makefile,v 1.57 2008/10/16 21:52:16 wiz Exp $
 #

-DISTNAME=		tor-0.2.0.31
-PKGREVISION=		1
+DISTNAME=		tor-0.2.0.32
 CATEGORIES=		net security
 MASTER_SITES=		http://www.torproject.org/dist/

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/net/tor/distinfo,v
retrieving revision 1.30
diff -p -u -r1.30 distinfo
--- distinfo	8 Sep 2008 19:28:28 -0000	1.30
+++ distinfo	20 Dec 2008 21:16:56 -0000
@@ -1,7 +1,7 @@
 $NetBSD: distinfo,v 1.30 2008/09/08 19:28:28 wiz Exp $

-SHA1 (tor-0.2.0.31.tar.gz) = a586cc017a791ac481fde836c3cf8e3667fb5cfc
-RMD160 (tor-0.2.0.31.tar.gz) = 584cbbd9f295a8f677bc95a5f05dc78f6184b97a
-Size (tor-0.2.0.31.tar.gz) = 2156305 bytes
+SHA1 (tor-0.2.0.32.tar.gz) = 0e48d0706f1717afc6d19228a8878c3bc379b25d
+RMD160 (tor-0.2.0.32.tar.gz) = e87bee7d7dadf17280bf0b11245b0bad70d68fc2
+Size (tor-0.2.0.32.tar.gz) = 2159864 bytes
 SHA1 (patch-aa) = 630e1e0a9591c136987b504e73c64ff9f53b54e9
 SHA1 (patch-ab) = 3363efdcf8b9918c1249add1046077f2323a11ff
Index: files/tor.in
===================================================================
RCS file: /cvsroot/pkgsrc/net/tor/files/tor.in,v
retrieving revision 1.2
diff -p -u -r1.2 tor.in
--- files/tor.in	27 Sep 2005 17:44:12 -0000	1.2
+++ files/tor.in	20 Dec 2008 21:16:56 -0000
@@ -26,7 +26,7 @@ restart_cmd="tor_stop ; tor_start"

 tor_start ()
 {
-	${command} --User @TOR_USER@ --Group @TOR_GROUP@ --RunAsDaemon 1 \
+	${command} --User @TOR_USER@ --RunAsDaemon 1 \
 		--DataDirectory @PKG_HOME@ --PIDFile ${pidfile}
 }


>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sun, 21 Dec 2008 11:11:41 +0000
State-Changed-Why:
Updated.  Thanks!


From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40241 CVS commit: pkgsrc/net/tor
Date: Sun, 21 Dec 2008 11:10:27 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Dec 21 11:10:27 UTC 2008

 Modified Files:
 	pkgsrc/net/tor: Makefile distinfo
 	pkgsrc/net/tor/files: tor.in

 Log Message:
 Update tor to 0.2.0.32.
 Based on PR 40241 by Taylor R Campbell.
 While here, add DESTDIR support.

 Changes in version 0.2.0.32 - 2008-11-20
   o Security fixes:
     - The "User" and "Group" config options did not clear the
       supplementary group entries for the Tor process. The "User" option
       is now more robust, and we now set the groups to the specified
       user's primary group. The "Group" option is now ignored. For more
       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
     - The "ClientDNSRejectInternalAddresses" config option wasn't being
       consistently obeyed: if an exit relay refuses a stream because its
       exit policy doesn't allow it, we would remember what IP address
       the relay said the destination address resolves to, even if it's
       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.

   o Major bugfixes:
     - Fix a DOS opportunity during the voting signature collection process
       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.

   o Major bugfixes (hidden services):
     - When fetching v0 and v2 rendezvous service descriptors in parallel,
       we were failing the whole hidden service request when the v0
       descriptor fetch fails, even if the v2 fetch is still pending and
       might succeed. Similarly, if the last v2 fetch fails, we were
       failing the whole hidden service request even if a v0 fetch is
       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
     - When extending a circuit to a hidden service directory to upload a
       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
       requests failed, because the router descriptor has not been
       downloaded yet. In these cases, do not attempt to upload the
       rendezvous descriptor, but wait until the router descriptor is
       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
       descriptor from a hidden service directory for which the router
       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
       on 0.2.0.10-alpha.

   o Minor bugfixes:
     - Fix several infrequent memory leaks spotted by Coverity.
     - When testing for libevent functions, set the LDFLAGS variable
       correctly. Found by Riastradh.
     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
       bootstrapping with tunneled directory connections. Bugfix on
       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
     - When asked to connect to A.B.exit:80, if we don't know the IP for A
       and we know that server B rejects most-but-not all connections to
       port 80, we would previously reject the connection. Now, we assume
       the user knows what they were asking for. Fixes bug 752. Bugfix
       on 0.0.9rc5. Diagnosed by BarkerJr.
     - If we overrun our per-second write limits a little, count this as
       having used up our write allocation for the second, and choke
       outgoing directory writes. Previously, we had only counted this when
       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
       Bugfix on 0.2.0.x (??).
     - Remove the old v2 directory authority 'lefkada' from the default
       list. It has been gone for many months.
     - Stop doing unaligned memory access that generated bus errors on
       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
     - Make USR2 log-level switch take effect immediately. Bugfix on
       0.1.2.8-beta.

   o Minor bugfixes (controller):
     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.


 To generate a diff of this commit:
 cvs rdiff -r1.58 -r1.59 pkgsrc/net/tor/Makefile
 cvs rdiff -r1.30 -r1.31 pkgsrc/net/tor/distinfo
 cvs rdiff -r1.2 -r1.3 pkgsrc/net/tor/files/tor.in

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.