Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659592 - app-eselect/eselect-php: support for 'embed' module
Summary: app-eselect/eselect-php: support for 'embed' module
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-29 13:52 UTC by Vadim A. Misbakh-Soloviov (mva)
Modified: 2020-03-06 17:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2018-06-29 13:52:06 UTC
It will be nice if eselect-php would support "embed" module (adding symlinks from /usr/lib(32|64)/php*/lib(32|64)/libphp*.so to /usr/lib(32|64)...
Comment 1 Michael Orlitzky gentoo-dev 2020-01-22 16:21:08 UTC
How do you plan to use this?

All of the other eselect php... modules swap out the implementation behind fixed file names. The closest analogue is probably apache2, where we create a symlink for mod_php.so that points to a real shared object.

With the embed SAPI, we could link e.g.

  /usr/lib64/libphp.so -> /usr/lib64/php7.3/lib64/libphp7.so

which means that you never have to worry about the name of the library changing to libphp8.so (we had this same problem with php-5.x). On the other hand... this is a library. If there are upstream packages searching for libphp7.so (because that's what PHP upstream calls it), then it doesn't do us much good to rename it libphp.so, because nobody will know to look for it there.
Comment 2 Michael Orlitzky gentoo-dev 2020-02-03 13:51:49 UTC
I was thinking that we would have to use the name /usr/lib64/libphp7.so here, because you wouldn't want to switch out libphp7.so with an incompatible libphp8.so (all of your linked applications would break). That got me thinking: even though the soname doesn't change, is libphp7.so API/ABI compatible across releases of php-7.x? Answer: no.

So, swapping out libphp7.so with incompatible versions (of libphp7.so) is going to cause breakage as well. And now I'm thinking that we shouldn't even try this until upstream promises a stable ABI for this SAPI.

Do you have a use case where this would behave sanely in its current state?
Comment 3 Michael Orlitzky gentoo-dev 2020-03-06 17:19:29 UTC
I don't think this makes sense any longer but if you have a use case I haven't thought of, I'm still open to it.