{"action":"created","issue":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/578","repository_url":"https://api.github.com/repos/mesonbuild/meson","labels_url":"https://api.github.com/repos/mesonbuild/meson/issues/578/labels{/name}","comments_url":"https://api.github.com/repos/mesonbuild/meson/issues/578/comments","events_url":"https://api.github.com/repos/mesonbuild/meson/issues/578/events","html_url":"https://github.com/mesonbuild/meson/issues/578","id":157823826,"number":578,"title":"Can't install application binary, when same binary is being executed","user":{"login":"tobimensch","id":9920531,"avatar_url":"https://avatars.githubusercontent.com/u/9920531?v=3","gravatar_id":"","url":"https://api.github.com/users/tobimensch","html_url":"https://github.com/tobimensch","followers_url":"https://api.github.com/users/tobimensch/followers","following_url":"https://api.github.com/users/tobimensch/following{/other_user}","gists_url":"https://api.github.com/users/tobimensch/gists{/gist_id}","starred_url":"https://api.github.com/users/tobimensch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobimensch/subscriptions","organizations_url":"https://api.github.com/users/tobimensch/orgs","repos_url":"https://api.github.com/users/tobimensch/repos","events_url":"https://api.github.com/users/tobimensch/events{/privacy}","received_events_url":"https://api.github.com/users/tobimensch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-01T05:01:53Z","updated_at":"2016-06-04T20:33:55Z","closed_at":null,"body":"Traceback (most recent call last):\r\n  File \"/usr/lib/python3.5/site-packages/meson-0.32.0.dev1-py3.5.egg/EGG-INFO/scripts/meson.py\", line 24, in <module>\r\n    sys.exit(mesonmain.run(thisfile, sys.argv[1:]))\r\n  File \"/usr/lib/python3.5/site-packages/meson-0.32.0.dev1-py3.5.egg/mesonbuild/mesonmain.py\", line 220, in run\r\n    sys.exit(run_script_command(args[1:]))\r\n  File \"/usr/lib/python3.5/site-packages/meson-0.32.0.dev1-py3.5.egg/mesonbuild/mesonmain.py\", line 210, in run_script_command\r\n    return cmdfunc(cmdargs)\r\n  File \"/usr/lib/python3.5/site-packages/meson-0.32.0.dev1-py3.5.egg/mesonbuild/scripts/meson_install.py\", line 235, in run\r\n    do_install(datafilename)\r\n  File \"/usr/lib/python3.5/site-packages/meson-0.32.0.dev1-py3.5.egg/mesonbuild/scripts/meson_install.py\", line 39, in do_install\r\n    install_targets(d)\r\n  File \"/usr/lib/python3.5/site-packages/meson-0.32.0.dev1-py3.5.egg/mesonbuild/scripts/meson_install.py\", line 196, in install_targets\r\n    shutil.copyfile(fname, outname)\r\n  File \"/usr/lib64/python3.5/shutil.py\", line 115, in copyfile\r\n    with open(dst, 'wb') as fdst:\r\nOSError: [Errno 26] Text file busy: '/usr/local/bin/aqemu'\r\nFAILED: '/usr/bin/python3' '/usr/lib/python3.5/site-packages/meson-0.32.0.dev1-py3.5.egg/EGG-INFO/scripts/meson.py' '--internal' 'install' '~/apps/bin/pj_aqemu/build/meson/meson-private/install.dat'\r\nninja: build stopped: subcommand failed.\r\n\r\nI can't remember having that problem with any other build system or system update tool. For example I can remember upgrading my complete system multiple times with dnf on Fedora, while simultaniously using my desktop. And also I'm doing regular system updates, without ever running into this.\r\n\r\nDoing the same with cmake && make install also works just fine. And I remember it working with autotools as well.\r\n\r\nAt first it might seem like a bad idea to overwrite the binary of a program that is running, but in reality the binary is already in memory, so there should never be any actual conflict.\r\n\r\nKind regards."},"comment":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/comments/223776801","html_url":"https://github.com/mesonbuild/meson/issues/578#issuecomment-223776801","issue_url":"https://api.github.com/repos/mesonbuild/meson/issues/578","id":223776801,"user":{"login":"tobimensch","id":9920531,"avatar_url":"https://avatars.githubusercontent.com/u/9920531?v=3","gravatar_id":"","url":"https://api.github.com/users/tobimensch","html_url":"https://github.com/tobimensch","followers_url":"https://api.github.com/users/tobimensch/followers","following_url":"https://api.github.com/users/tobimensch/following{/other_user}","gists_url":"https://api.github.com/users/tobimensch/gists{/gist_id}","starred_url":"https://api.github.com/users/tobimensch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobimensch/subscriptions","organizations_url":"https://api.github.com/users/tobimensch/orgs","repos_url":"https://api.github.com/users/tobimensch/repos","events_url":"https://api.github.com/users/tobimensch/events{/privacy}","received_events_url":"https://api.github.com/users/tobimensch/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T20:33:55Z","updated_at":"2016-06-04T20:33:55Z","body":"@nirbheek \r\n\r\n:-)\r\n\r\nSeems like hte shutil.copyfile is causing a lot of headaches for poor Meson developers from what I can tell.\r\n\r\nThanks for answering this so well. To be honest I can't be bothered about Windows, as I'm using it next to never. I think a warning/error messages would be sufficient there."}}
{"actor":{"display_login":"tobimensch"}}