Closed hotice closed 8 years ago
Is there any way to reproduce build environment from those build machines?
I tried to run tests on own machine (Debian testing), in Docker image of Ubuntu 16.04, in full installation of Ubuntu 15.04 in virtual machine. All without test failures.
That exact test uses iconv libraries, but those are installed with libc6, and I don't know any sane way to have them deleted. Also test took 15 seconds, which is extremely long. I'm missing something; still don't know what.
My initial bug report was updated shortly after submitting it. It doesn't fail on Ubuntu 16.04 but on Ubuntu 15.10, 15.04 and 14.04. Ubuntu 16.04 is the only one in which the test doesn't fail.
As for reproducing the exact build environment, I'm not sure what you could do other than creating a Launchpad PPA.
Using apt-get download the package ubuntu-dev-tools and then create a builder using
pbuilder-dist trusty create
To automagically fetch the sources, you can use my PPA here:
https://code.launchpad.net/~itachi-san/+archive/ubuntu/freshplayerplugin
If you add it, you can fetch the sources with apt-get source freshplayerplugin
(Else, I can provide a better way to do it.)
After that, you will have a .dsc file. To try building it, you just have to do
pbuilder-dist trusty build NAME_OF_DSC_FILE.dsc
(It should find the dsc file with tab completion anyways)
You can contact me for any issues, here, on mail or else (Telegram maybe)
I managed to create a PPA a while ago. With a number of trials it was found that in failing test iconv replaces unknown symbols not with expected question sign '?'
, but with '\0'
, which caused strlen()
to report a wrong string length. I also saw similar bug in a Docker environment. I guess something with locales support causing it.
Instead of trying to workaround that case, I decided to move from iconv to icu library. It should work then the same in any locale. Also Chromium uses icu, and therefore PPB_CharSet
supports same encoding names as icu does.
Nice! Hope to have working builds soon ;)
Changed charset conversion to use ICU (libicu-dev
in Debian) in 771bae0d6594c103e359a08628c4dfa75a576333.
I didn't try to upload to PPA yet to test if it works now. But I expect it to pass tests now.
Oops. Looks like "to UTF-16" part is now broken. Reverted that commit.
I will disable the test for now for my PPA builds! Apart that, I will check this issue to notice when conversion to ICU is done :)
Conversion to UTF-16 wasn't broken. It was "gb2312-80" encoding that was broken. Or not broken. Depends on point of view.
There is an encoding with name "gb2312-80". It has only hieroglyphs in it, there is no even latin letters. But from what I see in dumps, some swf try to convert a text that looks like ASCII text from gb2312-80 to UTF-16, which ICU fails to do — it's not possible. That encoding in its true form is so rare that iconv doesn't know about its existence, but ICU does.
It turned out, that today name "gb2312-80" is used as an alias for gb2312, which in fact, a different encoding. Heh, Chinese Internet.
Added an encoding alias conversion routine in 29915d3bb73cf63acb4f93dfd7c6b05802ea56fd and 4776eeb1a1cf6fac81fa7c3b46e4a6ac8829953c, it should be fine now with gb2312-80 (tested) and other encodings (not tested).
@i-rinat my PPA builds works fine. I only have issues on precise, because 'libicu-dev' doesn't have the needed pkg-config files. I uploaded to the PPA a fixed version of ICU which includes pkg-config data. Other versions work fine. Everything should work now :+1: P.S. should I send a pull request with my PPA added in docs, for people who want latest builds?
I've finally tried to upload new version to a PPA to test, and it builds fine on Xenial, while versions before fixes were failing.
should I send a pull request with my PPA added in docs, for people who want latest builds?
I'd like to avoid such instructions and links in the repository.
yes please thanks much
Just released v0.3.6 incorporates mentioned fixes.
Using the latest Freshplayerplugin Git code, some tests fail (tested in Ubuntu 14.04, 15.04 and 15.10; it does not occur on Ubuntu 16.04).
Edit: this also occurs with version 0.3.4 (I didn't test older versions - until now tests were disabled in my PPA because it was failing back when I created the package due to non-freshplayerplugin related issues)
From the build log:
Complete build log for Ubuntu 15.10: https://launchpadlibrarian.net/253277906/buildlog_ubuntu-wily-amd64.freshplayerplugin_0.3.4+git20160228-1~webupd8~wily~0_BUILDING.txt.gz