-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove bundled libevent #104
Conversation
It is ancient and doesn't compile on Fedora Rawhide. Most modern distributions ship with libevent now.
I agree wholeheartedly; this dependency is better handled by the end-user. I've taken the liberty of "backporting" this removal to
Then, you can see that there is a clearly recorded cross-branch alteration:
Your authorship has been preserved:
The easiest way to apply all this would be for @slowfranklin or @hat001 to fetch the commits as described above, and then push each one into its respective branch:
If done now, before any other pushes, that should yield fast-forward "merges" for each one, and then this pull request may be closed. |
sorry, but nak. We need this for OSes that don't ship libevent. Can you make it
a configure option instead?
…--
-slow
--
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
GPG Key Fingerprint: FAE2 C608 8A24 2520 51C5
59E4 AA1E 9B71 2639 9E46
|
I can look into that, but which distro doesn't ship libevent these days? |
On Tue, May 15, 2018 at 05:52:11AM -0700, Ruben Kerkhof wrote:
I can look into that, but which distro doesn't ship libevent these days?
then one "distro" I care about here is Solaris 11. :)
…-slow
--
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
GPG Key Fingerprint: FAE2 C608 8A24 2520 51C5
59E4 AA1E 9B71 2639 9E46
|
And using the one from OpenCSW isn't an option? |
On Tue, May 15, 2018 at 05:54:49AM -0700, Ruben Kerkhof wrote:
And using the one from OpenCSW isn't an option?
unfortunately not. I need to be able to ship a self contained binary package
where the only external deps are base OS libraries.
…-slow
--
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
GPG Key Fingerprint: FAE2 C608 8A24 2520 51C5
59E4 AA1E 9B71 2639 9E46
|
I don't think having libevent as an external dependency is really that big of a deal. And if we want to ship binaries packages that include it we can still do that. |
On Tue, May 15, 2018 at 06:14:08AM -0700, Andrew Stormont wrote:
I don't think having libevent as an external dependency is really that big of a deal.
it is for me. :) I wholeheartedly agree that we should not be using it by
default and offer a configure option and check, much like we do it for eg tdb
iirc. But simply removing it is not an option, sorry.
…-slow
--
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
GPG Key Fingerprint: FAE2 C608 8A24 2520 51C5
59E4 AA1E 9B71 2639 9E46
|
If you are already building netatalk from source building libevent first doesn't seem like it's much of a stretch. What am I missing? |
@slowfranklin
|
On Tue, May 15, 2018 at 01:37:51PM +0000, Andrew Stormont wrote:
If you are already building netatalk from source building libevent first
doesn't seem like it's much of a stretch. What am I missing?
I know it *can* be done, but it'd be at least a day to get it all wrapped up
correctly.
…-slow
--
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
GPG Key Fingerprint: FAE2 C608 8A24 2520 51C5
59E4 AA1E 9B71 2639 9E46
|
In the long run keeping the bundled libevent up to date (which it now isn't) seems like much more work than a day, including handling all the reports of issues that have been fixed in upstream libevent. There's also a security risk, and the fact that the libs are installed in /usr/lib, potentially conflicting with libevent from distros. |
@slowfranklin @rubenk Someone who has time (e.g., perhaps me or @rubenk or @andy-js) can get this binary-build infrastructure working, and then it will be a simple matter of removing Not only would this codify the details necessary to build certain binaries, but it would increase this project's bus factor. |
On Tue, May 15, 2018 at 08:23:30AM -0700, Michael Witten wrote:
@slowfranklin @rubenk
Here's a compromise solution: How about there be created a new, separate
repository whose sole purpose is to provide anyone with the tools necessary to
automate binary builds of the main source repository?
Someone who has time (e.g., perhaps me or @rubenk or @andy-js) can get this
binary-build infrastructure working, and *then* it will be a simple matter of
removing `libevent` from the main repository and using the new binary-build
infrastructure to deal with building.
sounds much too complicated. All that's really needed is a configure check to
prefer and consume an installed libevent over the bundled one.
If none of the folks who are driving this change here is willing or able to do
this, I can code something up after SambaXP, but I'm currently much too busy
with other stuff. Feel free to ping me after SambaXP in regular intervals. :)
…-slow
--
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
GPG Key Fingerprint: FAE2 C608 8A24 2520 51C5
59E4 AA1E 9B71 2639 9E46
|
I just checked, there already is a configure flag:
|
Well, of course there is already a configure flag; the whole point is to get rid of that stuff. This repo is not the proper place to be storing dependencies like this. |
On Tue, May 15, 2018 at 10:14:53AM -0700, Ruben Kerkhof wrote:
I just checked, there already is a configure flag:
```
netatalk (master %=) > ./configure --help | grep -i event
--with-libevent whether to use the bundled libevent (default: yes)
--with-libevent-header path to libevent header files
--with-libevent-lib path to libevent library
```
oh, looks like I already did this just 6 years ago. I somehow forgot... :)
…-slow
--
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
GPG Key Fingerprint: FAE2 C608 8A24 2520 51C5
59E4 AA1E 9B71 2639 9E46
|
The day has come! Let's finally remove libevent, cf MR #132. Closing this one. Thanks for contributing! |
It is ancient and doesn't compile on Fedora Rawhide.
Most modern distributions ship with libevent now.