Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 471960 Details for
Bug 599502
sys-fs/udisks: Add elogind support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Enable elogind support in udisks-2.6.*
udisks-2.6-enable-elogind.patch (text/plain), 2.64 KB, created by
Sven Eden
on 2017-05-08 14:39:21 UTC
(
hide
)
Description:
Enable elogind support in udisks-2.6.*
Filename:
MIME Type:
Creator:
Sven Eden
Created:
2017-05-08 14:39:21 UTC
Size:
2.64 KB
patch
obsolete
>--- a/configure.ac 2016-11-09 17:01:56.847354884 +0100 >+++ b/configure.ac 2016-11-09 17:06:15.057357196 +0100 >@@ -170,6 +170,17 @@ > AC_SUBST(LIBSYSTEMD_LOGIN_CFLAGS) > AC_SUBST(LIBSYSTEMD_LOGIN_LIBS) > >+PKG_CHECK_MODULES(LIBELOGIND, [libelogind >= 219], >+ [have_libelogind=yes], >+ [have_libelogins=no]) >+AM_CONDITIONAL(HAVE_LIBELOGIND, test x$have_libelogind = xyes) >+if test "x$have_libelogind" = "xyes"; then >+ AC_DEFINE([HAVE_LIBELOGIND], 1, [Define to 1 if libelogind is available]) >+fi >+AC_SUBST(HAVE_LIBELOGIND) >+AC_SUBST(LIBELOGIND_CFLAGS) >+AC_SUBST(LIBELOGIND_LIBS) >+ > # udevdir > AC_ARG_WITH([udevdir], > AS_HELP_STRING([--with-udevdir=DIR], [Directory for udev]), >@@ -600,6 +611,7 @@ > udevdir: ${udevdir} > systemdsystemunitdir: ${systemdsystemunitdir} > using libsystemd-login: ${have_libsystemd_login} >+ using libelogind: ${have_libelogind} > use /media for mounting: ${fhs_media} > acl support: ${have_acl} > libblockdev_part support: ${have_libblockdev_part} >--- a/src/Makefile.am 2016-11-09 17:01:39.487354728 +0100 >+++ b/src/Makefile.am 2016-11-09 17:08:10.608358230 +0100 >@@ -100,6 +100,7 @@ > $(POLKIT_GOBJECT_1_CFLAGS) \ > $(ACL_CFLAGS) \ > $(LIBSYSTEMD_LOGIN_CFLAGS) \ >+ $(LIBELOGIND_CFLAGS) \ > $(PART_CFLAGS) \ > $(NULL) > >@@ -112,6 +113,7 @@ > $(POLKIT_GOBJECT_1_LIBS) \ > $(ACL_LIBS) \ > $(LIBSYSTEMD_LOGIN_LIBS) \ >+ $(LIBELOGIND_LIBS) \ > $(PART_LDFLAGS) \ > $(top_builddir)/udisks/libudisks2.la \ > $(NULL) >--- a/src/udisksdaemonutil.c 2016-11-09 17:01:30.452354647 +0100 >+++ b/src/udisksdaemonutil.c 2016-11-09 17:35:49.230353328 +0100 >@@ -44,7 +44,15 @@ > #if defined(HAVE_LIBSYSTEMD_LOGIN) > #include <systemd/sd-daemon.h> > #include <systemd/sd-login.h> >+#endif >+ >+#if defined(HAVE_ELOGIND) && !defined(HAVE_LIBSYSTEMD_LOGIN) >+#include <elogind/sd-login.h> >+/* re-use HAVE_LIBSYSTEMD_LOGIN to not clutter the source file */ >+#define HAVE_LIBSYSTEMD_LOGIN 1 >+#endif > >+#if defined(HAVE_LIBSYSTEMD_LOGIN) > #define LOGIND_AVAILABLE() (access("/run/systemd/seats/", F_OK) >= 0) > #endif >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 599502
:
453028
|
453030
|
454326
|
454650
|
461542
|
461544
|
471958
|
471960
|
473864
|
474508