Package init
This commit is contained in:
commit
62a4bc21a5
BIN
ORBit2-2.14.19.tar.bz2
Normal file
BIN
ORBit2-2.14.19.tar.bz2
Normal file
Binary file not shown.
19
ORBit2-2.14.3-multilib.patch
Normal file
19
ORBit2-2.14.3-multilib.patch
Normal file
@ -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()
|
||||
{
|
||||
51
ORBit2-2.14.3-ref-leaks.patch
Normal file
51
ORBit2-2.14.3-ref-leaks.patch
Normal file
@ -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--;
|
||||
|
||||
23
ORBit2-allow-deprecated.patch
Normal file
23
ORBit2-allow-deprecated.patch
Normal file
@ -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 \
|
||||
13
ORBit2-make-j-safety.patch
Normal file
13
ORBit2-make-j-safety.patch
Normal file
@ -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;
|
||||
87
ORBit2.spec
Normal file
87
ORBit2.spec
Normal file
@ -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 <buildteam@openeuler.org> - 2.14.19-21
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user