Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463471 - sys-fs/aufs3 and sys-kernel/aufs-sources fail to build with CONFIG_USER_NS
Summary: sys-fs/aufs3 and sys-kernel/aufs-sources fail to build with CONFIG_USER_NS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-27 12:51 UTC by Peter Waller
Modified: 2013-04-22 06:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,6.71 KB, text/plain)
2013-03-27 12:51 UTC, Peter Waller
Details
emerge --info '=sys-fs/aufs3-3_p20130318' (emerge.info,5.28 KB, text/plain)
2013-03-27 12:52 UTC, Peter Waller
Details
aufs-sources .config (config,92.13 KB, text/plain)
2013-03-28 09:10 UTC, Peter Waller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Waller 2013-03-27 12:51:19 UTC
Created attachment 343413 [details]
Build log

Compilation errors are of the form:

    /var/tmp/portage/sys-fs/aufs3-3_p20130318/work/aufs3-standalone/fs/aufs/i_op.c: In function ‘aufs_setattr’:
    /var/tmp/portage/sys-fs/aufs3-3_p20130318/work/aufs3-standalone/fs/aufs/i_op.c:719:8: error: incompatible type for argument 2 of ‘security_path_chown’

Full build log is attached.
Comment 1 Peter Waller 2013-03-27 12:52:01 UTC
Created attachment 343415 [details]
emerge --info '=sys-fs/aufs3-3_p20130318'
Comment 2 Peter Waller 2013-03-27 12:59:06 UTC
I should add, I have CONFIG_USER_NS enabled, because I want to make use of lxc.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-03-27 17:44:08 UTC
could you please try to use sys-kernel/aufs-sources as you are using gentoo source with aufs.
Comment 4 Peter Waller 2013-03-28 09:10:03 UTC
Created attachment 343498 [details]
aufs-sources .config

I get the same thing when I try to build aufs-sources:

fs/aufs/i_op.c: In function ‘aufs_setattr’:
fs/aufs/i_op.c:719:8: error: incompatible type for argument 2 of ‘security_path_chown’
include/linux/security.h:2936:19: note: expected ‘kuid_t’ but argument is of type ‘uid_t’
fs/aufs/i_op.c:719:8: error: incompatible type for argument 3 of ‘security_path_chown’
include/linux/security.h:2936:19: note: expected ‘kgid_t’ but argument is of type ‘gid_t’
fs/aufs/i_op.c: In function ‘au_refresh_iattr’:
fs/aufs/i_op.c:769:2: error: incompatible type for argument 2 of ‘i_uid_write’
include/linux/fs.h:705:20: note: expected ‘uid_t’ but argument is of type ‘kuid_t’
fs/aufs/i_op.c:770:2: error: incompatible type for argument 2 of ‘i_gid_write’
include/linux/fs.h:710:20: note: expected ‘gid_t’ but argument is of type ‘kgid_t’

Can I ask, why does the sys-fs/aufs package exist if not to be used with gentoo-sources?

I've attached my aufs-sources .config.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2013-03-28 09:13:31 UTC
(In reply to comment #4)
> Created attachment 343498 [details]
> aufs-sources .config
> 

I will test that.


> Can I ask, why does the sys-fs/aufs package exist if not to be used with
> gentoo-sources?

you can, but aufs-sources are much simpler.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2013-03-28 10:45:33 UTC
I reported it upstream.
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2013-03-28 12:35:57 UTC
Quoting upstream:

justin:
> fs/aufs/i_op.c: In function =91aufs_setattr=92:
> fs/aufs/i_op.c:719:8: error: incompatible type for argument 2 of
> =91security_path_chown=92
> In file included from fs/aufs/i_op.c:27:0:
> include/linux/security.h:2936:19: note: expected =91kuid_t=92 but argumen=
> t
> is of type =91uid_t=92

Confirmed.
The type of the parameter was changed in linux-3.7. I didn't aware of
it.
The fix will be released in next Monday.


J. R. Okajima
Comment 8 Peter Waller 2013-04-02 15:32:18 UTC
The problem still appears to be present on sys-kernel/afs-sources-3.8.5. Any progress on this issue?
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2013-04-02 16:05:17 UTC
not yet. still not fixed upstream.
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2013-04-22 06:49:04 UTC
+*aufs-sources-3.8.8-r1 (22 Apr 2013)
+
+  22 Apr 2013; Justin Lecher <jlec@gentoo.org> +aufs-sources-3.8.8-r1.ebuild,
+  +files/aufs-sources-3.8.8-CONFIG_USER_NS.patch:
+  Backport fix for breakage with CONFIG_USER_NS, #463471
+