From g.w.k@web.de  Fri Jul 11 04:47:27 2003
Return-Path: <g.w.k@web.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5053E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jul 2003 04:47:27 -0700 (PDT)
Received: from smtp.web.de (smtp03.web.de [217.72.192.158])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EC16643FBD
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jul 2003 04:47:25 -0700 (PDT)
	(envelope-from g.w.k@web.de)
Received: from [213.148.149.130] (helo=hunter.muc.mscsoftware.com)
	by smtp.web.de with asmtp (TLSv1:RC4-MD5:128)
	(WEB.DE 4.98 #232)
	id 19awN3-00070y-00
	for FreeBSD-gnats-submit@freebsd.org; Fri, 11 Jul 2003 13:47:25 +0200
Received: from hunter.muc.mscsoftware.com ([172.17.22.32]) by
	eumucln02.mscsoftware.com (Lotus Domino Release 6.0.1CF1) with ESMTP id
	2003071113354878-571 ; Fri, 11 Jul 2003 13:35:48 +0200 
Received: from hunter.muc.mscsoftware.com (localhost.muc.mscsoftware.com
	[127.0.0.1]) by hunter.muc.mscsoftware.com (8.12.9/8.12.9) with ESMTP id
	h6BBjiWU003410; Fri, 11 Jul 2003 13:45:44 +0200 (CEST) (envelope-from
	gwk@hunter.muc.eu.mscsoftware.com)
Received: (from gwk@localhost) by hunter.muc.mscsoftware.com
	(8.12.9/8.12.9/Submit) id h6BBjhWm003407; Fri, 11 Jul 2003 13:45:43 +0200
	(CEST)
Message-Id: <200307111145.h6BBjhWm003407@hunter.muc.mscsoftware.com>
Date: 11 Jul 2003 13:47:24 +0200
From: "Georg-W. Koltermann" <gwk@hunter.muc.eu.mscsoftware.com>
Sender: g.w.k@web.de
Reply-To: "Georg-W. Koltermann" <gwk@hunter.muc.eu.mscsoftware.com>
To: gwk@hunter.muc.eu.mscsoftware.com
Cc: Georg.Koltermann@mscsoftware.com
Subject: [PATCH] add -u option to install(1) for SysV compatibility
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54365
>Category:       bin
>Synopsis:       [patch] add -u option to install(1) for SysV compatibility
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 11 04:50:12 PDT 2003
>Closed-Date:    Sat May 01 21:25:19 UTC 2010
>Last-Modified:  Sat May 01 21:25:19 UTC 2010
>Originator:     Georg-W. Koltermann
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
MSC
>Environment:
System: FreeBSD hunter.muc.mscsoftware.com 5.1-RELEASE FreeBSD 5.1-RELEASE #1: Fri Jul 4 12:25:16 CEST 2003 root@hunter.muc.mscsoftware.com:/usr/obj/usr/src/sys/HUNTER i386


	
>Description:
I have some Makefiles originally destined for a System V system which
use "install -u user" to set the owner of the files during install.
Instead of hacking the Makefiles again and again after every CVS update,
I prefer to let install(1) recognize the -u option as synonymous to -o.

See fix section for my patch.

>How-To-Repeat:
	
>Fix:

--- usr.bin/xinstall/xinstall.c.old	Mon Jun 23 14:27:31 2003
+++ usr.bin/xinstall/xinstall.c	Mon Jun 23 14:29:13 2003
@@ -112,7 +112,7 @@
 
 	iflags = 0;
 	group = owner = NULL;
-	while ((ch = getopt(argc, argv, "B:bCcdf:g:Mm:o:pSsv")) != -1)
+	while ((ch = getopt(argc, argv, "B:bCcdf:g:Mm:o:u:pSsv")) != -1)
 		switch((char)ch) {
 		case 'B':
 			suffix = optarg;
@@ -149,6 +149,7 @@
 			free(set);
 			break;
 		case 'o':
+		case 'u':
 			owner = optarg;
 			break;
 		case 'p':
--- usr.bin/xinstall/install.1.old	Mon Jun 23 14:34:38 2003
+++ usr.bin/xinstall/install.1	Mon Jun 23 14:35:28 2003
@@ -164,6 +164,12 @@
 showing files as they are installed or backed up.
 .El
 .Pp
+The
+.Fl u
+option is treated as synonymous with
+.Fl o
+for compatibility with some System V versions.
+.Pp
 By default,
 .Nm
 preserves all file flags, with the exception of the


>Release-Note:
>Audit-Trail:

From: "Georg-W. Koltermann" <g.w.k@web.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/54365: [PATCH] add -u option to install(1) for SysV
	compatibility
Date: 14 Jul 2003 14:45:20 +0200

 I saw my posting contains the wrong sender address.  It should have been
 <g.w.k@web.de> please correct. My work email at
 Georg.Koltermann@mscsoftware.com refuses to send email to freebsd.org,
 who knows why, so please use my private email above.
 

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, g.w.k@web.de
Cc:  
Subject: Re: bin/54365: [patch] add -u option to install(1) for SysV
	compatibility
Date: Sun, 5 Apr 2009 18:47:20 +0200

 Exchanging BSD and SysV install tends not to work at all (because SysV
 install tries to look for a destination "automatically"), so I don't see
 much point in this. Consider fixing your Makefile to use a BSD-style
 install (if there is no proper one, use install-sh).
 
 -- 
 Jilles Tjoelker
State-Changed-From-To: open->closed 
State-Changed-By: jilles 
State-Changed-When: Sat May 1 21:25:18 UTC 2010 
State-Changed-Why:  
This does not seem useful enough, sorry. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54365 
>Unformatted:
