1 |
commit: 66f40d18791d88eb217202c73e836167bc3891c7 |
2 |
Author: Harri Nieminen <moikkis <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Feb 6 17:10:02 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 6 22:46:53 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66f40d18 |
7 |
|
8 |
x11-misc/wdm: EAPI bump 2 -> 6, fix #554672 |
9 |
|
10 |
Fixes following QA issue, Gentoo-bug: #554672 |
11 |
QA Notice: This ebuild installs into paths that should be created at runtime. |
12 |
To fix, simply do not install into these directories. Instead, your package |
13 |
should create dirs on the fly at runtime as needed via init scripts/etc... |
14 |
|
15 |
var/run |
16 |
var/run/wdm |
17 |
|
18 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
19 |
Closes: https://github.com/gentoo/gentoo/pull/3852 |
20 |
|
21 |
x11-misc/wdm/files/wdm-1.28-remove-fakehome.patch | 12 ++++++ |
22 |
x11-misc/wdm/files/wdm-1.28-terminateServer.patch | 6 +-- |
23 |
x11-misc/wdm/wdm-1.28-r4.ebuild | 46 +++++++++++++++++++++++ |
24 |
3 files changed, 61 insertions(+), 3 deletions(-) |
25 |
|
26 |
diff --git a/x11-misc/wdm/files/wdm-1.28-remove-fakehome.patch b/x11-misc/wdm/files/wdm-1.28-remove-fakehome.patch |
27 |
new file mode 100644 |
28 |
index 00000000..00f1dd1 |
29 |
--- /dev/null |
30 |
+++ b/x11-misc/wdm/files/wdm-1.28-remove-fakehome.patch |
31 |
@@ -0,0 +1,12 @@ |
32 |
+Do not create /var/run/wdm |
33 |
+Fixes https://bugs.gentoo.org/554672 |
34 |
+--- a/Makefile.in 2005-03-26 15:57:04.000000000 +0200 |
35 |
++++ b/Makefile.in 2017-02-06 18:57:16.196004491 +0200 |
36 |
+@@ -83,7 +83,6 @@ |
37 |
+ all-config: configs/Xclients configs/Xservers configs/Xservers.ws configs/Xsession configs/Xsetup_0 configs/wdm-config configs/wdmReconfig |
38 |
+ |
39 |
+ install-config: $(DESTDIR)$(DMDIR)/GiveConsole $(DESTDIR)$(DMDIR)/TakeConsole $(DESTDIR)$(DMDIR)/Xaccess $(DESTDIR)$(DMDIR)/Xresources $(DESTDIR)$(DMDIR)/Xservers.fs $(DESTDIR)$(DMDIR)/Xsession.XFree86 $(DESTDIR)$(DMDIR)/Xsession.orig $(DESTDIR)$(DMDIR)/Xclients $(DESTDIR)$(DMDIR)/Xservers $(DESTDIR)$(DMDIR)/Xservers.ws $(DESTDIR)$(DMDIR)/Xsession $(DESTDIR)$(DMDIR)/Xsetup_0 $(DESTDIR)$(DMDIR)/wdm-config $(DESTDIR)$(DMDIR)/wdmReconfig $(DESTDIR)$(DMDIR)/wdm-config.in $(DESTDIR)$(DMDIR)/Xclients.in install-pam-$(USE_PAM) $(DESTDIR)$(DMDIR)/authdir |
40 |
+- install -d -m 0700 $(DESTDIR)$(FAKEHOME) |
41 |
+ |
42 |
+ install-pam-no: |
43 |
+ |
44 |
|
45 |
diff --git a/x11-misc/wdm/files/wdm-1.28-terminateServer.patch b/x11-misc/wdm/files/wdm-1.28-terminateServer.patch |
46 |
index 3e167bd..827357c 100644 |
47 |
--- a/x11-misc/wdm/files/wdm-1.28-terminateServer.patch |
48 |
+++ b/x11-misc/wdm/files/wdm-1.28-terminateServer.patch |
49 |
@@ -1,7 +1,7 @@ |
50 |
-http://bugs.gentoo.org/290034 |
51 |
+https://bugs.gentoo.org/290034 |
52 |
|
53 |
---- configs/wdm-config.in |
54 |
-+++ configs/wdm-config.in |
55 |
+--- a/configs/wdm-config.in |
56 |
++++ b/configs/wdm-config.in |
57 |
@@ -21,6 +21,7 @@ |
58 |
DisplayManager*session: @DMDIR@/Xsession |
59 |
DisplayManager*authComplain: false |
60 |
|
61 |
diff --git a/x11-misc/wdm/wdm-1.28-r4.ebuild b/x11-misc/wdm/wdm-1.28-r4.ebuild |
62 |
new file mode 100644 |
63 |
index 00000000..b0fb0bb |
64 |
--- /dev/null |
65 |
+++ b/x11-misc/wdm/wdm-1.28-r4.ebuild |
66 |
@@ -0,0 +1,46 @@ |
67 |
+# Copyright 1999-2017 Gentoo Foundation |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+# $Id$ |
70 |
+ |
71 |
+EAPI=6 |
72 |
+ |
73 |
+inherit pam |
74 |
+ |
75 |
+DESCRIPTION="WINGs Display Manager" |
76 |
+HOMEPAGE="https://github.com/voins/wdm" |
77 |
+SRC_URI="http://voins.program.ru/${PN}/${P}.tar.bz2" |
78 |
+ |
79 |
+LICENSE="GPL-2" |
80 |
+SLOT="0" |
81 |
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
82 |
+IUSE="pam selinux truetype" |
83 |
+ |
84 |
+COMMON_DEPEND=">=x11-wm/windowmaker-0.70.0 |
85 |
+ truetype? ( x11-libs/libXft ) |
86 |
+ x11-libs/libXmu |
87 |
+ x11-libs/libXt |
88 |
+ x11-libs/libXpm |
89 |
+ pam? ( virtual/pam )" |
90 |
+DEPEND="${COMMON_DEPEND} |
91 |
+ sys-devel/gettext" |
92 |
+RDEPEND="${COMMON_DEPEND} |
93 |
+ pam? ( >=sys-auth/pambase-20080219.1 )" |
94 |
+ |
95 |
+PATCHES=( |
96 |
+ "${FILESDIR}"/${P}-terminateServer.patch |
97 |
+ "${FILESDIR}"/${P}-remove-fakehome.patch |
98 |
+) |
99 |
+ |
100 |
+src_configure() { |
101 |
+ econf \ |
102 |
+ --with-wdmdir="${EPREFIX}"/etc/X11/wdm \ |
103 |
+ $(use_enable pam) \ |
104 |
+ $(use_enable selinux) |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ default |
109 |
+ |
110 |
+ rm -f "${ED%/}"/etc/pam.d/wdm || die |
111 |
+ pamd_mimic system-local-login wdm auth account password session |
112 |
+} |