Subject: misc/4767: Imake-generated Makefiles have broken "make install" for non-root users
To: None <gnats-bugs@gnats.netbsd.org>
From: Rob Windsor <windsor@warthog.com>
List: netbsd-bugs
Date: 01/03/1998 16:07:23
>Number: 4767
>Category: misc
>Synopsis: "make install" with imake-generated Makefiles is broken for non-root users
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Jan 3 14:35:01 1998
>Last-Modified:
>Originator: Rob Windsor
>Organization:
>Release: NetBSD 1.3, xsrc dated 971230
>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
>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
>Audit-Trail:
>Unformatted: