Bug 68057 - japanese/zangband installs files with invalid owners
Summary: japanese/zangband installs files with invalid owners
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-17 20:20 UTC by fmysh
Modified: 2004-06-17 20:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fmysh 2004-06-17 20:20:19 UTC
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.

Fix: 

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:--EChS0hOOmiAlWdZ4c1tDPHk7V1kEKLqLw5GLmUZb1RpXirte
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
How-To-Repeat: 
ls -lR /usr/local/lib/jzangband
and you will see the files which owners are 500:500.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2004-06-17 20:26:38 UTC
State Changed
From-To: open->closed

Committed, thanks!