#3 Update gc to 8.0.4
Closed 3 years ago by rdieter. Opened 3 years ago by defolos.
rpms/ defolos/gc master  into  master

file modified
+1
@@ -1,3 +1,4 @@ 

  /gc-7.6.0.tar.gz

  /gc-7.6.2.tar.gz

  /gc-7.6.4.tar.gz

+ /gc-8.0.4.tar.gz

@@ -1,52 +0,0 @@ 

- diff -ur gc-7.6.4.old/include/private/gcconfig.h gc-7.6.4.new/include/private/gcconfig.h

- --- gc-7.6.4.old/include/private/gcconfig.h	2018-01-26 13:16:17.000000000 +0000

- +++ gc-7.6.4.new/include/private/gcconfig.h	2018-02-27 09:33:05.840680540 +0000

- @@ -602,6 +602,15 @@

-  #   define I386

-  #   define mach_type_known

-  # endif

- +# if defined(__riscv) && defined(LINUX)

- +#   if __riscv_xlen == 32

- +#     define RISCV32

- +#     define mach_type_known

- +#   elif __riscv_xlen == 64

- +#     define RISCV64

- +#     define mach_type_known

- +#   endif

- +# endif

-  

-  /* Feel free to add more clauses here */

-  

- @@ -2650,6 +2659,32 @@

-  #   endif

-  # endif

-  

- +# ifdef RISCV32

- +#   define CPP_WORDSZ 32

- +#   define MACH_TYPE "RISC-V32"

- +#   define ALIGNMENT 4

- +#   ifdef LINUX

- +#     define OS_TYPE "LINUX"

- +      extern int __data_start[];

- +#     define DATASTART ((ptr_t)__data_start)

- +#     define LINUX_STACKBOTTOM

- +#     define DYNAMIC_LOADING

- +#   endif

- +# endif /* RISCV32 */

- +

- +# ifdef RISCV64

- +#   define CPP_WORDSZ 64

- +#   define MACH_TYPE "RISC-V64"

- +#   define ALIGNMENT 8

- +#   ifdef LINUX

- +#     define OS_TYPE "LINUX"

- +      extern int __data_start[];

- +#     define DATASTART ((ptr_t)__data_start)

- +#     define LINUX_STACKBOTTOM

- +#     define DYNAMIC_LOADING

- +#   endif

- +# endif /* RISCV64 */

- +

-  #if defined(__GLIBC__) && !defined(DONT_USE_LIBC_PRIVATES)

-    /* Use glibc's stack-end marker. */

-  # define USE_LIBC_PRIVATES

@@ -1,56 +0,0 @@ 

- diff -ur gc-7.6.4.old/include/private/gcconfig.h gc-7.6.4/include/private/gcconfig.h

- --- gc-7.6.4.old/include/private/gcconfig.h	2018-02-27 09:35:01.074561443 +0000

- +++ gc-7.6.4/include/private/gcconfig.h	2018-02-27 09:35:38.571522689 +0000

- @@ -603,13 +603,8 @@

-  #   define mach_type_known

-  # endif

-  # if defined(__riscv) && defined(LINUX)

- -#   if __riscv_xlen == 32

- -#     define RISCV32

- -#     define mach_type_known

- -#   elif __riscv_xlen == 64

- -#     define RISCV64

- -#     define mach_type_known

- -#   endif

- +#   define RISCV

- +#   define mach_type_known

-  # endif

-  

-  /* Feel free to add more clauses here */

- @@ -2659,23 +2654,10 @@

-  #   endif

-  # endif

-  

- -# ifdef RISCV32

- -#   define CPP_WORDSZ 32

- -#   define MACH_TYPE "RISC-V32"

- -#   define ALIGNMENT 4

- -#   ifdef LINUX

- -#     define OS_TYPE "LINUX"

- -      extern int __data_start[];

- -#     define DATASTART ((ptr_t)__data_start)

- -#     define LINUX_STACKBOTTOM

- -#     define DYNAMIC_LOADING

- -#   endif

- -# endif /* RISCV32 */

- -

