svn commit: r383191 - head/Mk

Bryan Drewery bdrewery at FreeBSD.org
Thu Apr 9 15:50:59 UTC 2015


On 4/9/2015 10:38 AM, Alexey Dokuchaev wrote:
> On Thu, Apr 09, 2015 at 10:15:17AM -0500, Bryan Drewery wrote:
>> *That* made sense. Frankly I think all dev warnings should be disabled
>> in that case though. Setting up ports like this may work but it is not a
>> good way to test a port before committing or submitting it. Many ports
>> and their framework files reference "CURDIR/../..". In r327743 I
>> modified www/linux-seamonkey to use PORTSDIR here and I believe I broke
>> the workflow for the maintainers testing. The ports tree really needs to
>> be tested as a whole. This is why portshaker exists, so you can bring in
>> your partial tree into a full tree. Unionfs in theory is for this too.
> 
> Bryan, I'm on Dmitry's side here.  Building some "foo" port from outside
> /usr/ports (or a properly checked out tree) is very handy feature, and it
> had worked for many years; and while perhaps never officially advertised,
> silently breaking it is a huge POLA violation for power users.  I would
> really appreciate if we can have this behavior back.

I am in favor of fixing it. I just think all the tests should be
disabled. It won't make sense to have some tests enabled and some not.
It's no good if the port passes in your out-of-tree build for 1/2 the
tests and then you just straight commit and find that it fails all of
the other tests.

> 
> On a related noted, I'm generally getting more and more concerned that
> the tree becomes primarily chroot/jail building-oriented.  Example:
> 
> I'm personally heavily relying on ability to set OSVERSION to arbitrary
> value on per-port basis; it is very helpful to test the logic of some
> complicated port (e.g. x11/nvidia-driver) to make sure you got all these
> checks right.  Now since r369644 (also by you) I have to comment that
> harness code from Mk/bsd.port.mk out.
> 
> I was actually surprised that I have to do it, since log message talks
> only about "OSVERSION or UNAME_r is improperly set when building in a
> jail/chroot", but in reality I cannot do a "make OSVERSION=xxx" even when
> building locally.  I'd also appreciate if you could change the code so
> it works as described (i.e. for jail/chroot-environments, bulk package
> builders, tinderbox/p*re, et al.), but not for /usr/ports, thank you.
> 
> ./danfe
> 

Read the commit log again for r369644. Setting one var and not the other
leads to incorrect behavior in many ports. You must have them matching.
It is not just about jails/chroots.

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20150409/e485402e/attachment.sig>


More information about the svn-ports-all mailing list