Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2017 09:00:18 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r445058 - in head/devel/libexecinfo: . files
Message-ID:  <201707050900.v6590IJx002528@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Jul  5 09:00:18 2017
New Revision: 445058
URL: https://svnweb.freebsd.org/changeset/ports/445058

Log:
  - Add LICENSE
  - Fix redundant CFLAGS
  - Switch to options helpers
  - Regenerate patches

Modified:
  head/devel/libexecinfo/Makefile
  head/devel/libexecinfo/files/patch-Makefile
  head/devel/libexecinfo/files/patch-execinfo.c

Modified: head/devel/libexecinfo/Makefile
==============================================================================
--- head/devel/libexecinfo/Makefile	Wed Jul  5 08:39:22 2017	(r445057)
+++ head/devel/libexecinfo/Makefile	Wed Jul  5 09:00:18 2017	(r445058)
@@ -10,19 +10,20 @@ MASTER_SITES=	LOCAL/itetcu
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Library for inspecting program's backtrace
 
-OPTIONS_DEFINE=	DOCS
+LICENSE=	BSD2CLAUSE
 
 USES=		tar:bzip2 uidfix
 USE_LDCONFIG=	yes
-CFLAGS=		-fno-omit-frame-pointer
 MAKE_FLAGS=	LIBDIR=${PREFIX}/lib \
 		INCLUDEDIR=${PREFIX}/include
 
+CFLAGS+=	-fno-omit-frame-pointer
+
 PORTDOCS=	README
 
-CFLAGS_amd64=	-fno-omit-frame-pointer
+OPTIONS_DEFINE=	DOCS
 
-post-install:
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 

Modified: head/devel/libexecinfo/files/patch-Makefile
==============================================================================
--- head/devel/libexecinfo/files/patch-Makefile	Wed Jul  5 08:39:22 2017	(r445057)
+++ head/devel/libexecinfo/files/patch-Makefile	Wed Jul  5 09:00:18 2017	(r445058)
@@ -1,6 +1,6 @@
---- Makefile.orgi	2013-02-05 23:13:54.375834807 +0800
-+++ Makefile	2013-02-05 23:14:13.106833334 +0800
-@@ -34,6 +34,7 @@
+--- Makefile.orig	2004-07-19 05:19:55 UTC
++++ Makefile
+@@ -34,6 +34,7 @@ SHLIB_MAJOR=	1
  SHLIB_MINOR=	0
  
  NOPROFILE=	yes

Modified: head/devel/libexecinfo/files/patch-execinfo.c
==============================================================================
--- head/devel/libexecinfo/files/patch-execinfo.c	Wed Jul  5 08:39:22 2017	(r445057)
+++ head/devel/libexecinfo/files/patch-execinfo.c	Wed Jul  5 09:00:18 2017	(r445058)
@@ -1,6 +1,6 @@
---- execinfo.c.orig
+--- execinfo.c.orig	2004-07-19 05:21:09 UTC
 +++ execinfo.c
-@@ -69,7 +69,8 @@
+@@ -69,7 +69,8 @@ backtrace(void **buffer, int size)
  char **
  backtrace_symbols(void *const *buffer, int size)
  {
@@ -10,7 +10,7 @@
      char **rval;
      char *cp;
      Dl_info info;
-@@ -78,7 +79,6 @@
+@@ -78,7 +79,6 @@ backtrace_symbols(void *const *buffer, i
      rval = malloc(clen);
      if (rval == NULL)
          return NULL;
@@ -18,7 +18,7 @@
      for (i = 0; i < size; i++) {
          if (dladdr(buffer[i], &info) != 0) {
              if (info.dli_sname == NULL)
-@@ -92,14 +92,14 @@
+@@ -92,14 +92,14 @@ backtrace_symbols(void *const *buffer, i
                     2 +                      /* " <" */
                     strlen(info.dli_sname) + /* "function" */
                     1 +                      /* "+" */
@@ -35,7 +35,7 @@
                buffer[i], info.dli_sname, offset, info.dli_fname);
          } else {
              alen = 2 +                      /* "0x" */
-@@ -108,12 +108,15 @@
+@@ -108,12 +108,15 @@ backtrace_symbols(void *const *buffer, i
              rval = realloc_safe(rval, clen + alen);
              if (rval == NULL)
                  return NULL;
@@ -54,7 +54,7 @@
      return rval;
  }
  
-@@ -155,6 +158,6 @@
+@@ -155,6 +158,6 @@ backtrace_symbols_fd(void *const *buffer
                  return;
              snprintf(buf, len, "%p\n", buffer[i]);
          }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707050900.v6590IJx002528>