LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-06-2016, 09:18 PM   #1
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 241

Rep: Reputation: 24
Package gvfs contains systemd related stuff


Hi all, and merry Christmas!
I was looked for systemd related files on my -current and I was noticed that the gvfs package contains it. So, I think it makes sense to remove it. Below is work that I done:
Code:
commit 15debea789b24a7fcb1c393989400d712d8ab715
Author: Yaroslav Shmelev <yars068@yandex.ru>
Date:   Thu Jan 7 02:04:03 2016 +0300

    configure.ac: add possiblity to disable systemd-userdir

diff --git a/configure.ac b/configure.ac
index bb358c6..d8eff66 100644
--- a/configure.ac
+++ b/configure.ac
@@ -260,6 +260,26 @@ fi
 
 AM_CONDITIONAL(USE_UDISKS2, [test "$msg_udisks2" = "yes"])
 
+dnl ****************************************
+dnl *** Check for systemd user units dir ***
+dnl ****************************************
+
+systemd_user_dir=${prefix}/lib/systemd/user
+AC_ARG_WITH([systemd-userunits], 
+    [AS_HELP_STRING([--with-systemd-userunits=PATH],
+	  [enable or disable systemd user units support])], 
+	[systemd_user_units=$withval],
+	[msg_systemd_user_units=no])
+    
+if test "x$systemd_user_units" != "xno"; then
+    PKG_CHECK_MODULES([SYSTEMD], [systemd >= 219],
+        AC_SUBST(systemd_user_units_dir, [$systemd_user_dir]))
+fi
+
+msg_systemd_user_units=${systemd_user_units}
+
+AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$systemd_user_units" != "xno"])
+
 dnl **********************************
 dnl *** Check for libsystemd-login ***
 dnl **********************************
@@ -923,33 +943,34 @@ AC_OUTPUT
 echo 
 echo "gvfs configuration summary:"
 echo "
-        gio module directory : $giomodulesdir
-
-        hotplug backend:              $msg_hotplug_backend
-
-	Blu-ray metadata support:     $msg_bluray
-	Google support:               $msg_google
-        HTTP/WebDAV support:          $msg_http
-	Samba support:	              $msg_samba
-	FUSE support:                 $msg_fuse
-        CDDA support:                 $msg_cdda
-        Gphoto2 support:              $msg_gphoto2
-        MTP support:                  $msg_libmtp
-	archive support:              $msg_archive
-	AFC support:                  $msg_afc
-        AFP support:                  $msg_afp
-        NFS support:                  $msg_nfs
-        DNS-SD support:               $msg_avahi
-	Build HAL volume monitor:     $msg_hal (with fast init path: $have_hal_fast_init)
-	Build GDU volume monitor:     $msg_gdu
-	Build udisks2 volume monitor: $msg_udisks2
-	Build GOA volume monitor:     $msg_goa
-        Use libsystemd-login:         $msg_libsystemd_login
-        Use GCR:                      $msg_gcr
-	GNOME Keyring support:        $msg_keyring
-	GTK+ support:                 $msg_gtk
-	Bash-completion support:      $msg_bash_completion
-	Installed tests:              $msg_installed_tests
+        gio module directory :            $giomodulesdir
+
+        hotplug backend:                  $msg_hotplug_backend
+
+        Blu-ray metadata support:         $msg_bluray
+        Google support:                   $msg_google
+        HTTP/WebDAV support:              $msg_http
+        Samba support:                    $msg_samba
+        FUSE support:                     $msg_fuse
+        CDDA support:                     $msg_cdda
+        Gphoto2 support:                  $msg_gphoto2
+        MTP support:                      $msg_libmtp
+        archive support:                  $msg_archive
+        AFC support:                      $msg_afc
+        AFP support:                      $msg_afp
+        NFS support:                      $msg_nfs
+        DNS-SD support:                   $msg_avahi
+        Build HAL volume monitor:         $msg_hal (with fast init path: $have_hal_fast_init)
+        Build GDU volume monitor:         $msg_gdu
+        Build udisks2 volume monitor:     $msg_udisks2
+        Build GOA volume monitor:         $msg_goa
+        Use libsystemd-login:             $msg_libsystemd_login
+        Use GCR:                          $msg_gcr
+        GNOME Keyring support:            $msg_keyring
+        GTK+ support:                     $msg_gtk
+        Bash-completion support:          $msg_bash_completion
+        Directory for systemd user units: $msg_systemd_user_units
+        Installed tests:                  $msg_installed_tests
 "
 
 # The gudev gphoto monitor needs a recent libgphoto; point to the required patch if the version is too old
