I'm trying to install some package depending highly unstable gtk+-2.91.2 (gtk3), and this one does not build because of a QA Notice (poor programming practice). This problem is upstream and will surely be corrected on upcoming versions. However, that should not be a problem for me since the problem is in some test files source.
The problem is : I read somewhere that a package should fails if there is a QA Notice and the "stricter" Portage Feature is set. However, it is not : http://paste.pocoo.org/show/287289/ . I tried to specify FEATURES="-stricter -strict", but that don't help. Do anybody know how I can install this package even if there is this QA Notice?
If somebody want to reproduce this, the package is in the gnome overlay.
Thanks a lot!
From what I can tell, this is happening because you are on a 64-bit machine where it's far less safe to allow a 64-bit pointer to go into a 32-bit int. Your best bet is to try editing the ebuild and/or package to prevent those test files form being built or to correct the issue.
To be more technical, because you are on a 64-bit machine, $gentoo_bug gets set to yes as does $abort in misc-functions.sh and as a result the ebuild dies instead of just warning about the issue.
Thanks for the hints. I did a workaround patch (adding the missing declarations) and now it installs well. Anyway, the bug is already resolved upstreams in a newer version, so I didn't take the time to investigate what was really missing.
If anybody has the same problem and want my workaround, please ask, I'll post the patch and the ebuild applying it.
I'm thinking about writing up posts about the details of investigating issues like this so others can learn the debugging techniques. Mind if I use your issue for that?
No problem! What I did in this particular case :
- Go on /var/tmp/portage/<package-failing>/work/
- Copy <package-failing> to <package-failing>-orig
- Repair <package-failing> sources
- diff -urN <package-failing>-orig <package-failing> > <package-failing>-patch-name.patch : http://paste.pocoo.org/show/287441/
- Create a local overlay and copy the original ebuild+files in it, add your patch in files/
- Edit the ebuild to add the application of the patch : http://paste.pocoo.org/show/287440/
Please let me know if you need anything else!
Here's what I wrote up about it if you'd like to add anything. http://docs.funtoo.org/wiki/Why_won%27t … _QA_notice