Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"make altinstall" installs pydoc, idle, smtpd.py with broken shebang lines #45461

Closed
dripton mannequin opened this issue Sep 6, 2007 · 2 comments
Closed

"make altinstall" installs pydoc, idle, smtpd.py with broken shebang lines #45461

dripton mannequin opened this issue Sep 6, 2007 · 2 comments
Labels
build The build process and cross-build type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@dripton
Copy link
Mannequin

dripton mannequin commented Sep 6, 2007

BPO 1120
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-09-12.19:29:48.540>
created_at = <Date 2007-09-06.22:06:49.997>
labels = ['build', 'type-crash']
title = '"make altinstall" installs pydoc, idle, smtpd.py with broken shebang lines'
updated_at = <Date 2007-09-12.19:29:48.537>
user = 'https://bugs.python.org/dripton'

bugs.python.org fields:

activity = <Date 2007-09-12.19:29:48.537>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2007-09-12.19:29:48.540>
closer = 'georg.brandl'
components = ['Build']
creation = <Date 2007-09-06.22:06:49.997>
creator = 'dripton'
dependencies = []
files = []
hgrepos = []
issue_num = 1120
keywords = []
message_count = 2.0
messages = ['55714', '55862']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'dripton']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue1120'
versions = ['Python 3.0']

@dripton
Copy link
Mannequin Author

dripton mannequin commented Sep 6, 2007

Gentoo Linux, x86, Python 3.0a

I did a vanilla "./configure; make; make test; make altinstall" build.

The following files were created in /usr/local/bin:
-rwxr-xr-x 1 root root 18036 Sep 6 17:49 smtpd.py
-rwxr-xr-x 1 root root 81 Sep 6 17:49 pydoc
-rwxr-xr-x 1 root root 96 Sep 6 17:49 idle
-rwxr-xr-x 1 root root 3644316 Sep 6 17:58 python3.0
-rwxr-xr-x 1 root root 1401 Sep 6 17:59 python3.0-config

As intended, altinstall does not create /usr/local/bin/python, so
"python" is still the pre-existing python2.5.

However, other binaries are installed as though /usr/local/bin/python
were created, so they don't work.

dripton@al ~ $ pydoc
bash: /usr/local/bin/pydoc: /usr/local/bin/python: bad interpreter: No
such file or directory
dripton@al ~ $ idle
bash: /usr/local/bin/idle: /usr/local/bin/python: bad interpreter: No
such file or directory
dripton@al ~ $ smtpd.py
bash: /usr/local/bin/smtpd.py: /usr/local/bin/python: bad interpreter:
No such file or directory

Suggest that "make altinstall" should not put anything in the bin
directory except pythonX.Y and pythonX.Y-config, which are "safe"
because of the embedded version numbers. Another option would be
installing those other binaries but with fixed shebang lines.

@dripton dripton mannequin added build The build process and cross-build type-crash A hard crash of the interpreter, possibly with a core dump labels Sep 6, 2007
@birkenfeld
Copy link
Member

Fixed in rev. 58125, should be merged to 3k shortly. Thanks!

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

1 participant