Commit 79492846 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜
Browse files

recipes: Add tarball checksums for all recipes

This should cover all recipes; even those that aren't built by default

https://bugzilla.gnome.org/show_bug.cgi?id=797177
parent bdc074c8
...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe): ...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe):
# This URL doesn't support https, so we don't use it # This URL doesn't support https, so we don't use it
#url = 'http://liba52.sourceforge.net/files/a52dec-%(version)s.tar.gz' #url = 'http://liba52.sourceforge.net/files/a52dec-%(version)s.tar.gz'
url = 'https://gstreamer.freedesktop.org/src/mirror/a52dec-%(version)s.tar.gz' url = 'https://gstreamer.freedesktop.org/src/mirror/a52dec-%(version)s.tar.gz'
tarball_checksum = 'a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33'
licenses = [License.GPLv2Plus] licenses = [License.GPLv2Plus]
configure_options = '--with-pic --enable-shared' configure_options = '--with-pic --enable-shared'
autoreconf = True autoreconf = True
......
...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe): ...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe):
licenses = [License.GPLv2] licenses = [License.GPLv2]
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://ftp.gnu.org/gnu/autoconf/autoconf-%(version)s.tar.xz' url = 'https://ftp.gnu.org/gnu/autoconf/autoconf-%(version)s.tar.xz'
tarball_checksum = '64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684'
deps = ['m4'] deps = ['m4']
files_bin = [ files_bin = [
......
...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe): ...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe):
licenses = [License.GPLv2] licenses = [License.GPLv2]
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://ftp.gnu.org/gnu/automake/automake-%(version)s.tar.xz' url = 'https://ftp.gnu.org/gnu/automake/automake-%(version)s.tar.xz'
tarball_checksum = 'af6ba39142220687c500f79b4aa2f181d9b24e4f8d8ec497cea4ba26c64bedaf'
deps = ['autoconf', 'gettext-m4'] deps = ['autoconf', 'gettext-m4']
files_bin = ['bin/automake', 'bin/aclocal', files_bin = ['bin/automake', 'bin/aclocal',
......
...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe): ...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe):
licenses = [License.GPLv2] licenses = [License.GPLv2]
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://ftpmirror.gnu.org/bison/bison-%(version)s.tar.gz' url = 'https://ftpmirror.gnu.org/bison/bison-%(version)s.tar.gz'
tarball_checksum = 'b67fd2daae7a64b5ba862c66c07c1addb9e6b1b05c5f2049392cfd8a2172952e'
patches = ['bison/0001-Fix-build-invalid-instruction-on-macOS-10.3.patch'] patches = ['bison/0001-Fix-build-invalid-instruction-on-macOS-10.3.patch']
......
...@@ -8,6 +8,7 @@ class Recipe(recipe.Recipe): ...@@ -8,6 +8,7 @@ class Recipe(recipe.Recipe):
btype = BuildType.MAKEFILE btype = BuildType.MAKEFILE
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://www.cmake.org/files/v3.7/cmake-%(version)s.tar.gz' url = 'https://www.cmake.org/files/v3.7/cmake-%(version)s.tar.gz'
tarball_checksum = '449a5bce64dbd4d5b9517ebd1a1248ed197add6ad27934478976fd5f1f9330e1'
deps = ['autoconf'] deps = ['autoconf']
add_host_build_target = False add_host_build_target = False
......
...@@ -6,6 +6,8 @@ class Recipe(recipe.Recipe): ...@@ -6,6 +6,8 @@ class Recipe(recipe.Recipe):
licenses = [License.BSD_like] licenses = [License.BSD_like]
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://github.com/westes/flex/releases/download/v{0}/flex-{0}.tar.gz'.format(version) url = 'https://github.com/westes/flex/releases/download/v{0}/flex-{0}.tar.gz'.format(version)
tarball_checksum = '9a01437a1155c799b7dc2508620564ef806ba66250c36bf5f9034b1c207cb2c9'
files_bins = ['flex', 'flex++', 'lex'] files_bins = ['flex', 'flex++', 'lex']
patches = ['flex/flex-prevent-to-build-doc.patch'] patches = ['flex/flex-prevent-to-build-doc.patch']
autoreconf = True autoreconf = True
......
...@@ -5,8 +5,9 @@ class Recipe(recipe.Recipe): ...@@ -5,8 +5,9 @@ class Recipe(recipe.Recipe):
name = 'gettext-m4' name = 'gettext-m4'
version = '0.19.8.1' version = '0.19.8.1'
stype = SourceType.TARBALL stype = SourceType.TARBALL
tarball_dirname = 'gettext-%(version)s'
url = 'https://ftp.gnu.org/pub/gnu/gettext/gettext-%(version)s.tar.gz' url = 'https://ftp.gnu.org/pub/gnu/gettext/gettext-%(version)s.tar.gz'
tarball_dirname = 'gettext-%(version)s'
tarball_checksum = 'ff942af0e438ced4a8b0ea4b0b6e0d6d657157c5e2364de57baa279c1c125c43'
# only libraries are LGPLv2+, tools are GPLv3+ and defined below # only libraries are LGPLv2+, tools are GPLv3+ and defined below
licenses = [License.LGPLv2Plus] licenses = [License.LGPLv2Plus]
autoreconf = True autoreconf = True
......
...@@ -10,8 +10,10 @@ class Recipe(recipe.Recipe): ...@@ -10,8 +10,10 @@ class Recipe(recipe.Recipe):
licenses = [License.GPLv3] licenses = [License.GPLv3]
srcdir = 'gettext-tools' srcdir = 'gettext-tools'
stype = SourceType.TARBALL stype = SourceType.TARBALL
tarball_dirname = 'gettext-%(version)s'
url = 'https://ftp.gnu.org/pub/gnu/gettext/gettext-%(version)s.tar.gz' url = 'https://ftp.gnu.org/pub/gnu/gettext/gettext-%(version)s.tar.gz'
tarball_dirname = 'gettext-%(version)s'
tarball_checksum = 'ff942af0e438ced4a8b0ea4b0b6e0d6d657157c5e2364de57baa279c1c125c43'
platform_deps = { platform_deps = {
Platform.DARWIN: ['sed'], Platform.DARWIN: ['sed'],
Platform.WINDOWS: ['libiconv', 'mingw-runtime', 'automake'],} Platform.WINDOWS: ['libiconv', 'mingw-runtime', 'automake'],}
......
...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe): ...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe):
maj_ver = '.'.join(version.split('.')[0:2]) maj_ver = '.'.join(version.split('.')[0:2])
url = 'https://download.gnome.org/sources/glib/{}/glib-%(version)s.tar.xz'.format(maj_ver) url = 'https://download.gnome.org/sources/glib/{}/glib-%(version)s.tar.xz'.format(maj_ver)
tarball_dirname = 'glib-%(version)s' tarball_dirname = 'glib-%(version)s'
tarball_checksum = '40ef3f44f2c651c7a31aedee44259809b6f03d3d20be44545cd7d177221c0b8d'
licenses = [License.LGPLv2Plus] licenses = [License.LGPLv2Plus]
btype = BuildType.MESON btype = BuildType.MESON
meson_options = {'gtk_doc': 'false', 'internal_pcre': 'true', 'libmount': 'false', meson_options = {'gtk_doc': 'false', 'internal_pcre': 'true', 'libmount': 'false',
......
...@@ -8,6 +8,7 @@ class Recipe(recipe.Recipe): ...@@ -8,6 +8,7 @@ class Recipe(recipe.Recipe):
licenses = [License.GPLv2] licenses = [License.GPLv2]
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://ftp.gnu.org/gnu/sed/sed-%(version)s.tar.gz' url = 'https://ftp.gnu.org/gnu/sed/sed-%(version)s.tar.gz'
tarball_checksum = 'fea0a94d4b605894f3e2d5572e3f96e4413bcad3a085aae7367c2cf07908b2ff'
def prepare(self): def prepare(self):
if needs_xcode8_sdk_workaround(self.config): if needs_xcode8_sdk_workaround(self.config):
......
...@@ -12,6 +12,7 @@ class Recipe(recipe.Recipe): ...@@ -12,6 +12,7 @@ class Recipe(recipe.Recipe):
stype = SourceType.TARBALL stype = SourceType.TARBALL
maj_ver = '.'.join(version.split('.')[0:2]) maj_ver = '.'.join(version.split('.')[0:2])
url = 'https://ftp.gnome.org/pub/GNOME/sources/{0}/{2}/{0}-{1}.tar.xz'.format(_name, version, maj_ver) url = 'https://ftp.gnome.org/pub/GNOME/sources/{0}/{2}/{0}-{1}.tar.xz'.format(_name, version, maj_ver)
tarball_checksum = 'b88ded5e5f064ab58a93aadecd6d58db2ec9d970648534c63807d4f9a7bb877e'
srcdir = "{0}-{1}".format(_name, version) srcdir = "{0}-{1}".format(_name, version)
licenses = [License.GPLv2Plus] licenses = [License.GPLv2Plus]
btype = BuildType.CUSTOM btype = BuildType.CUSTOM
......
...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe): ...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe):
licenses = [License.GPLv2] licenses = [License.GPLv2]
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://ftp.gnu.org/pub/gnu/gperf/gperf-%(version)s.tar.gz' url = 'https://ftp.gnu.org/pub/gnu/gperf/gperf-%(version)s.tar.gz'
tarball_checksum = '767112a204407e62dbc3106647cf839ed544f3cf5d0f0523aaa2508623aad63e'
patches = ['gperf-0001-Don-t-override-environment-AR.patch'] patches = ['gperf-0001-Don-t-override-environment-AR.patch']
files_bins = ['gperf'] files_bins = ['gperf']
......
...@@ -8,10 +8,9 @@ class Recipe(recipe.Recipe): ...@@ -8,10 +8,9 @@ class Recipe(recipe.Recipe):
stype = SourceType.TARBALL stype = SourceType.TARBALL
btype = BuildType.CUSTOM btype = BuildType.CUSTOM
url = 'https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz' url = 'https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz'
tarball_checksum = '67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd'
files_devel = [ files_devel = ['share/aclocal/intltool.m4']
'share/aclocal/intltool.m4',
]
def install(self): def install(self):
m4 = os.path.join(self.build_dir.replace('-m4', ''), 'intltool.m4') m4 = os.path.join(self.build_dir.replace('-m4', ''), 'intltool.m4')
......
...@@ -7,3 +7,4 @@ class Recipe(recipe.Recipe): ...@@ -7,3 +7,4 @@ class Recipe(recipe.Recipe):
licenses = [License.GPLv2] licenses = [License.GPLv2]
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz' url = 'https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz'
tarball_checksum = '67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd'
...@@ -8,6 +8,7 @@ class Recipe(recipe.Recipe): ...@@ -8,6 +8,7 @@ class Recipe(recipe.Recipe):
licenses = [License.GPLv2] licenses = [License.GPLv2]
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://ftp.gnu.org/gnu/libtool/libtool-%(version)s.tar.gz' url = 'https://ftp.gnu.org/gnu/libtool/libtool-%(version)s.tar.gz'
tarball_checksum = 'e3bd4d5d3d025a36c21dd6af7ea818a2afcd4dfc1ea5a17b39d7854bcd0c06e3'
deps = ['m4'] deps = ['m4']
patches = ['libtool/0001-Add-support-for-weak_framework-linking-on-Darwin.patch', patches = ['libtool/0001-Add-support-for-weak_framework-linking-on-Darwin.patch',
'libtool/0002-libtool-Stop-adding-bind_at_load-on-all-Darwin.patch'] 'libtool/0002-libtool-Stop-adding-bind_at_load-on-all-Darwin.patch']
......
...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe): ...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe):
licenses = [License.GPLv2] licenses = [License.GPLv2]
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://ftp.gnu.org/gnu/m4/m4-%(version)s.tar.xz' url = 'https://ftp.gnu.org/gnu/m4/m4-%(version)s.tar.xz'
tarball_checksum = 'f2c1e86ca0a404ff281631bdc8377638992744b175afb806e25871a24a934e07'
files_bins = ['m4'] files_bins = ['m4']
patches = ['m4/0001-Fix-build-invalid-instruction-on-macOS-10.13.patch', patches = ['m4/0001-Fix-build-invalid-instruction-on-macOS-10.13.patch',
......
...@@ -10,6 +10,7 @@ class Recipe(recipe.Recipe): ...@@ -10,6 +10,7 @@ class Recipe(recipe.Recipe):
btype = BuildType.CUSTOM btype = BuildType.CUSTOM
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://github.com/mesonbuild/meson/releases/download/%(version)s/meson-%(version)s.tar.gz' url = 'https://github.com/mesonbuild/meson/releases/download/%(version)s/meson-%(version)s.tar.gz'
tarball_checksum = '86b8700c3d0880c2b44c2ff67ce42774aaf8c28cbf57725cb881569288c1c6f4'
patches = [ patches = [
# https://github.com/mesonbuild/meson/pull/3985 # https://github.com/mesonbuild/meson/pull/3985
'meson/0001-Don-t-require-an-import-library-for-shared-modules.patch', 'meson/0001-Don-t-require-an-import-library-for-shared-modules.patch',
......
...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe): ...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe):
btype = BuildType.CUSTOM btype = BuildType.CUSTOM
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://github.com/ninja-build/ninja/archive/v%(version)s.tar.gz' url = 'https://github.com/ninja-build/ninja/archive/v%(version)s.tar.gz'
tarball_checksum = '86b8700c3d0880c2b44c2ff67ce42774aaf8c28cbf57725cb881569288c1c6f4'
patches = ['ninja/0001-configure.py-Look-for-cl.exe-before-assuming-MSVC.patch'] patches = ['ninja/0001-configure.py-Look-for-cl.exe-before-assuming-MSVC.patch']
deps = [] deps = []
......
...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe): ...@@ -7,6 +7,7 @@ class Recipe(recipe.Recipe):
licenses = [License.GPLv2] licenses = [License.GPLv2]
stype = SourceType.TARBALL stype = SourceType.TARBALL
url = 'https://pkgconfig.freedesktop.org/releases/pkg-config-%(version)s.tar.gz' url = 'https://pkgconfig.freedesktop.org/releases/pkg-config-%(version)s.tar.gz'
tarball_checksum = '6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591'
configure_options = '--with-internal-glib --disable-host-tool ' configure_options = '--with-internal-glib --disable-host-tool '
files_bins = ['pkg-config'] files_bins = ['pkg-config']
......
...@@ -14,6 +14,7 @@ class Recipe(recipe.Recipe): ...@@ -14,6 +14,7 @@ class Recipe(recipe.Recipe):
maj_ver = '.'.join(version.split('.')[0:2]) maj_ver = '.'.join(version.split('.')[0:2])
url = 'https://ftp.gnome.org/pub/GNOME/sources/{0}/{2}/{0}-{1}.tar.xz' url = 'https://ftp.gnome.org/pub/GNOME/sources/{0}/{2}/{0}-{1}.tar.xz'
url = url.format(_name, version, maj_ver) url = url.format(_name, version, maj_ver)
tarball_checksum = 'af5efb30e8a303dd1c211e2a30ba0b41e64d47c9d6c5271f1d8ffb4fb63a017f'
srcdir = "{0}-{1}".format(_name, version) srcdir = "{0}-{1}".format(_name, version)
licenses = [License.LGPLv2_1Plus] licenses = [License.LGPLv2_1Plus]
btype = BuildType.CUSTOM btype = BuildType.CUSTOM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment