Closed Bug 914476 Opened 11 years ago Closed 11 years ago

mozilla-python27 RPM package should symlink python -> python2.7 binary

Categories

(Infrastructure & Operations Graveyard :: CIDuty, task)

x86
Linux
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhopkins, Assigned: jhopkins)

References

Details

Attachments

(1 file)

Our mozilla-python27 package does not symlink python -> python2.7 which breaks scripts that use a shebang line referencing 'python':

#!/usr/bin/env python

Contents of current package's bin directory:

# ls -l /tools/python27/bin/
total 44
-rwxr-xr-x 1 root root   106 Apr 10 12:39 2to3
-rwxr-xr-x 1 root root   104 Apr 10 12:39 idle
-rwxr-xr-x 1 root root    89 Apr 10 12:39 pydoc
-rwxr-xr-x 1 root root  4896 Apr 10 12:40 python2.7
-rwxr-xr-x 1 root root  1629 Apr 10 12:39 python2.7-config
-rwxr-xr-x 1 root root 18552 Apr 10 12:39 smtpd.py
Blocks: 910134
Blocks: 902520
Assignee: nobody → jhopkins
Status: NEW → ASSIGNED
Attachment #802540 - Flags: review?(bugspam.Callek)
Comment on attachment 802540 [details] [diff] [review]
[puppet] updated mozilla-python27 RPM spec file which creates a symlink from python->python2.7

Review of attachment 802540 [details] [diff] [review]:
-----------------------------------------------------------------

::: modules/packages/manifests/mozilla/python27.spec
@@ +62,2 @@
>  ln -s %{_prefix}/bin/python%{pyver} $RPM_BUILD_ROOT/usr/local/bin/python%{pyver}
> +ln -s %{_prefix}/bin/python%{pyver} $RPM_BUILD_ROOT%{_prefix}/bin/python

Nit: Can you move this symlink above to just under the make call, the comment here and the other ln -s confused me at first.
Attachment #802540 - Flags: review?(bugspam.Callek) → review+
Comment on attachment 802540 [details] [diff] [review]
[puppet] updated mozilla-python27 RPM spec file which creates a symlink from python->python2.7

Deployed packages to yum repo.  I've left the patch nits for now as I wanted to to avoid another build/test cycle.

Spec file submitted in:
 https://hg.mozilla.org/build/puppet/rev/05aea507cd59
Attachment #802540 - Flags: checked-in+
Also bumped $repoflag to trigger a yum cache clear in https://hg.mozilla.org/build/puppet/rev/5ccca7162034
I'm seeing green builds with the new package.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: Platform Support → Buildduty
Product: Release Engineering → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: