You are not logged in.

#1 2010-11-07 16:52:51

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 262
Website

Unable to prevent package from failing with QA Notice

Hi guys!

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.

http://paste.pocoo.org/show/287288/


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!

Offline

#2 2010-11-07 19:09:32

brantgurga
Core Team Member
From: Indianapolis, IN
Registered: 2010-10-14
Posts: 56
Website

Re: Unable to prevent package from failing with QA Notice

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.

Offline

#3 2010-11-07 19:34:07

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 262
Website

Re: Unable to prevent package from failing with QA Notice

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. smile

Offline

#4 2010-11-07 19:55:24

brantgurga
Core Team Member
From: Indianapolis, IN
Registered: 2010-10-14
Posts: 56
Website

Re: Unable to prevent package from failing with QA Notice

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?

Offline

#5 2010-11-07 20:16:26

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 262
Website

Re: Unable to prevent package from failing with QA Notice

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!

Offline

#6 2010-11-07 21:08:50

brantgurga
Core Team Member
From: Indianapolis, IN
Registered: 2010-10-14
Posts: 56
Website

Re: Unable to prevent package from failing with QA Notice

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

Offline

#7 2010-11-07 21:42:18

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 262
Website

Re: Unable to prevent package from failing with QA Notice

It seems great, I think it's a good idea to create pages like this, thanks for the good work!

Offline

Board footer

Powered by FluxBB