{"action":"closed","issue":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/17398","repository_url":"https://api.github.com/repos/caskroom/homebrew-cask","labels_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/17398/labels{/name}","comments_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/17398/comments","events_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/17398/events","html_url":"https://github.com/caskroom/homebrew-cask/issues/17398","id":127912372,"number":17398,"title":"Bug with chmod + Uninstall Script Stanza?","user":{"login":"winkelsdorf","id":1413291,"avatar_url":"https://avatars.githubusercontent.com/u/1413291?v=3","gravatar_id":"","url":"https://api.github.com/users/winkelsdorf","html_url":"https://github.com/winkelsdorf","followers_url":"https://api.github.com/users/winkelsdorf/followers","following_url":"https://api.github.com/users/winkelsdorf/following{/other_user}","gists_url":"https://api.github.com/users/winkelsdorf/gists{/gist_id}","starred_url":"https://api.github.com/users/winkelsdorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winkelsdorf/subscriptions","organizations_url":"https://api.github.com/users/winkelsdorf/orgs","repos_url":"https://api.github.com/users/winkelsdorf/repos","events_url":"https://api.github.com/users/winkelsdorf/events{/privacy}","received_events_url":"https://api.github.com/users/winkelsdorf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/caskroom/homebrew-cask/labels/awaiting%20user%20reply","name":"awaiting user reply","color":"ff851b"},{"url":"https://api.github.com/repos/caskroom/homebrew-cask/labels/bug","name":"bug","color":"d83131"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-21T12:18:16Z","updated_at":"2016-03-23T10:30:58Z","closed_at":"2016-03-23T10:30:58Z","body":"Hi,\r\n\r\nI am currently working on the Adobe Casks.\r\n\r\n**Installation and Uninstallation works fine, but there is a message coming from ```chmod``` that a file or directory is missing**\r\n\r\nThis is the current draft for testing the recent changes to the Uninstall Stanza (including staged_path now available):\r\n```shell\r\ncask 'adobe-design-web-premium-cs6-de-test' do\r\n  version :latest\r\n  sha256 :no_check\r\n\r\n  # This Cask only works for Adobe dmgs containing the 'deploy' folder,\r\n  # i.e. the Adobe Collections, not the single product installers.\r\n\r\n  # For correct download URL see links provided at\r\n  # https://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html\r\n\r\n  url 'http://trials2.adobe.com/AdobeProducts/DSST/CS6/osx10/DesignWebPremium_CS6_LS4.dmg',\r\n      user_agent: :fake,\r\n      cookies:    { 'MM_TRIALS' => '1234' }\r\n  name 'Adobe CS6 Design and Web Premium' # name must match directory in dmg for later reference\r\n  homepage 'https://www.adobe.com/mena_en/products/creativesuite.html'\r\n  license :commercial\r\n\r\n  installer script: \"#{name.join}/Install.app/Contents/MacOS/Install\",\r\n            args: ['--mode=silent', \"--deploymentFile=#{staged_path.join}/#{name.join}/deploy/install-de_DE.xml\"],\r\n            sudo: true\r\n\r\n  uninstall signal: [['KILL', 'SafariNotificationAgent']],\r\n            script: {\r\n                      executable: \"#{name.join}/Install.app/Contents/MacOS/Install\",\r\n                      args: ['--mode=silent', \"--deploymentFile=#{staged_path.join}/#{name.join}/deploy/uninstall-de_DE.xml\"],\r\n                    }\r\n\r\n  caveats 'Installation or uninstallation may fail with Exit Code 19 (conflicting processes running) if Browsers, Safari Notification Service or SIMBL Services are running, or Adobe Creative Cloud or any other Adobe Product is already installed. See the logs in /Library/Logs/Adobe/Installers if installation or uninstallation fails in order to identifify the conflicting processes.'\r\nend\r\n```\r\n\r\nThis is the debug output of the Uninstall Stanza:\r\n```console\r\nHbc::Artifact::Uninstall\r\n==> Un-installing artifact of class Hbc::Artifact::Installer\r\n==> Nothing to do. The installer artifact has no uninstall phase.\r\n==> Un-installing artifact of class Hbc::Artifact::Uninstall\r\n==> Running uninstall process for adobe-design-web-premium-cs6-de-test; your password may be necessary\r\n==> Signalling 'KILL' to application ID 'SafariNotificationAgent'\r\n==> Executing: [\"/usr/bin/sudo\", \"-E\", \"--\", \"/usr/bin/osascript\", \"-e\", \"tell application \\\\\\\"System Events\\\\\\\" to get the unix id of every process whose bundle identifier is \\\\\\\"SafariNotificationAgent\\\\\\\"\"]\r\nPassword:\r\n==> Running uninstall script Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install\r\n==> Executing: [\"/bin/chmod\", \"+x\", \"--\", \"#<Pathname:/opt/homebrew-cask/Caskroom/adobe-design-web-premium-cs6-de-test/latest/Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install>\"]\r\n==> chmod: --: No such file or directory\r\n==> Executing: [\"/usr/bin/sudo\", \"-E\", \"--\", \"#<Pathname:/opt/homebrew-cask/Caskroom/adobe-design-web-premium-cs6-de-test/latest/Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install>\", \"--mode=silent\", \"--deploymentFile=/opt/homebrew-cask/Caskroom/adobe-design-web-premium-cs6-de-test/latest/Adobe CS6 Design and Web Premium/deploy/uninstall-de_DE.xml\"]\r\n==> Begin Adobe Setup\r\n==> UI mode: Silent\r\n2.00%\r\n==> End Adobe Setup.  Exit code: 0\r\n==> Starting Installer...\r\n==> In Silent mode.\r\n==> No receipt for 'com.adobe.acrobat.a10.AcrobatUpd1001*' found at '/'.\r\n==> No receipt for 'com.adobe.acrobat.a10.AcrobatSecUpd1002*' found at '/'.\r\n==> No receipt for 'com.adobe.acrobat.a10.AcrobatSecUpd1003*' found at '/'.\r\n==> No receipt for 'com.adobe.acrobat.a10.AcrobatUpd1010*' found at '/'.\r\n==> Installation successful.\r\n==> Exiting Installer with Code: 0\r\n==> Purging files for version latest of Cask adobe-design-web-premium-cs6-de-test\r\n```\r\n\r\nNote the following output:\r\n```console\r\n==> Running uninstall script Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install\r\n==> Executing: [\"/bin/chmod\", \"+x\", \"--\", \"#<Pathname:/opt/homebrew-cask/Caskroom/adobe-design-web-premium-cs6-de-test/latest/Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install>\"]\r\n==> chmod: --: No such file or directory\r\n```\r\n\r\nRunning without ```--Debug``` the User will see the following:\r\n```console\r\nTesters-Mac:Desktop tester$ brew cask uninstall ./adobe-design-web-premium-cs6-de-test.rb \r\n==> Running uninstall process for adobe-design-web-premium-cs6-de-test; your password may be necessary\r\n==> Signalling 'KILL' to application ID 'SafariNotificationAgent'\r\n==> Running uninstall script Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install\r\n==> chmod: --: No such file or directory\r\n==> Begin Adobe Setup\r\n==> UI mode: Silent\r\n[...]\r\n```\r\n\r\nLooks like there is something wrong with the ```chmod``` call HBC does internally.\r\n\r\nIs this a known bug? I didn't find anything suitable in the closed issues on GH..\r\n\r\nCheers,\r\nFrederik"}}