non port: Mk/bsd.commands.mk |
Number of commits found: 49 |
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 |
Saturday, 20 Jan 2024
|
17:57 Tijl Coosemans (tijl)
Mk/bsd.commands.mk: Fix pre-commit error about indentation
2aaa08f |
Tuesday, 10 Oct 2023
|
11:58 Baptiste Daroussin (bapt)
config: switch from dialog4ports to portconfig
dialog4ports is using libdialog which is being decommissioned from
base replaced by bsddialog. We cannot switch to depending on
devel/cdialog because it build depends on too many things, on the other
hand the author of bsddialog made portconfig as a drop-in replacement
for dialog4ports, it only build depends on devel/bsddialog (we use
the version in port to be sure to have the right version on all
supported versions of the ports tree)
Reported by: Herbert J. Skuhra" <herbert@gojira.at>
0e73ed9 |
07:13 Baptiste Daroussin (bapt)
dialog: fallback on bsddialog
dialog(1) is being replaced by bsddialog(1) in base, prepare the
the ports tree to deal with it.
092b321 |
Thursday, 16 Feb 2023
|
15:51 Baptiste Daroussin (bapt) Author: Mateusz Guzik
SMP: Use nproc(1) instead of sysctl kern.smp.cpus
The former respects cpuset, while the latter does not.
$ cpuset -l 1 -- make -V MAKE_JOBS_NUMBER
1
As nproc is newly introduced, keep the previous variant as a fallback
for the time being.
Differential Revision: https://reviews.freebsd.org/D38457
e3a17d6 |
Wednesday, 20 Jul 2022
|
19:40 Tobias C. Berner (tcberner)
cleanup: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* Akinori MUSHA <knu@FreeBSD.org>
* Alejandro Pulver <alepulver@FreeBSD.org>
* Edwin Groothuis <edwin@freebsd.org>
* Ernst de Haan <znerd@FreeBSD.org>
* Florent Thoumie <flz@FreeBSD.org>
* Gabor Kovesdan <gabor@FreeBSD.org>
* Mark Linimon <linimon@FreeBSD.org>
* Shaun Amott <shaun@inerd.com>
With hat: portmgr
Reported by: mat
2c54d26 |
Friday, 18 Feb 2022
|
18:15 Joseph Mingrone (jrm)
Mk/Uses: Add elfctl
Add USES=elfctl to change an ELF binary's feature control note.
Example:
USES= elfctl
ELF_FEATURES= +noaslr,wxneeded:foo
Reported by: emaste
Approved by: brooks, tcberner (portmgr)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34125
092c4b3 |
Tuesday, 6 Apr 2021
|
14:27 Mathieu Arnold (mat)
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
5d33e04 |
Tuesday, 20 Feb 2018
|
22:25 bdrewery
Remove debugging
|
22:25 bdrewery
Rework r462455: soeliminate never made it to a release, was only in 11-CURRENT.
Reported by: antoine
Approved by: portmgr (implicit)
|
22:10 bdrewery
Avoid fstat(/usr/bin/soeliminate) for every port when building INDEX.
Approved by: portmgr (implicit)
|
Thursday, 20 Apr 2017
|
11:13 mat
Add a RLN command (relative ln), it can be used to create relative
symlinks using install's relative symlinks feature.
If you were going through hoops doing things like this to get relative
symlinks:
${LN} -sf ../lib/some/thing ${STAGEDIR}${PREFIX}/bin
You can now use full paths for both the source and destination:
${RLN} ${STAGEDIR}${PREFIX}/libexec/some/thing ${STAGEDIR}${PREFIX}/bin
One caveat is that the source must exist when this is run, because
install needs to run realpath(1) on it.
Sponsored by: Absolight
|
Tuesday, 11 Apr 2017
|
14:22 amdmi3
Use dedicated macro FMT_80 instead of ${FMT} 75 79 magical constants
Suggested by: mat
Approved by: portmgr (mat)
Differential Revision: D10342
|
Wednesday, 18 Jan 2017
|
13:20 tijl
The output of tools like awk, date, sort, tr,... depends on the current
locale set by the user. Add LANG=C and LC_ALL=C at the beginning of
bsd.port.mk and export them so all commands are executed with the C locale.
LC_ALL=C overrides all other LC_* variables. LANG is used by setlocale(3)
as default value for LC_* variables, so normally it isn't used when LC_ALL
is set, but there's code out there that looks at LANG directly so it's safer
to set it as well. The only commands not captured by this are !=
assignments before any inclusion of bsd.port.*mk.
Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to
CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a
different locale (e.g. USE_LOCALE=en_US.UTF-8).
PR: 215882
Exp-run by: antoine
Approved by: portmgr (antoine)
|
Thursday, 1 Dec 2016
|
21:29 swills
Rename PKG_CMD to PKG_REGISTER
Submitted by: bapt
Differential Revision: https://reviews.freebsd.org/D8677
|
Friday, 2 Sep 2016
|
15:54 emaste
Introduce READELF?= /usr/bin/readelf
In many cases where objdump is currently used, readelf is a better
choice. Introduce a variable for ports that wish to use it.
Reviewed by: bapt
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D7761
|
Monday, 23 Mar 2015
|
04:03 bdrewery
Introduce a BSDMAKE?= /usr/bin/make and use it as the default MAKE_CMD.
With hat: portmgr
|
Saturday, 22 Nov 2014
|
01:48 bapt
Fix typo
|
01:41 bapt
Define SOELIM
If base have the new soeliminate(1) then use it first otherwise fallback on
groff's soelim
|
Monday, 1 Sep 2014
|
13:03 bapt
Remove support for pkg_install
Merge back bsd.pkgng.mk into bsd.port.mk
Add a note about @stopdaemon not being supported anymore
With hat: portmgr
Differential Revision: https://reviews.freebsd.org/D693
|
Sunday, 20 Jul 2014
|
18:56 bdrewery
- Always pass '-f' with ${RM}. This fixes many ports when building as a user
and not root. They were asking for confirmation.
Reported by: jhb
Phabric: D111
Reviewed by: bapt, antoine
With hat: portmgr
|
Wednesday, 18 Jun 2014
|
12:35 bapt
Revert a commit that should not have crept in
|
07:28 bapt
tabspace: 8
|
Thursday, 22 May 2014
|
09:51 ak
- Use /usr/bin/unzip for zip files extraction (part 1)
PR: ports/188419
Exp-run: bdrewery
Approved by: portmgr (bapt)
|
Monday, 13 Jan 2014
|
07:28 bapt
xz being included in all supported base system, remove code using version
from ports
while here properly define XSCAT is is used to allow xzed patches.
PR: ports/185725
Submitted by: naddy
|
Monday, 2 Sep 2013
|
13:26 tijl
Two imake related changes:
1) Move -a from XMKMF command variable to a new XMKMF_ARGS variable.
For ports that don't need -a introduce USES=imake:notall.
This way ports no longer have to redefine XMKMF.
2) xmkmf -a runs imake with the flags in IMAKECPPFLAGS as extra arguments
to set CPP, CC and CXX. This creates the top Makefile, and then xmkmf
runs make Makefiles. This Makefiles target runs imake for each
subdirectory but these imake invocations did not have the flags from
IMAKECPPFLAGS so the resulting makefiles used the wrong C preprocessor
when clang is used (/usr/bin/cpp instead of /usr/local/bin/tradcpp).
Instead of letting xmkmf pass IMAKECPPFLAGS from the environment to
imake let imake handle IMAKECPPFLAGS itself just like it handles
IMAKEINCLUDE.
This exposed configure errors in x11-clocks/mouseclock and x11-wm/fvwm.
Approved by: portmgr (bapt)
|
Tuesday, 30 Jul 2013
|
06:32 bapt
Define MAKE_CMD in post.mk to allow anything to overwrite it
|
05:32 bapt
Define a new MAKE_CMD command
|
Saturday, 29 Jun 2013
|
09:16 bapt
Readd the YACC command definition removed by mistake
|
09:01 bapt
This time USE_IMAKE is totally gone
|
Friday, 31 May 2013
|
16:09 miwi
- Add PS_CMD
PR: 176118
Submitted by: zi
Tested via: ph-w exp-run
|
Thursday, 30 May 2013
|
14:43 bdrewery
- Use pkg-static as PKG_BIN which is safer during upgrades if
libpkg.so disappears.
With hat: portmgr
Reviewed by: bapt
|
Tuesday, 19 Mar 2013
|
09:27 bapt
Make the ports tree use dialog4ports for make config.
dialog4ports has been contributed by Ilya A. Arkhipov. It extends dialog(3) to
provide a mixed dialog widget allowing to represent all features provide by the
new options framework.
This allows the ports tree to not anymore depends on dialog(1) from base to
configure
the options and be able to improve if needed on all supported plateforms at the
same time.
Exp-run by: miwi
|
Thursday, 7 Mar 2013
|
17:08 miwi
- Add new knob USE_LHA [1]
- Convert few ports to USE_LHA [1]
- Revert r303619 since CONFIGURE_ENV already sets CPPFLAGS and LDFLAGS by
default. [2]
PR: 176187 [1]
174790 [2]
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> [1]
Gerald Pfeifer <gerald@pfeifer.com> [2]
|
Friday, 12 Oct 2012
|
07:47 bapt
Fix typo
Submitted by: John Hein <jhein@symmetricom.com>
Feature safe: yes
|
Wednesday, 10 Oct 2012
|
13:12 bapt
Add a part forgotten in previous commit concerning switching to pkgng
|
Tuesday, 9 Oct 2012
|
17:18 bapt
- add STAT to bsd.commands.mk
- use ${STAT} -f \"%z\" in make makesum to calculate size
- speed up USE_PKGCONFIG by using a more efficient syntax [1]
and test in the order it is most expected to appear: "yes/build"
first, "both" second, "run being the last one.
Reported by: dougb [1]
Exp-Run by: beat
|
Monday, 3 Sep 2012
|
20:42 linimon
Add JOT command.
PR: ports/159725
Submitted by: crees
|
Wednesday, 23 May 2012
|
08:17 miwi
- Remove emacs mode, -*- mode: ...; -*- [1]
- Comments for BUILD_ and RUN_DEPENDS fail to mention alternate means to specify
dependencie [2]
- Fix make reinstall [3]
- Trivial comment change for PORTDATA [4]
PR: 151954 [1]
161314 [2]
167085 [3]
167465 [4]
Submitted by: Anonymous <swell.k@gmail.com> [1]
dougb@ and Chris Rees <utisoft@gmail.com> [2]
Garrett Cooper <yanegomi@gmail.com> [3]
"Bryan Drewery" <bryan@shatow.net> [4]
Tested via: phw
|
Wednesday, 22 Feb 2012
|
17:34 bapt
- only include bsd.pkgng.mk once [1]
- only read bsd.pkgng.mk in post.mk [1]
- move the command definition to bsd.command.mk [1]
- fix check-vulnerable [2]
Submitted by: avilla [1], rene [2]
|
Friday, 23 Dec 2011
|
16:19 crees
Correct comment advising how to use sudo as SU_CMD; doesn't work unless
environment is preserved
PR: ports/162273
Submitted by: crees
Approved by: portmgr (linimon)
|
Wednesday, 4 May 2011
|
22:33 flz
Latest round of infrastructure changes.
- bsd.port.mk: add INDEX_PORTS, to support INDEX creation for a subset of the
ports tree [1]
- bsd.port.mk: call target "install-rc-script" before "post-install" [2]
- [patch] ports/Mk bsd.port.mk order if groups/users are created by package [3]
- [bsd.port.mk] [patch] reaper of the dead: md5 has been in /sbin for a while
[4]
- [bsd.port.mk] [patch] remove support for pre 7.x systems (b.*.m) [5]
- [patch] [bsd.port.mk] reaper of the dead: are three variable defintions needed
[6]
PR: ports/156575 [1],
ports/139116 [2],
ports/152498 [3],
ports/155983 [4],
ports/155510 [5],
ports/156340 [6]
Submitted by: Florent Thoumie <flz@xbsd.org> [1],
Sergey Skvortsov <skv@freebsd.org> [2],
Olli Hauer <ohauer@FreeBSD.org> [3],
Eitan Adler <lists@eitanadler.com> [4],
Eitan Adler <lists@eitanadler.com> [5],
Eitan Adler <lists@eitanadler.com> [6]
|
Monday, 8 Nov 2010
|
04:47 fjoe
Document how to use "sudo" instead of "su" in SU_CMD.
Approved by: pav
|
Friday, 20 Aug 2010
|
12:15 pav
- Fix plist leftovers when using LICENSE framework and having @cwd command in
plist
PR: ports/147296
Submitted by: beat
- Provide end-user DISABLE_LICENSES knob to disable licensing framework
PR: ports/149070
Submitted by: amdmi3
- Include bsd.gnome.mk when INSTALLS_ICONS is defined
PR: ports/148051
Submitted by: amdmi3
- Disable xz memory limit to fix port builds on low-memory systems
PR: ports/148250
Submitted by: Warren Block <wblock@wonkity.com>
- Remove compatibility shim for 6.3-RELEASE and older in describe target
PR: ports/146067
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
- Remove INSTALLS_SHLIB
PR: ports/146351
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
- Remove last trace of APACHE_COMPAT
PR: ports/147114
Submitted by: pgollucci
- Allow ports to override _MAKE_JOBS
PR: ports/148754
Submitted by: Anonymous <swell.k@gmail.com>
- Fixes to comments block
PR: ports/135649, ports/148190
Submitted by: pgollucci, gcooper
|
Friday, 4 Jun 2010
|
08:09 pav
- Introduce a new USE_XZ knob that handles lzma/xz compressed distfiles
- Convert a bunch of ports to use it
PR: ports/146329
Submitted by: mm
With hat: portmgr
|
Monday, 3 Aug 2009
|
15:36 miwi
- Move pkg_install commands detection to bsd.commands.mk
PR: 135663
Submitted: Yuri Pankov <yuri.pankov@gmail.com>
- Add default FLEX command to bsd.commands.mk
PR: 137026
Submitted: gahr@
Tested by: pointyhat exp-build run
|
Monday, 14 Apr 2008
|
16:46 pav
Support @rmtry in pkg-plist, analogous to @dirrmtry but for single file rm.
PR: ports/116219
Submitted by: edwin
Make USE_DISPLAY more general: set up virtual X server when USE_DISPLAY is
defined and no DISPLAY variable is in environment; pass DISPLAY value in
CONFIGURE_ENV and MAKE_ENV.
PR: ports/116244
Submitted by: edwin
Define ${PW}.
PR: ports/119821
Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk>
Move SHA256, MD5, GMAKE and XMKMF to bsd.commands.mk.
PR: ports/119879
Submitted by: edwin
Fix a build failure for ports that define their own MTREE File.
PR: ports/120200
Submitted by: dinoex
Don't recreate mtree symlinks if they are already present.
PR: ports/121681
Submitted by: sobomax
Fix LIB_DEPENDS for libraries whose name contains plus sign. Both intuitive and
old escaped syntax works.
PR: ports/121741 (based on)
Submitted by: fjoe
Disable post-install security checks if DISABLE_SECURITY_CHECK variable is
defined.
PR: ports/122224
Submitted by: Bjoern Koenig <bkoenig@alpha-tierchen.de>
Remove versioned Tcl/Tk categories.
PR: ports/122622
Submitted by: pav
|
Tuesday, 11 Mar 2008
|
23:31 pav
- Add UNMAKESELF_CMD (fixing USE_MAKESELF feature)
PR: ports/118749
Submitted by: alepulver
|
Saturday, 4 Aug 2007
|
11:37 gabor
- Extract command variable definitions from bsd.port.mk, they are now stored in
bsd.commands.mk and can be easily reused within the infrastructure.
- Revert old DESTDIR implementation.
- Add a new, fully chrooted DESTDIR implementation as bsd.destdir.mk.
Sponsored by: Google Summer of Code 2007
Approved by: portmgr (pav)
|
Number of commits found: 49 |