Unverified Commit c3160517 authored by Michal Minář's avatar Michal Minář Committed by GitHub
Browse files

megasync: 4.9.0.0 -> 4.9.1.0 (#302394)



* megasync: 4.9.0.0 -> 4.9.1.0

and removed freeimage dependency

Resolves: #290949

Signed-off-by: default avatarMichal Minář <mm@michojel.cz>

* removed orphaned patch

Signed-off-by: default avatarMichal Minář <mm@michojel.cz>

---------

Signed-off-by: default avatarMichal Minář <mm@michojel.cz>
parent b8dc3e8f
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@
, doxygen
, fetchFromGitHub
, ffmpeg
, freeimage
, libmediainfo
, libraw
, libsodium
@@ -28,13 +27,13 @@
}:
mkDerivation rec {
  pname = "megasync";
  version = "4.9.0.0";
  version = "4.9.1.0";

  src = fetchFromGitHub {
    owner = "meganz";
    repo = "MEGAsync";
    rev = "v${version}_Linux";
    sha256 = "sha256-s0E8kJ4PJmhaxVcWPCyCk/KbcX4V3IESdZhSosPlZuM=";
    sha256 = "sha256-Y1nfY5iP64iSCYwzqxbjZAQNHyj4yVbSudSInm+yJzY=";
    fetchSubmodules = true;
  };

@@ -54,7 +53,6 @@ mkDerivation rec {
    cryptopp
    curl
    ffmpeg
    freeimage
    libmediainfo
    libraw
    libsodium
@@ -72,7 +70,6 @@ mkDerivation rec {
    ./noinstall-distro-version.patch
    # megasync target is not part of the install rule thanks to a commented block
    ./install-megasync.patch
    ./ffmpeg_44.patch
  ];

  postPatch = ''
@@ -98,7 +95,7 @@ mkDerivation rec {
    "--with-cryptopp"
    "--with-curl"
    "--with-ffmpeg"
    "--with-freeimage"
    "--without-freeimage"
    "--without-readline"
    "--without-termcap"
    "--with-sodium"
@@ -111,10 +108,10 @@ mkDerivation rec {
  '';

  preBuild = ''
    qmake CONFIG+="release" MEGA.pro
    qmake CONFIG+="nofreeimage release" MEGA.pro
    pushd MEGASync
      lrelease MEGASync.pro
      DESKTOP_DESTDIR="$out" qmake PREFIX="$out" -o Makefile MEGASync.pro CONFIG+=release
      DESKTOP_DESTDIR="$out" qmake PREFIX="$out" -o Makefile MEGASync.pro CONFIG+="nofreeimage release"
    popd
  '';

@@ -124,6 +121,6 @@ mkDerivation rec {
    homepage = "https://mega.nz/";
    license = licenses.unfree;
    platforms = [ "i686-linux" "x86_64-linux" ];
    maintainers = [ maintainers.michojel ];
    maintainers = [ ];
  };
}
+0 −14
Original line number Diff line number Diff line
Index: megasync-4.6.1.0/src/MEGASync/mega/src/gfx/freeimage.cpp
===================================================================
--- megasync-4.6.1.0.orig/src/MEGASync/mega/src/gfx/freeimage.cpp
+++ megasync-4.6.1.0/src/MEGASync/mega/src/gfx/freeimage.cpp
@@ -253,7 +253,8 @@ bool GfxProcFreeImage::readbitmapFfmpeg(
 
     // Force seeking to key frames
     formatContext->seek2any = false;
-    videoStream->skip_to_keyframe = true;
+    // no longer exposed in ffmpeg 4.4; the line above should be sufficient
+    //videoStream->skip_to_keyframe = true;
     if (decoder->capabilities & CAP_TRUNCATED)
     {
         codecContext->flags |= CAP_TRUNCATED;