NetBSD Problem Report #29430

From www@netbsd.org  Thu Feb 17 19:18:56 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id CF4DF63B844; Thu, 17 Feb 2005 19:18:56 +0000 (UTC)
Message-Id: <20050217191856.CF4DF63B844@narn.netbsd.org>
Date: Thu, 17 Feb 2005 19:18:56 +0000 (UTC)
From: almeyers@consult-meyers.com
Reply-To: almeyers@consult-meyers.com
To: gnats-bugs@netbsd.org
Subject: package games/rocksndiamonds fails to install
X-Send-Pr-Version: www-1.0

>Number:         29430
>Category:       pkg
>Synopsis:       package games/rocksndiamonds fails to install
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 17 19:19:00 +0000 2005
>Closed-Date:    Thu Feb 17 20:04:38 +0000 2005
>Last-Modified:  Fri Feb 18 16:50:01 +0000 2005
>Originator:     A L Meyers
>Release:        latest cvs pkgsrc bootstrapped to Mandrake Linux 10.1 i386
>Organization:
>Environment:
Linux localhost.localdomain 2.6.8.1-12mdk #1 Fri Oct 1 12:53:41 CEST 2004 i686 AMD Athlon(tm) XP 2800+ unknown GNU/Linux
>Description:
Somehow the user creation throws the installation off track:

===> Installing for rocksndiamonds-3.1.0nb1
/bin/sh: line 1: /usr/bin/id: No such file or directory
/bin/sh: line 1: /usr/bin/id: No such file or directory
===> Creating installation directories
/bin/sh: line 1: /usr/bin/id: No such file or directory
/bin/sh: line 1: /usr/bin/id: No such file or directory
man/man6:
        gid (3, 0, modified)
Creating user: games
===========================================================================
The following users need to be created for rocksndiamonds-3.1.0nb1:

        games: games, /nonexistent, /bin/false

===========================================================================
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/games/rocksndiamonds
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/games/rocksndiamonds
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/games/rocksndiamonds
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/games/rocksndiamonds

>How-To-Repeat:
do "bmake install clean" in games/rocksndiamonds
>Fix:
none known

>Release-Note:

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: almeyers@consult-meyers.com
Subject: Re: pkg/29430: package games/rocksndiamonds fails to install
Date: Thu, 17 Feb 2005 11:23:51 -0800 (PST)

 > ===> Installing for rocksndiamonds-3.1.0nb1
 > /bin/sh: line 1: /usr/bin/id: No such file or directory
 > /bin/sh: line 1: /usr/bin/id: No such file or directory
 > ===> Creating installation directories
 > /bin/sh: line 1: /usr/bin/id: No such file or directory
 > /bin/sh: line 1: /usr/bin/id: No such file or directory

 Where is your id(1)?

 What is the output of the following?

 which id

 type id


 By the way, my children play rocksndiamonds as built from pkgsrc under
 Linux very often. They really enjoy rocksndiamonds.


  Jeremy C. Reed

  	  	 	 technical support & remote administration
 	  	 	 http://www.pugetsoundtechnology.com/

