From e13441afaa554c6b3e47408aa3732a52ab635031 Mon Sep 17 00:00:00 2001 From: Wes Roberts Date: Thu, 5 Aug 2021 18:12:44 -0400 Subject: [PATCH] timeshift: fix compatibility with util-linux 2.37.1. Timeshift will only start in "Live USB Mode". Upstream issues: https://github.com/teejee2008/timeshift/issues/425 https://github.com/teejee2008/timeshift/issues/753 https://github.com/teejee2008/timeshift/issues/755 --- srcpkgs/timeshift/patches/d437358a.patch | 23 +++++++++++++++++++++++ srcpkgs/timeshift/template | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/timeshift/patches/d437358a.patch diff --git a/srcpkgs/timeshift/patches/d437358a.patch b/srcpkgs/timeshift/patches/d437358a.patch new file mode 100644 index 000000000000..edc82d772a75 --- /dev/null +++ b/srcpkgs/timeshift/patches/d437358a.patch @@ -0,0 +1,23 @@ +commit d437358ac3debf7625aefda4d0bd387a91b69df5 +Author: Tony George +Date: Sun Jun 6 12:04:07 2021 +0530 + + Fix for #425, #753, #755 + +diff --git a/src/Utility/Device.vala b/src/Utility/Device.vala +index 18f09de..b276055 100755 +--- a/src/Utility/Device.vala ++++ b/src/Utility/Device.vala +@@ -428,10 +428,10 @@ public class Device : GLib.Object{ + + try{ + if (lsblk_is_ancient){ +- rex = new Regex("""NAME="(.*)" KNAME="(.*)" LABEL="(.*)" UUID="(.*)" TYPE="(.*)" FSTYPE="(.*)" SIZE="(.*)" MOUNTPOINT="(.*)" MODEL="(.*)" RO="([0-9]+)" RM="([0-9]+)" MAJ:MIN="([0-9:]+)""""); ++ rex = new Regex("""NAME="(.*)" KNAME="(.*)" LABEL="(.*)" UUID="(.*)" TYPE="(.*)" FSTYPE="(.*)" SIZE="(.*)" MOUNTPOINT="(.*)" MODEL="(.*)" RO="([0-9]+)" RM="([0-9]+)" MAJ[_:]MIN="([0-9:]+)""""); + } + else{ +- rex = new Regex("""NAME="(.*)" KNAME="(.*)" LABEL="(.*)" UUID="(.*)" TYPE="(.*)" FSTYPE="(.*)" SIZE="(.*)" MOUNTPOINT="(.*)" MODEL="(.*)" RO="([0-9]+)" HOTPLUG="([0-9]+)" MAJ:MIN="([0-9:]+)" PARTLABEL="(.*)" PARTUUID="(.*)" PKNAME="(.*)" VENDOR="(.*)" SERIAL="(.*)" REV="(.*)""""); ++ rex = new Regex("""NAME="(.*)" KNAME="(.*)" LABEL="(.*)" UUID="(.*)" TYPE="(.*)" FSTYPE="(.*)" SIZE="(.*)" MOUNTPOINT="(.*)" MODEL="(.*)" RO="([0-9]+)" HOTPLUG="([0-9]+)" MAJ[_:]MIN="([0-9:]+)" PARTLABEL="(.*)" PARTUUID="(.*)" PKNAME="(.*)" VENDOR="(.*)" SERIAL="(.*)" REV="(.*)""""); + } + + if (rex.match (line, 0, out match)){ diff --git a/srcpkgs/timeshift/template b/srcpkgs/timeshift/template index ebdbb9ee28be..6977a413e750 100644 --- a/srcpkgs/timeshift/template +++ b/srcpkgs/timeshift/template @@ -1,7 +1,7 @@ # Template file for 'timeshift' pkgname=timeshift version=20.11.1 -revision=1 +revision=2 build_style=gnu-makefile hostmakedepends="gettext pkg-config vala which" makedepends="libgee08-devel json-glib-devel gtk+3-devel vte3-devel libgirepository-devel"