Bug 1668129 - libwebsockets uses poor cmake flags in spec file
Summary: libwebsockets uses poor cmake flags in spec file
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libwebsockets
Version: 29
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-22 01:39 UTC by Per Bothner
Modified: 2019-02-19 20:26 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-02-09 10:47:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Per Bothner 2019-01-22 01:39:14 UTC
Description of problem:

Libwebsockets is not built with the recommended features and options.  For example LWS_WITH_ZIP_FOPS is not set.  This means that when building DomTerm (https://domterm.org - not yet approved for Fedora) it uses a less-efficient representation of resources.

Please compare the libwebsockets.spec used in Fedora with the one in the upstream source file scripts/libwebsockets.spec.  The latter just has:

    %cmake .. -DLWS_WITH_DISTRO_RECOMMENDED=1

while the Fedora version has a long list of options.  Please follow upstream in this respect. If there is a good reason not to, that should be noted.

See also READMEs/README.build.md (https://github.com/warmcat/libwebsockets/blob/master/READMEs/README.build.md):

    "Distro packagers should select the CMake option "LWS_WITH_DISTRO_RECOMMENDED", which selects common additional options like support for various event libraries, plugins and lwsws."

Comment 1 Per Bothner 2019-01-22 01:40:46 UTC
I believe this bug applies to both f29 and Rawhide.  This breakage appears to be recent, with a yum update todo.

Comment 2 Per Bothner 2019-01-22 01:42:03 UTC
This appears to be a recent problem in both fedora 29 and Rawhide, fresh with an yum update (on 29) today.

Comment 3 Peter Robinson 2019-02-09 10:47:58 UTC
We don't enable the distro defaults because it builds test servers and clients and a whole bunch of things that we don't currently want. I've updated the build options so LWS_WITH_ZIP_FOPS is enabled (and updated it for a number of other things)

Comment 4 Per Bothner 2019-02-19 20:26:23 UTC
I asked on the libwebsockets list (https://libwebsockets.org/pipermail/libwebsockets/2019-February/007803.html) and the maintainer (Andy Green) found the issue "builds test servers and clients and a whole bunch of things that we don't currently want" puzzling.  That is not supposed to be happening, and if it is, it may an upstream bug.  It would be nice to nail down the specific issue you have with LWS_WITH_DISTRO_RECOMMENDED.


Note You need to log in before you can comment on or make changes to this bug.