Created attachment 283259 [details, diff] patch for systemtap-1.6.ebuild systemtap-0.9 and above installs /usr/bin/dtrace, which is a python script. Unfortunately: 1. this script starts out with #!/usr/bin/python, but it is incompatible with python3, and on Gentoo, /usr/bin/python can be python3; and 2. current systemtap ebuilds don't list a python dependency. These problems can be resolved by inheriting the python eclass and using its python_convert_shebangs function. My proposed patch for the systemtap-1.6 ebuild is attached.
*ping*
I am usually using python 3 as my default python interpreter on a stable x86_64 system with some individual unstable packages. This bug fails the update to =dev-libs/glib-2.30.3 with make[2]: Entering directory `/home/build/portage/dev-libs/glib-2.30.3/work/glib-2.30.3/glib' GEN glib_probes.h GEN glib_probes.o File "/usr/bin/dtrace", line 170 print _("Usage ") + sys.argv[0] + " [--help] [-h | -G] [-C [-I<Path>]] -s File.d [-o <File>]" ^ SyntaxError: invalid syntax File "/usr/bin/dtrace", line 170 print _("Usage ") + sys.argv[0] + " [--help] [-h | -G] [-C [-I<Path>]] -s File.d [-o <File>]" ^ SyntaxError: invalid syntax As a workaround a temporary switch to python 2 resolves the issue, but this seems not a reasonable solution to me.
*** Bug 442702 has been marked as a duplicate of this bug. ***
Alexandre, I would go ahead and commit it
Fixed by non-maintainer commit. > 15 Dec 2012; Alexandre Rostovtsev <tetromino@gentoo.org> > systemtap-1.6.ebuild, systemtap-1.7.ebuild, systemtap-2.0.ebuild: > Non-maintainer commit: fix /usr/bin/dtrace shebang and add missing python2 > dependency (bug #379117).
*** Bug 499406 has been marked as a duplicate of this bug. ***
Always revbump when changing the installed state of a package.
There were bumps after that commit and the fix was included there too