commit:     81ae1b109602c0f028a49ac7e213236aac67ac46
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun May 16 12:35:59 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun May 16 14:43:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81ae1b10

sys-libs/pwdb: Disable static lib

Closes: https://bugs.gentoo.org/725972
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sys-libs/pwdb/files/pwdb-0.62-disable-static.patch | 19 +++++++++++++++++++
 sys-libs/pwdb/pwdb-0.62-r2.ebuild                  |  5 ++++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/sys-libs/pwdb/files/pwdb-0.62-disable-static.patch 
b/sys-libs/pwdb/files/pwdb-0.62-disable-static.patch
new file mode 100644
index 00000000000..a3395e16907
--- /dev/null
+++ b/sys-libs/pwdb/files/pwdb-0.62-disable-static.patch
@@ -0,0 +1,19 @@
+--- a/libpwdb/Makefile
++++ b/libpwdb/Makefile
+@@ -46,7 +46,7 @@
+ %.o : %.c $(HEADERS)
+       $(CC) $(CFLAGS) $(DYNAMIC) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+ 
+-all: $(LIBSTATIC) $(LIBDYNAME) 
++all: $(LIBDYNAME)
+ 
+ 
+ $(LIBDYNAME): $(LIBOBJ)
+@@ -70,7 +70,6 @@
+       $(INSTALL) -m 755 $(LIBFILENAME) $(LIBDIR)
+       ln -sf $(LIBFILENAME) $(LIBDIR)/$(LIBSONAME)
+       ln -sf $(LIBFILENAME) $(LIBDIR)/$(LIBDYNAME)
+-      $(INSTALL) -m 644 $(LIBSTATIC) $(LIBDIR)
+ 
+ clean:
+       @rm -f *.so *.a core a.out `find . -name "*.o" -print` `find . -name 
"*~" -print`

diff --git a/sys-libs/pwdb/pwdb-0.62-r2.ebuild 
b/sys-libs/pwdb/pwdb-0.62-r2.ebuild
index 6701f44fdb0..d44cdd852dd 100644
--- a/sys-libs/pwdb/pwdb-0.62-r2.ebuild
+++ b/sys-libs/pwdb/pwdb-0.62-r2.ebuild
@@ -26,7 +26,10 @@ BDEPEND="virtual/pkgconfig"
 DOCS=( CHANGES CREDITS README doc/pwdb.txt )
 HTML_DOCS=( doc/html/. )
 
-PATCHES=( "${FILESDIR}"/${P}-build.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-build.patch
+       "${FILESDIR}"/${P}-disable-static.patch # bug 725972
+)
 
 src_prepare() {
        default

Reply via email to