NetBSD Problem Report #19586

Received: (qmail 6688 invoked by uid 605); 27 Dec 2002 23:47:01 -0000
Message-Id: <200212272341.gBRNfo004922@rune.int.neutralgood.org>
Date: Fri, 27 Dec 2002 18:41:51 -0500 (EST)
From: kpneal@pobox.com
Sender: gnats-bugs-owner@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: make readme fails on alpha
X-Send-Pr-Version: 3.95

>Number:         19586
>Category:       pkg
>Synopsis:       a make readme fails (on an alpha).
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 27 23:48:00 +0000 2002
>Closed-Date:    Sat Mar 22 00:48:34 +0000 2003
>Last-Modified:  Sat Mar 22 00:48:34 +0000 2003
>Originator:     Kevin P. Neal
>Release:        NetBSD 1.6
>Organization:
-- 
Kevin P. Neal                                http://www.pobox.com/~kpn/

"You know, I think I can hear the machine screaming from here...  \
'help me! hellpp meeee!'"  - Heather Flanagan, 14:52:23 Wed Jun 10 1998
>Environment:
System: NetBSD rune.neutralgood.org 1.6 NetBSD 1.6 (RUNE-$Revision: 1.1 $) #7: Sun Sep 22 20:32:24 EDT 2002 kpn@neutralgood.org:/local/kernel/compile/RUNE alpha
Architecture: alpha
Machine: alpha
>Description:

===> Creating README.html for src/nas-1.6
===> Creating README.html for src/normalize-0.7.6nb1
===> Creating README.html for src/nspmod-0.1
===> Creating README.html for src/oggasm-1.4.0
CATEGORIES and DISTNAME are mandatory.
*** Error code 1 (continuing)


Stop.
make: stopped in /usr/pkg/src/audio/oss
*** Error code 1 (continuing)


Stop.
make: stopped in /usr/pkg/src/audio
*** Error code 1 (continuing)


Stop.
make: stopped in /usr/pkg/src/audio
*** Error code 1 (continuing)


Stop.
make: stopped in /usr/pkg/src
*** Error code 1 (continuing)


Stop.
make: stopped in /usr/pkg/src
Processing categories for README-all.html: archivers audio.
rune% 

The problem seems to be in audio/oss/Makefile here:

.if !empty(MACHINE_PLATFORM:MNetBSD-1.5*-i386)
DISTNAME=               oss397c-netbsd-v1.5
OSS_VERSION=            3.9.7c
.elif !empty(MACHINE_PLATFORM:MNetBSD-1.6*-i386)
DISTNAME=               oss397f-netbsd-v1.6
OSS_VERSION=            3.9.7f
.endif

Since I'm not on an i386, this snippit fails. 

>How-To-Repeat:

On an Alpha, run this script:

#!/bin/sh

cd /usr/pkg/src 

find . -name README\*.html -print | xargs rm

make -k readme __ARCH_OK=yes NO_IGNORE=yes

>Fix:

>Release-Note:
>Audit-Trail:

From: Yuji Yamano <yyamano@kt.rim.or.jp>
To: kpneal@pobox.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/19586: make readme fails on alpha
Date: Fri, 07 Feb 2003 02:18:17 +0900 (JST)

 kpneal@pobox.com writes:

 > >Synopsis:       a make readme fails (on an alpha).

 > ===> Creating README.html for src/nas-1.6
 > ===> Creating README.html for src/normalize-0.7.6nb1
 > ===> Creating README.html for src/nspmod-0.1
 > ===> Creating README.html for src/oggasm-1.4.0
 > CATEGORIES and DISTNAME are mandatory.
 > *** Error code 1 (continuing)
 > 
 > 
 > Stop.
 > make: stopped in /usr/pkg/src/audio/oss
 > *** Error code 1 (continuing)

 I think the problem is fixed by audio/oss/Makefile 1.14,
 so could you try with the latest pkgsrc? 

 -- 
 Yuji Yamano <yyamano@kt.rim.or.jp>
     Exterminate the sage, discard the wise, 
     and the people will benefit a hundredfold. --Lao Tzu
