non port: Mk/Uses/shebangfix.mk |
Number of commits found: 25 |
Sunday, 24 Apr 2022
|
10:00 Tobias C. Berner (tcberner)
framework: cleanup conditional-indentations in Mk/
Run Tools/scripts/indent_make_if.pl on all of Mk.
These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible
Differential Revision: https://reviews.freebsd.org/D35024
Reviewed by: portmgr (rene, bapt)
aa25396 |
09:29 Rene Ladan (rene)
Mk: release portmgr maintainership of most USES files
Differential Revision: https://reviews.freebsd.org/D34936
Reviewed by: desktop (tcberner), portmgr (tcberner), ruby (yasu), tijl
767d81e |
Tuesday, 6 Apr 2021
|
14:27 Mathieu Arnold (mat)
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
5d33e04 |
Thursday, 21 Dec 2017
|
13:27 amdmi3
Report (in q/a) and fix (in shebangfix) python[23] shebangs
Currently, only python shebangs (e.g. /bin/python, /usr/local/bin/python,
/usr/bin/env python etc.) are reported by stage Q/A and fixed by
USES=shebangfix. We need to do the same for python[23] as well.
Before the problem was not noticeable since many ports had e.g.
USES=python:2, which added a dependency on python2 metaport, however
that's going to switch to USES=python:2.7, and neither it, nor more
widely used USES=python adds a dependency on metaports, so there's
very high probability that python[23] links are not available.
Approved by: portmgr (mat)
Differential Revision: https://reviews.freebsd.org/D13571
|
Tuesday, 8 Aug 2017
|
01:10 feld
Mk/Uses/shebangfix.mk: Fix SHEBANG_FILES to use find(1)
Ports like net/vmware-vsphere-cli use SHEBANG_FILES with globs like so:
SHEBANG_FILES= bin/* ...
As of FreeBSD 11.1-RELEASE sed has changed and errors if attempted on non-file
objects. In the case of the cited port there are many other files in the
bin/ directory which are symlinks for compatibility with old scripts.
This causes the port patching to fail.
PR: 221229
Differential Revision: https://reviews.freebsd.org/D11853
|
Friday, 14 Jul 2017
|
12:47 amdmi3
- shebangfix: allow to use SHEBANG_REGEX, SHEBANG_GLOB, and SHEBANG_FILES
simultaneously
Reported by: lev
Approved by: portmgr (mat)
Differential Revision: https://reviews.freebsd.org/D11572
|
Thursday, 20 Apr 2017
|
11:45 amdmi3
- Add /usr/local/bin/* old cmd patterns to shebangfix
Approved by: portmgr (mat, rene)
Differential Revision: https://reviews.freebsd.org/D10412
|
Monday, 24 Oct 2016
|
14:16 mat
Add SHEBANG_REGEX and SHEBANG_GLOB, similar as the DOS2UNIX ones.
Sponsored by: Absolight
|
Thursday, 22 Oct 2015
|
13:36 amdmi3
- Add shebangfix documentation bits
- Fix tcl_OLD_CMD tk_OLD_CMD
Approved by: portmgr (bapt)
Differential Revision: D3939
|
Tuesday, 20 Oct 2015
|
15:36 bdrewery
Roll all of the commands into a loop and use the same patterns for every lang.
- /usr/bin/CMD
- /bin/CMD
- /usr/bin/env CMD
With hat: portmgr
Reviewed by: bapt, amdmi3
Differential Revision: https://reviews.freebsd.org/D3942
|
Monday, 19 Oct 2015
|
14:50 amdmi3
Improve shebangfix framework
- Support multiple values in *_OLD_CMD, i.e. we can now fix both
"/usr/bin/python" and "/usr/bin/env python" at the same time
- Default *_OLD_CMD values are now always appended, so you don't need to specify
them in individual ports
- Add lua support (depends on USES=lua)
- Add more default values, such as "/usr/bin/env foo" for python, perl, bash,
ruby and lua
- Shebangfix now matches whole words, e.g. we will no longer (erroneously)
replace "/usr/bin/perl5.005" with "${perl_CMD}5.005" (but "/usr/bin/perl -tt" is
still (correctly) replaced with "${perl_CMD} -tt")
Note that *_OLD_CMD items containing spaces must now be quoted (e.g.
perl_OLD_CMD=/bin/perl /usr/bin/perl "/usr/bin/env perl")
Update shebangfix usage according to new rules in many ports:
- Remove *_OLD_CMD for patterns now replaced by default
- Quote custom *_OLD_CMD which contain spaces
Fix shebangfix usage in many ports (irrelevant to infrastructure change):
- Remove redundant SHEBANG_LANG (no need to duplicate default langs)
- Remove redundant *_CMD (such as
python_CMD=${LOCALBASE}/bin/python${PYTHON_VER} when USES=python is present)
- Never use *_OLD_CMD in REINPLACE_CMD matchers, these should always look for
exact string
Approved by: portmgr (bapt)
Differential Revision: D3756
|
Monday, 17 Aug 2015
|
13:31 mat
Rewrite the target ordering code.
The targets now have priority assigned to them, and, when the dependency
ordering magic is done at the end of bsd.port.mk, they are sorted
according to their priority.
This allows USES to add targets easily and have them run whenever they
want without touching bsd.port.mk.
To add a target that runs just before post-configure run, do:
_USES_configure+= 695:my-post-configure
my-post-configure:
do something
To fine tune when the target is ran, look at the values in the *_SEQ
variables at the end of bsd.port.mk, and the other USES.
Allow ports Makefiles to override the priority of targets with the
TARGET_ORDER_OVERRIDE variable. For example, to get post-install
running earlier, (its default is 700) do:
TARGET_ORDER_OVERRIDE= 650:post-install
While there, add options target helpers for the do-* targets when they
exist.
Reviewed by: antoine, bapt
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3099
|
Wednesday, 29 Jul 2015
|
22:09 antoine
Switch default python_CMD used by shebangfix to ${PYTHON_CMD} for ports
using python
PR: 201077
Reviewed by: mat
With hat: portmgr
Differential Revision: https://reviews.freebsd.org/D2955
|
Friday, 12 Jun 2015
|
19:51 antoine
Fix a typo
|
Monday, 18 Aug 2014
|
19:34 antoine
Add ksh support to USES=shebangfix
PR: ports/192781
Submitted by: timp87
With hat: portmgr
|
Saturday, 15 Mar 2014
|
10:31 gerald
Move MAINTAINER lines to the end of the initial comment block and
make things a bit more consistent.
Approved by: portmgr (bapt)
|
Monday, 17 Feb 2014
|
16:38 gahr
- Add 'tcl' and 'tk' support in SHEBANG_LANG
By default, /usr/bin/tclsh and /usr/bin/wish will be substituted with ${TCLSH}
and ${WISH}, respectively. This only works when USES contains 'tcl' or 'tk'.
Approved by: portmgr (bapt)
|
Saturday, 15 Feb 2014
|
09:20 des
Add java_CMD. Although Java programs don't use shebangs, it is sometimes
useful to have a centrally located list of interpreters for other purposes.
Approved by: portmgr (mat)
|
Saturday, 4 Jan 2014
|
00:26 bapt
Properly add targets to the sequence they belong to, that now makes them
predictable
|
Thursday, 28 Nov 2013
|
23:57 gerald
Extend description of USE=shebangfix. Improve grammar and formatting.
Approved by: portmgr (bapt)
|
Wednesday, 20 Nov 2013
|
07:29 bapt
Mark some targets .PHONY
|
Sunday, 25 Aug 2013
|
16:14 mva
- Fix a documentation typo
|
Monday, 10 Jun 2013
|
10:19 bapt
Add some more comment to explain how SHEBANG_FILES works
Requested by: kwm (gnome)
|
Wednesday, 29 May 2013
|
10:34 bapt
Do not leave .bak files after converting shebangs
|
Monday, 6 May 2013
|
22:23 bapt
Add new USES: shebangfix
use it to fix shebang on files specified by SHEBANG_FILES macro, by default it
proposes default values for bash, perl, php, python, ruby, it can be customized
and extended
|
Number of commits found: 25 |