Subject: Re: gmake fails to install on OpenBSD 3.7
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 06/17/2005 09:08:45
On Thu, 16 Jun 2005 wrote:

> During package installation of gmake I get:
> /usr/bin/chgrp wheel /usr/pkg/bin/gmake
> bmake: Exec of `/usr/bin/chgrp' failed (No such file or directory)
> *** Error code 1
> Stop.
> bmake: stopped in /usr/pkgsrc/devel/gmake
> *** Error code 1
> The culprit is that on OpenBSD 3.7, chgrp is located at /bin/chgrp
> I'm not sure if this change is specific to OpenBSD 3.7 or for OpenBSD in
> general, but it will require some minor changing to get it working
> smoothly.

The OpenBSD change happened five years ago. I think most OpenBSD users
already have a compatibility symlinks created for /usr/sbin/chown and
/usr/bin/chgrp. (See afterinstall target in your OpenBSD

Or use the following patch for pkgsrc:

Index: mk/tools/
RCS file: /cvsroot/pkgsrc/mk/tools/,v
retrieving revision 1.14
diff -b -u -r1.14
--- mk/tools/	3 Jun 2005 22:54:44 -0000	1.14
+++ mk/tools/	17 Jun 2005 15:59:55 -0000
@@ -6,9 +6,9 @@
 TOOLS_PLATFORM.awk?=		/usr/bin/awk
 TOOLS_PLATFORM.basename?=	/usr/bin/basename		/bin/cat
-TOOLS_PLATFORM.chgrp?=		/usr/bin/chgrp
+TOOLS_PLATFORM.chgrp?=		/bin/chgrp
 TOOLS_PLATFORM.chmod?=		/bin/chmod
-TOOLS_PLATFORM.chown?=		/usr/sbin/chown
+TOOLS_PLATFORM.chown?=		/sbin/chown
 TOOLS_PLATFORM.cmp?=		/usr/bin/cmp
 TOOLS_PLATFORM.cp?=		/bin/cp
 TOOLS_PLATFORM.cut?=		/usr/bin/cut

I will commit above after freeze or when okayed.

> As a quick fix, "ln -s /bin/chgrp /usr/bin" lets me install and continue
> with my bugzilla install (it will happen on OpenBSD with pkgsrc,
> eventually).

I wonder why your system didn't have that already done.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links