Github messages for voidlinux
 help / color / mirror / Atom feed
From: pullmoll <pullmoll@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] RFC: avahi-stub possible?
Date: Sun, 31 May 2020 17:39:31 +0200	[thread overview]
Message-ID: <20200531153931.M5mnZC1N7LatGa_GaTpE_MwZA83MWosT_SClpGUpoZY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22389@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1766 bytes --]

Closed issue by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/issues/22389

Description:
This is a request for comments for an idea which came to me when I had to deal with the inevitable mess of dependency cycles which `avahi` creates by its sole appearance in package's makedepends.

The idea is basically to invent an `avahi-stub` package which implements the interface(s) of `avahi-libs-devel` but, instead of depending on everything that `avahi` depends upon, depends on nothing else.

The stub library (or libraries) would then, at runtime, try to `dlopen(3)` the actual `libavahi-client.so.3`, `libavahi-common.so.3`, and `libavahi-core.so.7` libraries and resolve their functions to store them in the stub's function pointers.

If a user (like me) chose not to install `avahi` at all, these functions pointers would be NULL and the stub functions would return the corresponding error codes and perhaps set `errno = ENOSYS` or whatever.

If OTOH the `avahi` package is installed, the stub would resolve the functions and then forward to them, adding one layer of call/return.

I don't know if anyone else already tried such a thing, whether it is at all possible, or if there are reasons why this cannot work in principle, that's why I ask here.

I'd love to be able to bootstrap and build up a Void repository without taking hours or days of manually tuning the package building process to avoid `avahi` here and `pulseaudio` there when building temporary packages to resolve the depedency cycles ... etc. pp.

Should this idea work, every package now depending on `avahi-libs-devel` would then depend on `avahi-stub-devel` and the bootstrap and repository build-up should work without human intervention.


      parent reply	other threads:[~2020-05-31 15:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-28 20:20 [ISSUE] " pullmoll
2020-05-28 23:19 ` Chocimier
2020-05-28 23:46 ` ericonr
2020-05-29  9:27 ` pullmoll
2020-05-29  9:47 ` Chocimier
2020-05-29 10:13 ` pullmoll
2020-05-29 12:08 ` Johnnynator
2020-05-30  2:31 ` ahesford
2020-05-31 15:39 ` pullmoll [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200531153931.M5mnZC1N7LatGa_GaTpE_MwZA83MWosT_SClpGUpoZY@z \
    --to=pullmoll@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).