termux / termux-packages

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

plutolang: transfer as sub-package and prefer php scripts #21255

Closed mbekkomo closed 2 months ago

mbekkomo commented 2 months ago
Biswa96 commented 2 months ago

What would be the benefit of this change or why is this required?

TomJo2000 commented 2 months ago

Plutolang being a lua-like would loosely benefit from following the established structure of the liblua{51,52,53,54,jit} packages.

Needing PHP as the build system would be a minor pain in the ass. But if Komo feels like making those conformance changes I'm happy to merge them.

mbekkomo commented 2 months ago

@TomJo2000 I feel like writing Makefile patch is much more pain in the ass than having to write a setup script for PHP :P

Biswa96 commented 2 months ago

I feel like writing Makefile patch is much more pain in the ass than having to write a setup script for PHP :P

That would be same as comparing screwdriver with hammer. Use the right tool for the right job.

mbekkomo commented 2 months ago

I feel like writing Makefile patch is much more pain in the ass than having to write a setup script for PHP :P

That would be same as comparing screwdriver with hammer. Use the right tool for the right job.

IMO writing patches are more of a "Hey, apply this tape until it loosened", once the package got bumped, the patches may or may not work.

TomJo2000 commented 2 months ago

And patching the PHP build scripts fixes this problem how exactly? I mean if it's what upstream recommends that's a good enough reason to use them, you don't have to come up with additional reasons.

mbekkomo commented 2 months ago

And patching the PHP build scripts fixes this problem how exactly?

The PHP build scripts already added the thing you wanted, like building static and shared library. Unlike the Makefile approach where you need to patch the Makefile to also build a shared library and also use the Termux Builder's C{,XX,PP}FLAGS

I mean if it's what upstream recommends that's a good enough reason to use them, you don't have to come up with additional reasons.

They did recommend to use the PHP build scripts over the modified Makefile from Lua source.