- -# ifdef RISCV64

- -#   define CPP_WORDSZ 64

- -#   define MACH_TYPE "RISC-V64"

- -#   define ALIGNMENT 8

- +# ifdef RISCV

- +#   define MACH_TYPE "RISC-V"

- +#   define CPP_WORDSZ __riscv_xlen /* 32 or 64 */

- +#   define ALIGNMENT (CPP_WORDSZ/8)

-  #   ifdef LINUX

-  #     define OS_TYPE "LINUX"

-        extern int __data_start[];

- @@ -2683,7 +2665,7 @@

-  #     define LINUX_STACKBOTTOM

-  #     define DYNAMIC_LOADING

-  #   endif

- -# endif /* RISCV64 */

- +# endif /* RISCV */

-  

-  #if defined(__GLIBC__) && !defined(DONT_USE_LIBC_PRIVATES)

-    /* Use glibc's stack-end marker. */

file modified
+8 -12
@@ -1,20 +1,16 @@ 

  

  Summary: A garbage collector for C and C++

  Name:    gc

- Version: 7.6.4

- Release: 6%{?dist}

+ Version: 8.0.4

+ Release: 1%{?dist}

  

  License: BSD

- Url:     http://www.hboehm.info/gc/

- Source0: http://www.hboehm.info/gc/gc_source/gc-%{version}%{?pre}.tar.gz

+ Url:     https://www.hboehm.info/gc/

+ Source0: %{URL}/gc_source/gc-%{version}%{?pre}.tar.gz

  

  ## upstreamable patches

  

  ## upstream patches

- # Upstream commit 4f7f0eebd24dcde9f2b3ec2cb98913fc39bbdda3.

- Patch1: 0001-Add-initial-RISC-V-support.patch

- # Upstream commit 3b008f79ee29dbd0d61cf163d20eee21412df95b.

- Patch2: 0001-Merge-RISCV-32-64-bit-configurations-definition.patch

  

  ## downstream patches

  # https://bugzilla.redhat.com/show_bug.cgi?id=1551671
@@ -22,7 +18,6 @@ 

  

  BuildRequires: automake libtool

  BuildRequires: gcc-c++

- BuildRequires: pkgconfig(atomic_ops) >= 7.4

  BuildRequires: pkgconfig

  

  # rpmforge compatibility
@@ -89,8 +84,6 @@ 

  %endif

  

  

- %ldconfig_scriptlets

- 

  %files

  %{_libdir}/libcord.so.1*

  %{_libdir}/libgc.so.1*
@@ -98,7 +91,7 @@ 

  

  %files devel

  %doc doc/README.environment doc/README.linux

- %doc doc/*.html

+ %doc doc/*.md

  %{_includedir}/gc.h

  %{_includedir}/gc_cpp.h

  %{_includedir}/gc/
@@ -110,6 +103,9 @@ 

  

  

  %changelog

+ * Sat Jan  4 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 8.0.4-1

+ - New upstream release 8.0.4

+ 

  * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.6.4-6

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (gc-7.6.4.tar.gz) = 2c85be3e24b85732b3dc6f08fe98cf1a82b6fb2a22ec73090f80920721c737ef92cee8f0cd7ea7228d686005d164e7da54ce3907c3a1ba5eefa43355a472085e

+ SHA512 (gc-8.0.4.tar.gz) = 57ccca15c6e50048d306a30de06c1a844f36103a84c2d1c17cbccbbc0001e17915488baec79737449982da99ce5d14ce527176afae9ae153cbbb5a19d986366e

no initial comment

I'm trying to figure out the dropped dep on libatomic_ops, I think we want to keep that

According to https://www.hboehm.info/gc/:

 Starting with 8.0, libatomic_ops is only required if the compiler does not understand C atomics. 

So this should no longer be required.

Thanks for the poke, went ahead and committed something very similar to your PR:
https://src.fedoraproject.org/rpms/gc/c/190bf7e2891025b6d5cdcfaaced9581a0fe99027

Pull-Request has been closed by rdieter

3 years ago

Thanks for the update :thumbsup: !