<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[136832] trunk/dports/archivers/gnutar</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/136832">136832</a></dd>
<dt>Author</dt> <dd>ryandesign@macports.org</dd>
<dt>Date</dt> <dd>2015-05-27 22:55:35 -0700 (Wed, 27 May 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>gnutar: update to 1.28, disable silent rules, and add modeline (#47814; maintainer timeout)</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsarchiversgnutarPortfile">trunk/dports/archivers/gnutar/Portfile</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li>trunk/dports/archivers/gnutar/files/</li>
<li><a href="#trunkdportsarchiversgnutarfilespatchxattrsdiff">trunk/dports/archivers/gnutar/files/patch-xattrs.diff</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsarchiversgnutarPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/archivers/gnutar/Portfile (136831 => 136832)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/archivers/gnutar/Portfile        2015-05-28 05:37:46 UTC (rev 136831)
+++ trunk/dports/archivers/gnutar/Portfile        2015-05-28 05:55:35 UTC (rev 136832)
</span><span class="lines">@@ -1,3 +1,4 @@
</span><ins>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</ins><span class="cx"> # $Id$
</span><span class="cx">
</span><span class="cx"> PortSystem 1.0
</span><span class="lines">@@ -3,6 +4,5 @@
</span><span class="cx">
</span><span class="cx"> name gnutar
</span><del>-version 1.27.1
-revision 1
</del><ins>+version 1.28
</ins><span class="cx"> categories archivers
</span><span class="cx"> maintainers mww
</span><span class="lines">@@ -17,19 +17,26 @@
</span><span class="cx">
</span><span class="cx"> homepage http://www.gnu.org/software/tar/
</span><span class="cx"> master_sites gnu:tar
</span><del>-checksums md5 490e074dd7e71f553df8357a7ef9bdcf \
- sha1 67aa31d0d497849c05ba5ea6eb41cff130407751 \
- rmd160 a99ccfd874ac72c1e0feec2d86423c3e5bcd19fb
</del><span class="cx"> distname tar-${version}
</span><del>-use_bzip2 yes
</del><ins>+use_xz yes
+
+checksums rmd160 b1b5b94f5855b28e7f169c510ae08fe2e9304675 \
+ sha256 64ee8d88ec1b47a0961033493f919d27218c41b580138fd6802327462aff22f2
+
</ins><span class="cx"> platforms darwin
</span><span class="cx">
</span><span class="cx"> depends_lib port:gettext port:libiconv
</span><span class="cx"> depends_build port:help2man
</span><span class="cx">
</span><ins>+patch.pre_args -p1
+patchfiles patch-xattrs.diff
+
+use_autoreconf yes
+autoreconf.args -fvi
+
</ins><span class="cx"> configure.env-append FORCE_UNSAFE_CONFIGURE=1
</span><del>-configure.args --program-prefix=gnu \
- --infodir=${prefix}/share/info
</del><ins>+configure.args --disable-silent-rules \
+ --program-prefix=gnu
</ins><span class="cx">
</span><span class="cx"> test.run yes
</span><span class="cx"> test.target check
</span></span></pre></div>
<a id="trunkdportsarchiversgnutarfilespatchxattrsdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/archivers/gnutar/files/patch-xattrs.diff (0 => 136832)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/archivers/gnutar/files/patch-xattrs.diff         (rev 0)
+++ trunk/dports/archivers/gnutar/files/patch-xattrs.diff        2015-05-28 05:55:35 UTC (rev 136832)
</span><span class="lines">@@ -0,0 +1,114 @@
</span><ins>+>From 7d1d3d38cb66b02c062de77847e3c0ecd842366c Mon Sep 17 00:00:00 2001
+From: Pavel Raiskup <address@hidden>
+Date: Mon, 4 Aug 2014 13:19:49 +0200
+Subject: [PATCH] xattrs: fix bug in configure
+
+Be careful to define HAVE_XATTRS when not all needed xattr-related
+functions are properly defined either in libc or libattr.
+
+Reported independently by Denis Excoffier and Dominyk Tille.
+
+* acinclude.m4 (TAR_HEADERS_ATTR_XATTR_H): Check for each xattr
+function separately. Don't AC_CHECK_LIB (LIBS is filled by
+AC_SEARCH_LIBS when necessary).
+* lib/xattr-at.c: Do not build when HAVE_XATTRS is not defined.
+* src/Makefile.am: The LDADD -lattr was redundant.
+---
+ acinclude.m4 | 42 ++++++++++++++----------------------------
+ lib/xattr-at.c | 7 +++++++
+ src/Makefile.am | 4 ----
+ 3 files changed, 21 insertions(+), 32 deletions(-)
+
+diff --git a/acinclude.m4 b/acinclude.m4
+index 3b28b3b..db0bbc7 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -40,37 +40,23 @@ AC_DEFUN([TAR_HEADERS_ATTR_XATTR_H],
+ # First check for <sys/xattr.h>
+ AC_CHECK_HEADERS([sys/xattr.h])
+ AM_CONDITIONAL([TAR_COND_XATTR_H],[test "$ac_cv_header_sys_xattr_h" = yes])
+- AM_CONDITIONAL([TAR_LIB_ATTR],[false])
+- if test "$ac_cv_header_sys_xattr_h" = yes; then
+- AC_CHECK_FUNCS(getxattr fgetxattr lgetxattr \
+- setxattr fsetxattr lsetxattr \
+- listxattr flistxattr llistxattr,
+- # only when functions are present
+- AC_DEFINE([HAVE_SYS_XATTR_H], [1],
+- [define to 1 if we have <sys/xattr.h> header])
+- if test "$with_xattrs" != no; then
+- AC_DEFINE([HAVE_XATTRS],,[Define when we have working linux xattrs.])
+- fi
+- )
+- fi
+-
+- # If <sys/xattr.h> is not found, then check for <attr/xattr.h>
+ if test "$ac_cv_header_sys_xattr_h" != yes; then
+ AC_CHECK_HEADERS([attr/xattr.h])
+ AM_CONDITIONAL([TAR_COND_XATTR_H],[test "$ac_cv_header_attr_xattr_h" = yes])
+- AC_CHECK_LIB([attr],[fgetxattr])
+- AM_CONDITIONAL([TAR_LIB_ATTR],[test "$ac_cv_lib_attr_fgetxattr" = yes])
+- if test "$ac_cv_header_attr_xattr_h" = yes; then
+- AC_CHECK_FUNCS(getxattr fgetxattr lgetxattr \
+- setxattr fsetxattr lsetxattr \
+- listxattr flistxattr llistxattr,
+- # only when functions are present
+- AC_DEFINE([HAVE_ATTR_XATTR_H], [1],
+- [define to 1 if we have <attr/xattr.h> header])
+- if test "$with_xattrs" != no; then
+- AC_DEFINE([HAVE_XATTRS],,[Define when we have working linux xattrs.])
+- fi
+- )
++ fi
++
++ if test "$with_xattrs" != no; then
++ for i in getxattr fgetxattr lgetxattr \
++ setxattr fsetxattr lsetxattr \
++ listxattr flistxattr llistxattr
++ do
++ AC_SEARCH_LIBS($i, attr)
++ eval found=\$ac_cv_search_$i
++ test "$found" = "no" && break
++ done
++
++ if test "$found" != no; then
++ AC_DEFINE([HAVE_XATTRS],,[Define when we have working linux xattrs.])
+ fi
+ fi
+ ])
+diff --git a/lib/xattr-at.c b/lib/xattr-at.c
+index 443ccae..009bde5 100644
+--- a/lib/xattr-at.c
++++ b/lib/xattr-at.c
+@@ -18,6 +18,11 @@
+
+ #include <config.h>
+
++/* Temporarily don't build. We are unable to build on (probably not only)
++ darwin due to lack of l*xattr callbacks (XATTR_NOFOLLOW is alternative) and
++ different function definitions. */
++#ifdef HAVE_XATTRS
++
+ #include "xattr-at.h"
+ #include "openat.h"
+
+@@ -108,3 +113,5 @@
+ #undef AT_FUNC_RESULT
+ #undef AT_FUNC_POST_FILE_PARAM_DECLS
+ #undef AT_FUNC_POST_FILE_ARGS
++
++#endif
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 82b2d46..42daaef 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -52,7 +52,3 @@ AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
+ LDADD = ../lib/libtar.a ../gnu/libgnu.a $(LIBINTL) $(LIBICONV)
+
+ tar_LDADD = $(LIBS) $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIB_SELINUX)
+-
+-if TAR_LIB_ATTR
+-tar_LDADD += -lattr
+-endif
+--
+1.9.3
+
</ins></span></pre>
</div>
</div>
</body>
</html>