[MacPorts] #18131: paranoid umask breaks the installed symlinks
#18131: paranoid umask breaks the installed symlinks -------------------------------------+-------------------------------------- Reporter: akim.demaille@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: -------------------------------------+-------------------------------------- Hi all, It is the second time (second machine) that my texlive_base installation fails: I can't run pdflatex, but I can run pdflatex --version!!! Since it was the second time, I decided to track down the issue. It turns out that when launched to actually compile something, pdftex runs readlink(2), probably to decide what its behavior should be depending on its name. This is most probably *after* options such as --version are processed. Here, our sysadm has installed paranoid rights: our umask is 066, and as a result the symbolic links created are not readable. This is not nice as it results in {{{ls -l /opt/local/bin}}} complaining that it can read the links. But it is not a real problem usually. Here, since pdflatex (a symlink to pdftex) wants to readlink, it fails. It is easy to reproduce harmlessly: {{{ cd /tmp sudo su umask 066 ln -s /opt/local/bin/pdftex pdflatex exit ls -l pdflatex ./pdflatex --version ./pdflatex }}} It turns out that I found no way to chmod the symlink itself, so I had to recreate them all. Using zsh that's easy: {{{ sudo su umask 022 cd /opt/local/bin for i in *(@) do ln -sf $(readlink $i) $i done }}} I suggest that texlive_base make sure the umask is correct. As a matter of fact, I think port(1) should do it, instead of pushing this down to all the ports. Cheers. -- Ticket URL: <http://trac.macports.org/ticket/18131> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18131: paranoid umask breaks the installed symlinks -------------------------------------+-------------------------------------- Reporter: akim.demaille@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.7.0 Keywords: umask | Port: -------------------------------------+-------------------------------------- Changes (by blb@…): * keywords: => umask * component: ports => base * milestone: Port Bugs => MacPorts Future Comment: The [browser:trunk/base/src/port1.0/portdestroot.tcl#L95 destroot phase does set a umask] but from what you're saying it sounds like maybe the install and/or activate phases are not keeping those settings around? Also, agreed that this is a base issue and not something which should just be fixed in one port. -- Ticket URL: <http://trac.macports.org/ticket/18131#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18131: paranoid umask breaks the installed symlinks -------------------------------------+-------------------------------------- Reporter: akim.demaille@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.8.0 Keywords: umask | Port: -------------------------------------+-------------------------------------- Changes (by jochen@…): * cc: jochen (added) * version: 1.7.0 => 1.8.0 Comment: Apparently this issue still remains with MacPorts 1.8.0 -- are there any plans/ideas to fix it? Actually, above zsh-code to manually fix the symlinks does not work for me... On the other hand, I've never used zsh and it might just be me, but it runs without error, just no link is changed... -- Ticket URL: <http://trac.macports.org/ticket/18131#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18131: paranoid umask breaks the installed symlinks -------------------------------------+-------------------------------------- Reporter: akim.demaille@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.8.0 Keywords: umask | Port: -------------------------------------+-------------------------------------- Comment(by kuperman@…): It is also still broken in 1.8.1. I also had issues with applications installed into /Applications/MacPorts where my umask of 077 left everything unusable without a recursive chmod. -- Ticket URL: <http://trac.macports.org/ticket/18131#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18131: paranoid umask breaks the installed symlinks -------------------------------------+-------------------------------------- Reporter: akim.demaille@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.8.0 Keywords: umask | Port: -------------------------------------+-------------------------------------- Changes (by jmr@…): * cc: jochen (removed) * cc: jochen@…, jmr@… (added) Comment: Is this the same issue as #21389, and therefore fixed as well? -- Ticket URL: <http://trac.macports.org/ticket/18131#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18131: paranoid umask breaks the installed symlinks --------------------------------------+------------------------------------- Reporter: akim.demaille@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.8.0 Resolution: duplicate | Keywords: umask Port: | --------------------------------------+------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => duplicate * milestone: MacPorts Future => Comment: Assuming dupe of #21389. -- Ticket URL: <http://trac.macports.org/ticket/18131#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts