NetBSD Problem Report #38128
From cheusov@tut.by Fri Feb 29 19:34:57 2008
Return-Path: <cheusov@tut.by>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 51B8663BA19
for <gnats-bugs@gnats.netbsd.org>; Fri, 29 Feb 2008 19:34:57 +0000 (UTC)
Message-Id: <s93k5knpndz.fsf@chen.chizhovka.net>
Date: Fri, 29 Feb 2008 21:34:48 +0200
From: cheusov@tut.by
Reply-To:
To: gnats-bugs@gnats.NetBSD.org
Subject: pkgsrc FEATURES framework doesn't support setprogname/getprogname
X-Send-Pr-Version: 3.95
>Number: 38128
>Category: pkg
>Synopsis: pkgsrc FEATURES framework doesn't support setprogname/getprogname
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 29 19:35:00 +0000 2008
>Last-Modified: Fri Feb 01 22:43:03 +0000 2013
>Originator: cheusov@tut.by
>Release: NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #2: Tue Dec 25 17:42:38 EET 2007 cheusov@chen.chizhovka.net:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
setprogname and getprogname functions are listed in features-vars.mk
as supported "features" but they are not supported actually.
The problem is probably here
features.mk:
...
. for f in asprintf err fts_close fts_open fts_read fts_set getopt_long glob nbcompat reg
. if !empty(MISSING_FEATURES:M${f})
_FEATURE_USE_NBCOMPAT= yes
. endif
. endfor
There are no setprogname and getprogname in the list while libnbcompat
provides them both.
Do not forget about this bug even if libnbcompat/inplace hack will be
completely reimplemented using "object files" approach.
>How-To-Repeat:
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->tnn
Responsible-Changed-By: tnn@NetBSD.org
Responsible-Changed-When: Fri, 29 Feb 2008 20:23:44 +0000
Responsible-Changed-Why:
I'm doing work in this area.
Note however that it's tricky to provide a portable fallback
implementation of setprogname()/getprogname() because the only
way to do this on some platforms is to overwrite whatever is
in argv[0], and getting that pointer can be nontrivial.
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, tnn@NetBSD.org, pkg-manager@netbsd.org,
pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org, cheusov@tut.by
Cc:
Subject: Re: pkg/38128 (pkgsrc FEATURES framework doesn't support setprogname/getprogname)
Date: Sat, 1 Mar 2008 00:40:25 -0500
On Feb 29, 8:23pm, tnn@NetBSD.org (tnn@NetBSD.org) wrote:
-- Subject: Re: pkg/38128 (pkgsrc FEATURES framework doesn't support setprogn
| Synopsis: pkgsrc FEATURES framework doesn't support setprogname/getprogname
|
| Responsible-Changed-From-To: pkg-manager->tnn
| Responsible-Changed-By: tnn@NetBSD.org
| Responsible-Changed-When: Fri, 29 Feb 2008 20:23:44 +0000
| Responsible-Changed-Why:
| I'm doing work in this area.
| Note however that it's tricky to provide a portable fallback
| implementation of setprogname()/getprogname() because the only
| way to do this on some platforms is to overwrite whatever is
| in argv[0], and getting that pointer can be nontrivial.
Look in /usr/src/usr.sbin/sup/source/setproctitle.c
christos
Responsible-Changed-From-To: tnn->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 01 Feb 2013 22:43:03 +0000
Responsible-Changed-Why:
Back to role account.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.