{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/brew/issues/4216","repository_url":"https://api.github.com/repos/Homebrew/brew","labels_url":"https://api.github.com/repos/Homebrew/brew/issues/4216/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/brew/issues/4216/comments","events_url":"https://api.github.com/repos/Homebrew/brew/issues/4216/events","html_url":"https://github.com/Homebrew/brew/issues/4216","id":326718217,"number":4216,"title":"False positive missing linkage with linkage cache enabled","user":{"login":"ilovezfs","id":5268928,"avatar_url":"https://avatars2.githubusercontent.com/u/5268928?v=4","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-26T07:34:21Z","updated_at":"2018-05-26T08:14:45Z","closed_at":null,"author_association":"MEMBER","body":"**Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.**\r\n\r\n- [x] are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh\r\n- [ ] ran a `brew` command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's a `brew cask` problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.\r\n- [x] ran `brew update` and can still reproduce the problem?\r\n- [x] ran `brew doctor`, fixed all issues and can still reproduce the problem?\r\n- [x] ran `brew config` and `brew doctor` and included their output with your issue?\r\n\r\nTo help us debug your issue please explain:\r\n- What you were trying to do (and why)\r\nUpdate graphite2 to the latest version because we like having up to date formulae.\r\n- What happened (include command output)\r\n```\r\n==> brew audit graphite2 --online\r\n==> FAILED\r\nError: 1 problem in 1 formula\r\nMissing libraries:\r\n  libgraphite2.3.dylib\r\ngraphite2:\r\n  * graphite2 has broken dynamic library links:\r\n            \r\n```\r\n- What you expected to happen\r\nNo output since the linkage seems fine.\r\n- Step-by-step reproduction instructions (by running `brew` commands)\r\n\r\nThe problem also occurs with the current graphite2 if HOMEBREW_LINKAGE_CACHE is set, so the simplest reproducer is\r\n\r\nNo problem:\r\n```\r\nbash-3.2$ brew install -s graphite2\r\n==> Downloading https://github.com/silnrsi/graphite/releases/download/1.3.10/graphite2-1.3.10.tgz\r\nAlready downloaded: /Users/joe/Library/Caches/Homebrew/graphite2-1.3.10.tgz\r\n==> cmake -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/graphite2/1.3.10 -DCMAKE_BUILD_T\r\n==> make install\r\n🍺  /usr/local/Cellar/graphite2/1.3.10: 18 files, 259.1KB, built in 19 seconds\r\n```\r\nProblem:\r\n```\r\nbash-3.2$ brew rm graphite2\r\nUninstalling /usr/local/Cellar/graphite2/1.3.10... (18 files, 259.1KB)\r\nbash-3.2$ rm -f ~/Library/Caches/Homebrew/linkage.db\r\nbash-3.2$ export HOMEBREW_LINKAGE_CACHE=1\r\nbash-3.2$ brew install -s graphite2\r\n==> Downloading https://github.com/silnrsi/graphite/releases/download/1.3.10/graphite2-1.3.10.tgz\r\nAlready downloaded: /Users/joe/Library/Caches/Homebrew/graphite2-1.3.10.tgz\r\n==> cmake -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/graphite2/1.3.10 -DCMAKE_BUILD_T\r\n==> make install\r\nMissing libraries:\r\n  libgraphite2.3.dylib\r\nWarning: graphite2 has broken dynamic library links:\r\n  \r\n==> Summary\r\n🍺  /usr/local/Cellar/graphite2/1.3.10: 18 files, 259.1KB, built in 19 seconds\r\nbash-3.2$ brew linkage graphite2\r\nSystem libraries:\r\n  /usr/lib/libSystem.B.dylib\r\n  /usr/lib/libc++.1.dylib\r\nMissing libraries:\r\n  libgraphite2.3.dylib\r\nbash-3.2$ brew audit graphite2\r\nMissing libraries:\r\n  libgraphite2.3.dylib\r\ngraphite2:\r\n  * graphite2 has broken dynamic library links:\r\n      \r\nError: 1 problem in 1 formula\r\nbash-3.2$ brew linkage --reverse graphite2\r\n/usr/lib/libSystem.B.dylib\r\n  bin/gr2fonttest\r\n  lib/libgraphite2.3.0.1.dylib\r\n\r\n/usr/lib/libc++.1.dylib\r\n  bin/gr2fonttest\r\n\r\nlibgraphite2.3.dylib\r\n  bin/gr2fonttest\r\nbash-3.2$ otool -L /usr/local/Cellar/graphite2/1.3.10/bin/gr2fonttest \r\n/usr/local/Cellar/graphite2/1.3.10/bin/gr2fonttest:\r\n\t/usr/local/Cellar/graphite2/1.3.10/lib/libgraphite2.3.dylib (compatibility version 3.0.0, current version 3.0.1)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)\r\n\t/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)\r\nbash-3.2$ \r\nbash-3.2$ otool -L /usr/local/Cellar/graphite2/1.3.10/lib/libgraphite2.3.dylib\r\n/usr/local/Cellar/graphite2/1.3.10/lib/libgraphite2.3.dylib:\r\n\t/usr/local/opt/graphite2/lib/libgraphite2.3.dylib (compatibility version 3.0.0, current version 3.0.1)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)\r\nbash-3.2$ \r\n```\r\n\r\n```\r\nbash-3.2$ ls -l /usr/local/Cellar/graphite2/1.3.10/lib/\r\ntotal 296\r\n-r--r--r--  1 joe  admin  150196 May 26 00:31 libgraphite2.3.0.1.dylib\r\nlrwxr-xr-x  1 joe  admin      24 May  5  2017 libgraphite2.3.dylib -> libgraphite2.3.0.1.dylib\r\nlrwxr-xr-x  1 joe  admin      20 May  5  2017 libgraphite2.dylib -> libgraphite2.3.dylib\r\ndrwxr-xr-x  3 joe  admin      96 May 26 00:31 pkgconfig\r\nbash-3.2$ otool -L /usr/local/Cellar/graphite2/1.3.10/lib/libgraphite2.3.0.1.dylib\r\n/usr/local/Cellar/graphite2/1.3.10/lib/libgraphite2.3.0.1.dylib:\r\n\t/usr/local/opt/graphite2/lib/libgraphite2.3.dylib (compatibility version 3.0.0, current version 3.0.1)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)\r\nbash-3.2$ \r\n```\r\n\r\nSo far I've only seen this with graphite2.\r\n\r\n```\r\nbash-3.2$ brew config\r\nHOMEBREW_VERSION: 1.6.6-2-g963adfa\r\nORIGIN: https://github.com/Homebrew/brew.git\r\nHEAD: 963adfafc35ccd5e1736a1b611c1730ce23d1551\r\nLast commit: 14 minutes ago\r\nCore tap ORIGIN: https://github.com/Homebrew/homebrew-core\r\nCore tap HEAD: 78827ef79b7bb167c4af82c8b7837bb1fab045d4\r\nCore tap last commit: 85 minutes ago\r\nHOMEBREW_PREFIX: /usr/local\r\nHOMEBREW_DEVELOPER: 1\r\nHOMEBREW_GITHUB_API_TOKEN: set\r\nHOMEBREW_LINKAGE_CACHE: 1\r\nHOMEBREW_NO_ANALYTICS: 1\r\nHOMEBREW_NO_AUTO_UPDATE: 1\r\nCPU: quad-core 64-bit ivybridge\r\nHomebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby\r\nClang: 9.0 build 900\r\nGit: 2.13.6 => /Applications/Xcode.app/Contents/Developer/usr/bin/git\r\nCurl: 7.54.0 => /usr/bin/curl\r\nJava: 1.8.0_131\r\nmacOS: 10.13.4-x86_64\r\nCLT: 9.3.0.0.1.1521514116\r\nXcode: 9.1\r\nXQuartz: N/A\r\nbash-3.2$ brew doctor\r\nPlease note that these warnings are just used to help the Homebrew maintainers\r\nwith debugging if you file an issue. If everything you use Homebrew for is\r\nworking fine: please don't worry or file an issue; just ignore this. Thanks!\r\n\r\nWarning: Your Xcode (9.1) is outdated.\r\nPlease update to Xcode 9.3 (or delete it).\r\nXcode can be updated from the App Store.\r\n\r\nbash-3.2$ \r\n```"},"comment":{"url":"https://api.github.com/repos/Homebrew/brew/issues/comments/392245643","html_url":"https://github.com/Homebrew/brew/issues/4216#issuecomment-392245643","issue_url":"https://api.github.com/repos/Homebrew/brew/issues/4216","id":392245643,"user":{"login":"ilovezfs","id":5268928,"avatar_url":"https://avatars2.githubusercontent.com/u/5268928?v=4","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"created_at":"2018-05-26T08:14:45Z","updated_at":"2018-05-26T08:14:45Z","author_association":"MEMBER","body":"Problem seems to be coming specifically from `bin/gr2fonttest`\r\n\r\n```\r\ndiff --git a/Formula/graphite2.rb b/Formula/graphite2.rb\r\nindex 05d0f04b88..e345029e6d 100644\r\n--- a/Formula/graphite2.rb\r\n+++ b/Formula/graphite2.rb\r\n@@ -23,6 +23,7 @@ class Graphite2 < Formula\r\n   def install\r\n     system \"cmake\", *std_cmake_args\r\n     system \"make\", \"install\"\r\n+    rm bin/\"gr2fonttest\"\r\n   end\r\n \r\n   test do\r\n```\r\nThen there is no error.\r\n\r\nNothing seems to be wrong with the linkage in `bin/gr2fonttest`, though."}}
{"actor":{"display_login":"ilovezfs"}}