NetBSD Problem Report #56913

From www@netbsd.org  Wed Jul  6 18:21:34 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 1C3831A921F
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  6 Jul 2022 18:21:34 +0000 (UTC)
Message-Id: <20220706182103.0B2D91A9239@mollari.NetBSD.org>
Date: Wed,  6 Jul 2022 18:21:02 +0000 (UTC)
From: simmonds@polymorphism.ca
Reply-To: simmonds@polymorphism.ca
To: gnats-bugs@NetBSD.org
Subject: privoxy fails to start on macOS
X-Send-Pr-Version: www-1.0

>Number:         56913
>Category:       pkg
>Synopsis:       privoxy fails to start on macOS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 06 18:25:00 +0000 2022
>Originator:     Colin Simmonds
>Release:        pkgsrc from git trunk (b883e4562afaf56f74fcea3691439ca17aaafb8e)
>Organization:
>Environment:
Darwin Meiling.hitronhub.home 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64 arm64 MacBookPro18,2 Darwin

>Description:
privoxy fails to start when run on my macOS machine.

With the log level turned up in the config file, I see the following in the log file:
2022-07-04 14:12:30.705 00102ee0 Error: error compiling /.*\.(gif|jpe?g|png|bmp|ico)($|\?) from /.*\.(gif|jpe?g|png|bmp|ico)($|\?): invalid argument to regex routine
2022-07-04 14:12:30.705 00102ee0 Fatal error: can't load actions file '/opt/pkg/etc/privoxy/default.action': line 624: cannot create URL or TAG pattern from: /.*\.(gif|jpe?g|png|bmp|ico)($|\?)

coming from one of the default patterns in the included default.action file
>How-To-Repeat:
Add "privoxy=YES" to /etc/rc.conf

/etc/rc.d/privoxy start

and privoxy exits immediately with exit code 1.
>Fix:
I found that the problem goes away if I build it without pthreads support. In the Makefile, I commented out the lines referring to pthreads:

#PTHREAD_AUTO_VARS=	yes
#PTHREAD_OPTS+=		require

#.include "../../mk/pthread.buildlink3.mk"

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.