{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9524","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9524/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9524/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9524/events","html_url":"https://github.com/NixOS/nixpkgs/pull/9524","id":103853194,"number":9524,"title":"qt5: embed path to mesa (libGL) in Qt mkspecs file","user":{"login":"bjornfor","id":133602,"avatar_url":"https://avatars.githubusercontent.com/u/133602?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornfor","html_url":"https://github.com/bjornfor","followers_url":"https://api.github.com/users/bjornfor/followers","following_url":"https://api.github.com/users/bjornfor/following{/other_user}","gists_url":"https://api.github.com/users/bjornfor/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornfor/subscriptions","organizations_url":"https://api.github.com/users/bjornfor/orgs","repos_url":"https://api.github.com/users/bjornfor/repos","events_url":"https://api.github.com/users/bjornfor/events{/privacy}","received_events_url":"https://api.github.com/users/bjornfor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-29T14:05:04Z","updated_at":"2015-08-29T14:32:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9524","html_url":"https://github.com/NixOS/nixpkgs/pull/9524","diff_url":"https://github.com/NixOS/nixpkgs/pull/9524.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/9524.patch"},"body":"Fixes this problem, when building apps in QtCreator:\r\n\r\n  ...(compile output window)\r\n  g++ -Wl,-rpath,/nix/store/1w7h7p6s2srfw2ady90k7072991lrnpp-qtbase-5.4.2/lib \\\r\n      -o qt-test3 main.o mainwindow.o moc_mainwindow.o \\\r\n      -L/nix/store/1w7h7p6s2srfw2ady90k7072991lrnpp-qtbase-5.4.2/lib \\\r\n      -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread\r\n  /nix/store/b8qhjrwf8sf9ggkjxqqav7f1m6w83bh0-binutils-2.23.1/bin/ld: cannot find -lGL\r\n  collect2: error: ld returned 1 exit status\r\n\r\nmesa is already in the closure of Qt, so there is no size increase.\r\n\r\nThe patch is copied into both qt-5.3 and qt-5.4 directories, like other\r\npatches are."},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/135992046","html_url":"https://github.com/NixOS/nixpkgs/pull/9524#issuecomment-135992046","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9524","id":135992046,"user":{"login":"ttuegel","id":563054,"avatar_url":"https://avatars.githubusercontent.com/u/563054?v=3","gravatar_id":"","url":"https://api.github.com/users/ttuegel","html_url":"https://github.com/ttuegel","followers_url":"https://api.github.com/users/ttuegel/followers","following_url":"https://api.github.com/users/ttuegel/following{/other_user}","gists_url":"https://api.github.com/users/ttuegel/gists{/gist_id}","starred_url":"https://api.github.com/users/ttuegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttuegel/subscriptions","organizations_url":"https://api.github.com/users/ttuegel/orgs","repos_url":"https://api.github.com/users/ttuegel/repos","events_url":"https://api.github.com/users/ttuegel/events{/privacy}","received_events_url":"https://api.github.com/users/ttuegel/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T14:32:47Z","updated_at":"2015-08-29T14:32:47Z","body":"Could you do this with a `sed` script instead of a patch? I think that's less likely to break between versions. Would it be worthwhile to set any other library paths is the mkspecs file? Do we need to do anything on non-Linux platforms?"}}