{"action":"closed","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/36874","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/36874/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/36874/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/36874/events","html_url":"https://github.com/Homebrew/homebrew/issues/36874","id":57852621,"number":36874,"title":"pkgconfig path incorrect when installing zeromq --HEAD","user":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-16T21:22:26Z","updated_at":"2015-02-16T22:12:46Z","closed_at":"2015-02-16T22:12:46Z","body":"It is failing to find libsodium, which is in /usr/local/lib/pkgconfig. This is the default path for pkgconfig, but explicitly excluded from PKG_CONFIG_LIBDIR in the Superenv. Stdenv includes this location, but I don't know when that's used.\r\n\r\nFrom discussion on other issues, such as #27666, it seems that the omission of /usr/local from PKG_CONFIG_LIBDIR is intentional, but I can't find the reason for it. `libsodium.pc` should definitely be found via pkg-config when setting up zeromq, but it's unclear what the fix for this is. It seems like either `/usr/local/lib/pkgconfig` should be on PKG_CONFIG_LIBDIR or PKG_CONFIG_PATH, or `libsodium.pc` should be copied into `/usr/local/Library/ENV/pkgconfig/X.Y`. A workaround can be added to the zeromq Formula, but it seems like a generic issue that pkg-config is entirely disabled for locating dependencies installed via homebrew.\r\n\r\nI see several `.pc` files in /usr/local/lib/pkgconfig not in `/usr/local/Library/ENV/pkgconfig`, and I cannot figure out why homebrew is explicitly disabling packages finding their dependencies via pkg-config. Is there an explanation for the different roles of `/usr/local/lib/pkgconfig` and `/usr/local/Library/ENV/pkgconfig/X.Y`, and what files should be where, and what state Formulae should be expecting pkg-config to be in?\r\n\r\n`brew install zeromq --build-from-source` *does* find libsodium, but I think that's because libzmq-4.0 looks for libsodium without pkg-config, and libzmq-4.1 only uses pkg-config to find libsodium."}}