Accepting request 1226580 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1226580 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdb-4_8?expand=0&rev=39
This commit is contained in:
commit
4bfced5209
@ -1,7 +1,7 @@
|
|||||||
Index: dist/configure.ac
|
Index: db-4.8.30/dist/configure.ac
|
||||||
===================================================================
|
===================================================================
|
||||||
--- dist/configure.ac.orig
|
--- db-4.8.30.orig/dist/configure.ac
|
||||||
+++ dist/configure.ac
|
+++ db-4.8.30/dist/configure.ac
|
||||||
@@ -852,20 +852,20 @@ LTLIBOBJS=`echo "$LIB@&t@OBJS" |
|
@@ -852,20 +852,20 @@ LTLIBOBJS=`echo "$LIB@&t@OBJS" |
|
||||||
AC_SUBST(LTLIBOBJS)
|
AC_SUBST(LTLIBOBJS)
|
||||||
|
|
||||||
|
15
libdb-4_8-sequence.patch
Normal file
15
libdb-4_8-sequence.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Index: db-4.8.30/dist/aclocal/sequence.m4
|
||||||
|
===================================================================
|
||||||
|
--- db-4.8.30.orig/dist/aclocal/sequence.m4
|
||||||
|
+++ db-4.8.30/dist/aclocal/sequence.m4
|
||||||
|
@@ -43,7 +43,9 @@ AC_DEFUN(AM_SEQUENCE_CONFIGURE, [
|
||||||
|
# test, which won't test for the appropriate printf format strings.
|
||||||
|
if test "$db_cv_build_sequence" = "yes"; then
|
||||||
|
AC_TRY_RUN([
|
||||||
|
- main() {
|
||||||
|
+ #include <stdio.h>
|
||||||
|
+ #include <string.h>
|
||||||
|
+ int main() {
|
||||||
|
$db_cv_seq_type l;
|
||||||
|
unsigned $db_cv_seq_type u;
|
||||||
|
char buf@<:@100@:>@;
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 26 14:15:24 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Add libdb-4_8-sequence.patch: Fix code to detect/enable 64-bit
|
||||||
|
integral type support for sequences. The m4 macros were not
|
||||||
|
complying with GCC 14's strictness.
|
||||||
|
- Rebase db-4.8.30.patch and libdb-fix-atomic.patch to also apply
|
||||||
|
using -p1 and use the autosetup macro.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 7 09:15:21 UTC 2024 - Pedro Monreal <pmonreal@suse.com>
|
Wed Aug 7 09:15:21 UTC 2024 - Pedro Monreal <pmonreal@suse.com>
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ Patch1: libdb-fix-atomic.patch
|
|||||||
Patch2: 0001-OPD-deadlock-RH-BZ-1349779.patch
|
Patch2: 0001-OPD-deadlock-RH-BZ-1349779.patch
|
||||||
# PATCH-FIX-UPSTREAM bsc#1174414 CVE-2019-2708 libdb: data store execution leads to partial DoS
|
# PATCH-FIX-UPSTREAM bsc#1174414 CVE-2019-2708 libdb: data store execution leads to partial DoS
|
||||||
Patch3: libdb-4_8-CVE-2019-2708.patch
|
Patch3: libdb-4_8-CVE-2019-2708.patch
|
||||||
|
Patch4: libdb-4_8-sequence.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -93,11 +94,7 @@ database support for applications.
|
|||||||
This package contains the header files and libraries.
|
This package contains the header files and libraries.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{generic_name}-%{version}
|
%autosetup -p1 -n %{generic_name}-%{version}
|
||||||
%patch -P 0
|
|
||||||
%patch -P 1
|
|
||||||
%patch -P 2 -p1
|
|
||||||
%patch -P 3 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd dist
|
cd dist
|
||||||
@ -126,6 +123,7 @@ cd ../build_nptl
|
|||||||
%else
|
%else
|
||||||
%{_target_cpu}-suse-linux
|
%{_target_cpu}-suse-linux
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Make sure O_DIRECT is really disabled (build host could have old kernel)
|
# Make sure O_DIRECT is really disabled (build host could have old kernel)
|
||||||
perl -pi -e 's/#define HAVE_O_DIRECT 1/#undef HAVE_O_DIRECT/' db_config.h
|
perl -pi -e 's/#define HAVE_O_DIRECT 1/#undef HAVE_O_DIRECT/' db_config.h
|
||||||
# Remove libtool predep_objects and postdep_objects wonkiness
|
# Remove libtool predep_objects and postdep_objects wonkiness
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
Fix use of reserved identifier __atomic_compare_exchange by renaming
|
Fix use of reserved identifier __atomic_compare_exchange by renaming
|
||||||
|
|
||||||
--- dbinc/atomic.h.orig 2018-03-13 09:44:13.197929296 +0100
|
Index: db-4.8.30/dbinc/atomic.h
|
||||||
+++ dbinc/atomic.h 2018-03-13 09:45:09.582831244 +0100
|
===================================================================
|
||||||
@@ -144,7 +144,7 @@
|
--- db-4.8.30.orig/dbinc/atomic.h
|
||||||
|
+++ db-4.8.30/dbinc/atomic.h
|
||||||
|
@@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
|
||||||
#define atomic_inc(env, p) __atomic_inc(p)
|
#define atomic_inc(env, p) __atomic_inc(p)
|
||||||
#define atomic_dec(env, p) __atomic_dec(p)
|
#define atomic_dec(env, p) __atomic_dec(p)
|
||||||
#define atomic_compare_exchange(env, p, o, n) \
|
#define atomic_compare_exchange(env, p, o, n) \
|
||||||
@ -11,7 +13,7 @@ Fix use of reserved identifier __atomic_compare_exchange by renaming
|
|||||||
static inline int __atomic_inc(db_atomic_t *p)
|
static inline int __atomic_inc(db_atomic_t *p)
|
||||||
{
|
{
|
||||||
int temp;
|
int temp;
|
||||||
@@ -176,7 +176,7 @@
|
@@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic
|
||||||
* http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
|
* http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
|
||||||
* which configure could be changed to use.
|
* which configure could be changed to use.
|
||||||
*/
|
*/
|
||||||
|
@ -36,6 +36,7 @@ Patch2: libdb-fix-atomic.patch
|
|||||||
Patch3: reproducible.patch
|
Patch3: reproducible.patch
|
||||||
# PATCH-FIX-UPSTREAM bsc#1174414 CVE-2019-2708 libdb: data store execution leads to partial DoS
|
# PATCH-FIX-UPSTREAM bsc#1174414 CVE-2019-2708 libdb: data store execution leads to partial DoS
|
||||||
Patch4: libdb-4_8-CVE-2019-2708.patch
|
Patch4: libdb-4_8-CVE-2019-2708.patch
|
||||||
|
Patch5: libdb-4_8-sequence.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: java-sdk >= 1.8
|
BuildRequires: java-sdk >= 1.8
|
||||||
@ -64,14 +65,15 @@ These are the development files.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{generic_name}-%{version}
|
%setup -q -n %{generic_name}-%{version}
|
||||||
%patch -P 0
|
%patch -P 0 -p1
|
||||||
%patch -P 1 -p1
|
%patch -P 1 -p1
|
||||||
%patch -P 2
|
%patch -P 2 -p1
|
||||||
# the Leap build happens with an old jar version that does not know the --date option, so we need to test for that
|
# the Leap build happens with an old jar version that does not know the --date option, so we need to test for that
|
||||||
if jar --help|grep -q -- --date=TIMESTAMP ; then
|
if jar --help|grep -q -- --date=TIMESTAMP ; then
|
||||||
%patch -P 3 -p1
|
%patch -P 3 -p1
|
||||||
fi
|
fi
|
||||||
%patch -P 4 -p1
|
%patch -P 4 -p1
|
||||||
|
%patch -P 5 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd dist
|
cd dist
|
||||||
|
Loading…
Reference in New Issue
Block a user