From owner-freebsd-ports-bugs@freebsd.org Sat Oct 31 19:30:38 2015 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5F87A1C000 for ; Sat, 31 Oct 2015 19:30:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 C9E7B1DD0 for ; Sat, 31 Oct 2015 19:30:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t9VJUcuI032124 for ; Sat, 31 Oct 2015 19:30:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 204018] net/chrony: Pass --prefix to ./configure (Make PREFIX safe) Date: Sat, 31 Oct 2015 19:30:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: easy, needs-qa, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: z7dr6ut7gs@snkmail.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Oct 2015 19:30:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204018 --- Comment #2 from John Hein --- Yes, I am familiar with GNU_CONFIGURE. I should have mentioned that I investigated using it instead. However, while the configure script is gnu-like, it's not the same. Using GNU_CONFIGURE sort of works, but by luck more than design. - does not support the target triplet (e.g., "Unrecognized option : i386-portbld-freebsd9.3") - creates at least one incorrect directory when using just GNU_CONFIGURE=yes (with no additional CONFIGURE_ARGS) and PREFIX is specified: [ -d /usr/ports/net/chrony/work/stage/etc ] || mkdir -p /usr/ports/net/chrony/work/stage/etc (instead of work/stage//etc) This could be solved by adding --sysconfdir=${PREFIX}/etc to CONFIGURE_ARGS when GNU_CONFIGURE is used. This is currently specified with the current flavor using HAS_CONFIGURE. So, we could switch to GNU_CONFIGURE for this close-but-not-quite-to-gnu-autoconf-flavored configure script with CONFIGURE_ARGS==--sysconfdir=${PREFIX}/etc and live with the target triplet warning message. Or just continue using HAS_CONFIGURE and add --prefix=${PREFIX}. I opted for this choice. I'll attach some QA. -- You are receiving this mail because: You are the assignee for the bug.