Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Oct 2015 19:30:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 204018] net/chrony: Pass --prefix to ./configure (Make PREFIX safe)
Message-ID:  <bug-204018-13-q1xI3tiJJX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204018-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-204018-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204018

--- Comment #2 from John Hein <z7dr6ut7gs@snkmail.com> ---
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/<PREFIX>/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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204018-13-q1xI3tiJJX>