{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8017","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8017/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8017/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8017/events","html_url":"https://github.com/NixOS/nixpkgs/issues/8017","id":81435216,"number":8017,"title":"Openjpeg seems to depend on external javac even when openjpegJarSupport is false","user":{"login":"michalpalka","id":5004087,"avatar_url":"https://avatars.githubusercontent.com/u/5004087?v=3","gravatar_id":"","url":"https://api.github.com/users/michalpalka","html_url":"https://github.com/michalpalka","followers_url":"https://api.github.com/users/michalpalka/followers","following_url":"https://api.github.com/users/michalpalka/following{/other_user}","gists_url":"https://api.github.com/users/michalpalka/gists{/gist_id}","starred_url":"https://api.github.com/users/michalpalka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalpalka/subscriptions","organizations_url":"https://api.github.com/users/michalpalka/orgs","repos_url":"https://api.github.com/users/michalpalka/repos","events_url":"https://api.github.com/users/michalpalka/events{/privacy}","received_events_url":"https://api.github.com/users/michalpalka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-27T13:02:30Z","updated_at":"2015-05-27T16:00:52Z","closed_at":null,"body":"I tried building openjpeg as a dependency when using 2e9459866d3546630e6d631a6fd11416a52a1625 on Mac OS X, and it failed on trying to run javac. Nevertheless, its derivation seemed to define `-DBUILD_JAVA=OFF` (long line follows).\r\n```\r\n$ cat /nix/store/ad456j47k60p9b95x0jz0y32mmhdabbc-openjpeg-2.1.0.drv \r\nDerive([(\"out\",\"/nix/store/bwzbimicshi1gln2wm22qw59wadqrmps-openjpeg-2.1.0\",\"\",\"\")],[(\"/nix/store/2h4g3an81g6dw6w757y2yz6hjwfcd4zw-bash-4.3-p33.drv\",[\"out\"]),(\"/nix/store/57ghfwbpkckyj5hvfbk6c48f2d703a6c-stdenv-darwin-boot-3.drv\",[\"out\"]),(\"/nix/store/m8nkhqq1zs03nbj1x41jm86sq4ylwxhq-openjpeg-2.1.0.tar.gz.drv\",[\"out\"]),(\"/nix/store/mxd84gl1w1n2px4ns6dqv58jjbf8h5fp-cmake-3.2.2.drv\",[\"out\"]),(\"/nix/store/ndp5z7y2z83i0m2h05q706zkrw81v00p-lcms2-2.7.drv\",[\"out\"]),(\"/nix/store/rlj6vkrfy3w4xqcqb2rfrq520zc3aaam-pkg-config-0.28.drv\",[\"out\"]),(\"/nix/store/x2xx3m7qxcjqm6a03xdq7gy8n1fl76xx-libpng-1.6.16.drv\",[\"out\"]),(\"/nix/store/zzqriajm4fjc4qvyd0qpgiqhlwhhbqi7-libtiff-4.0.3.drv\",[\"out\"])],[\"/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh\"],\"x86_64-darwin\",\"/nix/store/sl3scf6za8b9bpr4ynfkfh6sqn3rcdvl-bash-4.3-p33/bin/bash\",[\"-e\",\"/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh\"],[(\"branch\",\"2.1\"),(\"buildInputs\",\"\"),(\"builder\",\"/nix/store/sl3scf6za8b9bpr4ynfkfh6sqn3rcdvl-bash-4.3-p33/bin/bash\"),(\"cmakeFlags\",\"-DBUILD_SHARED_LIBS=ON -DBUILD_CODEC=ON -DBUILD_MJ2=ON -DBUILD_JPWL=ON -DBUILD_JPIP=ON -DBUILD_JPIP_SERVER=OFF -DBUILD_JAVA=OFF -DBUILD_JP3D=ON -DBUILD_THIRDPARTY=OFF -DBUILD_TESTING=OFF -DCMAKE_INSTALL_NAME_DIR=${CMAKE_INSTALL_PREFIX}/lib\"),(\"name\",\"openjpeg-2.1.0\"),(\"nativeBuildInputs\",\"/nix/store/fq357w6660lr6rfn2213m1crlh88d5ar-cmake-3.2.2\"),(\"nativebuildInputs\",\"/nix/store/l2bj9bazb2bx9wr4fmm5wh4pypyvn3l9-pkg-config-0.28\"),(\"out\",\"/nix/store/bwzbimicshi1gln2wm22qw59wadqrmps-openjpeg-2.1.0\"),(\"postInstall\",\"for dir in \\\"$out\\\"/include/*; do\\n  cp -r \\\"$dir\\\"/* \\\"$out/include/\\\"\\n  rm -r \\\"$dir\\\"\\n  ln -s . \\\"$dir\\\"\\ndone\\nln -sr -t \\\"$out/include/\\\" \\\"$out\\\"/lib/*/include/* 2>/dev/null || true\\nmkdir -p \\\"$out/lib/pkgconfig\\\"\\ncat > \\\"$out/lib/pkgconfig/libopenjp2.pc\\\" <<EOF\\nprefix=$out\\nlibdir=$out/lib\\nincludedir=$out/include\\n\\nName: openjp2\\nDescription: JPEG2000 library (Part 1 and 2)\\nURL: http://www.openjpeg.org/\\nVersion: 2.1.0\\nLibs: -L$out/lib -lopenjp2\\nCflags: -I$out/include\\nEOF\\n\"),(\"propagatedBuildInputs\",\"\"),(\"propagatedNativeBuildInputs\",\"/nix/store/wxlx2qb11vfl38b9wc9kxzbbw2scdd9v-libpng-1.6.16 /nix/store/ybfxg6hfpz5n76mkcfjq12z8hap8mnhv-libtiff-4.0.3 /nix/store/7pvp6yj5h89dznnmawxhva95qs2q09nn-lcms2-2.7\"),(\"src\",\"/nix/store/rdxl8xb97rx767cpyk6nlc2fcqb4d7qr-openjpeg-2.1.0.tar.gz\"),(\"stdenv\",\"/nix/store/zdxsi7a64c2vbnawx2fsgr5fgk1jvdvp-stdenv-darwin-boot-3\"),(\"system\",\"x86_64-darwin\"),(\"version\",\"2.1.0\")])\r\n```\r\n\r\nThe package built successfully after I installed an external JDK. It seems that for some strange reason the build script is ignoring the `-DBUILD_JAVA=OFF` option."},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/105975974","html_url":"https://github.com/NixOS/nixpkgs/issues/8017#issuecomment-105975974","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8017","id":105975974,"user":{"login":"codyopel","id":5561189,"avatar_url":"https://avatars.githubusercontent.com/u/5561189?v=3","gravatar_id":"","url":"https://api.github.com/users/codyopel","html_url":"https://github.com/codyopel","followers_url":"https://api.github.com/users/codyopel/followers","following_url":"https://api.github.com/users/codyopel/following{/other_user}","gists_url":"https://api.github.com/users/codyopel/gists{/gist_id}","starred_url":"https://api.github.com/users/codyopel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codyopel/subscriptions","organizations_url":"https://api.github.com/users/codyopel/orgs","repos_url":"https://api.github.com/users/codyopel/repos","events_url":"https://api.github.com/users/codyopel/events{/privacy}","received_events_url":"https://api.github.com/users/codyopel/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T16:00:52Z","updated_at":"2015-05-27T16:00:52Z","body":"#8019 Should fix this.  JPIP builds a java component, but the cmake script does not require `-DBUILD_JAVA=ON` for `-DBUILD_JPIP=ON`"}}