Accepting request 76144 from devel:libraries:c_c++
- updated to 7.2alpha6 * many bug fixes and new features from 6.6, see doc/README.changes for older changes and ChangeLog for recent changes (forwarded request 76080 from pgajdos) OBS-URL: https://build.opensuse.org/request/show/76144 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gc?expand=0&rev=14
This commit is contained in:
parent
5afed2b02f
commit
fe21a12a73
@ -1,20 +0,0 @@
|
|||||||
--- configure
|
|
||||||
+++ configure
|
|
||||||
@@ -4814,7 +4814,7 @@
|
|
||||||
;;
|
|
||||||
|
|
||||||
# This must be Linux ELF.
|
|
||||||
-linux-gnu*)
|
|
||||||
+linux*)
|
|
||||||
case $host_cpu in
|
|
||||||
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|
||||||
lt_cv_deplibs_check_method=pass_all ;;
|
|
||||||
@@ -7801,7 +7801,7 @@
|
|
||||||
;;
|
|
||||||
|
|
||||||
# This must be Linux ELF.
|
|
||||||
-linux-gnu*)
|
|
||||||
+linux*)
|
|
||||||
version_type=linux
|
|
||||||
need_lib_prefix=no
|
|
||||||
need_version=no
|
|
3
gc-7.2alpha6.tar.bz2
Normal file
3
gc-7.2alpha6.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7d62742cdb32a8f9ca2a8ede3511f1b019ca3c663240ef2fd513ffd3a058dbd2
|
||||||
|
size 1011054
|
12
gc-build.patch
Normal file
12
gc-build.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Index: gc-7.2alpha6/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- gc-7.2alpha6.orig/Makefile.am
|
||||||
|
+++ gc-7.2alpha6/Makefile.am
|
||||||
|
@@ -104,7 +104,6 @@ EXTRA_libgc_la_SOURCES = alpha_mach_dep.
|
||||||
|
|
||||||
|
if CPLUSPLUS
|
||||||
|
lib_LTLIBRARIES += libgccpp.la
|
||||||
|
-pkginclude_HEADERS += include/gc_cpp.h include/gc_allocator.h
|
||||||
|
libgccpp_la_SOURCES = gc_cpp.cc
|
||||||
|
libgccpp_la_LIBADD = ./libgc.la
|
||||||
|
libgccpp_la_LDFLAGS = -version-info 1:3:0 -no-undefined
|
@ -1,36 +0,0 @@
|
|||||||
Use gcc build-in atomic functions,
|
|
||||||
the selfmade versions will not work on powerpc
|
|
||||||
|
|
||||||
---
|
|
||||||
include/private/gc_locks.h | 13 +++++++++++++
|
|
||||||
1 file changed, 13 insertions(+)
|
|
||||||
|
|
||||||
--- a/include/private/gc_locks.h
|
|
||||||
+++ b/include/private/gc_locks.h
|
|
||||||
@@ -88,6 +88,18 @@
|
|
||||||
/* acquisition and release. We need this for correct operation of the */
|
|
||||||
/* incremental GC. */
|
|
||||||
# ifdef __GNUC__
|
|
||||||
+#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 1
|
|
||||||
+static inline int GC_test_and_set(volatile unsigned int *addr)
|
|
||||||
+{
|
|
||||||
+#define GC_TEST_AND_SET_DEFINED
|
|
||||||
+ return (int)__sync_lock_test_and_set(addr, 1);
|
|
||||||
+}
|
|
||||||
+static inline void GC_clear(volatile unsigned int *addr)
|
|
||||||
+{
|
|
||||||
+#define GC_CLEAR_DEFINED
|
|
||||||
+ __sync_lock_test_and_set(addr, 0);
|
|
||||||
+}
|
|
||||||
+#else /* ! __GNUC__ 4.1+ */
|
|
||||||
# if defined(I386)
|
|
||||||
inline static int GC_test_and_set(volatile unsigned int *addr) {
|
|
||||||
int oldval;
|
|
||||||
@@ -288,6 +300,7 @@
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
# endif
|
|
||||||
+# endif /* !__GNUC__ 4.1+ */
|
|
||||||
# endif /* __GNUC__ */
|
|
||||||
# if (defined(ALPHA) && !defined(__GNUC__))
|
|
||||||
# ifndef OSF1
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 20 15:08:02 UTC 2011 - pgajdos@novell.com
|
||||||
|
|
||||||
|
- updated to 7.2alpha6
|
||||||
|
* many bug fixes and new features from 6.6, see doc/README.changes
|
||||||
|
for older changes and ChangeLog for recent changes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 2 15:40:11 CEST 2009 - crrodriguez@suse.de
|
Thu Apr 2 15:40:11 CEST 2009 - crrodriguez@suse.de
|
||||||
|
|
||||||
|
23
gc.spec
23
gc.spec
@ -19,7 +19,8 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: gc
|
Name: gc
|
||||||
Version: 6.6
|
Version: 7.1.9.6
|
||||||
|
%define src_ver 7.2alpha6
|
||||||
Release: 138
|
Release: 138
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
# bug437293
|
# bug437293
|
||||||
@ -31,13 +32,10 @@ Group: Development/Libraries/C and C++
|
|||||||
License: BSD 3-Clause
|
License: BSD 3-Clause
|
||||||
Url: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
|
Url: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
|
||||||
Summary: A garbage collector for C and C++
|
Summary: A garbage collector for C and C++
|
||||||
Source: %{name}%{version}.tar.bz2
|
Source: %{name}-%{src_ver}.tar.bz2
|
||||||
#Patch: %{name}-%{version}-shared.diff
|
Patch0: %{name}-build.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
Patch: gcc4.patch
|
|
||||||
Patch1: configure.patch
|
|
||||||
Patch2: gc.atomic-locks.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Boehm-Demers-Weiser conservative garbage collector can be used as a
|
The Boehm-Demers-Weiser conservative garbage collector can be used as a
|
||||||
@ -78,15 +76,13 @@ Authors:
|
|||||||
Alan J. Demers
|
Alan J. Demers
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %name%version
|
%setup -q -n %{name}-%{src_ver}
|
||||||
%patch
|
%patch0 -p1
|
||||||
%patch1
|
|
||||||
%patch2 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#%{suse_update_config -f}
|
%{suse_update_config -f}
|
||||||
#autoreconf -fi
|
autoreconf -fi
|
||||||
#%{__libtoolize} -f
|
%{__libtoolize} -f
|
||||||
%configure --disable-static --with-pic --enable-cplusplus
|
%configure --disable-static --with-pic --enable-cplusplus
|
||||||
%{__make} %{?jobs:-j%jobs}
|
%{__make} %{?jobs:-j%jobs}
|
||||||
|
|
||||||
@ -114,6 +110,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc doc/[a-z]*
|
%doc doc/[a-z]*
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:18bf5196a16a6cc198755f81afc8e9167c09a36b90077574e8581ff1d07d0e78
|
|
||||||
size 588635
|
|
11
gcc4.patch
11
gcc4.patch
@ -1,11 +0,0 @@
|
|||||||
--- include/gc_cpp.h
|
|
||||||
+++ include/gc_cpp.h
|
|
||||||
@@ -180,7 +180,7 @@
|
|
||||||
inline void* operator new[]( size_t size, void *p );
|
|
||||||
inline void operator delete[]( void* obj );
|
|
||||||
# ifdef GC_PLACEMENT_DELETE
|
|
||||||
- inline void gc::operator delete[]( void*, void* );
|
|
||||||
+ inline void operator delete[]( void*, void* );
|
|
||||||
# endif
|
|
||||||
#endif /* GC_OPERATOR_NEW_ARRAY */
|
|
||||||
};
|
|
Loading…
Reference in New Issue
Block a user