You need to have deb-src enabled in your sources.list:
deb-src http://ftp.nl.debian.org/debian/ testing main non-free contrib

You need apt-src:
apt update
apt install apt-src

Use apt-src to get the source files for timeshift:
apt-src install timeshift

Then I let apt-src build a .deb from the unmodified source to verify it builds 
and have it extract everything:
apt-src build timeshift

I don't know how to use a patch file so I used an editor to search and replace 
two lines in ./timeshift-20.11.1/src/Utility/Device.vala

search
rex = new Regex("""NAME="(.*)" KNAME="(.*)" LABEL="(.*)" UUID="(.*)" 
TYPE="(.*)" FSTYPE="(.*)" SIZE="(.*)" MOUNTPOINT="(.*)" MODEL="(.*)" 
RO="([0-9]+)" RM="([0-9]+)" MAJ:MIN="([0-9:]+)"""");
replace with
rex = new Regex("""NAME="(.*)" KNAME="(.*)" LABEL="(.*)" UUID="(.*)" 
TYPE="(.*)" FSTYPE="(.*)" SIZE="(.*)" MOUNTPOINT="(.*)" MODEL="(.*)" 
RO="([0-9]+)" RM="([0-9]+)" MAJ[_:]MIN="([0-9:]+)"""");

search
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="(.*)"""");
replace with
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="(.*)"""");

Build a new .deb:
apt-src build timeshift

Install said .deb:
dpkg -i timeshift_20.11.1-1_amd64.deb

Next time I ran timeshift it was still confused but I could point it in the 
right direction using its settings screen.

Sent with [ProtonMail](https://protonmail.com/) Secure Email.

Reply via email to