commit 62a4bc21a5f684b55490b2376f96f38a1aa073a8 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:11:05 2019 -0400 Package init diff --git a/ORBit2-2.14.19.tar.bz2 b/ORBit2-2.14.19.tar.bz2 new file mode 100644 index 0000000..6a5b803 Binary files /dev/null and b/ORBit2-2.14.19.tar.bz2 differ diff --git a/ORBit2-2.14.3-multilib.patch b/ORBit2-2.14.3-multilib.patch new file mode 100644 index 0000000..8895a4f --- /dev/null +++ b/ORBit2-2.14.3-multilib.patch @@ -0,0 +1,19 @@ +--- ORBit2-2.14.3/orbit2-config.in.multilib 2006-09-05 14:36:59.000000000 -0400 ++++ ORBit2-2.14.3/orbit2-config.in 2006-09-05 14:44:29.000000000 -0400 +@@ -1,11 +1,11 @@ + #! /bin/sh + +-prefix=@prefix@ +-exec_prefix=@exec_prefix@ +-exec_prefix_set=no +-includedir=@includedir@ +-libdir=@libdir@ + [ -z "$PKG_CONFIG" ] && PKG_CONFIG="pkg-config" ++prefix=`${PKG_CONFIG} --variable prefix ORBit-2.0` ++exec_prefix=`${PKG_CONFIG} --variable exec_prefix ORBit-2.0` ++exec_prefix_set=no ++includedir=`${PKG_CONFIG} --variable includedir ORBit-2.0` ++libdir=`${PKG_CONFIG} --variable libdir ORBit-2.0` + + usage() + { diff --git a/ORBit2-2.14.3-ref-leaks.patch b/ORBit2-2.14.3-ref-leaks.patch new file mode 100644 index 0000000..fc4a1e8 --- /dev/null +++ b/ORBit2-2.14.3-ref-leaks.patch @@ -0,0 +1,51 @@ +--- ORBit2-2.14.3/src/orb/orb-core/orbit-object.c.ref-leaks 2003-10-29 07:22:12.000000000 -0500 ++++ ORBit2-2.14.3/src/orb/orb-core/orbit-object.c 2006-12-08 12:03:55.000000000 -0500 +@@ -115,16 +115,22 @@ + obj->refs = 0; + } + ++#define ORBIT_REFCOUNT_IMMORTAL (ORBIT_REFCOUNT_MAX / 2) ++ + gpointer + ORBit_RootObject_duplicate (gpointer obj) + { + ORBit_RootObject robj = obj; + +- if (robj && robj->refs != ORBIT_REFCOUNT_STATIC) { ++ if (robj && robj->refs != ORBIT_REFCOUNT_STATIC && ++ robj->refs != ORBIT_REFCOUNT_IMMORTAL) { + LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); + robj->refs++; + total_refs++; + LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); ++ if (robj->refs == ORBIT_REFCOUNT_IMMORTAL) ++ g_warning ("ORB: ORBit_RootObject %p became immortal" ++ " - reference leaks present", robj); + } + + return obj; +@@ -135,9 +141,13 @@ + { + ORBit_RootObject robj = obj; + +- if (robj && robj->refs != ORBIT_REFCOUNT_STATIC) { ++ if (robj && robj->refs != ORBIT_REFCOUNT_STATIC && ++ robj->refs != ORBIT_REFCOUNT_IMMORTAL) { + robj->refs++; + total_refs++; ++ if (robj->refs == ORBIT_REFCOUNT_IMMORTAL) ++ g_warning ("ORB: ORBit_RootObject %p became immortal" ++ " - reference leaks present", robj); + } + + return obj; +@@ -148,6 +158,9 @@ + { + g_assert (robj->refs < ORBIT_REFCOUNT_MAX && robj->refs > 0); + ++ if (robj->refs == ORBIT_REFCOUNT_IMMORTAL) ++ return; ++ + robj->refs--; + total_refs--; + diff --git a/ORBit2-allow-deprecated.patch b/ORBit2-allow-deprecated.patch new file mode 100644 index 0000000..25215f6 --- /dev/null +++ b/ORBit2-allow-deprecated.patch @@ -0,0 +1,23 @@ +--- ORBit2-2.14.19/linc2/src/Makefile.am.depr 2013-03-15 09:24:45.384143557 -0400 ++++ ORBit2-2.14.19/linc2/src/Makefile.am 2013-03-15 09:24:55.172144088 -0400 +@@ -12,8 +12,7 @@ + -I$(top_builddir)/linc2/include \ + -I$(top_srcdir)/linc2/include \ + $(LINC_CFLAGS) \ +- $(WARN_CFLAGS) \ +- -DG_DISABLE_DEPRECATED ++ $(WARN_CFLAGS) + + if OS_WIN32 + else +--- ORBit2-2.14.19/linc2/src/Makefile.in.depr 2013-03-15 09:24:45.943143588 -0400 ++++ ORBit2-2.14.19/linc2/src/Makefile.in 2013-03-15 09:25:08.333144801 -0400 +@@ -244,7 +244,7 @@ + # -I$(top_srcdir)/include + INCLUDES = -I$(top_builddir)/linc2/include \ + -I$(top_srcdir)/linc2/include $(LINC_CFLAGS) $(WARN_CFLAGS) \ +- -DG_DISABLE_DEPRECATED $(am__append_1) ++ $(am__append_1) + liblinc_la_SOURCES = \ + linc.c \ + linc-connection.c \ diff --git a/ORBit2-make-j-safety.patch b/ORBit2-make-j-safety.patch new file mode 100644 index 0000000..8e7503a --- /dev/null +++ b/ORBit2-make-j-safety.patch @@ -0,0 +1,13 @@ +--- ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-backend.c.test 2010-02-09 07:05:35.000000000 -0500 ++++ ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-backend.c 2012-04-17 16:17:50.797480456 -0400 +@@ -133,8 +133,8 @@ + } + + if (pass == OUTPUT_DEPS) { +- if (!g_file_test (".deps", G_FILE_TEST_IS_DIR)) { +- if (g_mkdir (".deps", 0775) < 0) { ++ if (g_mkdir (".deps", 0775) < 0) { ++ if (errno != EEXIST) { + g_warning ("failed to create '.deps' directory '%s'", + g_strerror (errno)); + return NULL; diff --git a/ORBit2.spec b/ORBit2.spec new file mode 100644 index 0000000..8ad7d5d --- /dev/null +++ b/ORBit2.spec @@ -0,0 +1,87 @@ +Name: ORBit2 +Version: 2.14.19 +Release: 21 +Summary: A high-performance CORBA Object Request Broker +License: LGPLv2+ and GPLv2+ +URL: http://www.gnome.org/projects/ORBit2 +Source: http://download.gnome.org/sources/ORBit2/2.14/%{name}-%{version}.tar.bz2 +BuildRequires: autoconf automake git gtk-doc libtool +BuildRequires: glib2-devel >= 2.2.0 +BuildRequires: libIDL-devel >= 0.8.2-1 +BuildRequires: pkgconfig >= 0.14 + +Patch0: ORBit2-2.14.3-multilib.patch +Patch1: ORBit2-2.14.3-ref-leaks.patch +Patch2: ORBit2-make-j-safety.patch +Patch3: ORBit2-allow-deprecated.patch + +%description +ORBit is an efficient, free C-based ORB, compliant to CORBA version 2.2. CORBA +stands for Common Object Request Broker Architecture. CORBA in many ways is a +successor to the Remote Procedure Call (RPC) system common on UNIX and other +systems: the best oneline description of CORBA is that it is "Object Orientated +RPC". +The key point about CORBA is that it provides a way for two programs to +communicate information. The CORBA mechanism allows these two programs to be +running on different machines and written in different programming languages +while safely (and portably) exchanging data. They also could be running in the +same program, on the same machine, in which case the process of communication is +much quickeras ORBit recognises that it does not need to open any communication +channel. + +%package devel +Summary: Development libraries, header files and utilities for ORBit +Requires: %{name} = %{version}-%{release} +Requires: automake indent pkgconfig +Requires: libIDL-devel >= 0.8.2-1 +Requires: glib2-devel >= 2.2.0 +Conflicts: ORBit-devel <= 1:0.5.8 + +%description devel +Development package for ORBit. + +%prep +%autosetup -n %{name}-%{version} -p1 -Sgit + +%build +libtoolize --force --copy +aclocal +autoconf +%configure --disable-gtk-doc --enable-purify --disable-static +%make_build + +%install +rm -rf $RPM_BUILD_ROOT +%make_install + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%{_libdir}/*.so.* +%{_libdir}/orbit-2.0/*.so* +%doc AUTHORS COPYING README TODO +%exclude %{_libdir}/*.la +%exclude %{_libdir}/ORBit-2.0/*.*a +%exclude %{_libdir}/orbit-2.0/*.*a + +%files devel +%{_bindir}/ior-decode-2 +%{_bindir}/linc-cleanup-sockets +%{_bindir}/orbit-idl-2 +%{_bindir}/orbit2-config +%{_bindir}/typelib-dump +%{_libdir}/*.so +%{_libdir}/libname-server-2.a +%{_libdir}/pkgconfig/* +%{_datadir}/aclocal/* +%{_datadir}/gtk-doc +%{_datadir}/idl/orbit-2.0 +%{_includedir}/* + +%changelog +* Mon Aug 12 2019 openEuler Buildteam - 2.14.19-21 +- Package init