NetBSD Problem Report #4767

Received: (qmail 19551 invoked from network); 3 Jan 1998 22:27:31 -0000
Message-Id: <199801032207.QAA11609@grind.warthog.com>
Date: Sat, 3 Jan 1998 16:07:23 -0600 (CST)
From: Rob Windsor <windsor@warthog.com>
Reply-To: windsor@warthog.com
To: gnats-bugs@gnats.netbsd.org
Subject: Imake-generated Makefiles have broken "make install" for non-root users
X-Send-Pr-Version: 3.95

>Number:         4767
>Category:       xsrc
>Synopsis:       "make install" with imake-generated Makefiles is broken for non-root users
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    misc-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 03 14:35:01 +0000 1998
>Closed-Date:    Thu Dec 05 16:46:46 +0000 2002
>Last-Modified:  Thu Dec 05 16:46:46 +0000 2002
>Originator:     Rob Windsor
>Release:        1.3
>Organization:
>Environment:

System: NetBSD grind 1.3 NetBSD 1.3 (GRIND) #12: Tue Dec 30 19:25:38 CST 1997 windsor@grind:/usr/src/sys/arch/sparc/compile/GRIND sparc

	xsrc dated 971230

>Description:
        NetBSD.cf files mandates that install(1) use "-o bin -g bin",
        non-root users have a difficult life with installing X-related
        programs.

        This problem is not directly related to the pkg system, but could
        be.

>How-To-Repeat:
        Without using root privvys, grab an X package that uses imake.
        xmkmf(1), build, and try "make DESTDIR=/tmp install".

>Fix:
*** xsrc/xc/config/cf/NetBSD.cf.orig    Sat Jan  3 15:46:35 1998
--- xsrc/xc/config/cf/NetBSD.cf Sat Jan  3 15:48:41 1998
***************
*** 286,298 ****
  #define DefaultUserPath               /bin:/usr/bin:/usr/local/bin:$(BINDIR)
  #define DefaultSystemPath     /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)

! #define InstPgmFlags          -s -m 0555 -o bin -g bin
! #define InstBinFlags          -m 0555 -o bin -g bin
  #define InstUidFlags          -m 4511 -o root -g bin
! #define InstLibFlags          -m 0444 -o bin -g bin
! #define InstIncFlags          -m 0444 -o bin -g bin
! #define InstManFlags          -m 0444 -o bin -g bin
! #define InstDatFlags          -m 0444 -o bin -g bin
  #define InstKmemFlags         -m 2555 -o bin -g kmem

  #ifdef  InstallCmd
--- 286,298 ----
  #define DefaultUserPath               /bin:/usr/bin:/usr/local/bin:$(BINDIR)
  #define DefaultSystemPath     /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)

! #define InstPgmFlags          -s -m 0755
! #define InstBinFlags          -m 0755
  #define InstUidFlags          -m 4511 -o root -g bin
! #define InstLibFlags          -m 0644
! #define InstIncFlags          -m 0644
! #define InstManFlags          -m 0644
! #define InstDatFlags          -m 0644
  #define InstKmemFlags         -m 2555 -o bin -g kmem

  #ifdef  InstallCmd

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jdolecek 
State-Changed-When: Thu Dec 5 08:46:02 PST 2002 
State-Changed-Why:  
Apparently this is fixed - 4.2.1 NetBSD.cf doesn't define Inst*, 
and the default supplied in Imake.tmpl doesn't use -o bin -g bin. 
Thanks for report. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.