Re: [gtk-osx-users] Can't Unpack Dependency




On Jun 8, 2017, at 11:32 AM, David Lowe <doctorjlowe twc com> wrote:

      I have a dependency here:

  <repository type="tarball" name="libsdl"
      href="https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz”/>

      It’s getting downloaded, but then the unpack process chokes:

*** Checking out mixer *** [2/3]
curl --continue-at - -L https://www.libsdl.org/projects/SDL_mixer/release/mixer/SDL2_mixer-2.0.1.tar.gz -o 
/Users/gtk/gtk/source/pkgs/SDL2_mixer-2.0.1.tar.gz
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                               Dload  Upload   Total   Spent    Left  Speed
100  2610  100  2610    0     0   6596      0 --:--:-- --:--:-- --:--:--  6607
gzip -dc "/Users/gtk/gtk/source/pkgs/SDL2_mixer-2.0.1.tar.gz" | tar xf -
gzip: /Users/gtk/gtk/source/pkgs/SDL2_mixer-2.0.1.tar.gz: not in gzip format
*** Error during phase checkout of mixer: could not unpack tarball (expected SDL2_mixer-2.0.1 dir) *** 
[2/3]

      They also offer that source in the older format, but jhbuild didn’t like it either:

*** Checking out mixer *** [2/3]
curl --continue-at - -L https://www.libsdl.org/projects/SDL_mixer/release/mixer/SDL2_mixer-2.0.1.zip -o 
/Users/gtk/gtk/source/pkgs/SDL2_mixer-2.0.1.zip
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                               Dload  Upload   Total   Spent    Left  Speed
100  2610  100  2610    0     0  10280      0 --:--:-- --:--:-- --:--:-- 10316
unzip "/Users/gtk/gtk/source/pkgs/SDL2_mixer-2.0.1.zip"
Archive:  /Users/gtk/gtk/source/pkgs/SDL2_mixer-2.0.1.zip
End-of-central-directory signature not found.  Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive.  In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip:  cannotForget find zipfile directory in one of /Users/gtk/gtk/source/pkgs/SDL2_mixer-2.0.1.zip or
      /Users/gtk/gtk/source/pkgs/SDL2_mixer-2.0.1.zip.zip, and cannot find 
/Users/gtk/gtk/source/pkgs/SDL2_mixer-2.0.1.zip.ZIP, period.
jhbuild build: failed to unpack /Users/gtk/gtk/source/pkgs/SDL2_mixer-2.0.1.zip

      At the very least, i know the .tar.gz file is not corrupted, as i can double-click it to unpack it.  
The wiki doesn’t get into the specifics of unpacking.  How do i get past this?

Unfortunately the zip extension is used for a bunch of different compression programs, not all of which are 
interoperable. Stick to tar.gz.

Equally unfortunately, jhbuild insists on first decompressing then unarchiving gzipped tarballs when tar is 
quite capable of doing so itself. That said,
I downloaded SDL2_mixer-2.0.1.tar.gz and MacOS Sierra’ gzip had no problems with it. I got a sha256 of 
5a24f62a610249d744cbd8d28ee399d8905db7222bf3bdbc8a8b4a76e597695f (use shasum -a 256 to check your download). 
You can work around the problem on your own system by simply untarring SDL2_mixer to the appropriate source 
directory by hand then tell jhbuild to ignore the error and proceed to configure.

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]