Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2024 01:52:52 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        =?UTF-8?B?VMSzbA==?= Coosemans <tijl@FreeBSD.org>
Cc:        dev-commits-ports-main@freebsd.org
Subject:   Re: git: d7511b9d0074 - main - Mk/bsd.port.mk: Add __MAKE_CONF=${NONEXISTENT} to WRK_ENV
Message-ID:  <20240324015252.30aa8d04753ed1ae1d55a90a@dec.sakura.ne.jp>
In-Reply-To: <20240323174553.3bd41424@hal.tijl.coosemans.org>
References:  <20240323225434.5a46725b8241f4aa13b3ff4a@dec.sakura.ne.jp> <20240323174553.3bd41424@hal.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 23 Mar 2024 17:45:53 +0100
Tijl Coosemans <tijl@FreeBSD.org> wrote:

> On Sat, 23 Mar 2024 22:54:34 +0900 Tomoaki AOKI wrote:
> > Just want to be 100% sure before updating ports tree to this commit and
> > later.
> > 
> > Does this mean something like "DEFAULT_VERSIONS+= ssl=base"
> > in /etc/make.conf still work fine?
> > (Means, does this change doesn't affect for ports tree, but affects
> > only Makefile under ${WRKDIR}?)
> 
> Yes.

Thanks for clarification!
Now I can go forward.


> > If yes, no problem, maybe.
> > If no, please revert this ASAP. It's too hazardous.
> > 
> > Regards.
> > 
> >> The branch main has been updated by tijl:
> >> 
> >> URL:  
> > https://cgit.FreeBSD.org/ports/commit/?id=d7511b9d00742c3e2d57c6c03718c4a6f4cd3e72
> >> 
> >> commit d7511b9d00742c3e2d57c6c03718c4a6f4cd3e72
> >> Author:     Tijl Coosemans <tijl@FreeBSD.org>
> >> AuthorDate: 2024-02-29 21:11:00 +0000
> >> Commit:     Tijl Coosemans <tijl@FreeBSD.org>
> >> CommitDate: 2024-03-23 11:19:32 +0000
> >> 
> >>     Mk/bsd.port.mk: Add __MAKE_CONF=${NONEXISTENT} to WRK_ENV
> >>     
> >>     And remove it from individual ports.  Use WRK_ENV in custom build
> >>     commands where necessary.
> >>     
> >>     FreeBSD make(1) includes /usr/share/mk/sys.mk and that includes
> >>     /etc/make.conf if it exists.  This happens when you run make in a
> >> port directory but it also happens when the upstream build system uses
> >> make. This commit disables make.conf inclusion in the latter case
> >> because users can define variables like CFLAGS in make.conf that
> >> override ports framework variables and this can cause problems that are
> >> difficult to diagnose.
> >>     
> >>     If there are any build customisations made through make.conf that
> >> stop working because of this commit then they should be made available
> >> by the ports tree through some mechanism, e.g. an option in a port.
> >>     
> >>     Some ports were picking up variables from Poudriere make.conf and
> >>     required fixes:
> >>     
> >>     - astro/wmspaceweather x11-clocks/wmcalclock: Add OPSYS to MAKE_ENV.
> >>     - games/zhlt: Add ARCH to MAKE_ENV.
> >>     - graphics/tachyon: Upstream ARCH is not ports tree ARCH.
> >>       Set ALL_TARGET=bsd so upstream ARCH is defined correctly.
> >>       Enable multi-threading support while here.
> >>     
> >>     PR:             277455
> >>     Exp-run by:     antoine


-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240324015252.30aa8d04753ed1ae1d55a90a>