NetBSD Problem Report #33232
From cheusov@tut.by Mon Apr 10 19:40:30 2006
Return-Path: <cheusov@tut.by>
Received: from tut.by (speedy.tutby.com [195.137.160.40])
by narn.netbsd.org (Postfix) with ESMTP id 08EC663B9C2
for <gnats-bugs@gnats.netbsd.org>; Mon, 10 Apr 2006 19:40:29 +0000 (UTC)
Message-Id: <s93slol5i9f.fsf@chen.chizhovka.net>
Date: Mon, 10 Apr 2006 22:43:08 +0300
From: cheusov@tut.by
Reply-To:
To: gnats-bugs@netbsd.org
Subject: pptp+pppd don't work due to incorrect patches/patch-ab
X-Send-Pr-Version: 3.95
>Number: 33232
>Category: pkg
>Synopsis: pptp+pppd don't work due to incorrect patches/patch-ab
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: rillig
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 10 19:45:00 +0000 2006
>Closed-Date: Fri Apr 14 10:33:36 +0000 2006
>Last-Modified: Fri Apr 14 10:35:01 +0000 2006
>Originator: cheusov@tut.by
>Release: NetBSD 3.0_STABLE
>Organization:
Best regards, Aleksey Cheusov.
>Environment:
System: NetBSD chen.chizhovka.net 3.0_STABLE NetBSD 3.0_STABLE (GENERIC) #2: Sun Mar 12 12:49:58 GMT 2006 cheusov@chen:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
/usr/pkgsrc/bin/pptp doesn't work while upstream version do its work
well. This is because of incorrect patches/patch-ab.
'/usr/sbin/pppd call <provider>' doesn't make ppp0 interface up.
It just hangs for a several second and than exits with no success.
>How-To-Repeat:
I place here my configuration files for pppd and pptp.
You can easily repeate my situation.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/etc/ppp/peers/inet:
file /etc/ppp/pppd_pptp.options
name cheusov
pty "/usr/pkg/sbin/pptp 10.1.2.1 --nolaunchpppd"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/etc/ppp/pppd_pptp.options:
lock noauth nobsdcomp nodeflate
usepeerdns
defaultroute
persist
debug
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/etc/ppp/chap-secrets:
<MY_ISP_NAME> * <MY_ISP_PASSWD> *
>Fix:
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/net/pptp/distinfo,v
retrieving revision 1.4
diff -u -r1.4 distinfo
--- distinfo 14 Mar 2006 13:53:57 -0000 1.4
+++ distinfo 10 Apr 2006 19:38:17 -0000
@@ -3,7 +3,6 @@
SHA1 (pptp-1.7.0.tar.gz) = fc96e8a765bf17eb02ce1584d8e9d024b68ab5a7
RMD160 (pptp-1.7.0.tar.gz) = 62c947379c44102945a198ddc914d5aa634db13c
Size (pptp-1.7.0.tar.gz) = 227699 bytes
-SHA1 (patch-ab) = 564949ffc4ab97af5e0845b930880cc48ee00a6b
+SHA1 (patch-ab) = a03b32272157ccfbc6d2836a3220dfc2d7fbdb97
SHA1 (patch-ac) = 8a0dd645ed0a766375a803fecda80d716c441d52
SHA1 (patch-ad) = a037ba927c181f812ecd5c1ea2d344483d8ad4bf
-SHA1 (patch-ah) = 9f1739cbb375c1c5d15c559490d2ec44abc72ce6
Index: patches/patch-ab
===================================================================
RCS file: /cvsroot/pkgsrc/net/pptp/patches/patch-ab,v
retrieving revision 1.2
diff -u -r1.2 patch-ab
--- patches/patch-ab 14 Mar 2006 13:53:57 -0000 1.2
+++ patches/patch-ab 10 Apr 2006 19:38:17 -0000
@@ -13,15 +13,6 @@
/* Find the ppp options, extract phone number */
pppdargc = argc - optind;
pppdargv = argv + optind;
-@@ -356,7 +358,7 @@ int main(int argc, char **argv, char **e
- signal(SIGUSR1, sigstats);
-
- /* Do GRE copy until close. */
-- pptp_gre_copy(call_id, peer_call_id, pty_fd, gre_fd);
-+ pptp_gre_copy(peer_call_id, call_id, pty_fd, gre_fd);
-
- shutdown:
- /* on close, kill all. */
@@ -504,6 +506,12 @@ void launch_pppd(char *ttydev, int argc,
for (j = 0; j < argc; j++)
new_argv[i++] = argv[j];
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Fri, 14 Apr 2006 10:33:36 +0000
Responsible-Changed-Why:
I'll take it.
State-Changed-From-To: open->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Fri, 14 Apr 2006 10:33:36 +0000
State-Changed-Why:
I committed the suggested patch. Thanks for the PR.
From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/33232 CVS commit: pkgsrc/net/pptp
Date: Fri, 14 Apr 2006 10:32:02 +0000 (UTC)
Module Name: pkgsrc
Committed By: rillig
Date: Fri Apr 14 10:32:02 UTC 2006
Modified Files:
pkgsrc/net/pptp: Makefile distinfo
pkgsrc/net/pptp/patches: patch-ab
Added Files:
pkgsrc/net/pptp/patches: patch-ah
Log Message:
Removed a dubious hunk from patch-ab that changed the order of two
arguments in a function call, which had been introduced some years ago.
Fixes PR 33232.
Added patch-ah, which allows the package to be installed by unprivileged
users. I had forgotten to add this to the last commit.
Bumped PKGREVISION.
To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 pkgsrc/net/pptp/Makefile
cvs rdiff -r1.4 -r1.5 pkgsrc/net/pptp/distinfo
cvs rdiff -r1.2 -r1.3 pkgsrc/net/pptp/patches/patch-ab
cvs rdiff -r0 -r1.1 pkgsrc/net/pptp/patches/patch-ah
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.