ports/165218: [PATCH] e2fsprogs: fail to build with clang
Zhihao Yuan
lichray at gmail.com
Fri Feb 17 01:20:10 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list