termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.39k stars 3.09k forks source link

Package request php-yaml #21029

Open newbit1 opened 3 months ago

newbit1 commented 3 months ago

Why is it worth to add this package?

Hi,

i would live to use a telegram backup bot on Android. So far I could install all depencies but php-yaml.

I even Compiled the source from pecl but there some Version strings messing, so it won't run.

The Script calls the Funktion yaml_parse_file

Thanks in advance for looking into it. NewBit

Home page URL

https://pecl.php.net/package/yaml/2.2.3

Source code URL

https://pecl.php.net/get/yaml

Packaging policy acknowledgement

Additional information

No response

TomJo2000 commented 3 months ago
The module is about half C.

![image](https://github.com/user-attachments/assets/faae9b76-61ce-4c84-a2d6-02972acd904e)

So that should pass the "Not available through a language package manager: pip, npm, cpan, cargo, etc." hurdle.

For auto-updating's sake using the GitHub source repo would be preferable. https://github.com/php/pecl-file_formats-yaml

I'm still not sure it doesn't run afoul of the "no libraries without dependents" part of our packaging policy. Which I am yet again reminded should be added to the template. Point being, the only PHP modules we package are the ones packaged directly with PHP. It might be a better fit for the [TUR](https://github.com/termux-user-repository/tur?tab=readme-ov-file#termux-user-repository-tur). Though there are also no PHP modules currently packaged there apart from the ones that are part of PHP7.
newbit1 commented 3 months ago

What about pecl Implementation into termux? I've read quite some issues about it, but it never made it in.

TomJo2000 commented 3 months ago

I'm not really familiar with PHP or PECL, but I suspect it has similar problems to Python's Pip when it comes to building certain modules.