pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc boost-headers: do not generate user.hpp during configure.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f6e82b1c5240
branches:  trunk
changeset: 315997:f6e82b1c5240
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Dec 02 14:32:17 2018 +0000

description:
boost-headers: do not generate user.hpp during configure.

Use the pregenerated file instead.
The configure step is only intended to be used as a base
when porting to new platforms, and as-is it didn't use the
same flags that were used in other places.

See https://github.com/boostorg/config/issues/240 for more details.

Bump PKGREVISION.

diffstat:

 devel/boost-headers/Makefile    |   3 ++-
 meta-pkgs/boost/Makefile.common |  33 ++++++++++++++++++---------------
 2 files changed, 20 insertions(+), 16 deletions(-)

diffs (61 lines):

diff -r 603f23ebe724 -r f6e82b1c5240 devel/boost-headers/Makefile
--- a/devel/boost-headers/Makefile      Sun Dec 02 13:41:05 2018 +0000
+++ b/devel/boost-headers/Makefile      Sun Dec 02 14:32:17 2018 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.51 2018/08/16 15:58:32 adam Exp $
+# $NetBSD: Makefile,v 1.52 2018/12/02 14:32:17 wiz Exp $
 
 BOOST_PACKAGE=         headers
 BOOST_COMMENT=         (build-time headers)
 BOOST_CONFIG=          generate
+PKGREVISION=           1
 
 .include "../../meta-pkgs/boost/Makefile.common"
 
diff -r 603f23ebe724 -r f6e82b1c5240 meta-pkgs/boost/Makefile.common
--- a/meta-pkgs/boost/Makefile.common   Sun Dec 02 13:41:05 2018 +0000
+++ b/meta-pkgs/boost/Makefile.common   Sun Dec 02 14:32:17 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.78 2018/09/07 10:03:45 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.79 2018/12/02 14:32:17 wiz Exp $
 #
 # used by devel/boost-build/Makefile
 # used by devel/boost-docs/Makefile
@@ -91,20 +91,23 @@
 pre-configure:
        ${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${TOUCH}
 
-# Generate a new user.hpp or use the installed one, depending on the package
-# we are building.
-.  if ${BOOST_CONFIG} == "installed"
-.    include "../../devel/boost-headers/buildlink3.mk"
-do-configure:
-       ${CP} -f \
-           ${BUILDLINK_PREFIX.boost-headers}/include/boost/config/user.hpp \
-           ${WRKSRC}/boost/config/user.hpp
-.  elif ${BOOST_CONFIG} == "generate"
-do-configure:
-       cd ${WRKSRC}/libs/config && \
-           ${SETENV} ${CONFIGURE_ENV} ${SH} ./configure
-       ${CP} -f ${WRKSRC}/libs/config/user.hpp ${WRKSRC}/boost/config/user.hpp
-.  endif
+# According to https://github.com/boostorg/config/issues/240
+# the user.hpp generation is intended only for porting to new platforms
+# and we should use the provided one.
+## Generate a new user.hpp or use the installed one, depending on the package
+## we are building.
+#.  if ${BOOST_CONFIG} == "installed"
+#.    include "../../devel/boost-headers/buildlink3.mk"
+#do-configure:
+#      ${CP} -f \
+#          ${BUILDLINK_PREFIX.boost-headers}/include/boost/config/user.hpp \
+#          ${WRKSRC}/boost/config/user.hpp
+#.  elif ${BOOST_CONFIG} == "generate"
+#do-configure:
+#      cd ${WRKSRC}/libs/config && \
+#          ${SETENV} ${CONFIGURE_ENV} ${SH} ./configure
+#      ${CP} -f ${WRKSRC}/libs/config/user.hpp ${WRKSRC}/boost/config/user.hpp
+#.  endif
 
 boost-install-libs:
        ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib



Home | Main Index | Thread Index | Old Index