Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:SebastianHilbert:Chandler
libdb-4_6
libdb-4_6.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libdb-4_6.spec of Package libdb-4_6
# # spec file for package libdb-4_5 (Version 4.5.20) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild # usedforbuild aaa_base acl attr audit-libs autoconf automake bash binutils bzip2 coreutils cpio cpp cpp42 cracklib cvs diffutils file filesystem fillup findutils gawk gcc gcc42 gdbm gettext gettext-devel glibc glibc-devel glibc-locale grep groff gzip info insserv less libacl libattr libbz2-1 libbz2-devel libgcc42 libgomp42 libltdl-3 libmudflap42 libreadline5 libstdc++42 libtool libuuid1 libvolume_id libxcrypt libzio linux-kernel-headers m4 make man mktemp ncurses net-tools netcfg pam pam-modules patch perl perl-base permissions popt rpm sed sysvinit tar texinfo timezone util-linux zlib Name: libdb-4_6 %define generic_name db %define docdir %{_defaultdocdir}/%{name} %define source_dir %{_datadir}/%{name}-source Version: 4.6.21 Release: 29 %define major 4 %define minor 6 Summary: Berkeley DB Database Library Version 4.6 Source: db-%{version}.tar.bz2 Url: http://www.sleepycat.com Patch0: patches-%{version} Patch1: patch-11547.txt #Patch2: db-%{version}.dif License: BSD 3-Clause Group: System/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: %{_prefix} Provides: db = %{version} %description The Berkeley DB Database is a programmatic toolkit that provides database support for applications. This package contains the necessary runtime libraries. %debug_package %package -n db-utils-doc Summary: Documentation for the Command Line tools for Managing Berkeley DB Databases Group: Productivity/Databases/Tools Prefix: %{_prefix} Requires: db = %{version} %description -n db-utils-doc The Berkeley DB Database is a programmatic toolkit that provides database support for applications. This package contains the documentation for the command line tools for managing Berkeley DB databases. %package -n db-utils Summary: Command Line tools for Managing Berkeley DB Databases Group: Productivity/Databases/Tools Prefix: %{_prefix} Requires: db = %{version} %description -n db-utils The Berkeley DB Database is a programmatic toolkit that provides database support for applications. This package contains the command line tools for managing Berkeley DB databases. %package -n db-doc Summary: Documentation for Berkeley DB Group: Development/Libraries/C and C++ Prefix: %{_prefix} %description -n db-doc The Berkeley DB Database is a programmatic toolkit that provides database support for applications. This package contains the documentation. %package devel Summary: Development Include Files and Libraries for the old Berkeley DB library Version 4.5 Group: Development/Libraries/C and C++ Prefix: %{_prefix} Requires: db = %{version} glibc-devel Provides: db-devel = %{version} %description devel The Berkeley DB Database is a programmatic toolkit that provides database support for applications. This package contains the header files and libraries. %prep %setup -q -n %{generic_name}-%{version} %patch %patch1 #%patch2 cd .. tar -jcf %{generic_name}-%{version}.tar.bz2 %{generic_name}-%{version} %build cd dist ./s_config CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CC=gcc export CFLAGS CXXFLAGS CC # # Build now the NPTL version # mkdir ../build_nptl cd ../build_nptl ../dist/configure --prefix=%{_prefix} \ --libdir=%{_libdir} --enable-compat185 --disable-dump185 \ --enable-shared --enable-static --enable-rpc --disable-cxx \ --with-mutex="POSIX/pthreads/library" \ %{_target_cpu}-suse-linux # 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 # Remove libtool predep_objects and postdep_objects wonkiness perl -pi -e 's/^predep_objects=".*$/predep_objects=""/' libtool perl -pi -e 's/^postdep_objects=".*$/postdep_objects=""/' libtool perl -pi -e 's/-shared -nostdlib/-shared/' libtool make LIBSO_LIBS='$(LIBS)' LIBXSO_LIBS='$(LIBS)'" -L%{_libdir} -lstdc++" %install mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/db4 #mkdir -p ${RPM_BUILD_ROOT}% {source_dir}/ # #cp % {_builddir}/% {generic_name}-% {version}.tar.bz2 ${RPM_BUILD_ROOT}% {source_dir}/ #mkdir -p $RPM_BUILD_ROOT/% {_defaultdocdir}/% {name}-source #cat >>$RPM_BUILD_ROOT/% {_defaultdocdir}/% {name}-source/README<<EOF #The patches in this directory were applied to the sources. #The sources were installed to: #% {source_dir}/% {generic_name}-% {version}.tar.bz2 #EOF CONFIG_ARGS=$(find . -name "config.log" -exec grep "\$ \.\./dist\/configure" {} \; | sed 's/.*configure\( --.*\)/\1/g') if [ -z "$CONFIG_ARGS" ] then echo "could not find configure arguments ... exiting" exit 42 fi #echo $CONFIG_ARGS >> $RPM_BUILD_ROOT/% {_defaultdocdir}/% {name}-source/configure_args.txt #cp % {_sourcedir}/*patch* $RPM_BUILD_ROOT/% {_defaultdocdir}/% {name}-source || true #cp % {_sourcedir}/*.dif* $RPM_BUILD_ROOT/% {_defaultdocdir}/% {name}-source || true # mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/%{_lib} cd build_nptl make prefix=${RPM_BUILD_ROOT}%{_prefix} libdir=${RPM_BUILD_ROOT}%{_libdir} strip=true install cd .. # make ldd happy: chmod 755 $RPM_BUILD_ROOT%{_libdir}/libdb*.so # Fix header file installation mv ${RPM_BUILD_ROOT}%{_includedir}/*.h ${RPM_BUILD_ROOT}%{_includedir}/db4 echo "#include <db4/db.h>" > ${RPM_BUILD_ROOT}%{_includedir}/db.h echo "#include <db4/db_185.h>" > ${RPM_BUILD_ROOT}%{_includedir}/db_185.h rm -f ${RPM_BUILD_ROOT}%{_includedir}/db4/db_cxx.h # remove dangling tags symlink from examples. rm -f examples_cxx/tags rm -f examples_c/tags # Move documentation to the right directory mkdir -p $RPM_BUILD_ROOT%{docdir} mv $RPM_BUILD_ROOT%{_prefix}/docs/* $RPM_BUILD_ROOT/%{docdir} cp -a examples_cxx examples_c $RPM_BUILD_ROOT/%{docdir} cp -a LICENSE README $RPM_BUILD_ROOT/%{docdir} # # Remove api documentation for Java and TCL rm -rf $RPM_BUILD_ROOT/%{docdir}/java rm -rf $RPM_BUILD_ROOT/%{docdir}/api_java rm -rf $RPM_BUILD_ROOT/%{docdir}/api_tcl mv $RPM_BUILD_ROOT/%{docdir}/collections/tutorial $RPM_BUILD_ROOT/%{docdir}/ # Remove crappy *.la files rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la rm -rf $RPM_BUILD_ROOT%{_libdir}/tls/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %{_libdir}/libdb-%{major}.%{minor}.so %files -n db-doc %defattr(-,root,root) %dir %{docdir} %doc %{docdir}/LICENSE %doc %{docdir}/README %doc %{docdir}/index.html %doc %{docdir}/articles %doc %{docdir}/license %doc %{docdir}/images %doc %{docdir}/api_c %doc %{docdir}/api_cxx %doc %{docdir}/gsg* %doc %{docdir}/ref %doc %{docdir}/examples_c %doc %{docdir}/examples_cxx %doc %{docdir}/tutorial %files -n db-utils-doc %defattr(-,root,root) %doc %{docdir}/utility %files -n db-utils %defattr(-,root,root) %{_bindir}/berkeley_db_svc %{_bindir}/db_archive %{_bindir}/db_checkpoint %{_bindir}/db_deadlock %{_bindir}/db_dump %{_bindir}/db_load %{_bindir}/db_printlog %{_bindir}/db_recover %{_bindir}/db_stat %{_bindir}/db_upgrade %{_bindir}/db_verify %{_bindir}/db_hotbackup %{_bindir}/db_codegen %files devel %defattr(-,root,root) %dir %{_includedir}/db4 %{_includedir}/db.h %{_includedir}/db_185.h %{_includedir}/db4/db.h %{_includedir}/db4/db_185.h %{_libdir}/libdb.so %{_libdir}/libdb.a %{_libdir}/libdb-%{major}.%{minor}.a %{_libdir}/libdb-%{major}.so #% files source #% defattr(-,root,root) #% {_defaultdocdir}/% {name}-source #% {source_dir} # %changelog * Tue May 15 2007 - kesselborn@suse.de - copied spec file from db44 - changed package structure to: db-doc db-utils db-utils-doc libdb-4_5 libdb-4_5 - update to version 4.5: Database or Log File On-Disk Format Changes: None New Features: 1. A new event style notification. 2. Multi-Version Concurrency Control for the Btree/Recno access methods. 3. A new replication framework with a default TCP/IP setup. 4. A new port to the BREW platform (a cell phone OS), not fully supported but ready for testing. 5. Several enhancements to the Java Collections API including the implementation of the size() method. 6. Online replication upgrades for high availability replicated 24/7 systems. Database Environment Changes: 1. Update the DB_ENV->failchk method to garbage collect per-process mutexes stranded after unexpected process failure. [#13964] 2. Fix a bug that could cause memory used to track threads for DB_ENV->failchk to not be reused when a thread no longer exists. [#14425] 3. Add set_event_notify behavior as part of new event notification in Berkeley DB. [#14534] 4. Fix a bug so that we no longer panic on DB_ENV->close() if a previous environment close failed to log. This condition will now return an error. [#14693] Concurrent Data Store Changes: 1. Fix a bug where renaming a subdatabase in a Concurrent Data Store environment could fail. [#14185] General Access Method Changes: 1. Fix a bug that could leave extra unallocated pages at the end of a database file. [#14031] 2. Optimize secondary updates when overwriting primary records. [#14075] 3. Fix a bug to prevent a trap when creating a named in-memory database and there are already temporary files open. [#14133] 4. Fix a bug which caused a trap if the key parameter to DBC->c_get was omitted with DB_CURRENT. [#14143] 5. Fix a bug with secondary cursors when the secondary has off-page duplicates. This bug resulted in incorrect primary data being returned. [#14240] 6. Fix a bug that would not properly upgrade database files from releases 3.2.9 (and earlier) to releases 4.0 (and greater). [#14461] 7. Fix a bug that could cause a DB_READ_UNCOMMITTED get through a secondary index to return DB_SECONDARY_CORRUPT. [#14487] 8. Fix a bug so that non-transactional cursor updates of a transactional database will generate an error. [#14519] 9. Add a message when the system panics due to a page in the wrong state at its time of allocation. [#14527] Btree Access Method Changes: 1. Fix a bug that could cause a diagnostic assertion by setting the deleted bit on a record in an internal node. [#13944] 2. Fix 3 problems in BTREE compaction: [#14238] 1. When deleting a page don't check the next key in the parent if we are going to delete the parent too. 2. Need to check that the tree has not collapsed between dropping a read lock and getting the write lock. If it has collapsed we will fetch the root of the tree. 3. Fix a case where we fail to lock the next page before reading it. 3. Fix a bug that could cause the compaction of a Btree with sorted duplicates to fail when attempting to compact an off page duplicate tree if a key could not fit in an internal node. [#14771] 4. Fix a bug that causes a loop if an empty Btree was compacted. [#14493] Hash Access Method Changes: 1. Fix a bug that could cause corruption in queue extent files if multiple processes tried to open the same extent at the same time. [#14438] Queue Access Method Changes: 1. Fix a bug that caused locks not maintained where queue records were read but not present in the queue at the end of a transaction, therefore violating serializability. [#13719] Recno Access Method Changes: None C++-specific API Changes: 1. C++ applications that check could the error code in exceptions should note that DbMemoryException has been changed to have the error code DB_BUFFER_SMALL rather than ENOMEM, to match the error returned by the C API. DbMemoryException will be thrown when a Dbt is too small to contain data returned by Berkeley DB. When a call to malloc fails, or some other resource is exhausted, a plain DbException will be thrown with error code set to ENOMEM. [#13939] Java-specific API Changes: 1. Database.verify may now be called. This method is now static and takes a DatabaseConfig parameter. [#13971] 2. Add DB_ENV->{fileid_reset, lsn_reset} to the public API. [#14076] Java collections and bind API Changes: 1. The com.sleepycat.collections package is now fully compatible with the Java Collections framework. [#14732] Tcl-specific API Changes: None RPC-specific Client/Server Changes: None Replication Changes: 1. Fix a bug so that internal init will remove client databases at the start of internal init. [#14147] 2. Fix a bug in replication internal init so that using data_dir will be handled correctly. Make internal init resilient to multiple data_dir calls with the same directory. [#14489] 3. Fix a bug in the 4.2 sync-up algorithm that could result in no open files. [#14552] 4. Fix a bug where a PERM bulk buffer could have a zero LSN passed to the application callback. [#14675] 5. Change names of some existing replication API methods as described in "Replication Method Naming" page of the "Upgrading Berkeley DB Applications to Release 4.5" section of Berkeley DB Reference Guide. [#14723] 6. Fix a bug which could cause an election to succeed only after waiting for the timeout to expire, even when all sites responded in a timely manner. The bug was most easily visible in an election between 2 sites. [#14752] XA Resource Manager Changes: None Locking Subsystem Changes: 1. Fix a bug that could cause a writer to hang if readuncommitted is enabled and it tries to reacquire a write lock. [#14919] Logging Subsystem Changes: 1. Fix a bug so that log headers are now included in the check sum. This avoids a possible race in doing hot backups. [#11636]. 2. Fix a bug where recovery fails if there is no disk space for the forced checkpoint that occurs at the end of processing the log. [#13986] 3. Fix a bug which could cause a page to be missing from the end of a database file if the page at the end of the file was freed while it contained data and the system was restarted prior to the log record for that free was flushed to disk. [#14090] 4. Fix a bug that could cause log files to be incorrectly removed by log_archive if it was run immediately after recovery. [#14874] Memory Pool Subsystem Changes: 1. Fix a bug that could cause corruption to the buffer pool cache if a race condition was hit while using DB->Compact. [#14360] 2. Fix a bug where cache pages could be leaked in applications creating temporary files for which the DB_MPOOL_NOFILE flag was set. [#14544] Transaction Subsystem Changes: 1. Fix a bug that could cause extra empty pages to appear in a database file after recovery. [#11118] 2. Fix a bug triggered when running recovery with a feedback function that could cause a NULL pointer dereference. [#13834] 3. Fix a bug where running recovery could create duplicate entries in the data directory list. [#13884] 4. Fix a bug to not trade locks if a write lock is already owned. [#13917] 5. Fix a bug that could cause traps or hangs if the DB_TXN->set_name function is used in a multithreaded application. [#14033] 6. Fix a bug so that a transaction can no longer be committed after it had deadlocked. [#14037] 7. Fix a bug that could cause a trap during recovery if multiple operations that could remove the same extent are recovered. [#14061] 8. Fix a bug that could cause an extent file to be deleted after the last record in the extent was consumed but the consuming transaction was aborted. [#14179] 9. Fix a bug where the parent database would not use DB_READ_UNCOMMITTED in certain cases when calling DBC->c_pget. [#14361] 10. Fix a bug so that it is no longer possible to do a non-transactional cursor update on a database that is opened transactionally. [#14519] 11. Fix a bug that causes a sequence to ignore the DB_AUTO_COMMIT settings. [#14582] 12. Fix a bug, change txn_recover so that multiple processes will recover prepared transactions without requiring that the first process stay active. [#14707] Utility Changes: 1. Fix a bug that caused db_verify to not check the order on leaf pages which were the leftmost children of an internal node. [#13004] 2. Fix a bug that caused db_hotbackup to not backup queue extent files. [#13848] 3. Fix a bug so that db_verify no longer reports that an unused hash page is not fully zeroed. [#14030] 4. Fix a bug where db_stat ignored the -f option to return "fast statistics". [#14283] 5. Fix a bug that prevented the db_stat utility from opening database files with write permission so that meta data statistics would be updated. [#14755] Configuration, Documentation, Portability and Build Changes: 1. The Berkeley DB 4.3 and 4.4 releases disallowed using the --with-uniquename configuration option with the C++, Java, or RPC --enable-XXX options. The 4.5 release returns to the 4.2 release behavior, allowing those combinations of configuration options. [#14067] 2. Fix build issues when CONFIG_TEST is not enabled for Tcl. [#14507] 3. There are updated build instructions for Berkeley DB PHP module on Linux. [#14249] 4. Use libtool's "standard" environment variable names so that you can set "AR" to "ar -X64" for example, and modify both libtool and the Makefile commands. Remove the install-strip target from the Makefile, it is no longer used. [#14726]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor