NetBSD Problem Report #56882
From martin@aprisoft.de Tue Jun 14 04:20:14 2022
Return-Path: <martin@aprisoft.de>
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 2D6251A921F
for <gnats-bugs@gnats.NetBSD.org>; Tue, 14 Jun 2022 04:20:14 +0000 (UTC)
Message-Id: <20220614042005.6C53F5CC860@emmas.aprisoft.de>
Date: Tue, 14 Jun 2022 06:20:05 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: /usr/bin/cpp useless in base set
X-Send-Pr-Version: 3.95
>Number: 56882
>Category: bin
>Synopsis: /usr/bin/cpp useless in base set
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 14 04:25:00 +0000 2022
>Closed-Date: Thu Aug 24 02:57:28 +0000 2023
>Last-Modified: Thu Aug 24 02:57:28 +0000 2023
>Originator: Martin Husemann
>Release: NetBSD 9.99.97
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD big-apple.aprisoft.de 9.99.97 NetBSD 9.99.97 (POWERMAC_G5.MP) #51: Tue Jun 7 18:47:12 CEST 2022 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/macppc/compile/POWERMAC_G5.MP macppc
Architecture: powerpc
Machine: macppc
>Description:
The base set includes /usr/bin/cpp because it also includes /usr/bin/calendar
and that runs cpp to preprocess calendar files.
However, if you install a minimalistic mail server with only the base set,
neither calendar nor cpp will work, as cpp always execs cc1, which is not
available in this setup.
>How-To-Repeat:
s/a
>Fix:
n/a
>Release-Note:
>Audit-Trail:
From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/56882: /usr/bin/cpp useless in base set
Date: Tue, 14 Jun 2022 13:33:34 +0300
cpp is also used by xrdb.
-uwe
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/56882: /usr/bin/cpp useless in base set
Date: Tue, 14 Jun 2022 13:39:12 +0200
Am Tue, Jun 14, 2022 at 10:35:01AM +0000 schrieb Valery Ushakov:
> The following reply was made to PR bin/56882; it has been noted by GNATS.
>
> From: Valery Ushakov <uwe@stderr.spb.ru>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: bin/56882: /usr/bin/cpp useless in base set
> Date: Tue, 14 Jun 2022 13:33:34 +0300
>
> cpp is also used by xrdb.
If we care enough about non-devel installations, we should add tradcpp
and switch xrdb, calender and the rest to use that.
Joerg
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/56882: /usr/bin/cpp useless in base set
Date: Sun, 10 Jul 2022 02:04:25 +0000
On Tue, Jun 14, 2022 at 11:40:01AM +0000, Joerg Sonnenberger wrote:
> > cpp is also used by xrdb.
>
> If we care enough about non-devel installations, we should add tradcpp
> and switch xrdb, calendar and the rest to use that.
I am fine with importing tradcpp, but are we sure that all of these
uses currently use -traditional?
(Granted they probably *should* but the question is whether they *do*.)
--
David A. Holland
dholland@netbsd.org
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, martin@NetBSD.org
Subject: re: bin/56882: /usr/bin/cpp useless in base set
Date: Mon, 11 Jul 2022 07:40:24 +1000
> On Tue, Jun 14, 2022 at 11:40:01AM +0000, Joerg Sonnenberger wrote:
> > > cpp is also used by xrdb.
> > =
> > If we care enough about non-devel installations, we should add trad=
cpp
> > and switch xrdb, calendar and the rest to use that.
> =
> I am fine with importing tradcpp, but are we sure that all of these
> uses currently use -traditional?
> =
> (Granted they probably *should* but the question is whether they *do*.)
the alternative (compiler cpp) is *huge*. /usr/bin/cpp
invokes /usr/libexec/cc1:
-r-xr-xr-x 2 root wheel 1292832 May 30 23:50 /usr/bin/cpp*
-r-xr-xr-x 1 root wheel 30104152 May 30 23:51 /usr/libexec/cc1*
xrdb's configure looks for a "cpp -traditional" option
being available, and calendar has:
calendar.c: (void)execl(_PATH_CPP, "cpp", "-traditional", "-P", =
"-I.",
so i think tradcpp would work for us here, for at least
those two applications.
thanks.
.mrg.
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/56882: /usr/bin/cpp useless in base set
Date: Mon, 11 Jul 2022 01:16:18 +0000
On Mon, Jul 11, 2022 at 07:40:24AM +1000, matthew green wrote:
> > I am fine with importing tradcpp, but are we sure that all of these
> > uses currently use -traditional?
> >
> > (Granted they probably *should* but the question is whether they *do*.)
>
> the alternative (compiler cpp) is *huge*.
Right, moving cc1 out of the compiler set would totally defeat the
purpose of having a compiler set.
The question really is whether we need a small C89 cpp as well :-|
> xrdb's configure looks for a "cpp -traditional" option
> being available, and calendar has:
>
> calendar.c: (void)execl(_PATH_CPP, "cpp", "-traditional", "-P", "-I.",
>
> so i think tradcpp would work for us here, for at least
> those two applications.
Good.
I guess I should do the honors since I wrote the thing...
--
David A. Holland
dholland@netbsd.org
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/56882: /usr/bin/cpp useless in base set
Date: Sat, 27 Aug 2022 21:59:19 +0000
On Mon, Jul 11, 2022 at 01:20:02AM +0000, David Holland wrote:
> > so i think tradcpp would work for us here, for at least
> > those two applications.
>
> Good.
>
> I guess I should do the honors since I wrote the thing...
Done finally...
--
David A. Holland
dholland@netbsd.org
State-Changed-From-To: open->closed
State-Changed-By: rin@NetBSD.org
State-Changed-When: Thu, 24 Aug 2023 02:57:28 +0000
State-Changed-Why:
tradcpp has been imported to base (before netbsd-10 branch).
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.