这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@TomJo2000
Copy link
Member

@TomJo2000 TomJo2000 commented Mar 14, 2025

This PR migrates python-yt-dlp from the TUR.
Additionally:

Footnotes

  1. Comma-separated list of packages that are related to or enhance the current one.

  2. Comma-separated list of non-absolute dependencies - packages usually used with the current one.
    https://github.com/termux/termux-packages/wiki/Creating-new-package#package-build-script-variables

TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.1.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/google/brotli/archive/v$TERMUX_PKG_VERSION.tar.gz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has the same TERMUX_PKG_SRCURL as main/brotli,

would it make sense to combine the build.sh and make this a subpackage of that?

TERMUX_PKG_VERSION=1.1.0
TERMUX_PKG_SRCURL=https://github.com/google/brotli/archive/v$TERMUX_PKG_VERSION.tar.gz

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not realize that.
It's definitely an option.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to leave that for another time actually.

Mainly because I don't think subpackages support all required build variables.
https://github.com/termux/termux-packages/wiki/Creating-new-package#subpackage-build-script-variables

TERMUX_PKG_PYTHON_COMMON_DEPS in particular doesn't seems to have an equivalent for subpackages.
I'm not really happy with the current separation of subpackages as some separate class of package as I've stated previously and this seems to be another case to solidify that.

Leaving it as a separate package for the time being doesn't appear to have any adverse consequences.
It is independent from Brotli in all but source repository as is already.

Copy link
Member

@robertkirkman robertkirkman Mar 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree it's a bit confusing, but TERMUX_PKG_PYTHON_COMMON_DEPS is actually dependencies that only get installed while the package is building (there are no instances of packages or subpackages that install TERMUX_PKG_PYTHON_COMMON_DEPS during install-time rather than build-time).

Because of that, it means that you would actually put TERMUX_PKG_PYTHON_COMMON_DEPS in the build.sh of the main package, not the subpackage (because, since it's not possible to build a subpackage without also building the main package, the build dependencies of subpackages are defined in the build.sh of the main package).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having an interstitial main/python-brotli package at least makes the "succession" clearer.
Having a BREAKS/REPLACES for a TUR package is a bit iffy.
Although, I'm not even sure replacing a "standalone" package with a subpackage of the same name would require a breaks/replaces entry.

@TomJo2000 TomJo2000 merged commit 1eba37c into termux:master Mar 17, 2025
9 checks passed
@TomJo2000 TomJo2000 deleted the migrate-yt-dlp branch June 8, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants