Subject: pkg/30005: pkgsrc/net/tcpslice install user & group bin:bin nonexistent on darwin
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Darrin B.Jewell <dbj@netbsd.org>
List: pkgsrc-bugs
Date: 04/18/2005 15:39:00
>Number:         30005
>Category:       pkg
>Synopsis:       pkgsrc/net/tcpslice install user & group bin:bin nonexistent on darwin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 18 15:39:00 +0000 2005
>Originator:     Darrin B. Jewell
>Release:        pkgsrc-2005Q1
>Organization:
>Environment:

System: Darwin Quiteria 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC  Power Macintosh powerpc
Architecture: powerpc
Machine: Power Macintosh

>Description:

  Installing the net/tcpslice on macos 10.3.8 (Darwin 7.8.0) fails because
  there is no such group or user named "bin"

>How-To-Repeat:
  Attempt to install net/tcpslice on darwin

>Fix:
  use pkgsrc install defaults for user/group instead

This diff to the Makefile.in patchfile should fix the problem:

Index: patch-aa
===================================================================
RCS file: /u3/n/rsync/cvsroot/pkgsrc/net/tcpslice/patches/patch-aa,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 patch-aa
--- patch-aa	26 Sep 2001 05:49:31 -0000	1.1.1.1
+++ patch-aa	14 Apr 2005 04:30:36 -0000
@@ -12,15 +12,18 @@
  # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
  # Also, gcc does not remove the .o before forking 'as', which can be a
  # problem if you don't own the file but can write to the directory.
-@@ -97,9 +100,11 @@
+@@ -97,10 +100,12 @@
  	sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
  
  install: force
+-	$(INSTALL) -m 555 -o bin -g bin tcpslice $(DESTDIR)$(BINDEST)
 +	-$(INSTALL_PROGRAM_DIR) $(DESTDIR)$(BINDEST)
- 	$(INSTALL) -m 555 -o bin -g bin tcpslice $(DESTDIR)$(BINDEST)
++	$(INSTALL) -m 555 tcpslice $(DESTDIR)$(BINDEST)
  
  install-man: force
+-	$(INSTALL) -m 444 -o bin -g bin $(srcdir)/$(PROG).1 \
 +	$(INSTALL_MAN_DIR) $(DESTDIR)$(MANDEST)/man1
- 	$(INSTALL) -m 444 -o bin -g bin $(srcdir)/$(PROG).1 \
++	$(INSTALL) -m 444 $(srcdir)/$(PROG).1 \
  	    $(DESTDIR)$(MANDEST)/man1
  
+ lint: $(GENSRC) force