diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-10-16 17:19:55 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-10-16 17:24:11 +0530 |
commit | 313305fd77dbdcbb530d31653288154a5cef99df (patch) | |
tree | 68a307ef44d7c852267f65c8542a76598e40aae4 /recipes/gtk-doc-lite.recipe | |
parent | ad42e2a797d4ab8855d50875203533e3b6ea1c59 (diff) |
cerbero/unpack: Use tarfile module for xz tarballs too
Since Python 3.3, the tarfile module also supports lzma compression
and the implementation is less buggy than the MSYS tar:
1. It does not error out on uids that are out of range
2. Handles symlinks correctly by coping the file on extract
3. Better error reporting
Diffstat (limited to 'recipes/gtk-doc-lite.recipe')
-rw-r--r-- | recipes/gtk-doc-lite.recipe | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/recipes/gtk-doc-lite.recipe b/recipes/gtk-doc-lite.recipe index b8ad75ae..bffa6f57 100644 --- a/recipes/gtk-doc-lite.recipe +++ b/recipes/gtk-doc-lite.recipe @@ -5,12 +5,9 @@ class Recipe(recipe.Recipe): version = '1.27' stype = SourceType.TARBALL tarball_dirname = 'gtk-doc-%(version)s' - # url = 'https://ftp.acc.umu.se/pub/GNOME/sources/gtk-doc/%(version)s/gtk-doc-%(version)s.tar.xz' - # !!! gtk-doc 1.27 doesn't unpack on MingW, because the uid of the packager is out of range 1..65535 - # So mirror our own re-tarballed version. - # See https://bugzilla.gnome.org/show_bug.cgi?id=722621 - url = 'https://gstreamer.freedesktop.org/src/mirror/gtk-doc-%(version)s.tar.xz' - tarball_checksum = 'd00d589e68d0820bb1ab07291a24914f0c1b594040843baccce0489c33052601' + maj_ver = '.'.join(version.split('.')[0:2]) + url = 'https://download.gnome.org/sources/{0}/{1}/{0}-{2}.tar.xz'.format('gtk-doc', maj_ver, version) + tarball_checksum = 'e26bd3f7080c749b1cb66c46c6bf8239e2f320a949964fb9c6d56e1b0c6d9a6f' # TODO: check license - source files are GPLv2+ and COPYING is GPLv3 licenses = [License.GPLv2Plus] btype = BuildType.CUSTOM |