-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdftk cask messes up permissions on /usr/local #7707
Comments
We’ll have to look into it, but first, what is the result if you install the package manually? We’re not doing anything special with this cask to warrant that change, so it might be pdftk’s installer doing the change, and we need to rule that out first. |
Thanks for your prompt reply. I can confirm that using the pdftk installer downloaded from the following Perhaps the cask could include some instructions to repair the permissions On 1 December 2014 at 15:15, Vítor Galvão [email protected] wrote:
Andrew Burrow |
Thanks for the report. Even though this is an upstream bug, we should address it. My problem with doing a Although, it might be quite a pain to try to capture the existing ownership for multiple files and restore the state. We don't have any equipment for that. A better answer might be to implement a In the meantime, I'd be inclined to remove the Cask. We instituted the homebrew-boneyard repo to make deletion less permanent. Any interested person could continue to work on the Cask over there. |
Most definitely. |
Weird, I thought I had replied as well, when removing the label. I agree with you both. @albcorp Would you care to contact the developer about the issue? |
The pdftk installer appears to explicitly set permissions on its own files Vítor, I will contact the developer/packager of pdftk, and explain that it On 2 December 2014 at 04:45, Vítor Galvão [email protected] wrote:
Andrew Burrow |
pending solution for mangling permissions on /usr/local closes Homebrew#7707
Thanks for taking the time to contact the vendor, it is much appreciated. In the interim, we have moved the cask to caskroom/boneyard. @rolandwalker, should we keep the issue open as a reminder? |
Good idea. |
@albcorp did you ever get a response from the PDFtk developer? And perhaps not the right place to discuss it, but in the absence of the brew-cask option did you find an install process that avoided these permissions issues altogether? I had a bunch of user permissions issues on a machine machine recently that included the 'wheel', and I'm now thinking this may have been the culprit. |
@jvenator Personally I installed pdftk by hand, by doing roughly the following:
Here is what I now get when I run
There's some work involved, but I think it's the easiest solution given the current problems. |
@michelschinz Your solution looks good, I would love to see a homebrew working like this as I heavily rely on pdftk in some of my CI routines. |
@evils Working on it. |
Having never gone through process of manually installing and breaking apart a |
@jvenator Fenced code blocks could help keep the gist more organised, as opposed to having a bunch of commands on the same line, some with Commenting here because Github does not warn on Gist comments. |
@vitorgalvao thanks, fixed. The parenthesis were to maintain the current directory prior to the command, which I thought was helpful initially (found in this cpio question). However, it ended up not mattering the way everything was written. As far as breaking out the larger |
I actually meant that instead of doing
or
or even
you could do
which is clearer and still allows users to copy and paste all the commands without a hitch. |
@jvenator Is this becoming a brew cask formula in the future? |
@vitorgalvao thanks for the feedback. I was trying to offer both the ease of copy/paste of the grouped commands along with the explicitness of breaking them out individually. @evils unfortunately not by me. I didn't even know what brew cask was until I needed to install PDFtk :-/ For my own practice I might make it a local script, but that's the extent of my abilities/plans at present. |
@albcorp Any luck contacting the developer? |
+1 for finding a permanent solution to this. |
@michelschinz's technique above of unpacking the official installer and copying the files into the cellar manually worked for me. How unpack and pack pkg file? helped me figure out how to unpack the cpio.gz archive of the pdftk package. I got pdftk v.2.02, so moved the relevant files to Then Just what worked for me in case anyone else wants to try this route. |
Closing in favour of #11351, where the developer is being contacted. |
i just extracted the contents of the file and moved to where i wanted. i almost never let a pkg install. |
After running
the group ownership of '/usr/local' changes from 'admin' to 'wheel', and the group write bit is removed.
This is a very serious bug, because it causes the next run of
brew update
to fail in weird and wonderful ways. The workaround is to recursively set the ownership and group write permission on '/usr/local' and run the brew cleanup commands suggested by brew doctorAfter that Homebrew can be safely updated
regards
Andrew
The text was updated successfully, but these errors were encountered: