The IRC configure script has curious logic, is being overly complex,

and actually breaks badly if the port is being built in a chroot
where the host triplet won't match the jail triplet.

The solution I've provided here is clean.  Using the pre-configure
target, the build directory (with a fixed name) is created and the
needed configure script and header are copied over, just like the top
configure script does.  Then the port makefile just configures with
that.  It's much better, more robust, and fixes the triplet mismatch.

PR:		194679
Submitted by:	marino
This commit is contained in:
Johan van Selst 2014-10-29 09:41:47 +00:00
parent 1a75390672
commit 519d5660ef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371671

View File

@ -19,11 +19,17 @@ CONFLICTS_INSTALL= charybdis-[0-9]* ircd-hybrid-[0-9]* Nefarious-[0-9]* \
USE_RC_SUBR= ircd
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/ircd
BUILD_WRKSRC= ${WRKSRC}/${MACHINE_ARCH}-unknown-${OPSYS:tl}${OSREL}
INSTALL_WRKSRC= ${BUILD_WRKSRC}
BUILD_WRKSRC= ${WRKSRC}/build
INSTALL_WRKSRC= ${BUILD_WRKSRC}
CONFIGURE_WRKSRC= ${BUILD_WRKSRC}
OPTIONS_DEFINE= IPV6
OPTIONS_DEFAULT=IPV6
IPV6_CONFIGURE_ENABLE= ipv6
pre-configure:
@${MKDIR} ${BUILD_WRKSRC}
${CP} -p ${WRKSRC}/support/configure ${BUILD_WRKSRC}
${CP} -p ${WRKSRC}/support/config.h.dist ${BUILD_WRKSRC}/config.h
.include <bsd.port.mk>