Bug 75197 - editors/nxml-emacs21 does not su to root on a 'make install'
Summary: editors/nxml-emacs21 does not su to root on a 'make install'
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: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-17 18:50 UTC by David Magda
Modified: 2004-12-19 17:11 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Magda 2004-12-17 18:50:25 UTC
I build ports (and run 'make install') as a regular user in the
wheel group. When I tried to do that with the 'nxml' port the build
worked fine, but the installation died.

Here's the error messsage:

myhost:/usr/ports/editors/nxml-emacs21$ make install
===>  Installing for nxml-mode-20041004
===>   nxml-mode-20041004 depends on file: /usr/local/bin/emacs-21.3 - found
mkdir: /usr/local/share/emacs/21.3/site-lisp/nxml: Permission denied
*** Error code 1

Stop in /usr/ports/editors/nxml-emacs21.
myhost:/usr/ports/editors/nxml-emacs21$


Doing an 'su' and then running 'make install' works fine.

Fix: 

I don't know enough about the Ports system's system to offer one.
How-To-Repeat: 
As a regular user in the 'wheel' group:

$ cd /usr/ports/editors/nxml-emacs21
$ make build
  [ works ]
$ make install
  [ dies ]
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2004-12-18 19:17:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->hrs

Assign to maintainer. 

Fix is to move ${MKDIR} from pre-install to pre-su-install.
Comment 2 Hiroki Sato freebsd_committer freebsd_triage 2004-12-19 17:06:15 UTC
State Changed
From-To: open->closed

A fix has been committed.  Please try it and let me know again 
if it does not work.  Thanks for the report.