xserver icon indicating copy to clipboard operation
xserver copied to clipboard

Remove libsystemd-dev

Open probonopd opened this issue 6 months ago • 17 comments

Should no longer be a dependency following https://github.com/X11Libre/xserver/pull/161

probonopd avatar Jun 17 '25 18:06 probonopd

Should no longer be a dependency following #161

Well, depends on whether we want the CI to also build w/ systemd support enabled. (two build passes: one with it, one without it)

metux avatar Jun 18 '25 09:06 metux

in any case, the commit message should be prefixed ".github:" ... see my other recent commits as examples :)

metux avatar Jun 18 '25 09:06 metux

Yes, like I suggested elsewhere, we might:

  1. Install only the minimal dependencies and build the default configuration (with every optional dependency being opt-in)
  2. Install the optional dependencies and build again, this time with the opt-in features enabled

What do you think?

This would ensure that the software builds without all the optional dependencies and has no "dependency creep".

probonopd avatar Jun 18 '25 16:06 probonopd

Two separate jobs seem the right thing to me.

metux avatar Jun 23 '25 09:06 metux

@probonopd still working on this ?

Needs a rebase to confirm that it's still fine on latest head. If all goes fine, let's merge it.

metux avatar Jul 04 '25 12:07 metux

Needs a rebase to confirm that it's still fine on latest head. If all goes fine, let's merge it.

I used the "Update branch" button in the GitHub UI since I don't know how to do this on the git command line. Looks like it resulted in a merge rather than rebase, hope that's okay too (at least if you squash the commits when merging).

two build passes: one with it, one without it

I figure this would need something like

            - name: generic prereq
              run:  sudo .github/scripts/install-prereq.sh

            - name: build
              run:  .gitlab-ci/meson-build.sh

            - name: install systemd-dev and configure to enable systemd support
              run:  |
                    apt-get install -y libsystemd-dev
                    # configure for systemd support, how ???

            - name: build
              run:  .gitlab-ci/meson-build.sh

but I don't know the configure step.

probonopd avatar Jul 05 '25 07:07 probonopd

Even after updating the branch, I still get

meson.build:96:12: ERROR: Problem encountered: Failed to find an sd-bus provider, tried libsystemd, libelogind, basu

Wasn't that made optional (opt-in) upstream?

I would highly recommend to make Enterprise Linux induced dependencies/features disabled by default and opt-in at best. Here is an example from a FreeBSD port being developed, where we currently need wayland and gdbus if we want to build XLibre. We should really un-entangle all the RH induced dependencies.

probonopd avatar Jul 05 '25 07:07 probonopd

I used the "Update branch" button in the GitHub UI since I don't know how to do this on the git command line.

git remote update origin && git rebase origin/master

Looks like it resulted in a merge rather than rebase, hope that's okay too

Seems it's not doing what we want it to. So need to do it manually.

(at least if you squash the commits when merging).

No squash, just rebase. And commits already have to be in the right shape to be merged as they are. Anything else would be a nightmare for review.

> apt-get install -y libsystemd-dev > # configure for systemd support, how ???

add -Dsystemd_logind=true -Dsystemd_notify=true to the meson args.

metux avatar Jul 07 '25 12:07 metux

Even after updating the branch, I still get

meson.build:96:12: ERROR: Problem encountered: Failed to find an sd-bus provider, tried libsystemd, libelogind, basu

That seems to come from libei ... no idea how that comes into play here. I don't even have it on my machine.

metux avatar Jul 07 '25 12:07 metux

Ah, the install-prereq.sh script still want's to install it (left over from xwayland removal). https://github.com/X11Libre/xserver/pull/356

If you accept my invitation to the org, I can address you directly and also request review.

metux avatar Jul 07 '25 12:07 metux

If you accept my invitation to the org, I can address you directly and also request review.

I'd be glad to. Did you already send one? (Didn't see it...)

probonopd avatar Jul 07 '25 17:07 probonopd

If you accept my invitation to the org, I can address you directly and also request review.

I'd be glad to. Did you already send one? (Didn't see it...)

yes. several times, actually :p

metux avatar Jul 07 '25 18:07 metux

Ouch. I am VERY sorry. My fault. Unfortunately both expired, care to send one (hopefully last) one? Thanks!

probonopd avatar Jul 07 '25 19:07 probonopd

@probonopd conflicts need to be resolved and build is failing.

metux avatar Jul 23 '25 12:07 metux

rebased it

metux avatar Sep 09 '25 11:09 metux

@metux @probonopd These are the dependencies of the CI tests, right? In that case, will we no longer test the systemd code in CI?

stefan11111 avatar Sep 09 '25 14:09 stefan11111

@metux @probonopd These are the dependencies of the CI tests, right? In that case, will we no longer test the systemd code in CI?

indeed. that would be the consequence. shall we go that route ?

metux avatar Nov 26 '25 16:11 metux