[livecd-tools/f21] Work around rhbz#1127103 by manually loading the problematic library.
Peter Jones
pjones at fedoraproject.org
Wed Aug 20 14:34:07 UTC 2014
commit b5845dfb7a5d8c070de50f1a87b8b8ad23b89a55
Author: Peter Jones <pjones at redhat.com>
Date: Wed Aug 20 10:21:00 2014 -0400
Work around rhbz#1127103 by manually loading the problematic library.
Related: rhbz#1127103
...-tools-21.2-manually-load-libnss_sss.so.2.patch | 16 ++++++++++++++++
livecd-tools.spec | 9 +++++++--
2 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/livecd-tools-21.2-manually-load-libnss_sss.so.2.patch b/livecd-tools-21.2-manually-load-libnss_sss.so.2.patch
new file mode 100644
index 0000000..dd7aa83
--- /dev/null
+++ b/livecd-tools-21.2-manually-load-libnss_sss.so.2.patch
@@ -0,0 +1,16 @@
+diff -urpN livecd-tools-21.2/tools/livecd-creator.pjones livecd-tools-21.2/tools/livecd-creator
+--- livecd-tools-21.2/tools/livecd-creator.pjones 2014-08-20 10:17:47.881101260 -0400
++++ livecd-tools-21.2/tools/livecd-creator 2014-08-20 10:17:24.699153538 -0400
+@@ -224,5 +224,12 @@ def main():
+
+ return 0
+
++def do_nss_sss_hack():
++ import ctypes as forgettable
++ hack = forgettable._dlopen('libnss_sss.so.2')
++ del forgettable
++ return hack
++
+ if __name__ == "__main__":
++ hack = do_nss_sss_hack()
+ sys.exit(main())
diff --git a/livecd-tools.spec b/livecd-tools.spec
index b68008e..656e3ea 100644
--- a/livecd-tools.spec
+++ b/livecd-tools.spec
@@ -5,7 +5,7 @@
Summary: Tools for building live CDs
Name: livecd-tools
Version: 21.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 1
License: GPLv2
Group: System Environment/Base
@@ -43,7 +43,7 @@ Requires: yaboot
Requires: dumpet
BuildRequires: python
BuildRequires: /usr/bin/pod2man
-
+Patch0: livecd-tools-21.2-manually-load-libnss_sss.so.2.patch
%description
Tools for generating live CDs on Fedora based systems including
@@ -73,6 +73,7 @@ like live image or appliances.
%prep
%setup -q
+%patch0 -p1 -b .manually-load-libnss_sss.so.2
%build
make
@@ -106,6 +107,10 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/imgcreate/*.pyc
%changelog
+* Wed Aug 20 2014 Peter Jones <pjones at redhat.com> - 21.2-3
+- Work around rhbz#1127103 by manually loading the problematic library.
+ Related: rhbz#1127103
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:21.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
More information about the scm-commits
mailing list