1 |
commit: f84c3871f3cc3e57f4267ee7bd2208af1c82789f |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 25 05:42:22 2021 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 25 05:42:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f84c3871 |
7 |
|
8 |
x11-misc/xscreensaver: packaging fix for LINGUAS & pam.d false positive error |
9 |
|
10 |
Closes: https://bugs.gentoo.org/803479 |
11 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
12 |
|
13 |
x11-misc/xscreensaver/xscreensaver-6.01-r3.ebuild | 15 ++++++++++++++- |
14 |
1 file changed, 14 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/x11-misc/xscreensaver/xscreensaver-6.01-r3.ebuild b/x11-misc/xscreensaver/xscreensaver-6.01-r3.ebuild |
17 |
index 10eae1bbfe2..fc75283e450 100644 |
18 |
--- a/x11-misc/xscreensaver/xscreensaver-6.01-r3.ebuild |
19 |
+++ b/x11-misc/xscreensaver/xscreensaver-6.01-r3.ebuild |
20 |
@@ -125,8 +125,19 @@ src_prepare() { |
21 |
eapply_user |
22 |
|
23 |
# Must be eauto*re*conf, to force the rebuild |
24 |
+ # it is NOT an entirely normal autoconf so there is weirdness! |
25 |
eautoreconf |
26 |
eautoheader |
27 |
+ |
28 |
+ # Afterwards, fix the linguas |
29 |
+ # doesn't populate @install_sh@ properly |
30 |
+ # https://bugs.gentoo.org/803479 |
31 |
+ # requires LINGUAS to trigger |
32 |
+ sed -i.orig \ |
33 |
+ -e "/^install_sh = /s!=.*!= ${S}/install-sh!g" \ |
34 |
+ "${S}/po/Makefile.in.in" || die |
35 |
+ grep -e install_sh \ |
36 |
+ "${S}/po/Makefile.in.in" || die |
37 |
} |
38 |
|
39 |
src_configure() { |
40 |
@@ -183,7 +194,8 @@ src_compile() { |
41 |
} |
42 |
|
43 |
src_install() { |
44 |
- emake install_prefix="${D}" install |
45 |
+ use pam && dodir /etc/pam.d/ |
46 |
+ emake install_prefix="${D}" DESTDIR="${D}" install |
47 |
|
48 |
if use fonts; then |
49 |
# Do not install fonts with unclear licensing |
50 |
@@ -200,6 +212,7 @@ src_install() { |
51 |
dodoc README{,.hacking} |
52 |
|
53 |
if use pam; then |
54 |
+ rm -f "${ED}/etc/pam.d/xscreensaver" # install our version instead |
55 |
fperms 755 /usr/bin/${PN} |
56 |
pamd_mimic_system ${PN} auth |
57 |
fi |