Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2017 09:09:35 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r454025 - in head/devel/llvm50: . files
Message-ID:  <201711120909.vAC99ZK2019590@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Sun Nov 12 09:09:35 2017
New Revision: 454025
URL: https://svnweb.freebsd.org/changeset/ports/454025

Log:
  Merge from src:
  
  lld: accept EINVAL to indicate posix_fallocate is unsupported
  
  As of r325320 posix_fallocate on a ZFS filesystem returns EINVAL to
  indicate that the operation is not supported. (I think this is a strange
  choice of errno on the part of POSIX.)
  
  PR:		223383, 223440
  Reported by:	Mark Millard

Added:
  head/devel/llvm50/files/patch-lib_Support_Unix_Path.inc   (contents, props changed)
Modified:
  head/devel/llvm50/Makefile

Modified: head/devel/llvm50/Makefile
==============================================================================
--- head/devel/llvm50/Makefile	Sun Nov 12 09:04:42 2017	(r454024)
+++ head/devel/llvm50/Makefile	Sun Nov 12 09:09:35 2017	(r454025)
@@ -2,7 +2,7 @@
 
 PORTNAME=	llvm
 DISTVERSION=	5.0.0
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	devel lang
 MASTER_SITES=	http://llvm.org/${PRE_}releases/${LLVM_RELEASE}/${RCDIR}
 PKGNAMESUFFIX=	${LLVM_SUFFIX}

Added: head/devel/llvm50/files/patch-lib_Support_Unix_Path.inc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/llvm50/files/patch-lib_Support_Unix_Path.inc	Sun Nov 12 09:09:35 2017	(r454025)
@@ -0,0 +1,11 @@
+--- lib/Support/Unix/Path.inc.orig
++++ lib/Support/Unix/Path.inc
+@@ -427,7 +427,7 @@
+   // If we have posix_fallocate use it. Unlike ftruncate it always allocates
+   // space, so we get an error if the disk is full.
+   if (int Err = ::posix_fallocate(FD, 0, Size)) {
+-    if (Err != EOPNOTSUPP)
++    if (Err != EINVAL && Err != EOPNOTSUPP)
+       return std::error_code(Err, std::generic_category());
+   }
+ #endif



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