From: Stefano Zacchiroli Date: Mon, 16 Apr 2007 13:20:56 +0000 (+0000) Subject: avoid building camlp4/ocamlbuild with debugging info to reduce the ocaml-nox .deb... X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~585^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=17454d1c9a6a77ecc6acbbddefb38aa77e32ae41;p=ocaml.git avoid building camlp4/ocamlbuild with debugging info to reduce the ocaml-nox .deb size --- diff --git a/debian/changelog b/debian/changelog index 6d0f2527..14f76d10 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,8 @@ ocaml (3.10.0~beta-1) UNRELEASED; urgency=low - removed: versioned_libdir (no longer needed with this upstream) - ported to this upstream: call_ld_with_proper_flags, alpha_ld_no-relax, no_rpath + - added: build_wo_debug_info.dpatch (avoid building camlp4/ocamldoc with + debug info, wont be needed for the stable release) * CDBS class - added support for the OCAML_DLL_DIR variable, pointing ATM to the stublibs/ subdirectory of the standard library directory. It's @@ -34,7 +36,7 @@ ocaml (3.10.0~beta-1) UNRELEASED; urgency=low - Patch LIBDIR and STBLIBDIR setting in config/Makefile after invokation of configure - -- Stefano Zacchiroli Sun, 15 Apr 2007 17:26:45 +0200 + -- Stefano Zacchiroli Mon, 16 Apr 2007 15:19:03 +0200 ocaml (3.09.3-1) experimental; urgency=low diff --git a/debian/patches/00dpatch.conf b/debian/patches/00dpatch.conf index c2409bed..e83a5acf 100644 --- a/debian/patches/00dpatch.conf +++ b/debian/patches/00dpatch.conf @@ -1,2 +1,2 @@ conf_debianonly=1 -conf_origtargzpath=../upstream +conf_origtargzpath=../../upstream diff --git a/debian/patches/00list b/debian/patches/00list index 66679a4c..446e4a30 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -9,3 +9,4 @@ stdlib_man_section.dpatch install_scripts_config.dpatch ocaml-interp_manpage.dpatch install_ocamlbuild.dpatch +build_wo_debug_info.dpatch diff --git a/debian/patches/build_wo_debug_info.dpatch b/debian/patches/build_wo_debug_info.dpatch new file mode 100755 index 00000000..57ab7d73 --- /dev/null +++ b/debian/patches/build_wo_debug_info.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## build_wo_debug_info.dpatch by Stefano Zacchiroli +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Avoid building with debugging info ocamldoc and camlp4. +## DP: Wont be needed for the stable release of ocaml 3.10.0. + +@DPATCH@ +diff -urNad ocaml-3.10.0~beta~/_tags ocaml-3.10.0~beta/_tags +--- ocaml-3.10.0~beta~/_tags 2007-03-04 12:00:26.000000000 +0100 ++++ ocaml-3.10.0~beta/_tags 2007-04-16 15:02:20.000000000 +0200 +@@ -12,6 +12,8 @@ + + # We want -g everywhere it's possible + true: debug ++: -debug ++: -debug + + # By default everything we link needs the stdlib + true: use_stdlib