Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522816 - mozconfig-v4.31.eclass - add --with-system-libvpx
Summary: mozconfig-v4.31.eclass - add --with-system-libvpx
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-09-14 22:24 UTC by Daniel Rammelt
Modified: 2017-08-26 17:57 UTC (History)
0 users

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


Attachments
Patch to add system-libvpx to mozconfig eclass (mozconfig-v4.31-system-libvpx.patch,794 bytes, patch)
2014-09-14 22:25 UTC, Daniel Rammelt
Details | Diff
Patch with updated deps. (mozconfig-v4.31-system-libvpx.patch,1.25 KB, patch)
2014-09-15 03:57 UTC, Daniel Rammelt
Details | Diff
Patch - Track libvpx used by upstream (mozconfig-v4.31-system-libvpx.patch,1.25 KB, patch)
2014-09-15 09:16 UTC, Daniel Rammelt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Rammelt 2014-09-14 22:24:11 UTC
Firefox/Thunderbird fail to compile with clang due to an assembly error in vpx. Enabling --with-system-libvpx (libvpx >= 1.3.0) allows them to complile with clang.

Upstream is working on a fix by adding -fno-integrated-as
https://bugzilla.mozilla.org/show_bug.cgi?id=982693

Adding system-libvpx use flag to mozconfig-v4.31 solves the issue for both Firefox/Thunderbird. And should be an option in anycase.

Reproducible: Always
Comment 1 Daniel Rammelt 2014-09-14 22:25:14 UTC
Created attachment 384748 [details, diff]
Patch to add system-libvpx to mozconfig eclass
Comment 2 Jory A. Pratt gentoo-dev 2014-09-15 02:33:51 UTC
(In reply to Daniel Rammelt from comment #1)
> Created attachment 384748 [details, diff] [details, diff]
> Patch to add system-libvpx to mozconfig eclass

Patch looks fine at first glance, but the dep is missing. If we are gonna put te option in the eclass we need to add the actual dep of the lib to the eclass as well.
Comment 3 Daniel Rammelt 2014-09-15 03:48:15 UTC
There is a hard dep against libvpx already, I am not sure if it is a bug or if it is actually required by the non system-libvpx build?

RDEPEND="...
>=media-libs/libvpx-1.3.0
..."
Comment 4 Daniel Rammelt 2014-09-15 03:57:26 UTC
Created attachment 384766 [details, diff]
Patch with updated deps.

Removed hard dep against libvpx for standard build.
Added use dep for system-libvpx against >=media-libs/libvpx-1.3.0
Comment 5 Daniel Rammelt 2014-09-15 04:19:58 UTC
Can confirm the hard dep against libvpx was a bug. Removed libvpx from system, built against eclass with hard dep removed and -system-libvpx and it compiles (with gcc) and runs fine.
Comment 6 Daniel Rammelt 2014-09-15 09:16:25 UTC
Created attachment 384774 [details, diff]
Patch - Track libvpx used by upstream

libvpx dep should track the same version used by Firefox/Thunderbird. Testing with git build of libvpx the API is broken.
Comment 7 Ian Stakenvicius (RETIRED) gentoo-dev 2014-09-15 13:41:00 UTC
OK, so here's a question -- is this something we actually want to be optional, or should we just force-enable --with-system-libvpx ?
Comment 8 Daniel Rammelt 2014-09-15 18:34:37 UTC
Without a slotted libvpx, forcing it could cause breakage if the API is changed for libvpx. Sub libs inside firefox still use the internal headers of its own libvpx.
I will track down which libs and see if it is easily fixable. Otherwise an upstream bug would need to be raised.
Comment 9 Daniel Rammelt 2014-09-15 23:00:16 UTC
WebRTC is the issue. It uses its own VP8 engine which causes errors if libvpx from git is used. 
This would cause the same issues if Mozilla themselves updated their own internal libvpx and not WebRTC, so is not an issue with the --with-system-libvpx flag.

All that is needed is that the system-libvpx flag follow the version of the internal library which is what I put in the last patch.
Comment 10 Ian Stakenvicius (RETIRED) gentoo-dev 2014-10-08 21:15:46 UTC
OK, i've added firefox-33.0_beta9 to the mozilla-overlay with this new flag, default-enabled since I believe that was the original intention of the forced system dependency.  Please take a look and see if it suits your needs.  If so, I will roll this out across the board when the new mozilla releases come out next week.
Comment 11 Jory A. Pratt gentoo-dev 2017-08-26 17:57:06 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team