app-admin/tripwire-2.4.1.2: fails to merge with error : In file included from fcodatasourceiter.h:51, from fcodatasourceiter.cpp:42: fconame.h:147: erreur: ISO C++ forbids declaration of ‘cFCOName_i’ with no type fconame.h:147: erreur: expected ‘;’ before ‘*’ token make[3]: *** [fcodatasourceiter.o] Erreur 1 Reproducible: Always Steps to Reproduce: 1. emerge =tripwire-2.4.1.2 Actual Results: Failed to emerge app-admin/tripwire-2.4.1.2 Expected Results: Installing app-admin/tripwire-2.4.1.2
Please post your emerge --info. I can't reproduce it and it seems it's already fixed long, long ago by tripwire-friend-classes.patch: 08 Mar 2006; Tavis Ormandy <taviso@gentoo.org> +files/tripwire-friend-classes.patch, tripwire-2.3.1.2-r2.ebuild: add patch provided by Justin Findlay in #124839 to correctly declare friend classes
Created attachment 210423 [details] buildlog tripwire-2.4.1.2
Created attachment 210425 [details] emerge.info
Thanks Nicolas. Could you upload /var/tmp/portage/app-admin/tripwire-2.4.1.2/work/tripwire-2.3.1-2/src/fco/fconame.h? I doubt patch doesn't apply for you, but i have no idea...
(In reply to comment #2) > Created an attachment (id=210423) [details] > buildlog tripwire-2.4.1.2 > The build log is stripped, please attach the FULL build.log
Created attachment 210458 [details] buildlog-full
As wen can not reproduce it, please provide these info: find /usr/local -name '*.h' Upload /var/tmp/portage/app-admin/tripwire-2.4.1.2/work/tripwire-2.3.1-2/src/fco/fconame.h as requested before. Try to reproduce with disabled FEATURES="ccache" and report back here.
Created attachment 210532 [details] fconame.h this is fconame.h > Thanks Nicolas. Could you upload > /var/tmp/portage/app-admin/tripwire-2.4.1.2/work/tripwire-2.3.1-2/src/fco/fconame.h? > I doubt patch doesn't apply for you, but i have no idea... >
Created attachment 210535 [details] buildlog -ccache > find /usr/local -name '*.h' empty > Try to reproduce with disabled FEATURES="ccache" and report back here.
Created attachment 210536 [details, diff] tripwire-patch-options.patch Does attached patch fix your problem?
Nicolas, please try downgrading sys-devel/patch to 2.5.9 and see whether the ebuild still fails. I can reproduce your failure with patch-2.6 but with patch-2.5.9 I can successfully build tripwire.
thank you for your answers, both succed. Merge ok with patch-2.6 and Dawid's patch. and merge ok too with : patch-2.5.6
Created attachment 210569 [details] Different behavior of patch-2.5.9 and patch-2.6 tripwire builds fine with patch-2.5.9 and patch-2.6 after applying Dawid's patch on my box. I couldn't find out why EPATCH_OPTS were necessary at all but maybe older patch version needed it. Just for the record: Attached diff shows the different behavior of patch-2.5.9 and patch-2.6. With options '-l -F3', patch-2.6 does not match tripwire-portable-0.9 against existing tripwire-2.4.1.2 directory of the to be patch version but instead creates a new subdirectory within ${S} named tripwire-portable-0.9. In other words, the patch is not applied against the files compiled later.
(In reply to comment #13) > Created an attachment (id=210569) [details] > Different behavior of patch-2.5.9 and patch-2.6 > I already reported that bug to base-system (see bug #293570). > I couldn't find out why EPATCH_OPTS were necessary at all but maybe older patch version needed it. Me also. But there are more packages in the tree with EPATCH_OPTS="-F3 -l" though they are actually applying because patches have fixed headers. Probably I will drop this variable from the ebuild later.
So finally we found the problem thus dropping EPATCH_OPTS from the ebuild. Thanks everyone participating in this bug. :)