Debian

Available patches from Ubuntu

To see Ubuntu differences wrt. to Debian, write down a grep-dctrl query identifying the packages you're interested in:
grep-dctrl -n -sPackage Sources.Debian
(e.g. -FPackage linux-ntfs or linux-ntfs)

Modified packages are listed below:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libatomic-ops

libatomic-ops (7.6.10-1ubuntu2) focal; urgency=medium * Add riscv64 support. * Link with -latomic on riscv64. -- Matthias Klose <doko@ubuntu.com> Sun, 05 Apr 2020 10:24:23 +0200

Modifications :
  1. Download patch debian/patches/link-atomic.diff
  2. Download patch debian/patches/series

    --- 7.6.10-1/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ 7.6.10-1ubuntu2/debian/patches/series 2020-04-05 08:24:23.000000000 +0000 @@ -0,0 +1 @@ +link-atomic.diff
  3. Download patch debian/patches/393d7a7ff54565230f44e59a9c73addc9e627f56.diff

    --- 7.6.10-1/debian/patches/393d7a7ff54565230f44e59a9c73addc9e627f56.diff 1970-01-01 00:00:00.000000000 +0000 +++ 7.6.10-1ubuntu2/debian/patches/393d7a7ff54565230f44e59a9c73addc9e627f56.diff 2020-04-05 08:23:54.000000000 +0000 @@ -0,0 +1,57 @@ +diff --git a/src/Makefile.am b/src/Makefile.am +index df70081..ae5f24f 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -91,6 +91,7 @@ nobase_private_HEADERS = atomic_ops/ao_version.h \ + atomic_ops/sysdeps/gcc/m68k.h \ + atomic_ops/sysdeps/gcc/mips.h \ + atomic_ops/sysdeps/gcc/powerpc.h \ ++ atomic_ops/sysdeps/gcc/riscv.h \ + atomic_ops/sysdeps/gcc/s390.h \ + atomic_ops/sysdeps/gcc/sh.h \ + atomic_ops/sysdeps/gcc/sparc.h \ +diff --git a/src/atomic_ops.h b/src/atomic_ops.h +index cc7cb49..e7597d0 100644 +--- a/src/atomic_ops.h ++++ b/src/atomic_ops.h +@@ -329,9 +329,11 @@ + # include "atomic_ops/sysdeps/gcc/avr32.h" + # elif defined(__hexagon__) + # include "atomic_ops/sysdeps/gcc/hexagon.h" ++# elif defined(__riscv) ++# include "atomic_ops/sysdeps/gcc/riscv.h" + # elif defined(__tile__) + # include "atomic_ops/sysdeps/gcc/tile.h" +-# else /* __nios2__, __riscv, etc. */ ++# else /* __nios2__, etc. */ + # include "atomic_ops/sysdeps/gcc/generic.h" + # endif + #endif /* __GNUC__ && !AO_USE_PTHREAD_DEFS */ +diff --git a/src/atomic_ops/sysdeps/gcc/riscv.h b/src/atomic_ops/sysdeps/gcc/riscv.h +new file mode 100644 +index 0000000..ce72816 +--- /dev/null ++++ b/src/atomic_ops/sysdeps/gcc/riscv.h +@@ -0,0 +1,22 @@ ++/* ++ * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED ++ * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. ++ * ++ * Permission is hereby granted to use or copy this program ++ * for any purpose, provided the above notices are retained on all copies. ++ * Permission to modify the code and to distribute modified code is granted, ++ * provided the above notices are retained, and a notice that the code was ++ * modified is included with the above copyright notice. ++ */ ++ ++/* As of gcc-7.2.0, some __GCC_HAVE_SYNC_COMPARE_AND_SWAP_n are missing. */ ++/* The operations are lock-free (even for the types smaller than word). */ ++#define AO_GCC_FORCE_HAVE_CAS ++ ++/* While double-word atomic operations are provided by the compiler */ ++/* (which requires -latomic currently), they are not lock-free as */ ++/* riscv itself does not have the double-word atomic operations. */ ++ ++#include "generic.h" ++ ++#undef AO_GCC_FORCE_HAVE_CAS
  1. libatomic-ops