NetBSD Problem Report #22179

Received: (qmail 4396 invoked by uid 605); 18 Jul 2003 13:01:10 -0000
Message-Id: <20030718130109.61F3211152@narn.netbsd.org>
Date: Fri, 18 Jul 2003 13:01:09 +0000 (UTC)
From: jonathan@perkin.org.uk
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jonathan@perkin.org.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: Fix pkgsrc/time/xtu for gcc3.3 case
X-Send-Pr-Version: www-1.0

>Number:         22179
>Category:       pkg
>Synopsis:       Fix pkgsrc/time/xtu for gcc3.3 case
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    martin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 18 13:02:00 +0000 2003
>Closed-Date:    Sun Jul 20 10:46:58 +0000 2003
>Last-Modified:  Sun Jul 20 10:46:58 +0000 2003
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build0 5.8 Generic_108528-15 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
GCC 3.3 deprecated multi-line string literals, and so compilation of
pkgsrc/time/xtu fails.  This also seems to break compilation using
sunforte7 compiler.  Fix is below.

Also take the opportunity to future-proof my email address.
>How-To-Repeat:
===> Building for xtu-1.1
cd /home/jonp/pkgsrc/time/xtu/work/xtu-1.1 && /home/jonp/npkg/gcc-3.3/bin/gcc *.
c -o xtu -I/usr/openwin/include  -Wl,-R/usr/openwin/lib -L/usr/openwin/lib -lX11
 -lXext
In file included from TolleUhr.c:48:
xturc.h:4:28: missing terminating " character
xturc.h:5:3: invalid preprocessing directive #A
xturc.h:6:3: invalid preprocessing directive #first
xturc.h:8:3: invalid preprocessing directive #geometry
In file included from TolleUhr.c:48:
xturc.h:9: error: parse error before "geometry"
xturc.h:9:17: invalid suffix "x200" on integer constant
[...]
>Fix:
http://www.perkin.org.uk/projects/netbsd/xtu.patch

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/time/xtu/Makefile,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile
--- Makefile    2003/03/14 19:37:58     1.2
+++ Makefile    2003/07/18 12:53:01
@@ -5,11 +5,17 @@
 CATEGORIES=            time
 MASTER_SITES=          http://core.de/~coto/xtu/

-MAINTAINER=            sketch@rd.bbc.co.uk
+MAINTAINER=            jonathan@perkin.org.uk
 HOMEPAGE=              http://core.de/~coto/xtu/
 COMMENT=               Small configurable X11 analog clock

 USE_X11=               yes
+
+post-configure:
+       ${CP} ${WRKSRC}/xturc.h ${WRKSRC}/xturc.h.orig
+       ${SED} -e '/"$$/,/^"/s/\"//' \
+              -e '5,109s/\(.*\)/\"\1\"/' \
+              ${WRKSRC}/xturc.h.orig > ${WRKSRC}/xturc.h

 do-build:
        cd ${WRKSRC} && ${CC} *.c -o xtu -I${X11BASE}/include ${X11_LDFLAGS} -lX11 -lXext
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: martin 
State-Changed-When: Sat Jul 19 19:40:15 UTC 2003 
State-Changed-Why:  
This is being take care of, but slightly different than suggested here. 
Responsible-Changed-From-To: pkg-manager->martin 
Responsible-Changed-By: martin 
Responsible-Changed-When: Sat Jul 19 19:41:29 UTC 2003 
Responsible-Changed-Why:  
I'm dealing with this. 

From: Martin Husemann <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22179 CVS commit: pkgsrc/time/xtu
Date: Sun, 20 Jul 2003 10:43:14 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	martin
 Date:		Sun Jul 20 10:43:13 UTC 2003

 Modified Files:
 	pkgsrc/time/xtu: Makefile distinfo

 Log Message:
 Update to xtu-1.2, which fixes PR 22179.


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 pkgsrc/time/xtu/Makefile
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/time/xtu/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: analyzed->closed 
State-Changed-By: martin 
State-Changed-When: Sun Jul 20 10:46:37 UTC 2003 
State-Changed-Why:  
Fixed via update, thanks! 
>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.