Hello community, here is the log from the commit of package firebird.1411 for openSUSE:12.1:Update checked in at 2013-03-20 10:46:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.1:Update/firebird.1411 (Old) and /work/SRC/openSUSE:12.1:Update/.firebird.1411.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "firebird.1411", Maintainer is "" Changes: -------- New Changes file: --- /dev/null 2013-02-26 18:15:11.936010755 +0100 +++ /work/SRC/openSUSE:12.1:Update/.firebird.1411.new/firebird.changes 2013-03-20 10:46:05.000000000 +0100 @@ -0,0 +1,165 @@ +------------------------------------------------------------------- +Fri Mar 8 10:40:13 UTC 2013 - [email protected] + +- firebird-CORE-4058.patch: + fix remote stack overflow (bnc#808268, CVE-2013-2492) + +------------------------------------------------------------------- +Wed Jul 6 08:19:45 UTC 2011 - [email protected] + +- Fix spelling of openSUSE. +- Use /usr/lib/tmpfiles.d instead of /etc/tmpfiles.d. + +------------------------------------------------------------------- +Mon May 30 18:08:48 UTC 2011 - [email protected] + +- Fix update-alternatives usage: -classic and -super need to be + registered as the same name to make it obvious that they are + alternatives. + +------------------------------------------------------------------- +Mon Feb 21 06:25:10 UTC 2011 - [email protected] + +- add baselibs.conf to build 32bit client packages on 64bit systems + +------------------------------------------------------------------- +Thu Nov 4 09:51:05 UTC 2010 - [email protected] + +- Add firebird.conf for tmpfs mounting via systemd. + +------------------------------------------------------------------- +Tue May 11 21:00:00 UTC 2010 - [email protected] + +- conditional %dir %{_sysconfdir}/tmpdirs.d + +------------------------------------------------------------------- +Thu May 6 06:22:39 UTC 2010 - [email protected] + +- add dir /etc/tmpdirs.d to the package + +------------------------------------------------------------------- +Wed May 5 13:56:31 UTC 2010 - [email protected] + +- stable upstream +- make changes need for mounting /var/run as tmpfs + +------------------------------------------------------------------- +Wed Aug 19 16:45:07 CEST 2009 - [email protected] + +- remove distro check +- cleaning superserver and classic pre and post + +------------------------------------------------------------------- +Tue Aug 18 01:28:50 CEST 2009 - [email protected] + +- rename /usr/bin/gstat to /usr/bin/gstat-fb to avoid conflict with ganglia-gmond +- change pre and post + + +------------------------------------------------------------------- +Mon Aug 10 19:16:21 CEST 2009 - [email protected] + +- set correct suid to bin-classic/fb_lock_mgr + +------------------------------------------------------------------- +Thu Jul 23 20:44:31 CEST 2009 - [email protected] + +- new upstream version (2.1.3.18185.0) +- build it against system edit libs + +------------------------------------------------------------------- +Sun Jul 12 12:00:00 UTC 2009 - [email protected] + +- removing firebird-profile no need since user have /sbin/nologin as shell +- moving security database to %%{_localstatedir}/lib/%%{name}/system + +------------------------------------------------------------------- +Fri Jul 10 12:00:00 UTC 2009 - [email protected] + +- adding rcfirebird for firebird superserver (openSUSE only) + +------------------------------------------------------------------- +Tue Jul 07 12:00:00 UTC 2009 - [email protected] + +- not cleaning during %install +- not packaging quite empty log file +- generating library suffixes from major version +- cleaning broken symlinks +- automatically created user now have /bin/nologin as shell to make things a + little bit more secure + +------------------------------------------------------------------- +Mon Jun 29 12:00:00 UTC 2009 - [email protected] + +- Adapted to OpenSuse + +------------------------------------------------------------------- +Fri Jun 19 12:00:00 UTC 2009 - [email protected] + +- Update to 2.1.3 +- change xinetd script (rh #506528) +- add missing library (and header files) for build php4-interbase module (rh #506728) +- remove doc patch +- update README.fedora + +------------------------------------------------------------------- +Tue May 12 12:00:00 UTC 2009 - [email protected] + +- patch to fix gcc 4.4.0 and icu 4.2 build error + +------------------------------------------------------------------- +Tue May 12 12:00:00 UTC 2009 - [email protected] + +- patch to change lock files location and avoid %%{fbroot} owned by firebird user (rh #500219) +- add README.fedora +- add symlinks in /usr/bin +- change xinetd reload (rh #500219) + +------------------------------------------------------------------- +Sat May 02 12:00:00 UTC 2009 - [email protected] + +- add filesystem-subpackage +- remove common subpackage and use the main instead +- add logrotate config + +------------------------------------------------------------------- +Thu Apr 30 12:00:00 UTC 2009 - [email protected] + +- fix directories owning + +------------------------------------------------------------------- +Thu Apr 23 12:00:00 UTC 2009 - [email protected] + +- major cleaning install process to take care of the two architectures (Classic and Superserver) the right way + +------------------------------------------------------------------- +Wed Apr 22 12:00:00 UTC 2009 - [email protected] + +- fix group creation + +------------------------------------------------------------------- +Sun Apr 19 12:00:00 UTC 2009 - [email protected] + +- fix autogen issue for f11 +- patch init script +- fix ppc64 lib destination issue + +------------------------------------------------------------------- +Sun Apr 19 12:00:00 UTC 2009 - [email protected] + +- backport doc patch +- update to 2.1.2.18118 +- cleanup macros +- specifie libdir +- change firebird user login + +------------------------------------------------------------------- +Sat Mar 28 12:00:00 UTC 2009 - [email protected] + +- Major packaging restructuring (version 2.1.1.17910.0) + +------------------------------------------------------------------- +Thu Sep 13 12:00:00 UTC 2007 - [email protected]> + +- Initial build for Fedora (version 2.0.1.12855.0) +- cleanup Mandriva spec New: ---- 01_firebird Firebird-2.1.3.18185-0.tar.bz2 Firebird-edit_fix.diff README.openSUSE baselibs.conf firebird-CORE-4058.patch firebird-gcc-icu.patch firebird-gcc-warnings-fixes.patch firebird-logrotate firebird-mcpu-to-mtune.patch firebird.changes firebird.conf firebird.spec firebird_lock-file-location.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ firebird.spec ++++++ # # spec file for package firebird # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %global pkgname Firebird-2.1.3.18185-0 %global fbroot %{_libdir}/%{name} %global major 2.1.3 %define libfbclient libfbclient2 %define libfbembed libfbembed2 Summary: SQL relational database management system License: Interbase Group: Productivity/Databases/Servers Name: firebird Version: 2.1.3.18185.0 Release: 0 Url: http://www.firebirdsql.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: http://downloads.sourceforge.net/firebird/%{pkgname}.tar.bz2 Source3: firebird-logrotate Source4: README.openSUSE Source5: 01_firebird Source6: firebird.conf Patch0: firebird-mcpu-to-mtune.patch Patch1: Firebird-edit_fix.diff Patch2: firebird-gcc-warnings-fixes.patch Patch3: firebird_lock-file-location.patch Patch4: firebird-gcc-icu.patch Patch5: firebird-CORE-4058.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison BuildRequires: gcc-c++ BuildRequires: libicu-devel BuildRequires: libtool BuildRequires: ncurses-devel BuildRequires: xinetd Provides: %{name}-server-common Obsoletes: %{name}-server-common < %{version} Requires: %{name}-arch = %{version} Requires: grep Requires: sed PreReq: pwdutils PreReq: update-alternatives Requires: %libfbclient Requires: logrotate Requires: netcfg %description This package contains common files between firebird-classic and firebird-superserver. You will need this if you want to use either one. %package doc Summary: Documentation for Firebird SQL RDBMS Group: Applications/Databases %description doc This are the Firebird SQL Database shared doc and examples files. %package filesystem Summary: Filesystem for Firebird SQL RDBMS Group: Applications/Databases %description filesystem This is the Firebird SQL Database root file system. %package devel Summary: Development Libraries for Firebird Group: Development/Databases Requires: %libfbclient = %{version} Requires: %libfbembed = %{version} %description devel Development libraries for Firebird SQL RDBMS. %package classic Summary: Classic (xinetd) server for Firebird SQL RDBMS Group: Applications/Databases Provides: %{name}-arch = %{version}-%{release} Requires: %{name} = %{version} Requires: xinetd Conflicts: %{name}-superserver Requires: %libfbembed = %{version} Provides: %{name}-utils-classic Obsoletes: %{name}-utils-classic < %{version} Provides: %{name}-server-classic Obsoletes: %{name}-server-classic < %{version} PreReq: permissions PreReq: update-alternatives %description classic This is the classic (xinetd) server Firebird SQL RDBMS. It can also be used as an embedded server, when paired with the client-embedded package. %package superserver Summary: Superserver server for Firebird SQL RDBMS Group: Applications/Databases Provides: %{name}-arch = %{version}-%{release} Requires: %{name} = %{version} Conflicts: %{name}-classic Provides: %{name}-utils-superserver Obsoletes: %{name}-utils-superserver < %{version} Provides: %{name}-server-superserver Obsoletes: %{name}-server-superserver < %{version} PreReq: update-alternatives %description superserver This is the Superserver (single process) Firebird SQL RDBMS. %package -n libfbclient2 Summary: Multi-threaded client libraries for Firebird SQL RDBMS Group: System Environment/Libraries Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Requires: %{name}-filesystem %description -n %libfbclient Multi-threaded, non-local client libraries for Firebird SQL RDBMS %package -n libfbembed2 Summary: Multi-process client libraries for Firebird SQL RDBMS Group: System Environment/Libraries Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Requires: %{name}-filesystem %description -n %libfbembed Multi-process, local client libraries for Firebird SQL RDBMS %prep %setup -q -n %{pkgname} # convert intl character to UTF-8 iconv -f ISO-8859-1 -t utf-8 -c ./doc/README.intl -o ./doc/README.intl # backport patch %patch1 -p1 %patch0 %patch2 %patch3 %patch4 %patch5 -p1 %build # <mrl> For reference, the proccess fb_lock_mgr that keeps executing after # building finish is started at gen/Makefile.codes, line 60 (target # build_codes) but I can't do nothing for it without major hacking. # classic NOCONFIGURE=1 ./autogen.sh %configure --prefix=%{fbroot} \ --with-system-icu \ --with-system-editline # Can't use make %{?_smp_mflags} as parallel build is broken make cd gen ./install/makeInstallImage.sh # here we patch a bug in the configure script mv ./buildroot/ buildroot-classic chmod 644 ./buildroot-classic%{fbroot}/help/help.fdb cd .. # superserver NOCONFIGURE=1 ./autogen.sh %configure --prefix=%{fbroot} \ --enable-superserver \ --with-system-icu \ --with-system-editline # Can't use make %{?_smp_mflags} as parallel build is broken make cd gen ./install/makeInstallImage.sh mv ./buildroot/ buildroot-superserver chmod 644 ./buildroot-superserver%{fbroot}/help/help.fdb %install # we wanted to setup both Classic and Superserver, we need to do all here cd %{buildroot} mkdir -p %{buildroot}%{_sysconfdir}/%{name} mkdir -p %{buildroot}%{_initrddir} mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d mkdir -p %{buildroot}%{_sysconfdir}/profile.d mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d mkdir -p %{buildroot}%{_sysconfdir}/tmpdirs.d mkdir -p %{buildroot}/usr/lib/tmpfiles.d cp %{SOURCE5} %{buildroot}%{_sysconfdir}/tmpdirs.d/01_firebird cp %{SOURCE6} %{buildroot}/usr/lib/tmpfiles.d/ mkdir -p %{buildroot}%{_var}/run/%{name} mkdir -p %{buildroot}%{_localstatedir}/lib/%{name} mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/data mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/system mkdir -p %{buildroot}%{_localstatedir}/log/%{name} mkdir -p %{buildroot}%{_includedir}/%{name} mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{fbroot} mkdir -p %{buildroot}%{fbroot}/help mkdir -p %{buildroot}%{fbroot}/intl mkdir -p %{buildroot}%{fbroot}/lib mkdir -p %{buildroot}%{fbroot}/include mkdir -p %{buildroot}%{fbroot}/bin-classic mkdir -p %{buildroot}%{fbroot}/UDF-classic mkdir -p %{buildroot}%{fbroot}/bin-superserver mkdir -p %{buildroot}%{fbroot}/UDF-superserver mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_sbindir} cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/examples/empbuild/employee.fdb %{buildroot}%{_localstatedir}/lib/%{name}/data/employee.fdb cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/help/help.fdb %{buildroot}%{fbroot}/help/help.fdb cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/*.msg %{buildroot}%{fbroot}/ cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/intl/fbintl %{buildroot}%{fbroot}/intl/fbintl cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/lib/libib_util.so %{buildroot}%{fbroot}/lib/ cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/lib/libfbclient.so.%{major} %{buildroot}%{fbroot}/lib/ cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/lib/libfbembed.so.%{major} %{buildroot}%{fbroot}/lib/ cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/bin/* %{buildroot}%{fbroot}/bin-classic/ cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/UDF/* %{buildroot}%{fbroot}/UDF-classic/ cp %{_builddir}/%{pkgname}/gen/buildroot-superserver%{fbroot}/bin/* %{buildroot}%{fbroot}/bin-superserver/ cp %{_builddir}/%{pkgname}/gen/buildroot-superserver%{fbroot}/UDF/* %{buildroot}%{fbroot}/UDF-superserver/ cd %{buildroot}%{fbroot}/bin-superserver/ ln -s fbmgr.bin fbmgr cd %{buildroot} major2=`echo %{major} | sed 's|\.[0-9]*$||'` major1=`echo ${major2} | sed 's|\.[0-9]*$||'` cd %{buildroot}%{fbroot}/lib/ ln -s %{fbroot}/lib/libfbembed.so.%{major} libfbembed.so.${major2} ln -s %{fbroot}/lib/libfbembed.so.${major2} libfbembed.so ln -s %{fbroot}/lib/libfbclient.so.%{major} libfbclient.so.${major1} ln -s %{fbroot}/lib/libfbclient.so.${major1} libfbclient.so cd %{buildroot} cd %{buildroot}%{_libdir} ln -s %{fbroot}/lib/libfbembed.so libfbembed.so ln -s %{fbroot}/lib/libfbembed.so.${major2} libfbembed.so.${major2} ln -s %{fbroot}/lib/libfbembed.so.%{major} libfbembed.so.%{major} ln -s %{fbroot}/lib/libfbclient.so libfbclient.so ln -s %{fbroot}/lib/libfbclient.so.${major1} libfbclient.so.${major1} ln -s %{fbroot}/lib/libfbclient.so.%{major} libfbclient.so.%{major} ln -s %{fbroot}/lib/libfbclient.so.%{major} libgds.so.0 ln -s %{fbroot}/lib/libfbclient.so libgds.so ln -s %{fbroot}/lib/libib_util.so libib_util.so cd %{buildroot} touch %{buildroot}%{_localstatedir}/log/%{name}/%{name}.log ln -sf %{_localstatedir}/log/%{name}/%{name}.log .%{fbroot}/%{name}.log sed "s@%{name}.log@%{_localstatedir}/log/%{name}/%{name}.log@g" %{SOURCE3} > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/include/* %{buildroot}%{_includedir}/%{name}/ cd %{buildroot}%{fbroot}/include/ ln -s %{_includedir}/%{name}/ibase.h ibase.h ln -s %{_includedir}/%{name}/iberror.h iberror.h ln -s %{_includedir}/%{name}/ib_util.h ib_util.h ln -s %{_includedir}/%{name}/perf.h perf.h cd %{buildroot}%{_includedir} ln -s %{_includedir}/%{name}/ibase.h ibase.h ln -s %{_includedir}/%{name}/iberror.h iberror.h ln -s %{_includedir}/%{name}/ib_util.h ib_util.h ln -s %{_includedir}/%{name}/perf.h perf.h cd %{buildroot} cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/aliases.conf .%{_sysconfdir}/%{name}/aliases.conf sed "s@%{fbroot}/examples/empbuild@%{_localstatedir}/lib/%{name}/data@" -i .%{_sysconfdir}/%{name}/aliases.conf cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/firebird.conf .%{_sysconfdir}/%{name}/firebird.conf cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/intl/fbintl.conf .%{_sysconfdir}/%{name}/fbintl.conf cp %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/security2.fdb .%{_localstatedir}/lib/%{name}/system/security2.fdb ln -s %{_sysconfdir}/%{name}/aliases.conf .%{fbroot}/aliases.conf ln -s %{_sysconfdir}/%{name}/firebird.conf .%{fbroot}/firebird.conf ln -s %{_localstatedir}/lib/%{name}/system/security2.fdb .%{fbroot}/security2.fdb ln -s %{_sysconfdir}/%{name}/fbintl.conf .%{fbroot}/intl/fbintl.conf sed "s@= root@= %{name}@" %{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/misc/%{name}.xinetd > %{buildroot}%{_sysconfdir}/xinetd.d/%{name} cp %{_builddir}/%{pkgname}/gen/buildroot-superserver%{fbroot}/misc/%{name}.init.d.suse %{buildroot}%{_initrddir}/%{name} ln -sf %{_initrddir}/%{name} %{buildroot}%{_sbindir}/rc%{name} sed "s@%%{fbroot}@%{fbroot}@g" %{SOURCE4} > %{_builddir}/%{pkgname}/doc/README.openSUSE ln -s %{_var}/run/%{name} .%{fbroot}/run # we need a dummy target for /etc/alternatives/ mkdir -p %{buildroot}/etc/alternatives touch %{buildroot}/etc/alternatives/%{name}-bin ln -s /etc/alternatives/%{name}-bin .%{fbroot}/bin touch %{buildroot}/etc/alternatives/%{name}-UDF ln -s /etc/alternatives/%{name}-UDF .%{fbroot}/UDF touch %{buildroot}/etc/alternatives/isql-fb ln -s /etc/alternatives/isql-fb .%{_bindir}/isql-fb touch %{buildroot}/etc/alternatives/gbak ln -s /etc/alternatives/gbak .%{_bindir}/gbak touch %{buildroot}/etc/alternatives/gfix ln -s /etc/alternatives/gfix .%{_bindir}/gfix touch %{buildroot}/etc/alternatives/gsec ln -s /etc/alternatives/gsec .%{_bindir}/gsec touch %{buildroot}/etc/alternatives/nbackup ln -s /etc/alternatives/nbackup .%{_bindir}/nbackup touch %{buildroot}/etc/alternatives/gstat-fb ln -s /etc/alternatives/gstat-fb .%{_bindir}/gstat-fb # ----------------------------------------------------------------------------- %clean rm -Rf %{buildroot} # ----------------------------------------------------------------------------- # lib scripts # ----------------------------------------------------------------------------- # While using -p flag, you can't leave comments until the next tag. %post -n %libfbclient -p /sbin/ldconfig %postun -n %libfbclient -p /sbin/ldconfig %post -n %libfbembed -p /sbin/ldconfig %postun -n %libfbembed -p /sbin/ldconfig %post classic update-alternatives --install \ %{fbroot}/bin %{name} %{fbroot}/bin-classic 10 \ --slave %{fbroot}/UDF %{name}-UDF %{fbroot}/UDF-classic \ --slave %{_bindir}/isql-fb isql-fb %{fbroot}/bin-classic/isql \ --slave %{_bindir}/gbak gbak %{fbroot}/bin-classic/gbak \ --slave %{_bindir}/gsec gsec %{fbroot}/bin-classic/gsec \ --slave %{_bindir}/gfix gfix %{fbroot}/bin-classic/gfix \ --slave %{_bindir}/nbackup nbackup %{fbroot}/bin-classic/nbackup \ --slave %{_bindir}/gstat-fb gstat-fb %{fbroot}/bin-classic/gstat %run_permissions %verifyscript %verify_permissions -e %{fbroot}/bin-classic/fb_lock_mgr %preun classic if [ "$1" = 0 ]; then update-alternatives --remove %{name} %{fbroot}/bin-classic if /sbin/service xinetd status >& /dev/null; then /etc/init.d/xinetd try-restart &>/dev/null || : fi fi %post superserver update-alternatives --install \ %{fbroot}/bin %{name} %{fbroot}/bin-superserver 10 \ --slave %{fbroot}/UDF %{name}-UDF %{fbroot}/UDF-superserver \ --slave %{_bindir}/isql-fb isql-fb %{fbroot}/bin-superserver/isql \ --slave %{_bindir}/gbak gbak %{fbroot}/bin-superserver/gbak \ --slave %{_bindir}/gsec gsec %{fbroot}/bin-superserver/gsec \ --slave %{_bindir}/gfix gfix %{fbroot}/bin-superserver/gfix \ --slave %{_bindir}/nbackup nbackup %{fbroot}/bin-superserver/nbackup \ --slave %{_bindir}/gstat-fb gstat-fb %{fbroot}/bin-superserver/gstat if [ $1 -eq 1 ]; then /sbin/chkconfig firebird off fi %preun superserver %stop_on_removal %{name} if [ "$1" = 0 ]; then update-alternatives --remove %{name} %{fbroot}/bin-superserver fi %postun superserver %insserv_cleanup %pre # Create the firebird group if it doesn't exist getent group %{name} >/dev/null || /usr/sbin/groupadd -r %{name} getent passwd %{name} >/dev/null || /usr/sbin/useradd -d / -g %{name} -s /sbin/nologin -r %{name} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(0644,root,root,0755) %doc doc/license/IDPL.txt %doc doc/license/README.license.usage.txt %doc doc/README.openSUSE %ghost /etc/alternatives/%{name}-bin %ghost /etc/alternatives/%{name}-UDF %ghost /etc/alternatives/isql-fb %ghost /etc/alternatives/gbak %ghost /etc/alternatives/gsec %ghost /etc/alternatives/gfix %ghost /etc/alternatives/nbackup %ghost /etc/alternatives/gstat-fb %defattr(0644,root,root,0755) %dir %attr(0755,root,root) %{_localstatedir}/lib/%{name} %dir %attr(0770,%{name},%{name}) %{_localstatedir}/lib/%{name}/data %attr(0660,%{name},%{name}) %{_localstatedir}/lib/%{name}/data/employee.fdb %dir %attr(0775,%{name},%{name}) %{_localstatedir}/log/%{name} %ghost %attr(0664,%{name},%{name}) %{_localstatedir}/log/%{name}/%{name}.log %{fbroot}/%{name}.log %dir %{fbroot}/intl %{fbroot}/UDF %{fbroot}/bin %dir %{_sysconfdir}/%{name} %dir %attr(0770,%{name},%{name}) %{_localstatedir}/lib/%{name}/system %config(noreplace) %attr (0600,%{name},%{name}) %{_localstatedir}/lib/%{name}/system/security2.fdb %{fbroot}/security2.fdb %config(noreplace) %attr (0664,%{name},%{name}) %{_sysconfdir}/%{name}/fbintl.conf %config(noreplace) %attr (0664,%{name},%{name}) %{_sysconfdir}/%{name}/aliases.conf %config(noreplace) %attr (0664,%{name},%{name}) %{_sysconfdir}/%{name}/firebird.conf %{fbroot}/aliases.conf %{fbroot}/firebird.conf %{fbroot}/intl/fbintl.conf %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name} %{fbroot}/*.msg %{fbroot}/help %{_libdir}/libib_util.so %{fbroot}/lib/libib_util.so %defattr(0644,root,root,0644) %defattr(0755,root,root,0750) %{fbroot}/intl/fbintl %defattr(0755,root,root,0755) %{_bindir}/isql-fb %{_bindir}/gbak %{_bindir}/gsec %{_bindir}/gfix %{_bindir}/nbackup %{_bindir}/gstat-fb %ghost %dir %attr(0775,%{name},%{name}) %{_var}/run/%{name} %defattr(0755,root,root,0755) %if 0%{?suse_version} > 1120 %{_sysconfdir}/tmpdirs.d/01_firebird %else %dir %{_sysconfdir}/tmpdirs.d %{_sysconfdir}/tmpdirs.d/01_firebird %endif %dir /usr/lib/tmpfiles.d /usr/lib/tmpfiles.d/firebird.conf %{fbroot}/run %files filesystem %defattr(0644,root,root,0755) %doc doc/README.openSUSE %defattr(0755,root,root,0755) %dir %{fbroot} %dir %{fbroot}/lib %files doc %defattr(0644,root,root,0755) %doc gen/buildroot-classic%{fbroot}/doc %doc gen/buildroot-classic%{fbroot}/examples %doc gen/buildroot-classic%{fbroot}/README %doc gen/buildroot-classic%{fbroot}/misc/intl.sql %doc gen/buildroot-classic%{fbroot}/misc/upgrade %files devel %defattr(0644,root,root,0755) %dir %{fbroot}/include %{fbroot}/include/* %{fbroot}/lib/*.so %{_includedir}/* %{_libdir}/*.so %files -n %libfbclient %defattr(0644,root,root,0755) %doc doc/license/IDPL.txt %doc doc/license/README.license.usage.txt %{_libdir}/libfbclient.so.* %{_libdir}/libgds.so.0 %{fbroot}/lib/libfbclient.so.* %files -n %libfbembed %defattr(0644,root,root,0755) %doc doc/license/IDPL.txt %doc doc/license/README.license.usage.txt %{_libdir}/libfbembed.so.* %{fbroot}/lib/libfbembed.so.* %files classic %defattr(0644,root,root,0755) %doc doc/license/IDPL.txt %doc doc/license/README.license.usage.txt %config(noreplace) %{_sysconfdir}/xinetd.d/%{name} %dir %{fbroot}/bin-classic %dir %{fbroot}/UDF-classic %defattr(0755,root,root,0755) %{fbroot}/bin-classic/c* %{fbroot}/bin-classic/g* %{fbroot}/bin-classic/i* %{fbroot}/bin-classic/n* %{fbroot}/bin-classic/q* %{fbroot}/bin-classic/r* %{fbroot}/bin-classic/fb_config %{fbroot}/bin-classic/fb_inet_server %{fbroot}/bin-classic/fb_lock_print %{fbroot}/bin-classic/fbsvcmgr %verify(not mode) %attr(0550,root,%{name}) %{fbroot}/bin-classic/fb_lock_mgr %{fbroot}/UDF-classic/*.so %defattr(0644,root,root,0755) %{fbroot}/UDF-classic/*.sql %files superserver %defattr(0644,root,root,0755) %doc doc/license/IDPL.txt %doc doc/license/README.license.usage.txt %defattr(0644,root,root,0755) %dir %{fbroot}/bin-superserver %dir %{fbroot}/UDF-superserver %defattr(0755,root,root,0755) %{_initrddir}/%{name} %{_sbindir}/rc%{name} %{fbroot}/bin-superserver/* %{fbroot}/UDF-superserver/*.so %defattr(0644,root,root,0755) %{fbroot}/UDF-superserver/*.sql %changelog ++++++ 01_firebird ++++++ test -d /var/run || mkdir -m 755 /var/run test -d /var/run/firebird || mkdir -m 1777 /var/run/firebird ++++++ Firebird-edit_fix.diff ++++++ diff -Naur Firebird-2.1.1.17910-0/builds/posix/make.defaults Firebird-2.1.1.17910-0.oden/builds/posix/make.defaults --- Firebird-2.1.1.17910-0/builds/posix/make.defaults 2008-05-27 05:26:39.000000000 -0400 +++ Firebird-2.1.1.17910-0.oden/builds/posix/make.defaults 2008-07-18 09:54:40.000000000 -0400 @@ -230,7 +230,7 @@ ifeq ($(EDITLINE_FLG),Y) ifeq ($(STD_EDITLINE), true) - LIBEDITLINE := -leditline + LIBEDITLINE := -ledit else LIBEDITLINE := $(LIB)/libeditline.a endif diff -Naur Firebird-2.1.1.17910-0/configure.in Firebird-2.1.1.17910-0.oden/configure.in --- Firebird-2.1.1.17910-0/configure.in 2008-05-27 05:26:28.000000000 -0400 +++ Firebird-2.1.1.17910-0.oden/configure.in 2008-07-18 09:54:25.000000000 -0400 @@ -399,7 +399,7 @@ # not need editline in default libs, but need to test for its presence saveLIBS=$LIBS if test "$STD_EDITLINE" = "true"; then - AC_CHECK_LIB(editline, readline, EDITLINE_FLG=Y, STD_EDITLINE=false) + AC_CHECK_LIB(edit, readline, EDITLINE_FLG=Y, STD_EDITLINE=false) fi LIBS=$saveLIBS ++++++ README.openSUSE ++++++ Differences between upstream and the openSUSE package ===================================================== * All files are installed according to the FHS. Relatively complete environment as provided by upstream may be found in %{fbroot} * Firebird utilities gbak,gsec,gfix,nbackup and gstat have a symlink in /usr/bin In /usr/bin you have also isql-fb symlinked to Firebird isql. We can't name it isql to avoid conflict with isql from UNIX-ODBC In /usr/bin you have also gstat-fb symlinked to Firebird gstat. We can't name it gstat to avoid conflict with gstat from Ganglia-gmond * According to openSUSE packaging rules, firebird service is not started automatically. You need to start it, as root : for SuperServer : service firebird start for Classic : chkconfig firebird on If you wanted to have firebird Superserver started at each boot, as root : chkconfig --level 345 firebird on * openSUSE packages do not use, nor contain the pre-supplied sources for libicu. Fedora packages are used instead. * POSSIBLE INCOMPATIBILITY In incides on text-based columns (CHAR/VARCHAR), Firebird uses ICU to get binary-comparable sequences (collations). These collations may be different in different ICU versions. In Firebird 2.1 upstream always uses the bundled ICU library. Firebird packages use the Firebird-packaged libicu*. Unfortunately, this may lead to incompatibilities in the binary index representation (on disk) between databases created by Fedora-packaged Firebird, and upstream. This can also lead to incompatibilities when the Firebird packages are re-built using different version of the system-wide ICU library One way to fix this is to backup and restore all databases created with ICU version different from the one currently installed on the system. Another is to re-generate all indices that contain a text-based columns. ++++++ baselibs.conf ++++++ libfbclient2 +/usr/lib(64)?/libfbclient.so* +/usr/lib(64)?/firebird/lib/libfbclient.so* +/usr/lib(64)?/libigds.so* libfbembed2 +/usr/lib(64)?/libfbembed.so* +/usr/lib(64)?/firebird/lib/libfbembed.so* ++++++ firebird-CORE-4058.patch ++++++ >From 9453a5f27b8dbd65bd7af6bf279e7f38a1965ee0 Mon Sep 17 00:00:00 2001 From: alexpeshkoff <alexpeshkoff@65644016-39b1-43b1-bf79-96bc8fe82c15> Date: Wed, 6 Mar 2013 11:33:08 +0000 Subject: [PATCH] Fixed CORE-4058 git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@57728 65644016-39b1-43b1-bf79-96bc8fe82c15 --- src/remote/inet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/inet.cpp b/src/remote/inet.cpp index 3ce7acf..fab3c0b 100644 --- a/src/remote/inet.cpp +++ b/src/remote/inet.cpp @@ -1154,7 +1154,7 @@ static int accept_connection(rem_port* port, case CNCT_group: { int length = id.getClumpLength(); - if (length != 0) { + if (length <= sizeof(eff_gid) && length > 0) { eff_gid = 0; memcpy(&eff_gid, id.getBytes(), length); eff_gid = ntohl(eff_gid); -- 1.7.10.4 ++++++ firebird-gcc-icu.patch ++++++ # Author: Adriano dos Santos Fernandes #Index: src/common/classes/alloc.h #=================================================================== #RCS file: /cvsroot/firebird/firebird2/src/common/classes/alloc.h,v #retrieving revision 1.71 diff -u -p -r1.71 alloc.h --- src/common/classes/alloc.h 26 Sep 2007 17:48:20 -0000 1.71 +++ src/common/classes/alloc.h 20 May 2009 02:20:08 -0000 @@ -47,6 +47,7 @@ #include <stdlib.h> /* XPG: prototypes for malloc/free have to be in stdlib.h (EKU) */ #endif +#include <new> #ifdef _MSC_VER #define THROW_BAD_ALLOC @@ -448,15 +449,6 @@ inline void* operator new[](size_t s) TH ); } -inline void* operator new(size_t, void* ptr) throw() -{ - return ptr; -} -inline void* operator new[](size_t, void* ptr) throw() -{ - return ptr; -} - inline void operator delete(void* mem) throw() { Firebird::MemoryPool::globalFree(mem); ++++++ firebird-gcc-warnings-fixes.patch ++++++ diff -ruN ../Firebird-2.1.2.18118-0/examples/empbuild/empbuild.e ./examples/empbuild/empbuild.e --- ../Firebird-2.1.2.18118-0/examples/empbuild/empbuild.e 2005-12-09 18:17:25.000000000 +0800 +++ ./examples/empbuild/empbuild.e 2009-05-27 21:01:12.000000000 +0900 @@ -145,7 +145,7 @@ * **************************************/ TEXT job_code[6], job_country[16]; -TEXT line[81]; +TEXT line[100]; //fixed destbufferoverflow TEXT lang_array[5][16]; int i, job_grade, rec_cnt = 0; @@ -211,7 +211,7 @@ * **************************************/ TEXT job_code[6]; -TEXT line[82], job_country[16]; +TEXT line[100], job_country[16]; //fixed destbufferoverflow int len; ISC_QUAD job_blob; int job_grade, rec_cnt = 0; @@ -288,7 +288,7 @@ * **************************************/ TEXT proj_id[6]; -TEXT line[82]; +TEXT line[100]; //fixed destbufferoverflow int len; ISC_QUAD proj_blob; int rec_cnt = 0; @@ -363,7 +363,7 @@ **************************************/ TEXT proj_id[6], dept_no[4]; int yr; -TEXT line[81]; +TEXT line[100]; //fixed destbufferoverflow int hcnt[4]; int rec_cnt = 0; diff -ruN ../Firebird-2.1.2.18118-0/src/burp/restore.epp ./src/burp/restore.epp --- ../Firebird-2.1.2.18118-0/src/burp/restore.epp 2008-12-06 00:30:07.000000000 +0800 +++ ./src/burp/restore.epp 2009-05-27 21:09:44.000000000 +0900 @@ -5574,6 +5574,7 @@ break; } } + return true; // fixed no-return-in-nonvoid-function } bool get_sql_roles(BurpGlobals* tdgbl) diff -ruN ../Firebird-2.1.2.18118-0/src/qli/compile.cpp ./src/qli/compile.cpp --- ../Firebird-2.1.2.18118-0/src/qli/compile.cpp 2007-02-22 17:58:56.000000000 +0800 +++ ./src/qli/compile.cpp 2009-05-27 21:23:02.000000000 +0900 @@ -865,7 +865,7 @@ qli_nod* list = node->nod_arg[e_fun_args]; - qli_nod** ptr = ptr = list->nod_arg; + qli_nod** ptr = list->nod_arg; //fixed undified operation, maybe for (const qli_nod* const* const end = ptr + list->nod_count; ptr < end; ptr++) compile_expression(*ptr, request, true); diff -ruN ../Firebird-2.1.2.18118-0/src/qli/exe.h ./src/qli/exe.h --- ../Firebird-2.1.2.18118-0/src/qli/exe.h 2004-05-25 02:20:44.000000000 +0900 +++ ./src/qli/exe.h 2009-05-27 21:55:22.000000000 +0900 @@ -38,7 +38,7 @@ const USHORT RLB_BUFFER_SIZE = 2048; const USHORT RLB_SAFETY_MARGIN = 48; -#define CHECK_RLB(in) (!in || (in->rlb_data > in->rlb_limit)) ? (in = GEN_rlb_extend (in)) : in; +#define CHECK_RLB(in) (!in || (in->rlb_data > in->rlb_limit)) ? (GEN_rlb_extend (in)) : in; //fixed undefined operation /* Would need gener_proto.h visible here to use this macro. inline qli_rlb* CHECK_RLB(qli_rlb*& in) { diff -ruN ../Firebird-2.1.2.18118-0/src/utilities/drop.cpp ./src/utilities/drop.cpp --- ../Firebird-2.1.2.18118-0/src/utilities/drop.cpp 2008-12-01 22:46:26.000000000 +0800 +++ ./src/utilities/drop.cpp 2009-05-29 10:24:35.000000000 +0900 @@ -223,7 +223,7 @@ if (!(strcmp(label, "lock manager"))) { if (!(pid = vfork())) { - execl(orig_argv[0], orig_argv[0], "-s", 0); + execl(orig_argv[0], orig_argv[0], "-s", NULL); //fixed missing-sentinel _exit(FINI_ERROR); } // wait(pid) // this is wrong wait takes a *int anyway. @@ -307,7 +307,7 @@ if (!(strcmp(label, "lock manager"))) { if (!(pid = vfork())) { - execl(orig_argv[0], orig_argv[0], "-s", 0); + execl(orig_argv[0], orig_argv[0], "-s", NULL); //fixed missing-sentinel _exit(FINI_ERROR); } #ifdef SCO_EV /* 5.5 SCO Port: SCO needs waitpid() to function properly */ ++++++ firebird-logrotate ++++++ firebird.log { weekly missingok rotate 52 compress delaycompress notifempty create 640 firebird adm } ++++++ firebird-mcpu-to-mtune.patch ++++++ diff -ruN ./builds/posix/prefix.linux ../Firebird-2.1.2.18118-0/builds/posix/prefix.linux --- ./builds/posix/prefix.linux 2007-05-03 20:24:50.000000000 +0900 +++ ../Firebird-2.1.2.18118-0/builds/posix/prefix.linux 2009-05-26 17:39:11.000000000 +0900 @@ -22,7 +22,7 @@ # you may remove it if engine is getting compiled with any other GCC version COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -pipe -MMD -fPIC -fmessage-length=0 -OPTIMIZE_FLAGS=-O3 -march=i586 -mcpu=i686 -fno-omit-frame-pointer -fno-builtin +OPTIMIZE_FLAGS=-O3 -march=i586 -mtune=i686 -fno-omit-frame-pointer -fno-builtin WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS) $(OPTIMIZE_FLAGS) ++++++ firebird.conf ++++++ d /var/run/firebird 1777 root root - ++++++ firebird_lock-file-location.patch ++++++ # Author: Damyan Ivanov <[email protected]> # Description: use proper Fedora location for lock files, # control sockets and such --- src/jrd/file_params.h +++ src/jrd/file_params.h @@ -38,11 +38,11 @@ const int EVENT_VERSION = 2; const int EVENT_SEMAPHORES = 1; #ifdef NOHOSTNAME -static const char* EVENT_FILE = "isc_event1"; -static const char* LOCK_FILE = "isc_lock1.gbl"; -static const char* INIT_FILE = "isc_init1"; -static const char* GUARD_FILE = "isc_guard1"; -static const char* MONITOR_FILE = "isc_monitor1"; +static const char* EVENT_FILE = "run/isc_event1"; +static const char* LOCK_FILE = "run/isc_lock1.gbl"; +static const char* INIT_FILE = "run/isc_init1"; +static const char* GUARD_FILE = "run/isc_guard1"; +static const char* MONITOR_FILE = "run/isc_monitor1"; #elif defined(VMS) static const char* EVENT_FILE = "[000000]isc_event1.%s"; static const char* LOCK_FILE = "[000000]isc_lock1.%s"; @@ -56,11 +56,11 @@ static const char* INIT_FILE = "%s.int"; static const char* GUARD_FILE = "%s.grd"; static const char* MONITOR_FILE = "%s.mon"; #else -static const char* EVENT_FILE = "isc_event1.%s"; -static const char* LOCK_FILE = "isc_lock1.%s"; -static const char* INIT_FILE = "isc_init1.%s"; -static const char* GUARD_FILE = "isc_guard1.%s"; -static const char* MONITOR_FILE = "isc_monitor1.%s"; +static const char* EVENT_FILE = "run/isc_event1.%s"; +static const char* LOCK_FILE = "run/isc_lock1.%s"; +static const char* INIT_FILE = "run/isc_init1.%s"; +static const char* GUARD_FILE = "run/isc_guard1.%s"; +static const char* MONITOR_FILE = "run/isc_monitor1.%s"; #endif #ifdef sun --- configure.in +++ configure.in @@ -940,6 +940,7 @@ mkdir -p gen/firebird/examples/udf mkdir -p gen/firebird/lib mkdir -p gen/firebird/misc mkdir -p gen/firebird/help +mkdir -p gen/firebird/run dnl #### TEMP ######### directories for .o and .d dnl # by module name -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
