Version in base suite: 0.40.0-3 Base version: mpv_0.40.0-3 Target version: mpv_0.40.0-3+deb13u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/m/mpv/mpv_0.40.0-3.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/m/mpv/mpv_0.40.0-3+deb13u1.dsc changelog | 7 ++ gbp.conf | 2 patches/0001-player-create-missing-folders-for-watch-history-path.patch | 27 ++++++++++ patches/series | 1 4 files changed, 36 insertions(+), 1 deletion(-) diff -Nru mpv-0.40.0/debian/changelog mpv-0.40.0/debian/changelog --- mpv-0.40.0/debian/changelog 2025-04-04 16:43:53.000000000 +0000 +++ mpv-0.40.0/debian/changelog 2025-10-28 18:31:12.000000000 +0000 @@ -1,3 +1,10 @@ +mpv (0.40.0-3+deb13u1) trixie; urgency=medium + + * debian/gbp.conf: Work on debian/trixie branch + * debian/patches: Create missing folders for watch history (Closes: #1115938) + + -- Sebastian Ramacher Tue, 28 Oct 2025 19:31:12 +0100 + mpv (0.40.0-3) unstable; urgency=medium [ Diederik de Haas ] diff -Nru mpv-0.40.0/debian/gbp.conf mpv-0.40.0/debian/gbp.conf --- mpv-0.40.0/debian/gbp.conf 2025-03-30 11:51:50.000000000 +0000 +++ mpv-0.40.0/debian/gbp.conf 2025-10-28 18:30:15.000000000 +0000 @@ -1,4 +1,4 @@ [DEFAULT] pristine-tar = True -debian-branch = debian/master +debian-branch = debian/trixie upstream-branch = upstream/latest diff -Nru mpv-0.40.0/debian/patches/0001-player-create-missing-folders-for-watch-history-path.patch mpv-0.40.0/debian/patches/0001-player-create-missing-folders-for-watch-history-path.patch --- mpv-0.40.0/debian/patches/0001-player-create-missing-folders-for-watch-history-path.patch 1970-01-01 00:00:00.000000000 +0000 +++ mpv-0.40.0/debian/patches/0001-player-create-missing-folders-for-watch-history-path.patch 2025-10-28 18:30:44.000000000 +0000 @@ -0,0 +1,27 @@ +From: sfan5 +Date: Sun, 1 Jun 2025 17:36:44 +0200 +Subject: player: create missing folders for watch-history-path + +fixes: #16357 +--- + player/loadfile.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/player/loadfile.c b/player/loadfile.c +index b6b71fd..96c0fc4 100644 +--- a/player/loadfile.c ++++ b/player/loadfile.c +@@ -1546,8 +1546,12 @@ static void append_to_watch_history(struct MPContext *mpctx) + void *ctx = talloc_new(NULL); + char *history_path = mp_get_user_path(ctx, mpctx->global, + mpctx->opts->watch_history_path); +- FILE *history_file = fopen(history_path, "ab"); ++ char *history_path_dir = bstrto0(ctx, mp_dirname(history_path)); ++ if (!mp_path_exists(history_path_dir)) { ++ mp_mkdirp(history_path_dir); ++ } + ++ FILE *history_file = fopen(history_path, "ab"); + if (!history_file) { + MP_ERR(mpctx, "Failed to open history file: %s\n", + mp_strerror(errno)); diff -Nru mpv-0.40.0/debian/patches/series mpv-0.40.0/debian/patches/series --- mpv-0.40.0/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ mpv-0.40.0/debian/patches/series 2025-10-28 18:30:44.000000000 +0000 @@ -0,0 +1 @@ +0001-player-create-missing-folders-for-watch-history-path.patch