Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2012 19:12:12 -0600
From:      Zhihao Yuan <lichray@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/165218: [PATCH] e2fsprogs: fail to build with clang
Message-ID:  <4f3da96f.09d4320a.6687.45b1@mx.google.com>
Resent-Message-ID: <201202170120.q1H1K9Qn020341@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         165218
>Category:       ports
>Synopsis:       [PATCH] e2fsprogs: fail to build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 17 01:20:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Zhihao Yuan
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD elitebook.hp 8.2-STABLE FreeBSD 8.2-STABLE #2 r230519: Tue Jan 24 22:28:11 CST 2012 lichray@elitebook.hp:/usr/obj/home/lichray/devel/freebsd-8/sys/HOUKAGO amd64


	
>Description:
	
	There is a statement which suppose to return a return code, but it returned void.
>How-To-Repeat:
	
>Fix:

	

--- e2fsprogs_fix_clang.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs.orig/files/patch-lib_quota_quotaio.c /usr/ports/sysutils/e2fsprogs/files/patch-lib_quota_quotaio.c
--- /usr/ports/sysutils/e2fsprogs.orig/files/patch-lib_quota_quotaio.c	1969-12-31 18:00:00.000000000 -0600
+++ /usr/ports/sysutils/e2fsprogs/files/patch-lib_quota_quotaio.c	2012-02-16 15:09:06.180299920 -0600
@@ -0,0 +1,11 @@
+--- lib/quota/quotaio.c~	2011-11-27 19:22:10.000000000 -0600
++++ lib/quota/quotaio.c	2012-02-16 15:08:31.757648919 -0600
+@@ -143,7 +143,7 @@ errcode_t quota_inode_truncate(ext2_fils
+ 
+ 	inode.i_dtime = fs->now ? fs->now : time(0);
+ 	if (!ext2fs_inode_has_valid_blocks2(fs, &inode))
+-		return;
++		return err;
+ 
+ 	ext2fs_block_iterate3(fs, ino, BLOCK_FLAG_READ_ONLY, NULL,
+ 			      release_blocks_proc, NULL);
--- e2fsprogs_fix_clang.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4f3da96f.09d4320a.6687.45b1>