commit bca343e6b64981d5a6235b394020abbcd7df0c20
Author: Yaroslav Shmelev <yars068@yandex.ru>
Date:   Thu Jan 7 05:49:44 2016 +0300

    Makefiles: possiblity to disable systemd user dir

diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 79113c7..662ffb4 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -39,9 +39,11 @@ servicedir = $(DBUS_SERVICE_DIR)
 service_in_files = org.gtk.vfs.Daemon.service.in
 service_DATA = org.gtk.vfs.Daemon.service
 
-systemd_userdir = ${prefix}/lib/systemd/user
+if HAVE_SYSTEMD
+systemd_userdir = @systemd_user_units_dir@
 systemd_user_in_files = gvfs-daemon.service.in
 systemd_user_DATA = gvfs-daemon.service
+endif
 
 .mount: .mount.in ../config.log
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
@@ -141,13 +143,18 @@ noinst_DATA = $(mount_DATA:.mount=.localmount)
 
 EXTRA_DIST = 				\
 	$(service_in_files)		\
-	$(systemd_user_in_files)	\
 	$(mount_in_files)		\
 	$(gvfs_gschemas_dist)		\
 	$(gvfs_gschemas_convert_dist)	\
 	$(gsettings_ENUM_FILES)		\
 	$(NULL)
 
+if HAVE_SYSTEMD
+EXTRA_DIST += \
+	$(systemd_user_in_files)	\
+        $(NULL)
+endif
+
 DISTCLEANFILES = $(mount_DATA) $(noinst_DATA)
 
 CLEANFILES =					\
diff --git a/metadata/Makefile.am b/metadata/Makefile.am
index e15e40e..b050dd2 100644
--- a/metadata/Makefile.am
+++ b/metadata/Makefile.am
@@ -72,16 +72,22 @@ servicedir = $(DBUS_SERVICE_DIR)
 service_in_files = org.gtk.vfs.Metadata.service.in
 service_DATA = org.gtk.vfs.Metadata.service
 
-systemd_userdir = ${prefix}/lib/systemd/user
+if HAVE_SYSTEMD
+systemd_userdir = @systemd_user_units_dir@
 systemd_user_in_files = gvfs-metadata.service.in
 systemd_user_DATA = gvfs-metadata.service
+endif
 
 EXTRA_DIST =				\
 	$(service_in_files)		\
-	$(systemd_user_in_files)	\
 	dbus-interface.xml		\
 	$(NULL)
 
+if HAVE_SYSTEMD
+	$(systemd_user_in_files)	\
+        $(NULL)
+endif
+
 CLEANFILES =				\
 	$(dbus_built_sources)		\
 	$(service_DATA)			\
diff --git a/monitor/afc/Makefile.am b/monitor/afc/Makefile.am
index bde7a90..e8af95d 100644
--- a/monitor/afc/Makefile.am
+++ b/monitor/afc/Makefile.am
@@ -35,15 +35,19 @@ servicedir = $(datadir)/dbus-1/services
 service_in_files = org.gtk.vfs.AfcVolumeMonitor.service.in
 service_DATA = $(service_in_files:.service.in=.service)
 
