-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement]: Suggest changing non core dependencies to recommended #21068
Comments
Could you provide any example which would help to understand the situation better? |
Let me give you an example.
The following packages should be changed to recommended:
I only need PHP to build a statistical API backend, I don't need these at all. Of course, this is a circular dependency, and I don't know which package introduced the x11 software I mentioned. Additionally, I declare that I have not installed x11-repo! |
Some of those are not direct dependencies of php. Also, none of the above dependencies are from x11 repository. Please see the x11-packages directory in this git repository. |
php depends libgd depends libheif which pulls in the codec stuffs |
I just built an API, I don't need a codec at all |
So you suggest breaking the PHP package because you didn't need part of it. |
Who said it was deleted? I meant to change it to recommendation, not deleted |
We'd prefer all parts of the PHP package to work out of the box. |
If there is, I cannot find it. termux-packages/packages/python/build.sh Lines 12 to 15 in 58ee4ec
But that's a recommended package for python , not a dependency.
|
Well, in this specific case, the gd php module could be split into a separate sub-package. For example,
|
I recognize I should not have used the shorthand "depends" and "recommends" for the specific build script variables. Footnotes |
PHP is a scripting language, not a video codec. |
A scripting language with features for interacting with web content, such as video streams. |
I just need to build a PHP based backend API. I believe that a program should only do its own thing and do it well. |
My phone storage is too low. With only 2GB RAM and 16GB ROM, Android 10 takes up 9GB of ROM, along with necessary apps and cache, leaving less than 3GB. After installing a slightly larger package, the notification bar keeps popping up about insufficient storage space, and the phone keeps trying to automatically clean up junk in the background, seriously slowing down CPU speed. I really don't have any storage space to waste. |
Just because you don't use all the features in PHPs standard library doesn't mean we should ship a PHP package with some of them broken out of the box. If you'd like to remove a dependency and break your PHP; dpkg -i --ignore-depends=brotli,fontconfig,freetype,gdk-pixbuf,libx265,libde265,libzip,libjpeg-turbo,libwebp,libpng php_8.3.8_aarch64.deb We do not offer any support for doing that, and you will end up with a broken PHP package. |
The environment of Termux determines that it is much different from other distributions. As you know, other Linux distributions, such as Ubuntu, will not list C/C++ compilers (such as 这个问题我来回答一下吧。Termux 的环境决定了它与其它二进制发行版有所不同。其它 Linux 发行版,例如 Ubuntu,确实没有将 C/C++ 编译器 (例如
Termux, like other binary distributions, provides as complete functionality as possible for each package. But diffrent from other distribution, in order to save maintenance time, packages, like Termux 和其它二进制发行版一样,会为每个软件包提供尽可能完整的功能。但是和其它发行版不同的是,为了节省维护的时间成本,类似 python, php 等类似的包并没有像其它发行版一样分的太细,比如
最后,我就不翻译了吧。在开源仓库提 issue 这很正常,但是如果用这种质问的语气提出来的 issue 真的让人非常不舒服。如果想对仓库进行贡献可以 PR,可以友好地提 issue,但用这种很冲的语气和别人说话实在是不应该。 |
I have created a pull request to split gd module in separate package. I hope this will help to reduce the dependencies with php package. |
It only saves 967kb in total. My suggestion is to let this user change to a new device. Using a too old device is not a good thing. ~ $ pkg inf libgd
Package: libgd
Version: 1:2.3.3-4
Maintainer: @termux
Installed-Size: 688 kB
Depends: fontconfig, freetype, libheif, libiconv, libjpeg-turbo, libpng, libtiff, libwebp, zlib
Breaks: libgd-dev
Replaces: libgd-dev
Homepage: https://libgd.github.io/
Download-Size: 125 kB
APT-Sources: https://mirrors.ustc.edu.cn/termux/termux-main stable/main aarch64 Packages
Description: GD is an open source code library for the dynamic creation of images by programmers
~ $ pkg inf php-gd
Package: php-gd
Version: 8.3.8-1
Maintainer: @termux
Installed-Size: 131 kB
Depends: libgd, php (= 8.3.8-1)
Homepage: https://php.net
Download-Size: 23.0 kB
APT-Sources: https://mirrors.ustc.edu.cn/termux/termux-main stable/main aarch64 Packages
Description: gd module for PHP |
If space is an issue when installing a package with lot of dependencies or doing If you device supports an sd card, you may want to look at https://www.reddit.com/r/termux/comments/12hty88/comment/jfuv5mg/ |
Actually, I just used two outdated knockoff phones to flash Android 7 or above, plugged in an SD card, and used it as a PHP backend server. The phone I am currently using has 128GB storage space, but due to some reasons, it is inevitable to switch IP frequently. I couldn't use it to launch the PHP website backend. |
No description provided.
The text was updated successfully, but these errors were encountered: