2016-10-14 00:02:20 +00:00
|
|
|
# Copyright 2016 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
libass: fix build, upgrade Ubuntu, update contacts (#6423)
* libass: update contact list
One contact is retired; another is currently inactive.
* libass: don't build HarfBuzz tests
They won't be used, so this just wastes resources.
* libass: upgrade to Ubuntu 20.04
The build failures on 20.04 were due to explicit listing
of static library dependencies, which have changed on 20.04:
png12 was replaced by png16, fontconfig was missing -luuid,
and png needed -lz to follow it, not precede.
Replace the explicit -l list by $(pkg-config --static --libs).
However, -lm must be filtered out as it causes linker errors:
> undefined reference to `_dl_x86_cpu_features'
While we are at it, Ubuntu 20.04 comes with new-enough FriBidi,
so we can stop building it.
It also has new-enough HarfBuzz, but it depends on libgraphite2,
which lacks a static library in the system package, and dynamically
linking against a system library does not work in OSS-Fuzz
as the shared object will not exist in the run-time environment.
Reorder the dependencies alphabetically for consistency.
2021-09-12 00:19:47 +00:00
|
|
|
FROM gcr.io/oss-fuzz-base/base-builder
|
|
|
|
RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config libfontconfig1-dev libfreetype-dev libfribidi-dev python3-pip && \
|
2020-10-24 00:30:28 +00:00
|
|
|
pip3 install meson==0.53.0 ninja
|
2016-10-14 00:02:20 +00:00
|
|
|
|
2016-11-29 20:55:35 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/libass/libass.git
|
2020-10-24 00:30:28 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/harfbuzz/harfbuzz.git
|
2016-10-14 00:02:20 +00:00
|
|
|
|
2016-11-18 19:16:38 +00:00
|
|
|
COPY build.sh libass_fuzzer.cc *.dict *.options $SRC/
|