-systemd_userdir = ${prefix}/lib/systemd/user
+if HAVE_SYSTEMD
+systemd_userdir = @systemd_user_units_dir@
 systemd_user_in_files = gvfs-afc-volume-monitor.service.in
 systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
 
 $(service_DATA): $(service_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
 
+if HAVE_SYSTEMD
 $(systemd_user_DATA): $(systemd_user_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+endif
 
 CLEANFILES = \
 	*~ \
@@ -58,3 +62,9 @@ EXTRA_DIST = \
 	$(systemd_user_in_files) \
 	$(remote_volume_monitors_DATA) \
 	$(NULL)
+
+if HAVE_SYSTEMD
+EXTRA_DIST += \
+	$(systemd_user_in_files) \
+        $(NULL)
+endif
diff --git a/monitor/gdu/Makefile.am b/monitor/gdu/Makefile.am
index 0c5c4e8..b847f04 100644
--- a/monitor/gdu/Makefile.am
+++ b/monitor/gdu/Makefile.am
@@ -43,15 +43,19 @@ servicedir       = $(datadir)/dbus-1/services
 service_in_files = org.gtk.vfs.GduVolumeMonitor.service.in
 service_DATA     = $(service_in_files:.service.in=.service)
 
-systemd_userdir = ${prefix}/lib/systemd/user
+if HAVE_SYSTEMD
+systemd_userdir = @systemd_user_units_dir@
 systemd_user_in_files = gvfs-gdu-volume-monitor.service.in
 systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
 
 $(service_DATA): $(service_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
 
+if HAVE_SYSTEMD
 $(systemd_user_DATA): $(systemd_user_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+endif
 
 CLEANFILES = \
 	*~ \
@@ -66,3 +70,9 @@ EXTRA_DIST = \
 	$(systemd_user_in_files) \
 	$(remote_volume_monitors_DATA) \
 	$(NULL)
+
+if HAVE_SYSTEMD
+EXTRA_DIST += \
+	$(systemd_user_in_files) \
+        $(NULL)
+endif
diff --git a/monitor/goa/Makefile.am b/monitor/goa/Makefile.am
index c1c45d9..819a2be 100644
--- a/monitor/goa/Makefile.am
+++ b/monitor/goa/Makefile.am
@@ -35,15 +35,19 @@ servicedir = $(datadir)/dbus-1/services
 service_in_files = org.gtk.vfs.GoaVolumeMonitor.service.in
 service_DATA = $(service_in_files:.service.in=.service)
 
-systemd_userdir = ${prefix}/lib/systemd/user
+if HAVE_SYSTEMD 
+systemd_userdir = @systemd_user_units_dir@
 systemd_user_in_files = gvfs-goa-volume-monitor.service.in
 systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
 
 $(service_DATA): $(service_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
 
+if HAVE_SYSTEMD
 $(systemd_user_DATA): $(systemd_user_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+endif
 
 CLEANFILES = \
 	*~ \
@@ -55,6 +59,11 @@ CLEANFILES = \
 
 EXTRA_DIST = \
 	$(service_in_files) \
-	$(systemd_user_in_files) \
 	$(remote_volume_monitors_DATA) \
+        $(NULL)
+
+if HAVE_SYSTEMD
+EXTRA_DIST += \
+	$(systemd_user_in_files) \
 	$(NULL)
+endif
diff --git a/monitor/gphoto2/Makefile.am b/monitor/gphoto2/Makefile.am
index 723fbbc..91e59b0 100644
--- a/monitor/gphoto2/Makefile.am
+++ b/monitor/gphoto2/Makefile.am
@@ -77,15 +77,19 @@ servicedir       = $(datadir)/dbus-1/services
 service_in_files = org.gtk.vfs.GPhoto2VolumeMonitor.service.in
 service_DATA     = $(service_in_files:.service.in=.service)
 
-systemd_userdir = ${prefix}/lib/systemd/user
+if HAVE_SYSTEMD
+systemd_userdir = @systemd_user_units_dir@
 systemd_user_in_files = gvfs-gphoto2-volume-monitor.service.in
 systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
 
 $(service_DATA): $(service_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
 
+if HAVE_SYSTEMD
 $(systemd_user_DATA): $(systemd_user_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+endif
 
 CLEANFILES = \
 	*~ \
@@ -98,6 +102,10 @@ CLEANFILES = \
 EXTRA_DIST = \
 	hal-marshal.list \
 	$(service_in_files) \
-	$(systemd_user_in_files) \
 	$(remote_volume_monitors_DATA) \
 	$(NULL)
+
+if HAVE_SYSTEMD
+EXTRA_DIST += \
+	$(systemd_user_in_files)
+endif
diff --git a/monitor/hal/Makefile.am b/monitor/hal/Makefile.am
index 888268f..ebdc2bd 100644
--- a/monitor/hal/Makefile.am
+++ b/monitor/hal/Makefile.am
@@ -56,16 +56,21 @@ servicedir       = $(datadir)/dbus-1/services
 service_in_files = org.gtk.vfs.HalVolumeMonitor.service.in
 service_DATA     = $(service_in_files:.service.in=.service)
 
-systemd_userdir = ${prefix}/lib/systemd/user
+if HAVE_SYSTEMD
+systemd_userdir = @systemd_user_units_dir@
 systemd_user_in_files = gvfs-hal-volume-monitor.service.in
 systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
 
 $(service_DATA): $(service_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
 
+if HAVE_SYSTEMD
 $(systemd_user_DATA): $(systemd_user_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
 
+endif
+
 CLEANFILES = \
 	*~ \
 	*.loT \
@@ -77,6 +82,11 @@ CLEANFILES = \
 EXTRA_DIST = \
 	hal-marshal.list \
 	$(service_in_files) \
-	$(systemd_user_in_files) \
 	$(remote_volume_monitors_DATA) \
 	$(NULL)
+
+if HAVE_SYSTEMD
+EXTRA_DIST += \
+	$(systemd_user_in_files) \
+        $(NULL)
+endif
diff --git a/monitor/mtp/Makefile.am b/monitor/mtp/Makefile.am
index 98e64b3..3620a06 100644
--- a/monitor/mtp/Makefile.am
+++ b/monitor/mtp/Makefile.am
@@ -40,15 +40,19 @@ servicedir       = $(datadir)/dbus-1/services
 service_in_files = org.gtk.vfs.MTPVolumeMonitor.service.in
 service_DATA     = $(service_in_files:.service.in=.service)
 
-systemd_userdir = ${prefix}/lib/systemd/user
+if HAVE_SYSTEMD
+systemd_userdir = @systemd_user_units_dir@
 systemd_user_in_files = gvfs-mtp-volume-monitor.service.in
 systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
 
 $(service_DATA): $(service_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
 
+if HAVE_SYSTEMD
 $(systemd_user_DATA): $(systemd_user_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+endif
 
 CLEANFILES = \
 	*~ \
@@ -63,3 +67,9 @@ EXTRA_DIST = \
 	$(systemd_user_in_files) \
 	$(remote_volume_monitors_DATA) \
 	$(NULL)
+
+if HAVE_SYSTEMD
+EXTRA_DIST += \
+	$(systemd_user_in_files) \
+        $(NULL)
+endif
diff --git a/monitor/udisks2/Makefile.am b/monitor/udisks2/Makefile.am
index 5c0a801..9bd41a0 100644
--- a/monitor/udisks2/Makefile.am
+++ b/monitor/udisks2/Makefile.am
@@ -48,15 +48,19 @@ servicedir       = $(datadir)/dbus-1/services
 service_in_files = org.gtk.vfs.UDisks2VolumeMonitor.service.in
 service_DATA     = $(service_in_files:.service.in=.service)
 
-systemd_userdir = ${prefix}/lib/systemd/user
+if HAVE_SYSTEMD
+systemd_userdir = @systemd_user_units_dir@
 systemd_user_in_files = gvfs-udisks2-volume-monitor.service.in
 systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
 
 $(service_DATA): $(service_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
 
+if HAVE_SYSTEMD
 $(systemd_user_DATA): $(systemd_user_in_files) Makefile
 	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+endif
 
 CLEANFILES = \
 	*~ \
@@ -72,3 +76,9 @@ EXTRA_DIST = \
 	$(systemd_user_in_files) \
 	$(remote_volume_monitors_DATA) \
 	$(NULL)
+
+if HAVE_SYSTEMD
+EXTRA_DIST += \
+	$(systemd_user_in_files) \
+        $(NULL)
+endif
I think this patch will not accepted by upstream because GNOME is integrated with systemd in depth. Thanks.

Last edited by yars; 01-07-2016 at 05:18 AM.
 
Old 01-06-2016, 11:37 PM   #2
DarkVision
Member
 
Registered: Jul 2007
Posts: 189

Rep: Reputation: Disabled
Thanks for this

I have tested your patch, not with the official Slackware buildscript but with my own.

The patch applies fine. It is neccessary to run autoconf after apply the patch. You also have to add "--with-systemd-userunits=no" to the configure options since configure will complain about missing systemd without this.

As i can see this patch only removes the /usr/lib/systemd/* files, it does not touch the /usr/share/dbus-1/services/* files which still contain a path to the systemd service files.

If the goal is to not have this stuff in the package, why not simply deny install of the systemd-user files and edit the service-files using a find/sed command? I ended up with these two commands:
Code:
find -name "Makefile.in"    -exec sed -i -e "s,install-systemd_userDATA ,," -e "s, install-systemd_userDATA,," {} \; || exit 1
find -name "org*service.in" -exec sed -i -e "/^SystemdService/ d" {} \; || exit 1
The first command will remove the install-hooks from the Makefiles which will install the /usr/lib/systemd/* files. The second command will remove the SystemdService-entry from the dbus-service files.No autoconf/extra configure options needed.

Should this not do the trick also? Maybe someone with more knowledge about dbus/systemd can have a look at that.
 
Old 01-07-2016, 02:55 AM   #3
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 1,511

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
Probably this is cosmetic, because systemd is not used in slackware, just removing these file when make the package, enough.

hplip package have the same uneeded file

Last edited by gmgf; 01-07-2016 at 03:00 AM.
 
Old 01-07-2016, 05:24 AM   #4
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 241

Original Poster
Rep: Reputation: 24
Yes, add a string in Slackbuild, which will removes the /usr/lib/systemd/ directory is simple. But, maybe anyone have an account in GNOME development structure, so he may propose this to upstream?

Last edited by yars; 01-07-2016 at 05:25 AM.
 
Old 01-07-2016, 05:49 AM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,571

Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Had a similar thread over at LFS:
http://www.linuxquestions.org/questi...it-4175540203/
With a script to spot ( possible ) systemd incuresions in the code, might be helpful.
 
Old 01-07-2016, 10:00 AM   #6
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 241

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by DarkVision View Post
As i can see this patch only removes the /usr/lib/systemd/* files, it does not touch the /usr/share/dbus-1/services/* files which still contain a path to the systemd service files.
See this link to further explanation why it does not touch dbus files.

Last edited by yars; 01-07-2016 at 10:03 AM.
 
1 members found this post helpful.
Old 01-07-2016, 12:37 PM   #7
DarkVision
Member
 
Registered: Jul 2007
Posts: 189

Rep: Reputation: Disabled
Quote:
Originally Posted by yars View Post
See this link to further explanation why it does not touch dbus files.
Thx for the link. So if the patch will be sent upstream this might be the best solution, otherwise a simple rm -r /usr/lib/systemd might be enough.
 
Old 01-07-2016, 02:22 PM   #8
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 241

Original Poster
Rep: Reputation: 24
I'll have sent the patch to upstream, see here.
 
1 members found this post helpful.
Old 01-09-2018, 05:59 AM   #9
shevegen
Member
 
Registered: May 2004
Distribution: Slackware / GoboLinux / LFS / VoidLinux
Posts: 105

Rep: Reputation: 22
Does anyone know how to tell meson to not use systemd?

It was easy with GNU autoconfigure.

Meson with the latest gvfs tells me this:

---

Program libgcrypt-config found: YES (/System/Index/bin/libgcrypt-config)
Native dependency dbus-1 found: YES 1.12.2
Dependency systemd found: NO

Meson encountered an error in file meson.build, line 302, column 6:
Assert failed: systemd required but not found, please provide a valid systemd user unit dir or disable it

---

But that does not tell me how to omit any dependency on my awesome systemd-free slackware system.
 
Old 01-09-2018, 07:00 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,279

Rep: Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052
@shevegen: which gvfs version are you speaking about?

I ask because gvfs version 1.34.1 shipped in Slackware-current is not built with meson, as autotools has been superseded by meson in version 1.35.2 (which could be why Patrick didn't upgrade to 1.35n yet, by the way, as rebuilding all the packages for software that recently began to use meson as build tool needs a lot of time).

So, why not just use the packages that Slackware provide? If instead your issue is with a home built package, not a genuine Slackware one, I suggest that you ask in a new thread, as this one is two years old and is about the genuine Slackware gvfs package.
 
1 members found this post helpful.
Old 01-09-2018, 08:09 AM   #11
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 1,511

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
Quote:
Originally Posted by shevegen View Post
Does anyone know how to tell meson to not use systemd?

It was easy with GNU autoconfigure.

Meson with the latest gvfs tells me this:

---

Program libgcrypt-config found: YES (/System/Index/bin/libgcrypt-config)
Native dependency dbus-1 found: YES 1.12.2
Dependency systemd found: NO

Meson encountered an error in file meson.build, line 302, column 6:
Assert failed: systemd required but not found, please provide a valid systemd user unit dir or disable it

---

But that does not tell me how to omit any dependency on my awesome systemd-free slackware system.
Try this:

Code:
mkdir build
cd build
meson setup --prefix=/usr \
    --libdir=/usr/lib64 \
    --libexecdir=/usr/libexec \
    -Dsystemduserunitdir=no \
    -Dtmpfilesdir=no \
    -Ddnssd=false \
    -Dlogind=false \
    -Dgoa=false \
    -Dgoogle=false \
    -Dnfs=false
    ninja
DESTDIR="$PKG" ninja install
cd ..

Last edited by gmgf; 01-09-2018 at 10:08 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list/find all files etc related to a package? linus72 Slackware 3 08-28-2009 08:10 PM
[QT] what package should i add to be able to compile qt stuff ? jabka Programming 9 06-12-2007 04:35 PM
newbie stuff related to kde and pppsetup drawhla Slackware 1 04-19-2004 06:30 PM
Related to unzip a tar.gz.gz package and installation anilkumar Linux - Software 2 08-27-2003 12:48 PM
problem with sound-related stuff (Debian) The_Mocker Linux - Newbie 3 05-14-2002 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration