Date: Tue, 27 Jan 2004 18:49:46 -0500 (EST) From: David Magda <dmagda+prbugs@ee.ryerson.ca> To: FreeBSD-gnats-submit@FreeBSD.org Cc: cracauer@cons.org Subject: ports/62011: lang/cmucl permissions incorrect after install by regular user Message-ID: <200401272349.i0RNnkTJ003353@number6.magda.ca> Resent-Message-ID: <200401272350.i0RNoMh1048341@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 62011 >Category: ports >Synopsis: lang/cmucl permissions incorrect after install by regular user >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: Tue Jan 27 15:50:21 PST 2004 >Closed-Date: >Last-Modified: >Originator: David Magda >Release: FreeBSD 4.9-RC i386 >Organization: We're organized? >Environment: System: FreeBSD number6.magda.ca 4.9-RC FreeBSD 4.9-RC #0: Sat Oct 4 10:05:26 EDT 2003 dave@number6.magda.ca:/usr/obj/usr/src/sys/MYKERNELE i386 >Description: If you install the lang/cmucl port as a regular (non-root) user, the final permissions on many files are incorrect. The distfile is un-tar(1)ed by the regular user, inheriting his permissions. The 'install' target however uses tar(1) to copy many files to the final destination in ${PREFIX}. The regular user permissions are also transfered to the destination. >How-To-Repeat: As a regular user: . cd /usr/ports/lang/cmucl . make install <you will be asked for root password; enter it> . pkg_info -L cmucl-18e | grep local | xargs ls -l (Assuming the files are put into /usr/local; hence the local.) After the last command you'll see files both owned by root, and by the regular user who ran the 'make install'. >Fix: Instead of using tar(1) to copy the files use cpio(1). An example can be seen in www/mozilla/Makefile: do-install: ${MKDIR} ${PREFIX}/lib/${MOZILLA} ${CHMOD} 755 ${PREFIX}/lib/${MOZILLA} cd ${WRKSRC}/dist/bin && ${FIND} . | \ ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/${MOZILLA} cpio(1)'s "-R" option specifies the owner:group that will be used at the destination. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401272349.i0RNnkTJ003353>