NetBSD Problem Report #46598

From www@NetBSD.org  Thu Jun 14 03:20:41 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 6EE5F63B8E6
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 14 Jun 2012 03:20:41 +0000 (UTC)
Message-Id: <20120614032040.B1EE963B882@www.NetBSD.org>
Date: Thu, 14 Jun 2012 03:20:40 +0000 (UTC)
From: bjs@NetBSD.org
Reply-To: bjs@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: net/tor needs absolute path substitution for bin/torify
X-Send-Pr-Version: www-1.0

>Number:         46598
>Category:       pkg
>Synopsis:       net/tor needs absolute path substitution for bin/torify
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    hauke
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 14 03:25:00 +0000 2012
>Closed-Date:    Thu Jun 14 14:51:51 +0000 2012
>Last-Modified:  Thu Jun 14 14:55:01 +0000 2012
>Originator:     Blair Sadewitz
>Release:        6.99.7
>Organization:
>Environment:
NetBSD apoptosis 6.99.7 NetBSD 6.99.7 (XEN3_DOMU) #0: Mon Jun 11 12:46:54 UTC 2012  builds@b7.netbsd.org:/home/builds/ab/HEAD/amd64/201206111100Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/XEN3_DOMU amd64

>Description:
The bin/torify script has an embedded absolute pathname, TSOCKS_CONF_FILE.
>How-To-Repeat:
Try to use it.
>Fix:
Hey, this one is right out of the manual!


Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/tor/Makefile,v
retrieving revision 1.85
diff -u -r1.85 Makefile
--- Makefile    17 Dec 2011 12:39:43 -0000      1.85
+++ Makefile    14 Jun 2012 03:12:17 -0000
@@ -56,6 +56,12 @@
 FILES_SUBST+=          PKG_HOME=${PKG_HOME}
 FILES_SUBST+=          TOR_USER=${TOR_USER} TOR_GROUP=${TOR_GROUP}

+SUBST_CLASSES+=                fix-paths
+SUBST_STAGE.fix-paths=         pre-configure
+SUBST_MESSAGE.fix-paths=       Fixing absolute paths.
+SUBST_FILES.fix-paths=         contrib/torify.in
+SUBST_SED.fix-paths=           -e 's,"/etc/tor,"${PKG_SYSCONFDIR},g'
+
 INSTALL_MAKE_FLAGS+=   sysconfdir=${PREFIX}/share/examples

 CHECK_PORTABILITY_SKIP+=contrib/*

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->hauke
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Thu, 14 Jun 2012 14:44:46 +0000
Responsible-Changed-Why:
Take.


State-Changed-From-To: open->closed
State-Changed-By: hauke@NetBSD.org
State-Changed-When: Thu, 14 Jun 2012 14:51:51 +0000
State-Changed-Why:
I committed the enclosed patch.

Thanks for the PR!


From: "Hauke Fath" <hauke@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46598 CVS commit: pkgsrc/net/tor
Date: Thu, 14 Jun 2012 14:50:45 +0000

 Module Name:	pkgsrc
 Committed By:	hauke
 Date:		Thu Jun 14 14:50:45 UTC 2012

 Modified Files:
 	pkgsrc/net/tor: Makefile distinfo

 Log Message:
 Properly substitute absolute path /etc/tor in torify(1). While here,
 update the package.

 Patch from Blair Sadewitz, submitted in PR pkg/46598.


 To generate a diff of this commit:
 cvs rdiff -u -r1.85 -r1.86 pkgsrc/net/tor/Makefile
 cvs rdiff -u -r1.52 -r1.53 pkgsrc/net/tor/distinfo

 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.