Date: Mon, 31 May 2004 06:58:03 +0900 (JST) From: Taoka Fumiyoshi <fmysh@iijmio-mail.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/67397: audio/timidity installs files with invalid uid and gid. Message-ID: <20040530215803.844F9F2641@prime.quad.dyndns.org> Resent-Message-ID: <200405302200.i4UM0Tju072757@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 67397 >Category: ports >Synopsis: audio/timidity installs files with invalid uid and gid. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 30 15:00:29 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Taoka Fumiyoshi >Release: >Organization: >Environment: >Description: audio/timidity installs some files with invalid uid and gid. This is caused by installing the files directly from an archive. Tar with a root priviledge preserves owners and permissions by default. >How-To-Repeat: # make install # ls -lR /usr/local/lib/timidity total 32 drwxr-xr-x 5 508 100 4608 Sep 14 1997 goemon -rw-r--r-- 1 508 100 6478 May 31 06:54 goemon.cfg -rw-r--r-- 1 root wheel 2770 May 31 06:54 gravis.cfg -rw-r--r-- 1 root wheel 1826 May 31 06:54 gsdrum.cfg -rw-r--r-- 1 root wheel 517 May 31 06:54 midia.cfg -rw-r--r-- 1 root wheel 2316 May 31 06:54 mt32.cfg -rw-r--r-- 1 root wheel 2558 May 31 06:54 timidity.cfg -rw-r--r-- 1 root wheel 1132 May 31 06:54 wowpats.cfg /usr/local/lib/timidity/goemon: total 10712 -rw-r--r-- 1 508 100 20707 May 25 1996 acbass.pat -rw-r--r-- 1 508 100 19623 May 25 1996 accordn.pat -rw-r--r-- 1 508 100 119705 May 25 1996 acguitar2.pat (SNIP) >Fix: Add --no-same-owner and --no-same-permissions options. --- Makefile.orig Mon May 31 06:30:31 2004 +++ Makefile Mon May 31 06:31:01 2004 @@ -31,7 +31,7 @@ post-install: cd ${PREFIX}/lib/timidity && \ - ${TAR} zxf ${DISTDIR}/${TIINS} && \ + ${TAR} --no-same-owner --no-same-permissions -zxf ${DISTDIR}/${TIINS} && \ ${CP} goemon.cfg goemon.cfg.bak && \ ${SED} 's=dir goemon=dir ${PREFIX}/lib/timidity/goemon=' \ < goemon.cfg.bak > goemon.cfg && \ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040530215803.844F9F2641>