Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2004 04:14:46 +0900 (JST)
From:      TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/68057: japanese/zangband installs files with invalid owners
Message-ID:  <20040617191446.0FA84F197F@prime.quad.dyndns.org>
Resent-Message-ID: <200406171920.i5HJKJhY049164@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68057
>Category:       ports
>Synopsis:       japanese/zangband installs files with invalid owners
>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:   Thu Jun 17 19:20:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     TAOKA Fumiyoshi
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
>Description:
To untar an archive with root priviledge results to preserve
file owners in the archive.
Japanese/zangband untars a supplemental distfiles by itself
and installs files with invalid owners on the host.

>How-To-Repeat:

ls -lR /usr/local/lib/jzangband
and you will see the files which owners are 500:500.

>Fix:

--- Makefile.orig       Fri Jun 18 03:55:06 2004
+++ Makefile    Fri Jun 18 03:55:18 2004
@@ -46,7 +46,7 @@
 JA_DISTFILE=   z${E_VERSION:S/.//g}j104src.tgz

 pre-patch:
-       (cd ${WRKSRC} ; ${TAR} zxf ${DISTDIR}/${DIST_SUBDIR}/${JA_DISTFILE})
+       (cd ${WRKSRC} ; ${TAR} zxf ${DISTDIR}/${DIST_SUBDIR}/${JA_DISTFILE} --no-same-owner)
        (cd ${WRKSRC}/src ; ${PATCH} -p1 -l -s < ../zj${E_VERSION:S/.//g}.patch ; ${PATCH} -p1 -l -s < ${FILESDIR}/makefile-adjust.patch)

 pre-build:
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040617191446.0FA84F197F>