From owner-svn-ports-head@FreeBSD.ORG Sat Apr 11 17:42:55 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0D6666AD; Sat, 11 Apr 2015 17:42:55 +0000 (UTC) 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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D2C40FA9; Sat, 11 Apr 2015 17:42:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3BHgsoE037806; Sat, 11 Apr 2015 17:42:54 GMT (envelope-from truckman@FreeBSD.org) Received: (from truckman@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3BHgrUm037801; Sat, 11 Apr 2015 17:42:53 GMT (envelope-from truckman@FreeBSD.org) Message-Id: <201504111742.t3BHgrUm037801@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: truckman set sender to truckman@FreeBSD.org using -f From: Don Lewis Date: Sat, 11 Apr 2015 17:42:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r383819 - in head/archivers/file-roller: . 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-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2015 17:42:55 -0000 Author: truckman Date: Sat Apr 11 17:42:53 2015 New Revision: 383819 URL: https://svnweb.freebsd.org/changeset/ports/383819 Log: n FreeBSD 8 the name of the mtime member of struct stat was st_mtimespec. In the early days of FreeBSD 9 (after the branch but before 9.0-RELEASE), it was renamed to st_mtim in src rev r205792 for POSIX 2008 compliance. This change was never merged back to 8-STABLE. There was no corresponding bump of __FreeBSD_version, but the change happened between r900010 and r900011. Patch the source to use the old name when building on FreeBSD 8. Remove the BROKEN tag to allow the port to be built on FreeBSD 8. PR: 195601 Differential Revision: https://reviews.freebsd.org/D2281 Reviewed by: kwm Approved by: mat (mentor) Added: head/archivers/file-roller/files/patch-src_fr-command-patch-src_fr-command-lrzip.c (contents, props changed) Modified: head/archivers/file-roller/Makefile Modified: head/archivers/file-roller/Makefile ============================================================================== --- head/archivers/file-roller/Makefile Sat Apr 11 17:31:47 2015 (r383818) +++ head/archivers/file-roller/Makefile Sat Apr 11 17:42:53 2015 (r383819) @@ -45,10 +45,6 @@ post-patch: .include -.if ${OSVERSION} < 900000 -BROKEN= Fails to build -.endif - post-install: .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} Added: head/archivers/file-roller/files/patch-src_fr-command-patch-src_fr-command-lrzip.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/file-roller/files/patch-src_fr-command-patch-src_fr-command-lrzip.c Sat Apr 11 17:42:53 2015 (r383819) @@ -0,0 +1,14 @@ +--- src/fr-command-lrzip.c.orig 2014-08-12 22:21:20.000000000 -0700 ++++ src/fr-command-lrzip.c 2014-12-02 23:31:58.000000000 -0800 +@@ -45,7 +45,11 @@ + + struct stat st; + if (stat (comm->filename, &st) == 0) ++#if __FreeBSD_version < 900011 ++ fdata->modified = st.st_mtimespec.tv_sec; ++#else + fdata->modified = st.st_mtim.tv_sec; ++#endif + else + time(&(fdata->modified)); +