non port: Mk/Uses/gem.mk |
Number of commits found: 23 |
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 |
Tuesday, 9 Jan 2024
|
12:12 Matthias Fechner (mfechner)
Mk/Uses: make it possible to compile gems that need rust to build
This commits defines same variables in a way that they can be overwritten
by a port.
Refactored the extract target to work together with cargo.mk.
The gem.mk file will require more work to be easily usable for gems that
required rust. Most of the work is now outsourced to the port.
I added comments to parts that needs more love.
To test these modification, the following commands can be used:
(make sure you adjust the path to match your environment)
rm /usr/local/poudriere/ports/gitlab/distfiles/rubygem/gapic-common-*.gem
rm /usr/local/poudriere/ports/gitlab/distfiles/rubygem/prome*.gem
rm /usr/local/poudriere/ports/gitlab/distfiles/rust/crates/ahash-*crate
/usr/local/poudriere/ports/gitlab/distfiles/*.gem
cd /usr/local/poudriere/ports/gitlab/devel/rubygem-prometheus-client-mmap
make makesum
cd /usr/local/poudriere/ports/gitlab/devel/rubygem-gapic-common
make makesum
poudriere testport -p gitlab -j 132amd64 devel/rubygem-gapic-common && poudriere
testport -p gitlab -j 132amd64 devel/rubygem-prometheus-client-mmap
606b37b |
Monday, 8 Jan 2024
|
04:46 Matthias Fechner (mfechner)
Revert "gem: make it possible to generate gems that require rust/cargo"
This reverts commit 87916ecbfac7532b4d3de63efa36ed8f8e637e36.
I will review it again and fix problems it showed with path rubygem/
6b83119 |
Saturday, 6 Jan 2024
|
08:18 Matthias Fechner (mfechner)
gem: make it possible to generate gems that require rust/cargo
Make sure cargo.mk and gem.mk can work together.
If you want to use rust for your gem, have a look on
devel/rubygem-prometheus-client-mmap as an example.
Differential Revision: https://reviews.freebsd.org/D43292
87916ec |
Saturday, 14 Jan 2023
|
23:08 Muhammad Moinur Rahman (bofh)
Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk
Notable changes are.
- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.
This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863
I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D37925
18c6e18 |
Friday, 13 May 2022
|
11:40 Po-Chuan Hsieh (sunpoet)
Mk/Uses/gem.mk: Clean up
- Move *_DEPENDS together
- Fix PLIST_SUB:
- Use defined GEMS_BASE_DIR
- Remove unused PORT
- Fix indent
ab3fa74 |
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 |
Monday, 28 Feb 2022
|
13:02 Po-Chuan Hsieh (sunpoet)
Mk/Uses: Update RUBYGEMBIN after f800970bc87ab1fac4110c4482ec064be1140b90
8a20784 |
Sunday, 20 Feb 2022
|
13:06 Dan Langille (dvl)
devel/ruby-gems: Update to 3.3.7
These are fixes Ruby 3.0
Changes were compiled against all dependencies of devel/ruby-gems and
they all built cleanly.
There are five known build failures, all prexisting:
* devel/rubygem-xdg5: requires Ruby 3.0
* devel/rubygem-xdg: requires Ruby 3.1
* graphics/rubygem-objectdetect: port explicitly marked broken
* mail/rubygem-tmail: port explicitly marked broken
* science/cdcl: marked broken, unfetchable
Plus, science/rubygem-ruby-dcl gets skipped because of science/cdcl
PR: 258108
Approved by: ruby (zi@)
7b279c9 |
Friday, 11 Jun 2021
|
07:37 Alexey Dokuchaev (danfe)
Mk/Uses: replace bare ${ECHO} with ${ECHO_CMD} or ${ECHO_MSG}
ECHO is builtin variable and is cleared when make(1) is invoked
in silent mode, i.e. as ``make -s'', thus making statements that
use it do nothing. Depending on the context, replace it with
either ${ECHO_CMD} or ${ECHO_MSG} (in one case), as appropriate.
PR: 256185
Submitted by: Franco Fichtner
f16e30b |
Tuesday, 6 Apr 2021
|
14:27 Mathieu Arnold (mat)
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
5d33e04 |
Tuesday, 10 Sep 2019
|
17:38 sunpoet
Keep .so files in ext directory
- Remove NO_ARCH for dependent ports
- Bump PORTREVISION for dependency and package change
PR: 240425
Exp-run by: antoine
|
Friday, 22 Feb 2019
|
19:56 sunpoet
Update devel/ruby-gems to 3.0.2
- Update Mk/Uses/gem.mk
Changes: https://github.com/rubygems/rubygems/blob/master/History.txt
PR: 235795
Submitted by: Yasuhiro KIMURA <yasu@utahime.org>, sunpoet (myself)
Exp-run by: antoine
|
Tuesday, 9 Jan 2018
|
07:40 mat
Remove support for variables that have been deprecated for a while.
variables deprecation revision
WITHOUT_NLS 2013-12-13 r336337
WITH_/WITHOUT_ 2014-02-24 r345870
NOPORT(DOC|EXAMPLE)S 2014-04-19 r351587
WITH_BDB_VER 2016-05-02 r414444
OVERRIDE_LINUX_BASE_PORT 2016-09-05 r421387
WITH_OPENSSL_(BASE|PORT) 2016-06-16 r416965
While there, add an ERROR variable that works like DEV_ERROR, but for
user facing errors, and move NOPORTDOCS,
NOPORTEXAMPLES and WITHOUT_NLS to it.
Cleanup bsd.sanity.mk a bit.
Fix fallout.
PR: 224613
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D13490
|
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
|
Saturday, 21 Jan 2017
|
17:29 sunpoet
Update default GEM_NAME
Change default GEM_NAME from ${PORTNAME}-${PORTVERSION} to ${DISTNAME} to avoid
unnecessary GEM_NAME setting in ports Makefile
Differential Revision: https://reviews.FreeBSD.org/D9250
PR: 216267
Exp-run by: antoine
|
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)
|
Friday, 21 Oct 2016
|
12:51 mat
${RM} already has -f.
PR: 213570
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight
|
Thursday, 28 Apr 2016
|
08:51 mat
Now that autoplist is not used, remove support for it, and fix header.
Sponsored by: Absolight
|
Wednesday, 27 Apr 2016
|
20:19 swills
Improve gem.mk
* Check for valid args to USES=gem
* Make autoplist default, allowing it to be specified (which is a no-op), or
turned off
* Add sanity checks for USE_RUBYGEMS RUBYGEM_AUTOPLIST
Requested by: mat
Discussed with: mat
|
16:53 mat
Don't abuse an existing target and create our own.
Sponsored by: Absolight
|
16:36 swills
create USES=gem and update rubygem- ports to use it
Note that for now ports still have to have USE_RUBY=yes to use USES=gem
PR: 209041
Differential Revision: https://reviews.freebsd.org/D6070
|
Number of commits found: 23 |