svn commit: r363477 - head/sysutils/cfengine36

Baptiste Daroussin bapt at FreeBSD.org
Wed Jul 30 14:41:08 UTC 2014


On Wed, Jul 30, 2014 at 07:19:34AM -0700, Cy Schubert wrote:
> In message <20140730135450.GJ37672 at ivaldir.etoilebsd.net>, Baptiste 
> Daroussin w
> rites:
> > On Wed, Jul 30, 2014 at 03:21:51PM +0200, Baptiste Daroussin wrote:
> > > On Wed, Jul 30, 2014 at 01:17:12PM +0000, Cy Schubert wrote:
> > > > Author: cy
> > > > Date: Wed Jul 30 13:17:12 2014
> > > > New Revision: 363477
> > > > URL: http://svnweb.freebsd.org/changeset/ports/363477
> > > > QAT: https://qat.redports.org/buildarchive/r363477/
> > > >=20
> > > > Log:
> > > >   Make poudriere happy.
> > > >=20
> > > > Modified:
> > > >   head/sysutils/cfengine36/Makefile
> > > >=20
> > > > Modified: head/sysutils/cfengine36/Makefile
> > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> > =3D=3D=3D=3D=3D
> > > > --- head/sysutils/cfengine36/Makefile	Wed Jul 30 13:15:40 2014
> > 	(r363476)
> > > > +++ head/sysutils/cfengine36/Makefile	Wed Jul 30 13:17:12 2014
> > 	(r363477)
> > > > @@ -42,6 +42,7 @@ CONFIGURE_ARGS=3D	--docdir=3D${DOCSDIR} \
> > > >  		--with-lmdb=3D${LOCALBASE} \
> > > >  		--enable-fhs
> > > > =20
> > > > +BUILD_DEPENDS+=3D	${LOCALBASE}/include/pcre.h:${PORTSDIR}/devel/p
> > cre
> > > >  LIB_DEPENDS+=3D	libpcre.so:${PORTSDIR}/devel/pcre \
> > > >  		liblmdb.so:${PORTSDIR}/databases/lmdb
> > > > =20
> > >=20
> > > This is 100% noop and changes nothing that won't make poudriere more happ=
> > y then
> > > before.
> > >=20
> > 
> > This ports have multiple problem due to patch-m4-strndup.m4
> > when building locally it works because you might have autotools installed
> > locally and configrue automatically run aclocal because the m4 file has cha=
> > nged.
> > But that breaks USES=3Dlibtool hence the libexec/cfengine/libpromises.so.3 =
> > not
> > being created fixed by your addition of post-install
> > 
> > on the cluster you are in a clean env so aclocal is not there given you did=
> >  not
> > asked it to be there.
> > 
> > You have 2 possibility either remove patch-m4-strndup.m4, add
> > CPPFLAGS=3D-I${LOCALBASE}/include, remove your new BUILD_DEPENDS and remove=
> >  your
> > post-install
> > 
> > or keep your patch-m4-stdndup.m4 and regenerate configure with USE_AUTOTOOLS
> > macros, add CPPFLAGS=3D-I${LOCALBASE}/include, remove your new BUILD_DEPEND=
> > S and remove your
> > post-install
> > 
> > There is no point in patching m4 macros if you do not regenerate the autoto=
> > ols
> > 
> > This patch http://people.freebsd.org/~bapt/cfengine36.diff does the first t=
> > hing.
> 
> 
> Try this.
> 
> Index: Makefile
> ===================================================================
> --- Makefile	(revision 363480)
> +++ Makefile	(working copy)
> @@ -68,8 +68,4 @@
>  LIB_DEPENDS+=		libvirt.so:${PORTSDIR}/devel/libvirt
>  .endif
>  
> -post-install:
> -	@cd ${STAGEDIR}${PREFIX}/libexec/cfengine && \
> -		${LN} -s libpromises.so.3.0.6 libpromises.so.3
> -
>  .include <bsd.port.post.mk>
> Index: files/patch-aclocal.m4
> ===================================================================
> --- files/patch-aclocal.m4	(revision 0)
> +++ files/patch-aclocal.m4	(working copy)
> @@ -0,0 +1,7 @@
> +--- aclocal.m4.orig	2014-07-30 07:15:47.380055000 -0700
> ++++ aclocal.m4	2014-07-30 07:16:24.011844671 -0700
> +@@ -1118,4 +1118,3 @@
> + m4_include([m4/lt~obsolete.m4])
> + m4_include([m4/old-autoconf.m4])
> + m4_include([m4/snprintf.m4])
> +-m4_include([m4/strndup.m4])
> 
> Property changes on: files/patch-aclocal.m4
> ___________________________________________________________________
> Added: fbsd:nokeywords
> ## -0,0 +1 ##
> +yes
> \ No newline at end of property
> Added: svn:eol-style
> ## -0,0 +1 ##
> +native
> \ No newline at end of property
> Added: svn:mime-type
> ## -0,0 +1 ##
> +text/plain
> \ No newline at end of property
> Index: files/patch-m4-strndup.m4
> ===================================================================
> --- files/patch-m4-strndup.m4	(revision 363347)
> +++ files/patch-m4-strndup.m4	(working copy)
> @@ -1,54 +0,0 @@
> ---- /dev/null	2014-07-29 08:00:54.000000000 -0700
> -+++ m4/strndup.m4	2014-07-29 08:01:42.499328796 -0700
> -@@ -0,0 +1,51 @@
> -+# strndup.m4 serial 21
> -+dnl Copyright (C) 2002-2003, 2005-2013 Free Software Foundation, Inc.
> -+dnl This file is free software; the Free Software Foundation
> -+dnl gives unlimited permission to copy and/or distribute it,
> -+dnl with or without modifications, as long as this notice is preserved.
> -+
> -+AC_DEFUN([cf3_FUNC_STRNDUP],
> -+[
> -+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
> -+  AC_CHECK_DECLS([strndup])
> -+  AC_REPLACE_FUNCS([strndup])
> -+  if test $ac_cv_have_decl_strndup = no; then
> -+    HAVE_DECL_STRNDUP=0
> -+  fi
> -+
> -+  if test $ac_cv_func_strndup = yes; then
> -+    HAVE_STRNDUP=1
> -+    # AIX 5.3 has a function that tries to copy the entire range specified
> -+    # by n, instead of just the length of src.
> -+    AC_CACHE_CHECK([for working strndup], [cf3_cv_func_strndup_works],
> -+      [AC_RUN_IFELSE([
> -+         AC_LANG_PROGRAM([[#include <string.h>
> -+                           #include <stdlib.h>]], [[
> -+#if !HAVE_DECL_STRNDUP
> -+  extern
> -+  #ifdef __cplusplus
> -+  "C"
> -+  #endif
> -+  char *strndup (const char *, size_t);
> -+#endif
> -+  char *s;
> -+  // Will crash if strndup tries to traverse all 2GB.
> -+  s = strndup ("string", 2000000000);
> -+  return 0;]])],
> -+         [cf3_cv_func_strndup_works=yes],
> -+         [cf3_cv_func_strndup_works=no],
> -+         [
> -+changequote(,)dnl
> -+          case $host_os in
> -+            aix | aix[3-6]*) cf3_cv_func_strndup_works="guessing no";;
> -+            *)               cf3_cv_func_strndup_works="guessing yes";;
> -+          esac
> -+changequote([,])dnl
> -+         ])])
> -+    case $cf3_cv_func_strndup_works in
> -+      *no) AC_LIBOBJ([strndup]) ;;
> -+    esac
> -+  else
> -+    HAVE_STRNDUP=0
> -+  fi
> -+])
> Index: pkg-plist
> ===================================================================
> --- pkg-plist	(revision 363347)
> +++ pkg-plist	(working copy)
> @@ -1,5 +1,4 @@
>  libexec/cfengine/libpromises.so
> -libexec/cfengine/libpromises.so.3

No this should not be removed at all if you end up not having this file it means
that something is getting wrong and probably autotools are again regenerating
things they shouldn't.

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20140730/464b6b99/attachment.sig>


More information about the svn-ports-head mailing list