]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- add nptl bcond for internal db
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 3 Sep 2008 15:39:10 +0000 (15:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- discard db-robustness patch (not used in db 4.5 either)

Changed files:
    rpm.spec -> 1.837.2.42.2.49.2.19

rpm.spec

index ccfc3492cb4939ac5c68a9083f6f3dfa000ce7fd..9aafd9a6771eb85111e2e1eb241f48a59f8e75d5 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
 %if "%{pld_release}" == "ac"
 %bcond_without autoreqdep      # autogenerate package name deps in addition to sonames/perl(X)
 %bcond_without internal_db             # internal db (db 4.5.20)
+%bcond_with            nptl                    # internal db: don't use process-shared POSIX mutexes (NPTL provides full interface)
 %else
 %bcond_with            autoreqdep      # autogenerate package name deps in addition to sonames/perl(X)
 %bcond_with            internal_db             # internal db (db 4.5.20)
+%bcond_without nptl                    # internal db: don't use process-shared POSIX mutexes (NPTL provides full interface)
 %endif
 %bcond_without python          # don't build python bindings
 %bcond_without selinux         # build without selinux support
@@ -143,7 +145,7 @@ Patch74:    %{name}-noversiondir.patch
 Patch75:       %{name}-rpmte-segv.patch
 Patch76:       %{name}-pydebuginfo.patch
 Patch77:       %{name}-dirdeps-macro.patch
-Patch78:       db-%{name}-robustness.patch
+Patch78:       %{name}-db3-configure.patch
 URL:           http://rpm5.org/
 BuildRequires: autoconf >= 2.57
 BuildRequires: automake >= 1.4
@@ -749,10 +751,14 @@ rm -rf sqlite zlib popt rpmdb/db.h
 %if %{with internal_db}
 cd db
 %patchset_patch 1 %{reqdb_patch}
-%if "%{reqdb_ver}" == "4.5.20"
-%patch78 -p1
+%if %{without nptl}
+sed -i -e 's,AM_PTHREADS_SHARED("POSIX/.*,:,' dist/aclocal/mutex.ac
 %endif
+cp -f /usr/share/aclocal/libtool.m4 dist/aclocal/libtool.ac
+cp -f /usr/share/automake/config.sub dist
+cp -f /usr/share/libtool/ltmain.sh dist
 cd -
+%patch78 -p1
 %else
 %patch15 -p1
 rm -rf db3 db
@@ -810,6 +816,7 @@ sed -i -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' -e 's|@host_cpu
        %{?with_python:--with-python=%{py_ver}} \
        %{!?with_python:--without-python} \
        %{!?with_selinux:--without-selinux} \
+       --%{?with_nptl:en}%{!?with_nptl:dis}able-posixmutexes \
        --without-db
 
 %{__make} \
This page took 0.051797 seconds and 4 git commands to generate.