From owner-svn-ports-all@FreeBSD.ORG Wed Jul 24 15:03:06 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C70679BE; Wed, 24 Jul 2013 15:03:06 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B3ADB244D; Wed, 24 Jul 2013 15:03:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6OF36U3000607; Wed, 24 Jul 2013 15:03:06 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6OF36tg000603; Wed, 24 Jul 2013 15:03:06 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201307241503.r6OF36tg000603@svn.freebsd.org> From: Baptiste Daroussin Date: Wed, 24 Jul 2013 15:03:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r323605 - head/sysutils/fusefs-unionfs/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jul 2013 15:03:07 -0000 Author: bapt Date: Wed Jul 24 15:03:05 2013 New Revision: 323605 URL: http://svnweb.freebsd.org/changeset/ports/323605 Log: Add the forgotten patches Added: head/sysutils/fusefs-unionfs/files/patch-CMakeLists.txt (contents, props changed) head/sysutils/fusefs-unionfs/files/patch-src__unionfs.c (contents, props changed) head/sysutils/fusefs-unionfs/files/patch-src__usyslog.c (contents, props changed) Added: head/sysutils/fusefs-unionfs/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fusefs-unionfs/files/patch-CMakeLists.txt Wed Jul 24 15:03:05 2013 (r323605) @@ -0,0 +1,15 @@ +--- ./CMakeLists.txt.orig 2012-09-11 00:06:32.000000000 +0200 ++++ ./CMakeLists.txt 2013-07-24 16:54:01.550064323 +0200 +@@ -9,12 +9,6 @@ + SET(CMAKE_BUILD_TYPE RelWithDebInfo) + ENDIF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) + +-# Select flags. +-SET(CMAKE_C_FLAGS "-pipe -W -Wall -DFORTIFY_SOURCE=2") +-SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") +-SET(CMAKE_C_FLAGS_RELEASE "-O2") +-SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG") +- + add_definitions(-D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26) + + option(WITH_XATTR "Enable support for extended attributes" OFF) Added: head/sysutils/fusefs-unionfs/files/patch-src__unionfs.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fusefs-unionfs/files/patch-src__unionfs.c Wed Jul 24 15:03:05 2013 (r323605) @@ -0,0 +1,40 @@ +--- ./src/unionfs.c.orig 2012-09-11 00:06:32.000000000 +0200 ++++ ./src/unionfs.c 2013-07-24 16:54:01.555073796 +0200 +@@ -83,7 +83,11 @@ + char p[PATHLEN_MAX]; + if (BUILD_PATH(p, uopt.branches[i].path, path)) RETURN(-ENAMETOOLONG); + ++#if __FreeBSD__ ++ int res = lchmod(p, mode); ++#else + int res = chmod(p, mode); ++#endif + if (res == -1) RETURN(-errno); + + RETURN(0); +@@ -190,7 +194,7 @@ + DBG("%s\n", path); + + if (uopt.stats_enabled && strcmp(path, STATS_FILENAME) == 0) { +- memset(stbuf, 0, sizeof(stbuf)); ++ memset(stbuf, 0, sizeof(*stbuf)); + stbuf->st_mode = S_IFREG | 0444; + stbuf->st_nlink = 1; + stbuf->st_size = STATS_SIZE; +@@ -663,7 +667,16 @@ + char p[PATHLEN_MAX]; + if (BUILD_PATH(p, uopt.branches[i].path, path)) RETURN(-ENAMETOOLONG); + ++#ifdef __FreeBSD__ ++ struct timeval tv[2]; ++ tv[0].tv_sec = ts[0].tv_sec; ++ tv[0].tv_usec = ts[0].tv_nsec / 1000; ++ tv[1].tv_sec = ts[0].tv_sec; ++ tv[1].tv_usec = ts[0].tv_nsec / 1000; ++ int res = lutimes(p, tv); ++#else + int res = utimensat(0, p, ts, AT_SYMLINK_NOFOLLOW); ++#endif + + if (res == -1) RETURN(-errno); + Added: head/sysutils/fusefs-unionfs/files/patch-src__usyslog.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fusefs-unionfs/files/patch-src__usyslog.c Wed Jul 24 15:03:05 2013 (r323605) @@ -0,0 +1,12 @@ +--- ./src/usyslog.c.orig 2012-09-11 00:06:32.000000000 +0200 ++++ ./src/usyslog.c 2013-07-24 16:56:29.401473882 +0200 +@@ -20,7 +20,9 @@ + #include + #include + #include ++#ifndef __FreeBSD__ + #include ++#endif + #include + #include +