ports/68057: japanese/zangband installs files with invalid owners

TAOKA Fumiyoshi fmysh at iijmio-mail.jp
Thu Jun 17 19:22:29 UTC 2004


>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:



More information about the freebsd-ports-bugs mailing list