Raspbian automatic forward porter [Mon, 4 Feb 2019 04:47:12 +0000 (04:47 +0000)]
Merge version 4.05.0-10+rpi1 and 4.05.0-11 to produce 4.05.0-11+rpi1
Stéphane Glondu [Fri, 25 Jan 2019 13:59:28 +0000 (13:59 +0000)]
Merge ocaml (4.05.0-11) import into refs/heads/workingbranch
Stephane Glondu [Fri, 25 Jan 2019 13:34:23 +0000 (14:34 +0100)]
Integer overflows when unmarshaling a bigarray
Malicious or corrupted marshaled data can result in a bigarray
with impossibly large dimensions that cause overflow when computing
the in-memory size of the bigarray. Disaster ensues when the data
is read in a too small memory area. This commit checks for overflows
when computing the in-memory size of the bigarray.
This patch has been modified from upstream one to use caml_ba_multov
instead of caml_umul_overflow which is unavailable in OCaml 4.05.0.
Origin: https://github.com/ocaml/ocaml/pull/1718
Bug: https://caml.inria.fr/mantis/view.php?id=7765
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895472
Bug-CVE: CVE-2018-9838
Gbp-Pq: Name 0012-Integer-overflows-when-unmarshaling-a-bigarray.patch
Johannes Schauer [Wed, 21 Dec 2016 23:36:14 +0000 (00:36 +0100)]
Compute a stable name for preprocessed files
Gbp-Pq: Name 0014-Compute-a-stable-name-for-preprocessed-files.patch
Torok Edwin [Wed, 15 Jul 2015 13:33:23 +0000 (16:33 +0300)]
Use CCLINKFLAGS for linking all executables and shared libraries
This allows packagers to set additional linker flags for executables and shared
libraries created by OCaml, and for the OCaml tools themselves.
OCaml code can be linked with various C stubs and C libraries that would
benefit from using hardening link flags, such as -Wl,-z,relro.
Origin: other
Bug-Debian: https://bugs.debian.org/702349
Forwarded: no
Last-Update: <2015-07-15>
Gbp-Pq: Name 0013-Use-CCLINKFLAGS-for-linking-all-executables-and-shar.patch
Mark Shinwell [Wed, 13 Sep 2017 09:23:16 +0000 (10:23 +0100)]
arm64-hide-symbols-for-stricter-binutils
AArch64 GOT fixed
Gbp-Pq: Name 0011-arm64-hide-symbols-for-stricter-binutils.patch
Xavier Leroy [Fri, 25 Jan 2019 12:47:44 +0000 (13:47 +0100)]
Drop a test-suite experiment committed by mistake
This was failing on armhf because Debian GCC now enables PIE by default.
Bug: https://caml.inria.fr/mantis/view.php?id=7642
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837359#80
Gbp-Pq: Name 0010-XL-001-tests.asmcomp.patch
Stephane Glondu [Wed, 13 Nov 2013 13:28:16 +0000 (14:28 +0100)]
Native backtraces don't work on powerpc and sparc
Gbp-Pq: Name 0008-Native-backtraces-don-t-work-on-powerpc-and-sparc.patch
Stephane Glondu [Tue, 11 Jul 2017 11:27:34 +0000 (13:27 +0200)]
Embed bytecode in C object when using -custom
This patch fixes non-strippability of bytecode executables linked with
custom runtime. The new behaviour is enabled when OCAML_CUSTOM_EMBED
is set to "y", or when DEB_HOST_ARCH is non-empty.
Forwarded: not-needed
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=256900
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627761
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678577
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0006-Embed-bytecode-in-C-object-when-using-custom.patch
Stephane Glondu [Thu, 21 Apr 2011 16:39:31 +0000 (18:39 +0200)]
Avoid multiple declarations in generated .c files in -output-obj
In -output-obj mode, <caml/mlvalues.h> (which contains some
primitives) is included in the generated .c file, leading to errors
when compiling with g++ (multiple declarations).
There are probably better implementations (in particular, in this one,
care must be taken when changing the list of primitives available in
mlvalues.h), but this is a small and (not too) intrusive patch.
Bug: http://caml.inria.fr/mantis/view.php?id=5254
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0005-Avoid-multiple-declarations-in-generated-.c-files-in.patch
Julien Cristau [Tue, 19 May 2009 15:24:52 +0000 (17:24 +0200)]
Put manpages in section 3o instead of 3
Gbp-Pq: Name 0004-Put-manpages-in-section-3o-instead-of-3.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:24:14 +0000 (17:24 +0200)]
Don't use rpath
Gbp-Pq: Name 0003-Don-t-use-rpath.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:23:34 +0000 (17:23 +0200)]
Call ld with proper flags
Filter linkflags passed to ld by ocamlopt -pack and -output-obj
to remove the "-Wl," parts, which are only used when ocamlopt calls
gcc.
Gbp-Pq: Name 0002-Call-ld-with-proper-flags.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:22:39 +0000 (17:22 +0200)]
Pass --no-relax to ld on alpha
Pass the --no-relax option to ld to fix a segfault in initialization
code (bug#338437)
Gbp-Pq: Name 0001-Pass-no-relax-to-ld-on-alpha.patch
Stéphane Glondu [Fri, 25 Jan 2019 13:59:28 +0000 (13:59 +0000)]
ocaml (4.05.0-11) unstable; urgency=medium
[ Ralf Treinen ]
* Dropped "Recommends: camlp4" from ocaml-nox since that package is
being deprecated. (Closes: #895994)
[ Stéphane Glondu ]
* Fix integer overflows when unmarshaling a bigarray
(Closes: #895472, CVE-2018-9838)
* Update Vcs-* to point to salsa
[dgit import unpatched ocaml 4.05.0-11]
Stéphane Glondu [Fri, 25 Jan 2019 13:59:28 +0000 (13:59 +0000)]
Import ocaml_4.05.0-11.debian.tar.xz
[dgit import tarball ocaml 4.05.0-11 ocaml_4.05.0-11.debian.tar.xz]
Raspbian forward pporter [Fri, 5 Jan 2018 14:21:36 +0000 (14:21 +0000)]
Merge version 4.02.3-10+rpi1 and 4.05.0-10 to produce 4.05.0-10+rpi1
Ximin Luo [Wed, 4 Oct 2017 12:14:39 +0000 (13:14 +0100)]
Merge ocaml (4.05.0-10) import into refs/heads/workingbranch
Johannes Schauer [Wed, 21 Dec 2016 23:36:14 +0000 (00:36 +0100)]
Compute a stable name for preprocessed files
Gbp-Pq: Name 0014-Compute-a-stable-name-for-preprocessed-files.patch
Torok Edwin [Wed, 15 Jul 2015 13:33:23 +0000 (16:33 +0300)]
Use CCLINKFLAGS for linking all executables and shared libraries
This allows packagers to set additional linker flags for executables and shared
libraries created by OCaml, and for the OCaml tools themselves.
OCaml code can be linked with various C stubs and C libraries that would
benefit from using hardening link flags, such as -Wl,-z,relro.
Origin: other
Bug-Debian: https://bugs.debian.org/702349
Forwarded: no
Last-Update: <2015-07-15>
Gbp-Pq: Name 0013-Use-CCLINKFLAGS-for-linking-all-executables-and-shar.patch
Debian OCaml Maintainers [Wed, 4 Oct 2017 12:14:39 +0000 (13:14 +0100)]
arm64-hide-symbols-for-stricter-binutils
commit
4274dfe22ae37c4c5589a6fe7fe9d53d62013df5
Author: Mark Shinwell <mshinwell@gmail.com>
Date: Wed Sep 13 10:23:16 2017 +0100
AArch64 GOT fixed
Gbp-Pq: Name 0011-arm64-hide-symbols-for-stricter-binutils.patch
Debian OCaml Maintainers [Wed, 4 Oct 2017 12:14:39 +0000 (13:14 +0100)]
XL-001-tests.asmcomp
Gbp-Pq: Name 0010-XL-001-tests.asmcomp.patch
Stephane Glondu [Wed, 13 Nov 2013 13:28:16 +0000 (14:28 +0100)]
Native backtraces don't work on powerpc and sparc
Gbp-Pq: Name 0008-Native-backtraces-don-t-work-on-powerpc-and-sparc.patch
Stephane Glondu [Tue, 11 Jul 2017 11:27:34 +0000 (13:27 +0200)]
Embed bytecode in C object when using -custom
This patch fixes non-strippability of bytecode executables linked with
custom runtime. The new behaviour is enabled when OCAML_CUSTOM_EMBED
is set to "y", or when DEB_HOST_ARCH is non-empty.
Forwarded: not-needed
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=256900
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627761
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678577
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0006-Embed-bytecode-in-C-object-when-using-custom.patch
Stephane Glondu [Thu, 21 Apr 2011 16:39:31 +0000 (18:39 +0200)]
Avoid multiple declarations in generated .c files in -output-obj
In -output-obj mode, <caml/mlvalues.h> (which contains some
primitives) is included in the generated .c file, leading to errors
when compiling with g++ (multiple declarations).
There are probably better implementations (in particular, in this one,
care must be taken when changing the list of primitives available in
mlvalues.h), but this is a small and (not too) intrusive patch.
Bug: http://caml.inria.fr/mantis/view.php?id=5254
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0005-Avoid-multiple-declarations-in-generated-.c-files-in.patch
Julien Cristau [Tue, 19 May 2009 15:24:52 +0000 (17:24 +0200)]
Put manpages in section 3o instead of 3
Gbp-Pq: Name 0004-Put-manpages-in-section-3o-instead-of-3.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:24:14 +0000 (17:24 +0200)]
Don't use rpath
Gbp-Pq: Name 0003-Don-t-use-rpath.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:23:34 +0000 (17:23 +0200)]
Call ld with proper flags
Filter linkflags passed to ld by ocamlopt -pack and -output-obj
to remove the "-Wl," parts, which are only used when ocamlopt calls
gcc.
Gbp-Pq: Name 0002-Call-ld-with-proper-flags.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:22:39 +0000 (17:22 +0200)]
Pass --no-relax to ld on alpha
Pass the --no-relax option to ld to fix a segfault in initialization
code (bug#338437)
Gbp-Pq: Name 0001-Pass-no-relax-to-ld-on-alpha.patch
Ximin Luo [Wed, 4 Oct 2017 12:14:39 +0000 (13:14 +0100)]
ocaml (4.05.0-10) unstable; urgency=medium
* Drop support for ocamlopt on armel as suggested by upstream.
* Replace the ARM PIC patch with one from upstream.
[dgit import unpatched ocaml 4.05.0-10]
Ximin Luo [Wed, 4 Oct 2017 12:14:39 +0000 (13:14 +0100)]
Import ocaml_4.05.0-10.debian.tar.xz
[dgit import tarball ocaml 4.05.0-10 ocaml_4.05.0-10.debian.tar.xz]
Raspbian forward pporter [Wed, 19 Jul 2017 23:51:55 +0000 (00:51 +0100)]
Merge version 4.02.3-9+rpi1 and 4.02.3-10 to produce 4.02.3-10+rpi1
Raspbian forward pporter [Wed, 19 Jul 2017 23:51:54 +0000 (00:51 +0100)]
Merge branch 'debpsuedomerge' into buster-working
Ximin Luo [Mon, 17 Jul 2017 14:11:47 +0000 (15:11 +0100)]
Import ocaml_4.05.0.orig.tar.xz
[dgit import orig ocaml_4.05.0.orig.tar.xz]
Stéphane Glondu [Thu, 13 Jul 2017 02:40:57 +0000 (03:40 +0100)]
Merge ocaml (4.02.3-10) import into refs/heads/workingbranch
Mehdi Dogguy [Wed, 21 Dec 2016 23:45:00 +0000 (00:45 +0100)]
CVE-2015-8869
Upstream commit: https://github.com/ocaml/ocaml/commit/
659615c7b100a89eafe6253e7a5b9d84d0e8df74#diff-
a97df53e3ebc59bb457191b496c90762
http://www.openwall.com/lists/oss-security/2016/04/29/1
Gbp-Pq: Name 0015-CVE-2015-8869.patch
Johannes Schauer [Wed, 21 Dec 2016 23:36:14 +0000 (00:36 +0100)]
Compute a stable name for preprocessed files
Gbp-Pq: Name 0014-Compute-a-stable-name-for-preprocessed-files.patch
Torok Edwin [Wed, 15 Jul 2015 13:33:23 +0000 (16:33 +0300)]
Use CCLINKFLAGS for linking all executables and shared libraries
This allows packagers to set additional linker flags for executables and shared
libraries created by OCaml, and for the OCaml tools themselves.
OCaml code can be linked with various C stubs and C libraries that would
benefit from using hardening link flags, such as -Wl,-z,relro.
Origin: other
Bug-Debian: https://bugs.debian.org/702349
Forwarded: no
Last-Update: <2015-07-15>
Gbp-Pq: Name 0013-Use-CCLINKFLAGS-for-linking-all-executables-and-shar.patch
Mehdi Dogguy [Sun, 6 Nov 2016 09:36:00 +0000 (10:36 +0100)]
Default to PIC on arm
Otherwise the armhf build fails now that PIE is enabled by default.
Bug-Debian: https://bugs.debian.org/837359
Forwarded: TODO
Gbp-Pq: Name 0012-arm-default-PIC.patch
Stephane Glondu [Tue, 16 Feb 2016 10:29:16 +0000 (11:29 +0100)]
Compatibility with x32 architecture
Origin: https://github.com/ocaml/ocaml/commit/
58c07fa89ec6546cea911f1d2e7803fd7aa75de9
Bug: http://caml.inria.fr/mantis/view.php?id=6722
Bug-Debian: https://bugs.debian.org/773409
Gbp-Pq: Name 0011-Compatibility-with-x32-architecture.patch
Stephane Glondu [Sun, 16 Aug 2015 18:59:14 +0000 (20:59 +0200)]
Add a .file directive to generated .s files
When no .file directive is given, the toolchain records the filename
of the .o file, which is sometimes random, making generated objects
non-deterministic.
We use Location.input_name for adding .file directives to assembly
files. Note: when the file is preprocessed, this reference holds the
name of the temporary file. Hence, files compiled with -pp are still
not deterministic.
Bug-Debian: https://bugs.debian.org/795784
Bug-Debian: https://bugs.debian.org/796336
Gbp-Pq: Name 0010-Add-a-.file-directive-to-generated-.s-files.patch
Valentin Lorentz [Thu, 13 Aug 2015 09:59:04 +0000 (11:59 +0200)]
Enable ocamldoc to build reproducible manpages
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794586
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0010-Enable-ocamldoc-to-build-reproducible-manpages.patch
Stephane Glondu [Wed, 13 Nov 2013 13:28:16 +0000 (14:28 +0100)]
Native backtraces don't work on powerpc and sparc
Gbp-Pq: Name 0008-Native-backtraces-don-t-work-on-powerpc-and-sparc.patch
Stephane Glondu [Fri, 8 Nov 2013 21:27:23 +0000 (22:27 +0100)]
Tune resource usage of some tests
The original tests trigger some limits and fail on kfreebsd-i386 with
uncaught exception Sys_error("Thread.create: Resource temporarily
unavailable").
Gbp-Pq: Name 0007-Tune-resource-usage-of-some-tests.patch
Stephane Glondu [Sat, 21 Jul 2012 13:40:52 +0000 (15:40 +0200)]
Embed bytecode in C object when using -custom
This patch fixes non-strippability of bytecode executables linked with
custom runtime. The new behaviour is enabled when OCAML_CUSTOM_EMBED
is set to "y", or when DEB_HOST_ARCH is non-empty.
Forwarded: not-needed
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=256900
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627761
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678577
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0006-Embed-bytecode-in-C-object-when-using-custom.patch
Stephane Glondu [Thu, 21 Apr 2011 16:39:31 +0000 (18:39 +0200)]
Avoid multiple declarations in generated .c files in -output-obj
In -output-obj mode, <caml/mlvalues.h> (which contains some
primitives) is included in the generated .c file, leading to errors
when compiling with g++ (multiple declarations).
There are probably better implementations (in particular, in this one,
care must be taken when changing the list of primitives available in
mlvalues.h), but this is a small and (not too) intrusive patch.
Bug: http://caml.inria.fr/mantis/view.php?id=5254
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0005-Avoid-multiple-declarations-in-generated-.c-files-in.patch
Julien Cristau [Tue, 19 May 2009 15:24:52 +0000 (17:24 +0200)]
Put manpages in section 3o instead of 3
Gbp-Pq: Name 0004-Put-manpages-in-section-3o-instead-of-3.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:24:14 +0000 (17:24 +0200)]
Don't use rpath
Gbp-Pq: Name 0003-Don-t-use-rpath.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:23:34 +0000 (17:23 +0200)]
Call ld with proper flags
Filter linkflags passed to ld by ocamlopt -pack and -output-obj
to remove the "-Wl," parts, which are only used when ocamlopt calls
gcc.
Gbp-Pq: Name 0002-Call-ld-with-proper-flags.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:22:39 +0000 (17:22 +0200)]
Pass --no-relax to ld on alpha
Pass the --no-relax option to ld to fix a segfault in initialization
code (bug#338437)
Gbp-Pq: Name 0001-Pass-no-relax-to-ld-on-alpha.patch
Stéphane Glondu [Thu, 13 Jul 2017 02:40:57 +0000 (03:40 +0100)]
ocaml (4.02.3-10) unstable; urgency=medium
* Add Provides: ocamlbuild to ocaml-nox
* Tell dh_installdocs to ignore README.Debian (see #868204)
[dgit import unpatched ocaml 4.02.3-10]
Stéphane Glondu [Thu, 13 Jul 2017 02:40:57 +0000 (03:40 +0100)]
Import ocaml_4.02.3-10.debian.tar.xz
[dgit import tarball ocaml 4.02.3-10 ocaml_4.02.3-10.debian.tar.xz]
Raspbian forward porter [Sat, 7 Jan 2017 06:25:05 +0000 (06:25 +0000)]
Merge ocaml (4.02.3-9+rpi1) import into refs/heads/workingbranch
Mehdi Dogguy [Wed, 21 Dec 2016 23:45:00 +0000 (00:45 +0100)]
CVE-2015-8869
Upstream commit: https://github.com/ocaml/ocaml/commit/
659615c7b100a89eafe6253e7a5b9d84d0e8df74#diff-
a97df53e3ebc59bb457191b496c90762
http://www.openwall.com/lists/oss-security/2016/04/29/1
Gbp-Pq: Name 0015-CVE-2015-8869.patch
Johannes Schauer [Wed, 21 Dec 2016 23:36:14 +0000 (00:36 +0100)]
Compute a stable name for preprocessed files
Gbp-Pq: Name 0014-Compute-a-stable-name-for-preprocessed-files.patch
Torok Edwin [Wed, 15 Jul 2015 13:33:23 +0000 (16:33 +0300)]
Use CCLINKFLAGS for linking all executables and shared libraries
This allows packagers to set additional linker flags for executables and shared
libraries created by OCaml, and for the OCaml tools themselves.
OCaml code can be linked with various C stubs and C libraries that would
benefit from using hardening link flags, such as -Wl,-z,relro.
Origin: other
Bug-Debian: https://bugs.debian.org/702349
Forwarded: no
Last-Update: <2015-07-15>
Gbp-Pq: Name 0013-Use-CCLINKFLAGS-for-linking-all-executables-and-shar.patch
Mehdi Dogguy [Sun, 6 Nov 2016 09:36:00 +0000 (10:36 +0100)]
Default to PIC on arm
Otherwise the armhf build fails now that PIE is enabled by default.
Bug-Debian: https://bugs.debian.org/837359
Forwarded: TODO
Gbp-Pq: Name 0012-arm-default-PIC.patch
Stephane Glondu [Tue, 16 Feb 2016 10:29:16 +0000 (11:29 +0100)]
Compatibility with x32 architecture
Origin: https://github.com/ocaml/ocaml/commit/
58c07fa89ec6546cea911f1d2e7803fd7aa75de9
Bug: http://caml.inria.fr/mantis/view.php?id=6722
Bug-Debian: https://bugs.debian.org/773409
Gbp-Pq: Name 0011-Compatibility-with-x32-architecture.patch
Stephane Glondu [Sun, 16 Aug 2015 18:59:14 +0000 (20:59 +0200)]
Add a .file directive to generated .s files
When no .file directive is given, the toolchain records the filename
of the .o file, which is sometimes random, making generated objects
non-deterministic.
We use Location.input_name for adding .file directives to assembly
files. Note: when the file is preprocessed, this reference holds the
name of the temporary file. Hence, files compiled with -pp are still
not deterministic.
Bug-Debian: https://bugs.debian.org/795784
Bug-Debian: https://bugs.debian.org/796336
Gbp-Pq: Name 0010-Add-a-.file-directive-to-generated-.s-files.patch
Valentin Lorentz [Thu, 13 Aug 2015 09:59:04 +0000 (11:59 +0200)]
Enable ocamldoc to build reproducible manpages
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794586
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0010-Enable-ocamldoc-to-build-reproducible-manpages.patch
Stephane Glondu [Wed, 13 Nov 2013 13:28:16 +0000 (14:28 +0100)]
Native backtraces don't work on powerpc and sparc
Gbp-Pq: Name 0008-Native-backtraces-don-t-work-on-powerpc-and-sparc.patch
Stephane Glondu [Fri, 8 Nov 2013 21:27:23 +0000 (22:27 +0100)]
Tune resource usage of some tests
The original tests trigger some limits and fail on kfreebsd-i386 with
uncaught exception Sys_error("Thread.create: Resource temporarily
unavailable").
Gbp-Pq: Name 0007-Tune-resource-usage-of-some-tests.patch
Stephane Glondu [Sat, 21 Jul 2012 13:40:52 +0000 (15:40 +0200)]
Embed bytecode in C object when using -custom
This patch fixes non-strippability of bytecode executables linked with
custom runtime. The new behaviour is enabled when OCAML_CUSTOM_EMBED
is set to "y", or when DEB_HOST_ARCH is non-empty.
Forwarded: not-needed
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=256900
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627761
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678577
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0006-Embed-bytecode-in-C-object-when-using-custom.patch
Stephane Glondu [Thu, 21 Apr 2011 16:39:31 +0000 (18:39 +0200)]
Avoid multiple declarations in generated .c files in -output-obj
In -output-obj mode, <caml/mlvalues.h> (which contains some
primitives) is included in the generated .c file, leading to errors
when compiling with g++ (multiple declarations).
There are probably better implementations (in particular, in this one,
care must be taken when changing the list of primitives available in
mlvalues.h), but this is a small and (not too) intrusive patch.
Bug: http://caml.inria.fr/mantis/view.php?id=5254
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0005-Avoid-multiple-declarations-in-generated-.c-files-in.patch
Julien Cristau [Tue, 19 May 2009 15:24:52 +0000 (17:24 +0200)]
Put manpages in section 3o instead of 3
Gbp-Pq: Name 0004-Put-manpages-in-section-3o-instead-of-3.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:24:14 +0000 (17:24 +0200)]
Don't use rpath
Gbp-Pq: Name 0003-Don-t-use-rpath.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:23:34 +0000 (17:23 +0200)]
Call ld with proper flags
Filter linkflags passed to ld by ocamlopt -pack and -output-obj
to remove the "-Wl," parts, which are only used when ocamlopt calls
gcc.
Gbp-Pq: Name 0002-Call-ld-with-proper-flags.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:22:39 +0000 (17:22 +0200)]
Pass --no-relax to ld on alpha
Pass the --no-relax option to ld to fix a segfault in initialization
code (bug#338437)
Gbp-Pq: Name 0001-Pass-no-relax-to-ld-on-alpha.patch
Raspbian forward porter [Sat, 7 Jan 2017 06:25:05 +0000 (06:25 +0000)]
ocaml (4.02.3-9+rpi1) stretch-staging; urgency=medium
[changes brought forward from 4.01.0-5+rpi1 by Peter Michael Green <plugwash@raspbian.org> at Sat, 24 Jan 2015 10:29:46 +0000]
* Add logic in debian/rules to detect raspbian and give the upstream
configure script the correct instructions.
[dgit import unpatched ocaml 4.02.3-9+rpi1]
Raspbian forward porter [Sat, 7 Jan 2017 06:25:05 +0000 (06:25 +0000)]
Import ocaml_4.02.3-9+rpi1.debian.tar.xz
[dgit import tarball ocaml 4.02.3-9+rpi1 ocaml_4.02.3-9+rpi1.debian.tar.xz]
Mehdi Dogguy [Wed, 21 Dec 2016 23:48:59 +0000 (23:48 +0000)]
Merge ocaml (4.02.3-9) import into refs/heads/workingbranch
Raspbian Automatic git importer [Thu, 22 Dec 2016 07:10:14 +0000 (07:10 +0000)]
Merge ocaml (4.02.3-8) import into refs/heads/workingbranch
Raspbian Automatic git importer [Thu, 22 Dec 2016 07:10:14 +0000 (07:10 +0000)]
Merge ocaml (4.02.3-7) import into refs/heads/workingbranch
Mehdi Dogguy [Wed, 21 Dec 2016 23:45:00 +0000 (00:45 +0100)]
CVE-2015-8869
Upstream commit: https://github.com/ocaml/ocaml/commit/
659615c7b100a89eafe6253e7a5b9d84d0e8df74#diff-
a97df53e3ebc59bb457191b496c90762
http://www.openwall.com/lists/oss-security/2016/04/29/1
Gbp-Pq: Name 0015-CVE-2015-8869.patch
Johannes Schauer [Wed, 21 Dec 2016 23:36:14 +0000 (00:36 +0100)]
Compute a stable name for preprocessed files
Gbp-Pq: Name 0014-Compute-a-stable-name-for-preprocessed-files.patch
Torok Edwin [Wed, 15 Jul 2015 13:33:23 +0000 (16:33 +0300)]
Use CCLINKFLAGS for linking all executables and shared libraries
This allows packagers to set additional linker flags for executables and shared
libraries created by OCaml, and for the OCaml tools themselves.
OCaml code can be linked with various C stubs and C libraries that would
benefit from using hardening link flags, such as -Wl,-z,relro.
Origin: other
Bug-Debian: https://bugs.debian.org/702349
Forwarded: no
Last-Update: <2015-07-15>
Gbp-Pq: Name 0013-Use-CCLINKFLAGS-for-linking-all-executables-and-shar.patch
Mehdi Dogguy [Sun, 6 Nov 2016 09:36:00 +0000 (10:36 +0100)]
Default to PIC on arm
Otherwise the armhf build fails now that PIE is enabled by default.
Bug-Debian: https://bugs.debian.org/837359
Forwarded: TODO
Gbp-Pq: Name 0012-arm-default-PIC.patch
Stephane Glondu [Tue, 16 Feb 2016 10:29:16 +0000 (11:29 +0100)]
Compatibility with x32 architecture
Origin: https://github.com/ocaml/ocaml/commit/
58c07fa89ec6546cea911f1d2e7803fd7aa75de9
Bug: http://caml.inria.fr/mantis/view.php?id=6722
Bug-Debian: https://bugs.debian.org/773409
Gbp-Pq: Name 0011-Compatibility-with-x32-architecture.patch
Stephane Glondu [Sun, 16 Aug 2015 18:59:14 +0000 (20:59 +0200)]
Add a .file directive to generated .s files
When no .file directive is given, the toolchain records the filename
of the .o file, which is sometimes random, making generated objects
non-deterministic.
We use Location.input_name for adding .file directives to assembly
files. Note: when the file is preprocessed, this reference holds the
name of the temporary file. Hence, files compiled with -pp are still
not deterministic.
Bug-Debian: https://bugs.debian.org/795784
Bug-Debian: https://bugs.debian.org/796336
Gbp-Pq: Name 0010-Add-a-.file-directive-to-generated-.s-files.patch
Valentin Lorentz [Thu, 13 Aug 2015 09:59:04 +0000 (11:59 +0200)]
Enable ocamldoc to build reproducible manpages
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794586
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0010-Enable-ocamldoc-to-build-reproducible-manpages.patch
Stephane Glondu [Wed, 13 Nov 2013 13:28:16 +0000 (14:28 +0100)]
Native backtraces don't work on powerpc and sparc
Gbp-Pq: Name 0008-Native-backtraces-don-t-work-on-powerpc-and-sparc.patch
Stephane Glondu [Fri, 8 Nov 2013 21:27:23 +0000 (22:27 +0100)]
Tune resource usage of some tests
The original tests trigger some limits and fail on kfreebsd-i386 with
uncaught exception Sys_error("Thread.create: Resource temporarily
unavailable").
Gbp-Pq: Name 0007-Tune-resource-usage-of-some-tests.patch
Stephane Glondu [Sat, 21 Jul 2012 13:40:52 +0000 (15:40 +0200)]
Embed bytecode in C object when using -custom
This patch fixes non-strippability of bytecode executables linked with
custom runtime. The new behaviour is enabled when OCAML_CUSTOM_EMBED
is set to "y", or when DEB_HOST_ARCH is non-empty.
Forwarded: not-needed
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=256900
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627761
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678577
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0006-Embed-bytecode-in-C-object-when-using-custom.patch
Stephane Glondu [Thu, 21 Apr 2011 16:39:31 +0000 (18:39 +0200)]
Avoid multiple declarations in generated .c files in -output-obj
In -output-obj mode, <caml/mlvalues.h> (which contains some
primitives) is included in the generated .c file, leading to errors
when compiling with g++ (multiple declarations).
There are probably better implementations (in particular, in this one,
care must be taken when changing the list of primitives available in
mlvalues.h), but this is a small and (not too) intrusive patch.
Bug: http://caml.inria.fr/mantis/view.php?id=5254
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0005-Avoid-multiple-declarations-in-generated-.c-files-in.patch
Julien Cristau [Tue, 19 May 2009 15:24:52 +0000 (17:24 +0200)]
Put manpages in section 3o instead of 3
Gbp-Pq: Name 0004-Put-manpages-in-section-3o-instead-of-3.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:24:14 +0000 (17:24 +0200)]
Don't use rpath
Gbp-Pq: Name 0003-Don-t-use-rpath.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:23:34 +0000 (17:23 +0200)]
Call ld with proper flags
Filter linkflags passed to ld by ocamlopt -pack and -output-obj
to remove the "-Wl," parts, which are only used when ocamlopt calls
gcc.
Gbp-Pq: Name 0002-Call-ld-with-proper-flags.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:22:39 +0000 (17:22 +0200)]
Pass --no-relax to ld on alpha
Pass the --no-relax option to ld to fix a segfault in initialization
code (bug#338437)
Gbp-Pq: Name 0001-Pass-no-relax-to-ld-on-alpha.patch
Mehdi Dogguy [Wed, 21 Dec 2016 23:48:59 +0000 (23:48 +0000)]
ocaml (4.02.3-9) unstable; urgency=medium
* obey hardening LDFLAGS (Closes: #792502). Thanks to Török Edwin
for the patch!
- add patch 0013-Obey-ldflags.patch
* Compute a stable name for preprocessed files (Closes: #838188).
Thanks to Johannes Schauer for the patch!
* CVE-2015-8869 (Closes: #824139).
[dgit import unpatched ocaml 4.02.3-9]
Mehdi Dogguy [Wed, 21 Dec 2016 23:48:59 +0000 (23:48 +0000)]
Import ocaml_4.02.3-9.debian.tar.xz
[dgit import tarball ocaml 4.02.3-9 ocaml_4.02.3-9.debian.tar.xz]
Debian OCaml Maintainers [Sun, 6 Nov 2016 10:29:41 +0000 (10:29 +0000)]
arm-default-PIC
Gbp-Pq: Name 0012-arm-default-PIC.patch
Stephane Glondu [Tue, 16 Feb 2016 10:29:16 +0000 (11:29 +0100)]
Compatibility with x32 architecture
Origin: https://github.com/ocaml/ocaml/commit/
58c07fa89ec6546cea911f1d2e7803fd7aa75de9
Bug: http://caml.inria.fr/mantis/view.php?id=6722
Bug-Debian: https://bugs.debian.org/773409
Gbp-Pq: Name 0011-Compatibility-with-x32-architecture.patch
Stephane Glondu [Sun, 16 Aug 2015 18:59:14 +0000 (20:59 +0200)]
Add a .file directive to generated .s files
When no .file directive is given, the toolchain records the filename
of the .o file, which is sometimes random, making generated objects
non-deterministic.
We use Location.input_name for adding .file directives to assembly
files. Note: when the file is preprocessed, this reference holds the
name of the temporary file. Hence, files compiled with -pp are still
not deterministic.
Bug-Debian: https://bugs.debian.org/795784
Bug-Debian: https://bugs.debian.org/796336
Gbp-Pq: Name 0010-Add-a-.file-directive-to-generated-.s-files.patch
Valentin Lorentz [Thu, 13 Aug 2015 09:59:04 +0000 (11:59 +0200)]
Enable ocamldoc to build reproducible manpages
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794586
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0010-Enable-ocamldoc-to-build-reproducible-manpages.patch
Stephane Glondu [Wed, 13 Nov 2013 13:28:16 +0000 (14:28 +0100)]
Native backtraces don't work on powerpc and sparc
Gbp-Pq: Name 0008-Native-backtraces-don-t-work-on-powerpc-and-sparc.patch
Stephane Glondu [Fri, 8 Nov 2013 21:27:23 +0000 (22:27 +0100)]
Tune resource usage of some tests
The original tests trigger some limits and fail on kfreebsd-i386 with
uncaught exception Sys_error("Thread.create: Resource temporarily
unavailable").
Gbp-Pq: Name 0007-Tune-resource-usage-of-some-tests.patch
Stephane Glondu [Sat, 21 Jul 2012 13:40:52 +0000 (15:40 +0200)]
Embed bytecode in C object when using -custom
This patch fixes non-strippability of bytecode executables linked with
custom runtime. The new behaviour is enabled when OCAML_CUSTOM_EMBED
is set to "y", or when DEB_HOST_ARCH is non-empty.
Forwarded: not-needed
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=256900
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627761
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678577
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0006-Embed-bytecode-in-C-object-when-using-custom.patch
Stephane Glondu [Thu, 21 Apr 2011 16:39:31 +0000 (18:39 +0200)]
Avoid multiple declarations in generated .c files in -output-obj
In -output-obj mode, <caml/mlvalues.h> (which contains some
primitives) is included in the generated .c file, leading to errors
when compiling with g++ (multiple declarations).
There are probably better implementations (in particular, in this one,
care must be taken when changing the list of primitives available in
mlvalues.h), but this is a small and (not too) intrusive patch.
Bug: http://caml.inria.fr/mantis/view.php?id=5254
Signed-off-by: Stephane Glondu <steph@glondu.net>
Gbp-Pq: Name 0005-Avoid-multiple-declarations-in-generated-.c-files-in.patch
Julien Cristau [Tue, 19 May 2009 15:24:52 +0000 (17:24 +0200)]
Put manpages in section 3o instead of 3
Gbp-Pq: Name 0004-Put-manpages-in-section-3o-instead-of-3.patch
Stefano Zacchiroli [Tue, 19 May 2009 15:24:14 +0000 (17:24 +0200)]
Don't use rpath
Gbp-Pq: Name 0003-Don-t-use-rpath.patch