Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379117 - dev-util/systemtap - dtrace requires python2
Summary: dev-util/systemtap - dtrace requires python2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
: 442702 499406 (view as bug list)
Depends on:
Blocks: 442734
  Show dependency tree
 
Reported: 2011-08-14 02:22 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2014-02-08 13:44 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for systemtap-1.6.ebuild (systemtap-1.6.ebuild.patch,528 bytes, patch)
2011-08-14 02:22 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-14 02:22:58 UTC
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.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-11-13 05:29:30 UTC
*ping*
Comment 2 Bernd Waibel 2012-04-21 06:58:21 UTC
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.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-12 12:12:19 UTC
*** Bug 442702 has been marked as a duplicate of this bug. ***
Comment 4 Pacho Ramos gentoo-dev 2012-12-15 13:33:04 UTC
Alexandre, I would go ahead and commit it
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-12-15 19:34:36 UTC
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).
Comment 6 Alex Xu (Hello71) 2014-01-27 02:18:49 UTC
*** Bug 499406 has been marked as a duplicate of this bug. ***
Comment 7 Alex Xu (Hello71) 2014-01-27 02:25:00 UTC
Always revbump when changing the installed state of a package.
Comment 8 Pacho Ramos gentoo-dev 2014-02-08 13:44:23 UTC
There were bumps after that commit and the fix was included there too