From d995093c15c8bb3578f8042974bac0fa7b7926bf Mon Sep 17 00:00:00 2001 From: Ark74 Date: Sat, 7 Feb 2026 15:28:37 -0600 Subject: [PATCH] yt-dpl: fix missing dependencies and patching cookies usage. --- ...t_for_firefox_based_browser_abrowser.patch | 15 ++++++---- helpers/make-hatchling | 30 +++++++++++++++++++ helpers/make-python-packaging | 29 ++++++++++++++++++ helpers/make-yt-dlp | 5 +--- 4 files changed, 69 insertions(+), 10 deletions(-) create mode 100644 helpers/make-hatchling create mode 100644 helpers/make-python-packaging diff --git a/helpers/DATA/yt-dlp/patch_changes/000-add_cookies_support_for_firefox_based_browser_abrowser.patch b/helpers/DATA/yt-dlp/patch_changes/000-add_cookies_support_for_firefox_based_browser_abrowser.patch index 7f3b9ee..783d516 100644 --- a/helpers/DATA/yt-dlp/patch_changes/000-add_cookies_support_for_firefox_based_browser_abrowser.patch +++ b/helpers/DATA/yt-dlp/patch_changes/000-add_cookies_support_for_firefox_based_browser_abrowser.patch @@ -86,12 +86,15 @@ index 5675445a..7afd324b 100644 if sys.platform in ('cygwin', 'win32'): yield from map(os.path.expandvars, ( R'%APPDATA%\Mozilla\Firefox\Profiles', -@@ -205,7 +205,7 @@ def _firefox_browser_dirs(): - - else: +@@ -214,9 +214,9 @@ def _firefox_browser_dirs(browser_name='firefox'): yield from map(os.path.expanduser, ( + # New installations of FF147+ respect the XDG base directory specification + # Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=259356 +- os.path.join(_config_home(), 'mozilla/firefox'), ++ os.path.join(_config_home(), 'mozilla/{browser_name}'), + # Existing FF version<=146 installations - '~/.mozilla/firefox', -+ f'~/.mozilla/{browser_name}', - '~/snap/firefox/common/.mozilla/firefox', ++ '~/.mozilla/{browser_name}', + # Flatpak XDG: https://docs.flatpak.org/en/latest/conventions.html#xdg-base-directories + '~/.var/app/org.mozilla.firefox/config/mozilla/firefox', '~/.var/app/org.mozilla.firefox/.mozilla/firefox', - )) diff --git a/helpers/make-hatchling b/helpers/make-hatchling new file mode 100644 index 0000000..1d9f19b --- /dev/null +++ b/helpers/make-hatchling @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Copyright (C) 2026 Luis Guzman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +VERSION=1 +EXTERNAL='deb-src http://deb.debian.org/debian trixie main' +REPOKEY=6ED0E7B82643E131 +BACKPORTS=true +BUILD_UNTIL=12.0 + +. ./config + + +changelog "Backport dependency for newer yt-dlp" + +package diff --git a/helpers/make-python-packaging b/helpers/make-python-packaging new file mode 100644 index 0000000..9c7f81a --- /dev/null +++ b/helpers/make-python-packaging @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Copyright (C) 2026 Luis Guzman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +VERSION=1 +EXTERNAL='deb-src http://deb.debian.org/debian trixie main' +REPOKEY=6ED0E7B82643E131 +BACKPORTS=true +BUILD_UNTIL=12.0 + +. ./config + +changelog "Backport dependency for newer yt-dlp" + +package diff --git a/helpers/make-yt-dlp b/helpers/make-yt-dlp index de25597..30dbff9 100644 --- a/helpers/make-yt-dlp +++ b/helpers/make-yt-dlp @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2025 Luis Guzman +# Copyright (C) 2026 Luis Guzman # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -34,9 +34,6 @@ sed -i "/Currently supported/s|are:|are at:|" debian/control apply_patch_changes -echo "> Freeze build until there is new info for javascript dependency." -exit 1 - changelog "Remove explicit site listing, redirecting to website author." package