State-Changed-From-To: open->feedback 
State-Changed-By: wiz 
State-Changed-When: Thu Feb 6 09:16:00 PST 2003 
State-Changed-Why:  
Feedback requested. 

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: pr/19586 CVS commit: pkgsrc
Date: Sun,  9 Feb 2003 16:38:53 +0200 (EET)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Sun Feb  9 14:38:53 UTC 2003

 Modified Files:
 	pkgsrc: Makefile
 	pkgsrc/cad/electric: Makefile
 	pkgsrc/cad/magic: Makefile
 	pkgsrc/mk: bsd.pkg.mk
 	pkgsrc/shells/ast-ksh: Makefile

 Log Message:
 s/${ENV}/${SETENV}/, noted by Kevin P. Neal in connection with PR 19586.


 To generate a diff of this commit:
 cvs rdiff -r1.51 -r1.52 pkgsrc/Makefile
 cvs rdiff -r1.3 -r1.4 pkgsrc/cad/electric/Makefile
 cvs rdiff -r1.3 -r1.4 pkgsrc/cad/magic/Makefile
 cvs rdiff -r1.1136 -r1.1137 pkgsrc/mk/bsd.pkg.mk
 cvs rdiff -r1.6 -r1.7 pkgsrc/shells/ast-ksh/Makefile

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


From: Thomas Klausner <wiz@netbsd.org>
To: kpneal@pobox.com
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/19586
Date: Sun, 9 Feb 2003 16:05:57 +0100

 On Sat, Feb 08, 2003 at 06:35:39PM -0500, kpneal@pobox.com wrote:
 > A couple of diffs were required because some packages were using
 > ${ENV} and not ${SETENV}. Diffs at the bottom. 

 Committed, thanks.

 > Also, the bold attribute is turned on for packages that have security
 > holes in them and it isn't turned off correctly. See:

 Fixed, thanks.

 > I did get a lot of messages of this form:
 > 
 > Category = archivers
 > mv: rename /tmp/mkreadme/README.html to /usr/pkg/src/archivers/README.html: No such file or directory
 > Category = audio
 > **** WARNING ****
 > Could not create /usr/pkg/src/archivers/README.html (rc=1)
 > **** ------- ****
 > mv: rename /tmp/mkreadme/README.html to /usr/pkg/src/audio/README.html: No such file or directory
 > Category = benchmarks
 > **** WARNING ****
 > Could not create /usr/pkg/src/audio/README.html (rc=1)
 > **** ------- ****
 > mv: rename /tmp/mkreadme/README.html to /usr/pkg/src/benchmarks/README.html: No such file or directory
 > Category = biology
 > **** WARNING ****
 > Could not create /usr/pkg/src/benchmarks/README.html (rc=1)
 > **** ------- ****
 > mv: rename /tmp/mkreadme/README.html to /usr/pkg/src/biology/README.html: No such file or directory
 > 
 > Everything seems to have been created anyway. 

 I'm not sure about that yet. Perhaps the shell reports the -1 return values from the cmp or something
 as exit code.

 > Packages I had built before were not found and were not mentioned
 > on the generated pages for each package.

 I think there's some variable that has to be set to point to the right dir, but
 I don't remember it right now.

 If they are in /usr/pkgsrc/packages, try 'make cdrom-readme'.

 Cheers,
  Thomas