From: A L Meyers <me@privacy.net>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29430: package games/rocksndiamonds fails to install
Date: Thu, 17 Feb 2005 20:30:56 +0100

 Jeremy C. Reed wrote:

 >>===> Installing for rocksndiamonds-3.1.0nb1
 >>/bin/sh: line 1: /usr/bin/id: No such file or directory
 >>/bin/sh: line 1: /usr/bin/id: No such file or directory
 >>===> Creating installation directories
 >>/bin/sh: line 1: /usr/bin/id: No such file or directory
 >>/bin/sh: line 1: /usr/bin/id: No such file or directory
 >>    
 >>
 >
 >Where is your id(1)?
 >
 >What is the output of the following?
 >
 >which id
 >
 >type id
 >
 >
 >By the way, my children play rocksndiamonds as built from pkgsrc under
 >Linux very often. They really enjoy rocksndiamonds.
 >
 >
 > Jeremy C. Reed
 >
 > 	  	 	 technical support & remote administration
 >	  	 	 http://www.pugetsoundtechnology.com/
 >
 >
 >  
 >
 Hello Jeremy,

 Thanks for the quick response.  Here Is the output:

 [alm@localhost pkgsrc]$ which id
 /bin/id
 [alm@localhost pkgsrc]$ type id
 id is /bin/id

 Should I symlink /bin/id to /usr/bin/id or is there
 a more universal solution for "most" systems?

 Greetings,

 Lux

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: almeyers@consult-meyers.com
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29430: package games/rocksndiamonds fails to install
Date: Thu, 17 Feb 2005 11:36:48 -0800 (PST)

 On Thu, 17 Feb 2005, A L Meyers wrote:

 > [alm@localhost pkgsrc]$ which id
 > /bin/id
 > [alm@localhost pkgsrc]$ type id
 > id is /bin/id
 >
 > Should I symlink /bin/id to /usr/bin/id or is there
 > a more universal solution for "most" systems?

 The Pkgsrc solution for Linux is to be defined in
 pkgsrc/mk/platforms/Linux.mk

 Index: mk/platform/Linux.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/platform/Linux.mk,v
 retrieving revision 1.8
 diff -b -u -r1.8 Linux.mk
 --- mk/platform/Linux.mk	28 Jan 2005 21:05:59 -0000	1.8
 +++ mk/platform/Linux.mk	17 Feb 2005 19:35:20 -0000
 @@ -67,7 +67,11 @@
  HEAD?=		/usr/bin/head
  .endif
  HOSTNAME_CMD?=	/bin/hostname
 +.if exists(/bin/id)
 +ID?=		/bin/id
 +.else
  ID?=		/usr/bin/id
 +.endif
  IMAKE?=		${X11BASE}/bin/imake ${IMAKEOPTS}
  IMAKEOPTS+=	-DBuildHtmlManPages=NO
  LDCONFIG?=	/sbin/ldconfig


 Can you try to add the above to your mk/platform/Linux.mk ?

 And try your games/rocksndiamonds install (may need to do a "make
 clean" first) again?


  Jeremy C. Reed

  	  	 	 technical support & remote administration
 	  	 	 http://www.pugetsoundtechnology.com/


From: A L Meyers <me@privacy.net>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29430: package games/rocksndiamonds fails to install
Date: Thu, 17 Feb 2005 20:57:02 +0100

 Jeremy C. Reed wrote:

 >On Thu, 17 Feb 2005, A L Meyers wrote:
 >
 >  
 >
 >>[alm@localhost pkgsrc]$ which id
 >>/bin/id
 >>[alm@localhost pkgsrc]$ type id
 >>id is /bin/id
 >>
 >>Should I symlink /bin/id to /usr/bin/id or is there
 >>a more universal solution for "most" systems?
 >>    
 >>
 >
 >The Pkgsrc solution for Linux is to be defined in
 >pkgsrc/mk/platforms/Linux.mk
 >
 >Index: mk/platform/Linux.mk
 >===================================================================
 >RCS file: /cvsroot/pkgsrc/mk/platform/Linux.mk,v
 >retrieving revision 1.8
 >diff -b -u -r1.8 Linux.mk
 >--- mk/platform/Linux.mk	28 Jan 2005 21:05:59 -0000	1.8
 >+++ mk/platform/Linux.mk	17 Feb 2005 19:35:20 -0000
 >@@ -67,7 +67,11 @@
 > HEAD?=		/usr/bin/head
 > .endif
 > HOSTNAME_CMD?=	/bin/hostname
 >+.if exists(/bin/id)
 >+ID?=		/bin/id
 >+.else
 > ID?=		/usr/bin/id
 >+.endif
 > IMAKE?=		${X11BASE}/bin/imake ${IMAKEOPTS}
 > IMAKEOPTS+=	-DBuildHtmlManPages=NO
 > LDCONFIG?=	/sbin/ldconfig
 >
 >
 >Can you try to add the above to your mk/platform/Linux.mk ?
 >
 >And try your games/rocksndiamonds install (may need to do a "make
 >clean" first) again?
 >
 >
 > Jeremy C. Reed
 >
 > 	  	 	 technical support & remote administration
 >	  	 	 http://www.pugetsoundtechnology.com/
 >
 >
 >
 >  
 >
 Hi Jeremy,

 Just added the .if etc. procedure without going through the patch loop.

 Worked! games/rocksndiamonds build and installed smoothly.

 Thanks! So tomorrow morning I shall find your new code in place when
 I cvs update pkrsrc. :-)

 Lux

From: "Jeremy C. Reed" <reed@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29430 CVS commit: pkgsrc/mk/platform
Date: Thu, 17 Feb 2005 20:03:26 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	reed
 Date:		Thu Feb 17 20:03:26 UTC 2005

 Modified Files:
 	pkgsrc/mk/platform: Linux.mk

 Log Message:
 If /bin/id exists, then use it for ID else use /usr/bin/id.
 Mandrake Linux 10.1 as used by A L Meyers has /bin/id.
 This should fix his PR #pkg/29430 and #29431.


 To generate a diff of this commit:
 cvs rdiff -r1.8 -r1.9 pkgsrc/mk/platform/Linux.mk

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

State-Changed-From-To: open->closed
State-Changed-By: reed@netbsd.org
State-Changed-When: Thu, 17 Feb 2005 20:04:38 +0000
State-Changed-Why:
Added check in mk/platform/Linux.mk for /bin/id.
Thank you for testing and thank you for the PR.


From: "Jeremy C. Reed" <reed@NetBSD.org>
To: almeyers@consult-meyers.com
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29430
Date: Fri, 18 Feb 2005 07:49:18 -0800 (PST)

 On Fri, 18 Feb 2005, A L Meyers wrote:

 > Something apparently went wrong with mk/platform/Linux.mk
 >
 > Here is the error output, same from two tested builds:
 >
 > [root@localhost tcp_wrappers]# [root@localhost tcp_wrappers]# bmake
 > update clean
 > bmake: "/usr/pkgsrc/security/tcp_wrappers/../../mk/platform/Linux.mk"
 > line 1: Need an operator
 > bmake: "/usr/pkgsrc/security/tcp_wrappers/../../mk/platform/Linux.mk"
 > line 3: Makefile appears to contain unresolved cvs/rcs/??? merge conflicts

 Manually edit your mk/platform/Linux.mk and clean up the broken lines.
 See in that file some lines with

 <<<<<<<
 remove the lines here
 =======

 >>>>>>>

 Those are from a cvs update conflict.

 Either clean it up manually (and also remove the <<<<<<<, ======= and
 >>>>>>>).

 Or remove the file and cvs update the file again.

     Jeremy C. Reed
                         ``Of course it runs NetBSD.''
                             http://www.NetBSD.org/

From: A L Meyers <me@privacy.net>
To: "Jeremy C. Reed" <reed@NetBSD.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29430
Date: Fri, 18 Feb 2005 17:26:45 +0100

 Jeremy C. Reed wrote:

 >On Fri, 18 Feb 2005, A L Meyers wrote:
 >
 >  
 >
 >>Something apparently went wrong with mk/platform/Linux.mk
 >>
 >>Here is the error output, same from two tested builds:
 >>
 >>[root@localhost tcp_wrappers]# [root@localhost tcp_wrappers]# bmake
 >>update clean
 >>bmake: "/usr/pkgsrc/security/tcp_wrappers/../../mk/platform/Linux.mk"
 >>line 1: Need an operator
 >>bmake: "/usr/pkgsrc/security/tcp_wrappers/../../mk/platform/Linux.mk"
 >>line 3: Makefile appears to contain unresolved cvs/rcs/??? merge conflicts
 >>    
 >>
 >
 >Manually edit your mk/platform/Linux.mk and clean up the broken lines.
 >See in that file some lines with
 >
 ><<<<<<<
 >remove the lines here
 >=======
 >
 >  
 >
 >
 >Those are from a cvs update conflict.
 >
 >Either clean it up manually (and also remove the <<<<<<<, ======= and
 >  
 >
 >>>>>>>>).
 >>>>>>>>                
 >>>>>>>>
 >
 >Or remove the file and cvs update the file again.
 >
 >    Jeremy C. Reed
 >                        ``Of course it runs NetBSD.''
 >                            http://www.NetBSD.org/
 >
 >
 >  
 >
 Hi Jeremy,

 Thanks, managed to get Linux.mk fixed myself but mk/bsd.prefs.mk 
 apparently still contains errors.
 No package at all attempts to build/

 Best regards,

 Lux

 Here is the latest output (after cvs update -dP):

 # [root@localhost quake]# bmake update clean
 bmake: "../../mk/../../mk/bsd.prefs.mk" line 342: Malformed conditional 
 (empty(_OPSYS_HAS_INET6:M[nN][oO]) && !defined(USE_SOCKS))
 sh: -c: line 2: syntax error: unexpected end of file
 bmake: "../../mk/../../mk/bsd.prefs.mk" line 507: warning: "cd 
 /usr/pkgsrc/games/quake/../.. && " returned non-zero status
 sh: -c: line 2: syntax error: unexpected end of file
 bmake: "../../mk/../../mk/bsd.prefs.mk" line 527: warning: "cd 
 /usr/pkgsrc/games/quake && " returned non-zero status
 bmake: "../../mk/../../mk/bsd.prefs.mk" line 561: Could not find 
 /mk/wrapper/wrapper-defs.mk
 sh: line 1: /pkg_info: No such file or directory
 sh: line 1: /pkg_info: No such file or directory
 sh: line 1: /pkg_admin: No such file or directory
 sh: -c: line 2: syntax error: unexpected end of file
 bmake: "../../mk/../../mk/reduce-depends.mk" line 2: warning: "cd 
 ../../games/quakedata && " returned non-zero status
 sh: -c: line 2: syntax error: unexpected end of file
 bmake: "../../mk/../../mk/reduce-depends.mk" line 2: warning: "cd 
 ../../graphics/MesaLib && " returned non-zero status
 sh: -c: line 2: syntax error: unexpected end of file
 bmake: "../../mk/../../mk/reduce-depends.mk" line 2: warning: "cd 
 ../../graphics/glu && " returned non-zero status
 bmake: "../../mk/../../mk/bsd.pkg.mk" line 2438: Malformed conditional 
 (${_DO_SHLIB_CHECKS} == "yes")
 bmake: "../../mk/../../mk/bsd.pkg.mk" line 2438: Need an operator
 bmake: "../../mk/../../mk/bsd.pkg.mk" line 2443: if-less endif
 bmake: "../../mk/../../mk/bsd.pkg.mk" line 2443: Need an operator
 bmake: "../../mk/../../mk/bsd.pkg.mk" line 2766: Malformed conditional 
 (${_OPSYS_SHLIB_TYPE} == "ELF/a.out")
 bmake: Fatal errors encountered -- cannot continue

 bmake: stopped in /usr/pkgsrc/games/quake

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: almeyers@consult-meyers.com
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29430
Date: Fri, 18 Feb 2005 08:49:24 -0800 (PST)

 On Fri, 18 Feb 2005, A L Meyers wrote:

 >  bmake: "../../mk/../../mk/bsd.prefs.mk" line 342: Malformed conditional
 >  (empty(_OPSYS_HAS_INET6:M[nN][oO]) && !defined(USE_SOCKS))

 Maybe remove your mk/bsd.prefs.mk and update it again.

 Or update all your mk/ directory. If you use cvs update, does it show "M"
 or "C" for modifications or conflicts?

 You may want to post to tech-pkg about this and not continue to use GNATS,
 since this is not related to your PR 29430.

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/

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