Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370015 - www-servers/uwsgi: uses -Werror during build (and fails to build with gcc 4.6)
Summary: www-servers/uwsgi: uses -Werror during build (and fails to build with gcc 4.6)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Maxim Koltsov (RETIRED)
URL: http://blog.flameeyes.eu/2009/02/25/f...
Whiteboard:
Keywords:
Depends on:
Blocks: werror gcc-4.6
  Show dependency tree
 
Reported: 2011-06-04 12:07 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-06-06 16:10 UTC (History)
2 users (show)

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


Attachments
Build log (uwsgi-0.9.7.2:20110604-051249.log,32.94 KB, text/plain)
2011-06-04 12:07 UTC, Diego Elio Pettenò (RETIRED)
Details
Patch (uwsgi-0.9.7.2-no-werror.patch,722 bytes, patch)
2011-06-05 09:56 UTC, Maxim Koltsov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-06-04 12:07:48 UTC
Created attachment 275771 [details]
Build log

Hello,

you're receiving this canned bug because the package in summary uses the flag -Werror during build, which transforms warnings in errors, and is prone to break software when new GCC releases are added to Gentoo.

Please make sure your package does not use -Werror during build, so that it can be more future-proof for the new GCC releases.

Thanks,
Diego
Comment 1 Maxim Koltsov (RETIRED) gentoo-dev 2011-06-05 09:56:42 UTC
Created attachment 275867 [details, diff]
Patch

Patch that disables -Werror. Please check it on Gcc-4.6, i don't have one.
Comment 2 Nikolaj Šujskij 2011-06-06 11:08:28 UTC
Maxim's patch works. I don't think ebuild diff is neccessary, since it only adds `epatch` line before `python_copy_sources` call and anyway "Patch" isn't that good for patch name d-:E

I'll discuss the issue with upstream, maybe they'd drop -Werror and add debugbuild make target or something.

Thanks for report.
Comment 3 Maxim Koltsov (RETIRED) gentoo-dev 2011-06-06 16:10:38 UTC
I commited patch to the tree.

  06 Jun 2011; Maxim Koltsov (maksbotan) <maksbotan@gentoo.org>
  uwsgi-0.9.7.2.ebuild, +files/uwsgi-0.9.7.2-no-werror.patch:
  Disabled '-Werror' flag on compilation (bug #370015)