{"action":"created","issue":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/89","labels_url":"https://api.github.com/repos/arvidn/libtorrent/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/arvidn/libtorrent/issues/89/comments","events_url":"https://api.github.com/repos/arvidn/libtorrent/issues/89/events","html_url":"https://github.com/arvidn/libtorrent/issues/89","id":101371451,"number":89,"title":"dh_auto_clean attempts to run b2 in python setup.py","user":{"login":"cas--","id":606038,"avatar_url":"https://avatars.githubusercontent.com/u/606038?v=3","gravatar_id":"","url":"https://api.github.com/users/cas--","html_url":"https://github.com/cas--","followers_url":"https://api.github.com/users/cas--/followers","following_url":"https://api.github.com/users/cas--/following{/other_user}","gists_url":"https://api.github.com/users/cas--/gists{/gist_id}","starred_url":"https://api.github.com/users/cas--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cas--/subscriptions","organizations_url":"https://api.github.com/users/cas--/orgs","repos_url":"https://api.github.com/users/cas--/repos","events_url":"https://api.github.com/users/cas--/events{/privacy}","received_events_url":"https://api.github.com/users/cas--/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-17T08:48:02Z","updated_at":"2015-08-27T08:36:06Z","closed_at":null,"body":"When packaging 1.0.6 libtorrent for ubuntu PPA, `dh_auto_clean` is attempting to run the `b2` command in `setup.py`. There was no issue with this in 1.0.1.\r\n\r\n```\r\ndh clean  --parallel --with python2,python3,autoreconf\r\n   dh_testdir -O--parallel\r\n   debian/rules override_dh_auto_clean\r\nmake[1]: Entering directory `/home/ubuntu/Documents/libtorrent/PPA Packaging/lt_1.0.6_rel/libtorrent-rasterbar-1.0.6'\r\nrm -rf build build-py*\r\ndh_auto_clean\r\nBOOST_ROOT =\r\nCXXFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security\r\nLDFLAGS = -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed\r\nOS = LINUX\r\nwarning: No toolsets are configured.\r\nwarning: Configuring default toolset \"gcc\".\r\nwarning: If the default is wrong, your build may not work correctly.\r\nwarning: Use the \"toolset=xxxxx\" option to override our guess.\r\nwarning: For more configuration options, please consult\r\nwarning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html\r\nerror: Unable to find file or target named\r\nerror:     '/boost/python//boost_python'\r\nerror: referred from project at\r\nerror:     '.'\r\n\r\n\r\nbjam boost=source link=static geoip=static boost-link=static release optimization=space stage_module --abbreviate-paths -j6\r\nbuild failed\r\n[30894 refs]\r\ndh_auto_clean: python-dbg setup.py clean -a returned exit code 1\r\n```\r\n\r\nI found someone else ran into the same packaging issue and simply created the following packaging patch, it works but seems a bit crude.\r\n\r\n```\r\n--- a/bindings/python/setup.py\t2015-07-15 00:45:38.780329367 +0200\r\n+++ b/bindings/python/setup.py\t2015-07-15 00:45:50.004570474 +0200\r\n@@ -51,7 +51,11 @@\r\n ext = None\r\n packages = None\r\n \r\n-if '--bjam' in sys.argv or ldflags == None or extra_cmd == None:\r\n+if 'clean' in sys.argv:\r\n+\t#disable clean mode\r\n+\tprint ('clean mode')\r\n+\r\n+elif '--bjam' in sys.argv or ldflags == None or extra_cmd == None:\r\n \r\n \tif '--bjam' in sys.argv:\r\n \t\tdel sys.argv[sys.argv.index('--bjam')]\r\n```"},"comment":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/comments/135341125","html_url":"https://github.com/arvidn/libtorrent/issues/89#issuecomment-135341125","issue_url":"https://api.github.com/repos/arvidn/libtorrent/issues/89","id":135341125,"user":{"login":"sledgehammer999","id":273315,"avatar_url":"https://avatars.githubusercontent.com/u/273315?v=3","gravatar_id":"","url":"https://api.github.com/users/sledgehammer999","html_url":"https://github.com/sledgehammer999","followers_url":"https://api.github.com/users/sledgehammer999/followers","following_url":"https://api.github.com/users/sledgehammer999/following{/other_user}","gists_url":"https://api.github.com/users/sledgehammer999/gists{/gist_id}","starred_url":"https://api.github.com/users/sledgehammer999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sledgehammer999/subscriptions","organizations_url":"https://api.github.com/users/sledgehammer999/orgs","repos_url":"https://api.github.com/users/sledgehammer999/repos","events_url":"https://api.github.com/users/sledgehammer999/events{/privacy}","received_events_url":"https://api.github.com/users/sledgehammer999/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T08:36:06Z","updated_at":"2015-08-27T08:36:06Z","body":"@cas-- \r\nThis may not help you but Debian already has a package in experimental. You may check how they did it.\r\nGrab the source package from the side panel: https://packages.debian.org/experimental/libtorrent-rasterbar-dev\r\nOr even browse the src: https://anonscm.debian.org/cgit/collab-maint/libtorrent-rasterbar.git/tree/?h=experimental"}}