Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439772 - sys-fs/aufs3-3_p20121015-r1 fails with USE="pax_kernel"
Summary: sys-fs/aufs3-3_p20121015-r1 fails with USE="pax_kernel"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-26 17:03 UTC by Jaakko Perttilä
Modified: 2012-11-16 00:38 UTC (History)
4 users (show)

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


Attachments
epatch fix for aufs3-3_p20121015-r1.ebuild (aufs3-3_p20121015-r1.ebuild,4.63 KB, text/plain)
2012-11-06 23:04 UTC, Dave Armstrong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaakko Perttilä 2012-10-26 17:03:35 UTC
* Applying pax.patch ...                                                [ ok ]
 * Applying pax-2.patch ...

 * Failed Patch: pax-2.patch !
 *  ( /usr/portage/sys-fs/aufs3/files/pax-2.patch )
 * 

 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/paludis/sys-fs-aufs3-3_p20121015-r1/temp//pax-2.patch.out


PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch  < '/usr/portage/sys-fs/aufs3/files/pax-2.patch'

=======================
patching file fs/aufs/dynop.c
Hunk #1 FAILED at 149.
Hunk #2 FAILED at 159.
Hunk #3 FAILED at 266.
3 out of 3 hunks FAILED -- saving rejects to file fs/aufs/dynop.c.rej
patching file fs/aufs/f_op_sp.c
patching file fs/aufs/branch.h

patch program exited with status 1


Reproducible: Always
Comment 1 Marios Andreopoulos 2012-10-30 02:09:15 UTC
I bumped on this bug too. pax-2.patch can't be applied at least on 3.6.2 and 3.6.3 hardened-sources.
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2012-11-06 02:47:46 UTC
Confirm for hardened-3.4.9
Comment 3 Manuel Rüger (RETIRED) gentoo-dev 2012-11-06 02:48:24 UTC
(In reply to comment #2)
> Confirm for hardened-3.4.9

I meant gentoo-sources-3.4.9. Sorry for the noise.
Comment 4 Dave Armstrong 2012-11-06 23:04:46 UTC
Created attachment 328618 [details]
epatch fix for aufs3-3_p20121015-r1.ebuild

The problem is that the pax-2.patch is applied on top of the old "pax.patch" when it should instead replace it.

Try applying the pax-2.patch manually to verify, or use the attached ebuild instead.  The following line in the ebuild:
use pax_kernel && epatch "${FILESDIR}"/pax.patch "${FILESDIR}"/pax-2.patch

should be replaced with this:
use pax_kernel && epatch "${FILESDIR}"/pax-2.patch

... which is the only the change in the attached ebuild (compared to aufs3-3_p20121015-r1.ebuild)
Comment 5 Dave Armstrong 2012-11-06 23:14:17 UTC
BTW, the pax-2.patch applies cleanly to all aufs3 3.x releases thus far.  I just tested it successively against every branch in the aufs3 git tree.  The reports here aren't related to kernel versions.
Comment 6 Manuel Rüger (RETIRED) gentoo-dev 2012-11-12 10:55:08 UTC
no fix in aufs3-3_p20121112
Comment 7 Marios Andreopoulos 2012-11-13 20:44:39 UTC
Maybe this bug could be assigned to the maintainer of aufs3 ebuild instead of the hardened team?
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2012-11-14 07:34:11 UTC
+  14 Nov 2012; Justin Lecher <jlec@gentoo.org> aufs3-3_p20121015-r1.ebuild,
+  aufs3-3_p20121112.ebuild:
+  Do not apply the old hardened patch
+