Skip to content
Snippets Groups Projects
Unverified Commit f9b9039a authored by boklm's avatar boklm
Browse files

Bug 18831: Use own Yasm for Firefox cross-compilation

Starting with Firefox ESR52 Yasm < 1.2.0 is not sufficient anymore to
compile our browser part for Windows. Ubuntu Precise still ships with
such a version, though. We compile our own version until we get off of
Precise.

tor-browser-bundle.git commit: 910094fc33ae4e75e10fee754bec106e83e0eac5
parent ec86de4f
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,10 @@
# compiler setup so that mingw is first in the PATH.
export LD_LIBRARY_PATH=$hgccdir/lib64
export PATH=$hgccdir/bin:$PATH
# Firefox ESR52 needs Yasm >= 1.2.0 which Ubuntu Precise does not ship.
tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/yasm') %]
export PATH="/var/tmp/dist/yasm/bin:$PATH"
[% END -%]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
distdir=/var/tmp/dist/[% project %]
......
......@@ -92,3 +92,6 @@ input_files:
- project: gcc
name: gcc
enable: '[% c("var/windows") %]'
- project: yasm
name: yasm
enable: '[% c("var/windows") %]'
#!/bin/bash
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf $rootdir/[% c('input_files_by_name/yasm') %]
cd /var/tmp/build/yasm-[% c("version") %]
./configure --prefix="$distdir"
make -j4
make install
cd /var/tmp/dist
[% c('tar', {
tar_src => [ project ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
version: 1.2.0
filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
remote_docker: 1
input_files:
- project: docker-image
- URL: 'https://www.tortall.net/projects/yasm/releases/yasm-[% c("version") %].tar.gz'
name: yasm
sha256sum: 768ffab457b90a20a6d895c39749adb547c1b7cb5c108e84b151a838a23ccf31
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment