NetBSD Problem Report #22883

Received: (qmail 20430 invoked by uid 605); 22 Sep 2003 09:24:44 -0000
Message-Id: <20030922092440.23D1F11153@narn.netbsd.org>
Date: Mon, 22 Sep 2003 09:24:40 +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 a couple of bugs in misc/pdmenu
X-Send-Pr-Version: www-1.0

>Number:         22883
>Category:       pkg
>Synopsis:       Fix a couple of bugs in misc/pdmenu
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 22 09:25:00 +0000 2003
>Closed-Date:    Mon Sep 22 09:32:39 +0000 2003
>Last-Modified:  Mon Sep 22 09:33:00 +0000 2003
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build1 5.9 Generic_112233-01 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
1) "cc1: error: unrecognized option `-fstrict-prototypes'".  This one is
   rather self-explanatory.  Remove it completely to aid non-gcc builds
   rather than fix it.
2) ${INSTALL} for SunOS is /usr/ucb/install, which cannot handle more
   than one directory at a time.
3) patch-aa hardcodes the gcc-specific rpath stuff, make sure we use
   ${LDFLAGS} instead.
>How-To-Repeat:
1) cc1: error: unrecognized option `-fstrict-prototypes'
   gmake: *** [src/pdmenu.o] Error 1
   *** Error code 2

2) /usr/ucb/install -d -o jonp -g inetops -m 02755 /home/jonp/bulk/pkg/share/doc/pdmenu /home/jonp/bulk/pkg/share/examples/pdmenu /home/jonp/bulk/pkg/share/examples/pdmenu/newbie
   usage: install [-cs] [-g group] [-m mode] [-o owner] file ... destination
          install  -d   [-g group] [-m mode] [-o owner] dir
   *** Error code 1
>Fix:
http://www.perkin.org.uk/projects/netbsd/pdmenu.diff

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/misc/pdmenu/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile	2003/07/17 21:49:45	1.14
+++ Makefile	2003/09/22 09:22:35
@@ -30,9 +30,9 @@
 	${INSTALL_DATA_DIR} ${PREFIX}/lib/pdmenu

 post-install:
-	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pdmenu \
-		${PREFIX}/share/examples/pdmenu	\
-		${PREFIX}/share/examples/pdmenu/newbie
+	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pdmenu
+	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pdmenu
+	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pdmenu/newbie
 	cd ${WRKSRC}/doc && ${INSTALL_DATA} ANNOUNCE BUGS TODO \
 		${PREFIX}/share/doc/pdmenu
 	cd ${WRKSRC}/examples && ${INSTALL_DATA} README ba.lpd pdmenurc \
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/misc/pdmenu/distinfo,v
retrieving revision 1.4
diff -u -r1.4 distinfo
--- distinfo	2002/01/01 17:36:28	1.4
+++ distinfo	2003/09/22 09:22:35
@@ -2,4 +2,4 @@

 SHA1 (pdmenu_1.2.65.tar.gz) = d25a7cc5f0c316cbfdcd84ec22a1766ee8c50272
 Size (pdmenu_1.2.65.tar.gz) = 88453 bytes
-SHA1 (patch-aa) = e8d10f390785e1971e13b515e8d71c747353a0cc
+SHA1 (patch-aa) = b5d2d0620e466ab2b13a530b0611e15d517b452d
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/misc/pdmenu/patches/patch-aa,v
retrieving revision 1.4
diff -u -r1.4 patch-aa
--- patches/patch-aa	2002/01/01 17:36:29	1.4
+++ patches/patch-aa	2003/09/22 09:22:35
@@ -1,16 +1,19 @@
 $NetBSD: patch-aa,v 1.4 2002/01/01 17:36:29 wiz Exp $

---- autoconf/makeinfo.in.orig	Sat Aug 28 05:27:37 1999
-+++ autoconf/makeinfo.in
-@@ -33,7 +33,7 @@
+--- autoconf/makeinfo.in.orig	Sat Aug 28 04:27:37 1999
++++ autoconf/makeinfo.in	Mon Sep 22 10:14:07 2003
+@@ -16,9 +16,9 @@
+ VER		= @VER@
+ DEFINES		= -DETCDIR=\"${SYSCONFDIR}/\" -DVER=\"${VER}\" @DEFS@ \
+ 		  $(PROFILE) -D__USE_FIXED_PROTOTYPES__ -D_GNU_SOURCE
+-CFLAGS_FOR_GCC	= -Wall -fstrict-prototypes
++#CFLAGS_FOR_GCC	= -Wall -fstrict-prototypes
+ CFLAGS		= $(DEFINES) @gcc_cflags@ @CFLAGS@
+-LIBS		= @LIBS@ $(EFENCE)
++LIBS		= @LIBS@ $(EFENCE) @LDFLAGS@
+ SRCDIR		= src

- all: pdmenu
- pdmenu: .dep $(OBJFILES)
--	${CC} -o pdmenu $(OBJFILES) $(CFLAGS) $(LIBS)
-+	${CC} -o pdmenu -Wl,-R${LOCALBASE}/lib $(OBJFILES) $(CFLAGS) $(LIBS)
- 
- 
- depend: .dep
+ #------------------- end user configurable section ------------------------#
 @@ -68,11 +68,6 @@
  	$(INSTALL) -s pdmenu $(INSTALL_PREFIX)/$(BINDIR)
  	$(INSTALL) doc/pdmenu.man $(INSTALL_PREFIX)/$(MANDIR)/man1/pdmenu.1 -m 0644
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Mon Sep 22 05:32:28 EDT 2003 
State-Changed-Why:  
Fixed, thanks. 

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22883 CVS commit: pkgsrc/misc/pdmenu
Date: Mon, 22 Sep 2003 09:32:22 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Mon Sep 22 09:32:21 UTC 2003

 Modified Files:
 	pkgsrc/misc/pdmenu: Makefile distinfo
 	pkgsrc/misc/pdmenu/patches: patch-aa

 Log Message:
 Fix build and install on Solaris. From Jonathan Perkin in PR 22883.


 To generate a diff of this commit:
 cvs rdiff -r1.14 -r1.15 pkgsrc/misc/pdmenu/Makefile
 cvs rdiff -r1.4 -r1.5 pkgsrc/misc/pdmenu/distinfo
 cvs rdiff -r1.4 -r1.5 pkgsrc/misc/pdmenu/patches/patch-aa

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

>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.