[MacPorts] #16282: emacs 22.2: bad use of chown in destroot stage

MacPorts noreply at macports.org
Mon Aug 11 05:05:23 PDT 2008


#16282: emacs 22.2: bad use of chown in destroot stage
---------------------------------+------------------------------------------
 Reporter:  vinc17 at macports.org  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:  Port Bugs                            
Component:  ports                |     Version:  1.6.0                                
 Keywords:                       |  
---------------------------------+------------------------------------------
 I get the following errors:
 {{{
 --->  Staging emacs into destroot
 [...]
 for dir in
 /opt/local/var/macports/build/_Users_vinc17_software_dports_editors_emacs/work/emacs-22.2/etc
 /opt/local/var/macports/build/_Users_vinc17_software_dports_editors_emacs/work/emacs-22.2/lisp
 ; do \
   dest=$1 ; shift ; \
   [ -d ${dir} ] \
   && [ `(cd ${dir} && /bin/pwd)` != `(cd ${dest} && /bin/pwd)` ] \
   && (echo "Copying ${dir} to ${dest}..." ; \
       (cd ${dir}; tar -chf - . ) \
         | (cd ${dest}; umask 022; \
                    tar -xvf - && cat > /dev/null) || exit 1; \
       find ${dest} -exec chown ${LOGNAME:-$USERNAME} {} ';' ;\
       for subdir in `find ${dest} -type d ! -name RCS ! -name CVS -print`
 ; do \
         chmod a+rx ${subdir} ; \
         rm -rf ${subdir}/RCS ; \
         rm -rf ${subdir}/CVS ; \
         rm -f  ${subdir}/.cvsignore ; \
         rm -f  ${subdir}/.arch-inventory ; \
         rm -f  ${subdir}/\#* ; \
         rm -f  ${subdir}/.\#* ; \
         rm -f  ${subdir}/*~ ; \
         rm -f  ${subdir}/*.orig ; \
         rm -f  ${subdir}/[mM]akefile* ; \
         rm -f  ${subdir}/ChangeLog* ; \
         rm -f  ${subdir}/dired.todo ; \
       done) ; \
 done
 Copying
 /opt/local/var/macports/build/_Users_vinc17_software_dports_editors_emacs/work/emacs-22.2/etc
 to
 /opt/local/var/macports/build/_Users_vinc17_software_dports_editors_emacs/work/destroot/opt/local/share/emacs/22.2/etc...
 ./
 ./BABYL
 ./calccard.ps
 ./calccard.tex
 [...]
 ./yow.lines
 usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
        chown [-fhv] [-R [-H | -L | -P]] :group file ...
 usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
        chown [-fhv] [-R [-H | -L | -P]] :group file ...
 [...]
 }}}
 Here "sudo env | grep NAME" gives:
 {{{
 LOGNAME=root
 USERNAME=vinc17
 }}}
 I suppose that the problem is that MacPorts undefines both LOGNAME and
 USERNAME.

-- 
Ticket URL: <http://trac.macports.org/ticket/16282>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list