svn commit: r383819 - in head/archivers/file-roller: . files
Don Lewis
truckman at FreeBSD.org
Sat Apr 11 17:42:55 UTC 2015
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 <bsd.port.options.mk>
-.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));
+
More information about the svn-ports-head
mailing list