Skip to content

Conversation

uilianries
Copy link
Member

@uilianries uilianries commented Sep 12, 2025

Summary

Changes to recipe: pistache/0.0.5

Motivation

fixes #28369

/cc @tzolnai

Details

The dependency libevent was configured in the recipe to be installed in case not supported. This pull request toggles that logic to only install it when supported and configured to be used as a dependency. It also aligns the recipe to follow the upstream's behavior: libevent is False by default on Linux; on all other platforms, it is mandatory to use libevent.

Plus, libevent only started to be used by Pistache 0.4.23. The old version 0.0.5 is using native sys/event instead.

The libevent is only optional for Linux: https://github.com/pistacheio/pistache/blob/v0.4.25/meson.build#L188.

In case using Apple or Windows, it will use libevent always: https://github.com/pistacheio/pistache/blob/v0.4.25/include/pistache/emosandlibevdefs.h#L42

In case using Linux, and the build option PISTACHE_FORCE_LIBEVENT is False (default), it will use Linux epoll instead: https://github.com/pistacheio/pistache/blob/v0.4.25/include/pistache/eventmeth.h#L28


Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianr@jfrog.com>
@uilianries uilianries marked this pull request as ready for review September 12, 2025 07:21
Signed-off-by: Uilian Ries <uilianr@jfrog.com>
@uilianries uilianries changed the title [pistache] Do not install libevent by default [pistache] Proper manage libevent dependency Sep 12, 2025
@tzolnai
Copy link

tzolnai commented Sep 12, 2025

Tested in my local environment and works for me!

@franramirez688 franramirez688 merged commit 7623c38 into conan-io:master Sep 15, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[package] pistache/0.0.5: Libevent is identified as a dependency, but it's not actually linked to pistache.
5 participants