non port: Mk/Uses/erlang.mk |
Number of commits found: 19 |
Thursday, 29 Feb 2024
|
20:21 Tijl Coosemans (tijl)
Mk/*: Build with a clean environment
Both our make and gmake use the MAKEFLAGS environment variable but the
values aren't compatible and the latest version of gmake complains about
that. To rule out that any environment variable can cause problems like
this, add a new command SETENVI=/usr/bin/env -i that clears the
environment, and use it to run upstream build systems with a clean
environment.
Introduce a new variable WRK_ENV that contains the environment to use
with SETENVI in all targets that run upstream build commands. Variables
that are common between CONFIGURE_ENV and MAKE_ENV could be moved to
WRK_ENV but for now it just contains a minimal environment:
HOME=${WRKDIR}: Fixes USES=elixir ports that were using the user's HOME.
OSVERSION: For cross building; determines the output of uname -K and
getosreldate(3); affects net/freebsd-telnetd for example.
PATH: Fixes USES=gem ports that were using the user's PATH.
PWD=$${PWD}: Preserve current working directory; affects USES=go ports.
TERM: To preserve colored output to terminals.
TMPDIR: For users who define that.
UNAME_*: For cross building; determines the output of uname(1); affects
lang/python* for example.
This commit deals with everything under Mk/. Ports that have their own
targets running upstream build commands can switch to SETENVI later.
The ports tree adds its definition of ARCH to the MAKEFLAGS environment
variable, which is interpreted by sub-makes as command line arguments,
which means that any definition of ARCH in upstream makefiles was
overridden. The following ports required fixes now that this is no
longer the case.
games/iortcw, games/q3cellshading, games/tremulous:
These use Quake 3 engine code. Fix use of ARCH. Reduce diff between
FreeBSD code and Linux code.
games/legesmotus:
Remove ARCH related patches.
lang/ocaml:
Patch configure script so it detects amd64 correctly. Also make the
powerpc case consistent with the other architectures. This also affects
other ocaml ports like devel/ocaml-ocamlbuild and math/ocaml-num that
include a Makefile.config installed by lang/ocaml. While here, use
SETENVI in check-test target.
net/libnatpmp:
Use of upstream definition of ARCH triggers installation in PREFIX/lib64
on amd64. Disable this.
PR: 276478
Approved by: portmgr (antoine)
Exp-run by: antoine
572f236 |
Wednesday, 30 Nov 2022
|
13:40 Dave Cottlehuber (dch)
Uses/erlang.mk: remove version checking from enc
BUILD_DEPENDS doesn't recognise version response from enc, so it is
not accepted in poudriere, when the test doesn't succeed.
Sponsored by: SkunkWerks, GmbH
fbe4a1a |
08:03 Dave Cottlehuber (dch)
Uses/erlang.mk: add new native compiler hook
rebar2 -> rebar3 removed the very useful helper tools that allow
compiling native code into the BEAM. enc is a small tool already in
ports that provides this functionality.
Sponsored by: SkunkWerks, GmbH
82d5f86 |
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 |
Tuesday, 6 Apr 2021
|
14:27 Mathieu Arnold (mat)
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
5d33e04 |
Thursday, 23 Jan 2020
|
11:31 dch
uses: suppress grep warnings when updating file paths
USES=erlang:rebar does a global replace on files to correct LOCALBASE.
This should only be run on files, as dirs cause needless log spam.
Sponsored by: SkunkWerks, GmbH
Differential Revision: https://reviews.freebsd.org/D23293
|
Friday, 21 Oct 2016
|
12:51 mat
${RM} already has -f.
PR: 213570
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight
|
Tuesday, 23 Aug 2016
|
11:00 olgeni
Pass MAKE_ENV to the ERLANG_COMPILE command, so that CFLAGS and
LDFLAGS actually reach the C compiler when invoked by rebar.
|
Sunday, 27 Mar 2016
|
01:23 bapt
Remove the now unneeded ${PORTSDIR} from dependency definition in
The infrastructure Makefiles
PR: 206569
Exp run by: antoine
Differential Revision: D5047
|
Thursday, 15 Oct 2015
|
07:36 bapt
Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched
This gives more time for tools to get updated, available in packages etc before
bothering users
|
Wednesday, 14 Oct 2015
|
16:49 bapt
Drop the necessity to add ${PORTSDIR} to dependency line
Modify make describe to automatically prepend ${PORTSDIR} if the path for the
port is not absolute
Checked with poudriere, portmaster, portupgrade
PR: 203685
Exp-run by: antoine
Differential Revision: https://reviews.freebsd.org/D3866
|
Tuesday, 8 Sep 2015
|
22:12 olgeni
Fix build_fs_violation for rebar3 builds.
rebar3 has the uncontrollable urge to write some stuff into the user's
HOME, even if just an empty directory. Redirect HOME to WRKDIR so that it
at least shoots a blank and does not bump into build_fs_violation checks.
This fixes devel/erlang-bbmustache and www/erlang-hackney.
|
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
|
Tuesday, 21 Jul 2015
|
15:56 olgeni
Fix regular expressions for "./rebar" and "./rebar3".
|
Tuesday, 14 Jul 2015
|
10:44 olgeni
Improvements in erlang.mk:
- Replace %%PORTVERSION%% in all source files
- Fix vsn tag in app files, whatever its format
|
Friday, 10 Jul 2015
|
11:31 olgeni
Fix installation of ERL_DOCS directories.
|
10:10 olgeni
Fix typo in variable name.
|
Tuesday, 7 Jul 2015
|
23:06 olgeni
Improve working of comment.
In erlang.mk, replace "none" with "no argument" in the "Valid ARGS"
example; "none" looks an actual argument.
|
Monday, 6 Jul 2015
|
21:40 olgeni
Add Uses/erlang.mk.
It can handle simple Erlang libraries and applications that install
in LOCALBASE/lib/erlang/lib.
|
Number of commits found: 19 |