linuxmint / timeshift

System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.
1.55k stars 75 forks source link

Build instructions missing or not working #241

Open resuna opened 8 months ago

resuna commented 8 months ago

Describe the bug Can not build timeshift because of dependency hell in meson. Build instructions in README.md are completely pants.

To Reproduce Steps to reproduce the behavior:

  1. Start with a pretty much virgin Ubuntu 22.04.3 and need to install timeshift from source because the version with the fix for unmounting /run/timeshift/backup when finished doesn't seem to be in any repos.
  2. Try to build timeshift using instructions in README.md. Failed because no makefile.
  3. git checkout 23.07.01 just in case I need the latest released version
  4. No change
  5. See there is a meson configuration.
  6. Repeatedly apt install bits required by meson using meson quickstart guide.
  7. meson setup builddir
  8. Install cmake and xapp using apt
  9. meson setup builddir
  10. Complains it can't find xapp
  11. Augh

Expected behavior Starting with README.md and INSTALL one should find instructions that are at least good enough to build timeshift on the latest Ubuntu LTS. If there is a good release, that should be tagged and documented in Releases, or something.

Alternatively, "apt install timeshift" should just DTRT. If I need to do some package repo juggling to get that, is that documented anywhere?

System:

yegorich commented 8 months ago

Have you looked at https://github.com/linuxmint/timeshift/blob/master/docs/development.md?

yegorich commented 8 months ago

The dependecies can also be installed via the following command:

sudo apt build-dep timeshift

resuna commented 8 months ago

Perhaps the bits of INSTALL and README.md that tell you to use make and make install should be removed, or replaced by references to development.md?

resuna commented 8 months ago

Well, now that I have it installed, it seems to have broken the previously working timeshift GUI. I have gotten the command line working, but that is a little inconvenient.

OK, running "sudo timeshift-gtk" works but whatever the ubuntu desktop is doing to run it doesn't.

yegorich commented 8 months ago

There is already a related PR #226

m10d commented 8 months ago

The dependecies can also be installed via the following command:

sudo apt build-dep timeshift

On ubuntu 20.04 this fails with:

$ sudo apt build-dep timeshift
Reading package lists... Done
E: You must put some 'deb-src' URIs in your sources.list