Ticket #6625 (closed defect: fixed)
manually removing executable bits doesn't work
| Reported by: | mvngu | Owned by: | cwitty |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-4.3.2 |
| Component: | misc | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | Minh Van Nguyen |
| Authors: | Willem Jan Palenstijn | Merged in: | sage-4.3.2.alpha0 |
| Dependencies: | Stopgaps: |
Description
This is a follow up to #3687. Apparently, the issue of executable bits pop up again after they had been manually removed. That is, manually remove the executable bits of sage-banner, sage-gdb-commands, sage-maxima.lisp, and sage-verify-pyc. Then create a source distribution and you see those executable bits restored:
[mvngu@sage bin]$ pwd /home/mvngu/release/sage-4.1.1.alpha1/local/bin [mvngu@sage bin]$ hg st M sage-README-osx.txt M sage-banner M sage-gdb-commands M sage-maxima.lisp M sage-verify-pyc
Somewhere a script called by the command
sage -sdist <version-number>
is restoring those executable bits.
Attachments
Change History
comment:1 Changed 3 years ago by wjp
- Status changed from new to needs_review
- Report Upstream set to N/A
The sage-make_devel_packages explicitly set the x bit on all sage-* files.
Changed 3 years ago by mvngu
-
attachment
trac_6625-no-x-bit.patch
added
rebased against Sage 4.3.1.rc1; apply to SAGE_LOCAL/bin
comment:2 Changed 3 years ago by mvngu
- Reviewers set to Minh Van Nguyen
- Authors set to Willem Jan Palenstijn
The attachment scripts_6625_no_x_bit.patch fails to apply against Sage 4.3.1.rc1:
[mvngu@mod bin]$ pwd /dev/shm/mvngu/sage-4.3.1.rc1/local/bin [mvngu@mod bin]$ hg qimport http://trac.sagemath.org/sage_trac/raw-attachment/ticket/6625/scripts_6625_no_x_bit.patch adding scripts_6625_no_x_bit.patch to series file [mvngu@mod bin]$ hg qpush applying scripts_6625_no_x_bit.patch patching file sage-make_devel_packages Hunk #1 FAILED at 135 1 out of 1 hunks FAILED -- saving rejects to file sage-make_devel_packages.rej patch failed, unable to continue (try -v) patch failed, rejects left in working dir errors during apply, please fix and refresh scripts_6625_no_x_bit.patch [mvngu@mod bin]$ cat sage-make_devel_packages.rej --- sage-make_devel_packages +++ sage-make_devel_packages @@ -136,6 +136,8 @@ rm -rf $SCRIPTS mkdir $SCRIPTS chmod +x sage-* +chmod -x sage-README-osx.txt sage-banner sage-gdb-commands +chmod -x sage-maxima.lisp sage-verify-pyc chmod +x dsage_* rm sage-*~
The failure results from #7975, which removes dsage from Sage and the patches on #7975 have been merged in Sage 4.3.1.rc1. The guilty line from scripts_6625_no_x_bit.patch is:
139 141 chmod +x dsage_*
Essentially the patch looks good. I have rebased it against Sage 4.3.1.rc1, so only my rebase trac_6625-no-x-bit.patch needs reviewing.
comment:3 Changed 3 years ago by wjp
- Status changed from needs_review to positive_review
Thanks. The rebase looks good to me.
comment:4 Changed 3 years ago by mvngu
- Status changed from positive_review to closed
- Resolution set to fixed
- Merged in set to sage-4.3.2.alpha0
Merged trac_6625-no-x-bit.patch in the script repository.
