forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11/lightdm: Fix login.conf issues, import various improvements
- Add patch to use setusercontext(3) to setup user environment, so it respects login.conf among other things [1] - Use autoreconf, since patch requires regenerating configure script to check for setusercontext(3) [2] - Explicitly disable libaudit support, not supported in FreeBSD [3] - Add QT5 options, disabled by default, to control linking against qt5 [4] - Import patch adding option to enable alternative location for .xsession-errors file [5] - Correctly define runtime dependencies - Forcibly disable installation of apparmor files - Install PAM configuration files as samples, so in the future they are not overwritten if customized - Pet portclippy/portfmt - Regenerate patches Upstreaming: [1] canonical/lightdm#334 [5] canonical/lightdm#335 Many thanks to all people involved! PR: 266532 [1] [2], 273720 [1], 275885 [3] [4] [5] Tested by: Ivan Rozhuk <[email protected]>, Daniel Tameling <[email protected]> (provided setusercontext patch), Anton Saietskii <[email protected]>
- Loading branch information
1 parent
9558eb4
commit 23a47f2
Showing
11 changed files
with
235 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- common/configuration.c.orig 2021-02-15 22:00:52 UTC | ||
+++ common/configuration.c | ||
@@ -346,6 +346,7 @@ config_init (Configuration *config) | ||
g_hash_table_insert (config->priv->lightdm_keys, "greeters-directory", GINT_TO_POINTER (KEY_SUPPORTED)); | ||
g_hash_table_insert (config->priv->lightdm_keys, "backup-logs", GINT_TO_POINTER (KEY_SUPPORTED)); | ||
g_hash_table_insert (config->priv->lightdm_keys, "dbus-service", GINT_TO_POINTER (KEY_SUPPORTED)); | ||
+ g_hash_table_insert (config->priv->lightdm_keys, "smart-xsession-errors", GINT_TO_POINTER (KEY_SUPPORTED)); | ||
g_hash_table_insert (config->priv->lightdm_keys, "logind-load-seats", GINT_TO_POINTER (KEY_DEPRECATED)); | ||
|
||
g_hash_table_insert (config->priv->seat_keys, "type", GINT_TO_POINTER (KEY_SUPPORTED)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- configure.ac.orig 2022-07-18 03:42:33 UTC | ||
+++ configure.ac | ||
@@ -48,7 +48,7 @@ AC_CHECK_HEADERS(gcrypt.h, [], AC_MSG_ERROR(libgcrypt | ||
|
||
AC_CHECK_HEADERS(gcrypt.h, [], AC_MSG_ERROR(libgcrypt not found)) | ||
|
||
-AC_CHECK_FUNCS(setresgid setresuid clearenv __getgroups_chk) | ||
+AC_CHECK_FUNCS(setresgid setresuid setusercontext clearenv __getgroups_chk) | ||
|
||
PKG_CHECK_MODULES(LIGHTDM, [ | ||
glib-2.0 >= 2.44 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- data/Makefile.am.orig 2022-05-01 23:00:26 UTC | ||
+++ data/Makefile.am | ||
@@ -15,18 +15,6 @@ dist_completions_DATA = bash-completion/dm-tool bash-c | ||
completionsdir = $(datadir)/bash-completion/completions | ||
dist_completions_DATA = bash-completion/dm-tool bash-completion/lightdm | ||
|
||
-lightdm-guest-session: $(srcdir)/apparmor/lightdm-guest-session.in | ||
- sed -e 's|@libexecdir[@]|$(libexecdir)|g' $< >$@ | ||
- | ||
-apparmor_profiledir = $(sysconfdir)/apparmor.d | ||
-apparmor_profile_DATA = \ | ||
- lightdm-guest-session | ||
- | ||
-apparmor_profile_abstractionsdir = $(apparmor_profiledir)/abstractions | ||
-dist_apparmor_profile_abstractions_DATA = \ | ||
- apparmor/abstractions/lightdm \ | ||
- apparmor/abstractions/lightdm_chromium-browser | ||
- | ||
accountsservice_interface = org.freedesktop.DisplayManager.AccountsService.xml | ||
|
||
dbusdir = $(datadir)/dbus-1/interfaces | ||
@@ -46,5 +34,5 @@ dist_man1_MANS = dm-tool.1 \ | ||
dist_man1_MANS = dm-tool.1 \ | ||
lightdm.1 | ||
|
||
-EXTRA_DIST = apparmor/lightdm-guest-session.in $(polkit_in_files) | ||
-CLEANFILES = lightdm-guest-session $(polkit_DATA) | ||
+EXTRA_DIST = $(polkit_in_files) | ||
+CLEANFILES = $(polkit_DATA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.