From: kpneal@pobox.com
To: wiz@netbsd.org
Cc: pkg-manager@netbsd.org
Subject: Re:  pkg/19586
Date: Sat, 8 Feb 2003 18:35:39 -0500

 Thanks for looking at this. I just reran the make readme. 

 A couple of diffs were required because some packages were using
 ${ENV} and not ${SETENV}. Diffs at the bottom. 

 Also, the bold attribute is turned on for packages that have security
 holes in them and it isn't turned off correctly. See:

 ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/archivers/unzip/README.html

 I did get a lot of messages of this form:

 Category = archivers
 mv: rename /tmp/mkreadme/README.html to /usr/pkg/src/archivers/README.html: No such file or directory
 Category = audio
 **** WARNING ****
 Could not create /usr/pkg/src/archivers/README.html (rc=1)
 **** ------- ****
 mv: rename /tmp/mkreadme/README.html to /usr/pkg/src/audio/README.html: No such file or directory
 Category = benchmarks
 **** WARNING ****
 Could not create /usr/pkg/src/audio/README.html (rc=1)
 **** ------- ****
 mv: rename /tmp/mkreadme/README.html to /usr/pkg/src/benchmarks/README.html: No such file or directory
 Category = biology
 **** WARNING ****
 Could not create /usr/pkg/src/benchmarks/README.html (rc=1)
 **** ------- ****
 mv: rename /tmp/mkreadme/README.html to /usr/pkg/src/biology/README.html: No such file or directory

 Everything seems to have been created anyway. 

 Packages I had built before were not found and were not mentioned
 on the generated pages for each package.

 --- mk/bsd.pkg.mk.orig	Sat Feb  8 16:44:48 2003
 +++ mk/bsd.pkg.mk	Sat Feb  8 16:45:36 2003
 @@ -3638,7 +3638,7 @@
  # the target used to generate the README.html file.
  .PHONY: README.html
  README.html: .PRECIOUS
 -	@${ENV} AWK=${AWK} BMAKE=${MAKE} ../../mk/scripts/mkdatabase -f $@.tmp1
 +	@${SETENV} AWK=${AWK} BMAKE=${MAKE} ../../mk/scripts/mkdatabase -f $@.tmp1
  	@if [ -e ${PACKAGES} ]; then					\
  		cd ${PACKAGES};						\
  		case `${PWD_CMD}` in					\


 --- Makefile.orig	Sat Feb  8 16:49:33 2003
 +++ Makefile	Sat Feb  8 16:49:42 2003
 @@ -73,7 +73,7 @@
  		esac;							\
  		cd ${.CURDIR} ;						\
  	fi;								\
 -	${ENV} TMPDIR=${TMPDIR:U/tmp}/mkreadme	 			\
 +	${SETENV} TMPDIR=${TMPDIR:U/tmp}/mkreadme	 			\
  		BMAKE=${MAKE} AWK=${AWK} EXPR=${EXPR} 			\
  		./mk/scripts/mkreadme --pkgsrc ${.CURDIR} 		\
  		--packages ${PACKAGES} ${_README_TYPE_FLAG} $$MULTIARCH \


 --- cad/electric/Makefile.orig	Sat Feb  8 16:50:10 2003
 +++ cad/electric/Makefile	Sat Feb  8 16:50:21 2003
 @@ -21,7 +21,7 @@
  		> ${WRKSRC}/src/include/config.h

  post-install:
 -	cd ${WRKSRC} && ${ENV} ${MAKE_ENV} ${MAKE_PROGRAM} install.html
 +	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} install.html

  .include "../../mk/motif.buildlink2.mk"
  .include "../../mk/bsd.pkg.mk"


 --- cad/magic/Makefile.orig	Sat Feb  8 16:50:52 2003
 +++ cad/magic/Makefile	Sat Feb  8 16:51:02 2003
 @@ -25,6 +25,6 @@

  do-configure:
  	cd ${WRKSRC} && printf "1\n2\n6\n\n\n\n\n\n\n\n\n\n\n" | \
 -		${ENV} ${MAKE_ENV} ./scripts/config
 +		${SETENV} ${MAKE_ENV} ./scripts/config

  .include "../../mk/bsd.pkg.mk"


 --- shells/ast-ksh/Makefile.orig	Sat Feb  8 16:51:35 2003
 +++ shells/ast-ksh/Makefile	Sat Feb  8 16:51:48 2003
 @@ -51,7 +51,7 @@
  # Part of regression test
  do-test:
  	@cd ${WRKSRC}/src/cmd/ksh93/tests && \
 -		${ENV} SHELL=${PREFIX}/bin/ksh93 ${PREFIX}/bin/ksh93 shtests
 +		${SETENV} SHELL=${PREFIX}/bin/ksh93 ${PREFIX}/bin/ksh93 shtests
  # XXX Their 'test' target needs nmake (Korn's another tool)
  #	@cd ${WRKSRC}; \
  #		${SETENV} SHELL=${PDKSH} ${PDKSH} ./bin/package test


 -- 
 Kevin P. Neal                                http://www.pobox.com/~kpn/
       'Concerns about "rights" and "ownership" of domains are inappropriate.  
  It is appropriate to be concerned about "responsibilities" and "service" 
  to the community.' -- RFC 1591, page 4: March 1994
State-Changed-From-To: feedback->closed 
State-Changed-By: wiz 
State-Changed-When: Fri Mar 21 16:47:48 PST 2003 
State-Changed-Why:  
I think this one is fixed -- 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.