From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 16 16:44:44 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 38D8D14D for ; Thu, 16 Oct 2014 16:44:44 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 19D81E8A for ; Thu, 16 Oct 2014 16:44:44 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9GGihpj083589 for ; Thu, 16 Oct 2014 16:44:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194401] bsd.port.mk's OSVERSION change interferes with option WITHOUT_TOOLCHAIN in src.conf Date: Thu, 16 Oct 2014 16:44:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 10.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bugzilla.freebsd@omnilan.de X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2014 16:44:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194401 --- Comment #3 from Harald Schmalzbauer --- (In reply to Brooks Davis from comment #2) > Sorry, missed your examples in the first message. I apologize for not > reading carefully. The first two cases seem like the sort of thing we'd > like to note support as they could be harmful to the project. It really > don't make sense to update a port if you can't build it. The 'make makesum' example is from a very special case! We do automated 'distfile' updates for local (inofficial) ports with a script running on a jail-host without toolchain. The 'make fetch' example is often useful if you want to get a quick look in= to any unknown project. Downloading source doesn't implicate the intention to compile it =E2=80=93 but it could be done in a very convenient way with the= help of 'make fetch'. Checking for updates without compiling them (portmaster -ai e.g.) absolutely makes sense, also on machines which can't even compile anything themself! I frequently do this on remote machines without toolchains, but with read-o= nly (temporary) ports tree because it's the fastest way (I'm ware of) to determ= ine what updates _would_ be available. If there's something relevant for upgrading revealed, I go to the build host (which has knwoledge of detailed project info regarding the destination hos= t, like what complete port set is installed, corresponding db/ports/* options etc.) and roll out a package repository CD on that build host, which afterw= ard gets mounted on the destination machine and pkg upgrade will do the rest. (Using FreeBSDs pkg repositroy is not an option for almost all of my setups, since virtually every port was compiled with non-standard options defined!) > The error message suggests a perfectly functional workaround. Why is that > not acceptable? Just add: >=20 > OSVERSION!=3Dsysctl -n kern.osreldate >=20 > to your make.conf or put in your environment. For the same reason it was changed in bsd.ports.mk. It's very often wrong. Doesn't matter for the tasks described here, but I think there's a better solution - unconditionally shipping param.h. Like described, regardless of = the WITHOUT_TOOLCHAIN option, there's always a populated /usr/include directory tree, so adding the 11kB "param.h" shouldn't hurt in any way, but it could = be used as a reliable source of correct version information, which si not poss= ible with 'sysctl -n kern.osreldate' Thanks, -Harry --=20 You are receiving this mail because: You are the assignee for the bug.=